query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Converts the byte array to an integer value.
public int b2i(byte[] b, int offset) { return (b[offset + 3] & 0xFF) | ((b[offset + 2] & 0xFF) << 8) | ((b[offset + 1] & 0xFF) << 16) | ((b[offset] & 0xFF) << 24); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int bytesToInt(byte[] bytes) {\n\t\tByteBuffer buffer = ByteBuffer.allocate(Integer.BYTES);\n\t\tbuffer.put(bytes);\n\t\tbuffer.flip();//need flip \n\t\treturn buffer.getInt();\n\t}", "public static int toInt(byte[] bytes) {\n return toInt(bytes, 0, SIZEOF_INT);\n }", "public static int bytesToInt(byte[] bytes) {\n\n ByteBuffer byteBuffer = ByteBuffer.wrap(bytes);\n return byteBuffer.getInt();\n\n }", "public static int toInt(byte[] bytes, int offset) {\n return toInt(bytes, offset, SIZEOF_INT);\n }", "public static int ByteArrayToInt(byte[] bytes) {\r\n\t\tif(bytes.length != 4){\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn bytes[3] & 0xFF | \r\n\t (bytes[2] & 0xFF) << 8 | \r\n\t (bytes[1] & 0xFF) << 16 | \r\n\t (bytes[0] & 0xFF) << 24; \r\n\t}", "public int byteArrayToInt(byte[] byteArray) {\n\t\t// http://snippets.dzone.com/posts/show/93\n\t\treturn (byteArray[0] << 24) + ((byteArray[1] & 0xFF) << 16)\n\t\t\t\t+ ((byteArray[2] & 0xFF) << 8) + (byteArray[3] & 0xFF);\n\t}", "static int fromArray(byte[] payload) {\n return payload[0] << 24 | (payload[1] & 0xFF) << 16 | (payload[2] & 0xFF) << 8 | (payload[3] & 0xFF);\n }", "public static int byteArrayToInt(byte[] b) {\n\n\t\tint aux = 0;\n\t\tif ((b!=null) && (b.length !=0)) {\n\t\t\tif (b.length>2 ) {\n\t\t\t\tthrow new NumberFormatException(\"To Much Digits to convert (max 2): \"+b.length);\n\t\t\t} else if (b.length==2){\n\t\t\t\tshort aux1 = (short) (b[1] & 0xff);\n\t\t\t\tshort aux2 = (short) (b[0] & 0xff);\n\t\t\t\taux = (int) ((aux2 << 8) | aux1);\n\t\t\t} else if (b.length==1) {\n\t\t\t\tshort aux1 = (short) (b[0] & 0xff);\n\t\t\t\tshort aux2 = (short) (0x00 & 0xff);\n\t\t\t\taux = (int) ((aux2 << 8) | aux1);\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new NumberFormatException(\"No Bytes to convert.\");\n\t\t}\n\n\t\treturn aux;\n\t}", "public static int byteArrayToInt(byte[] ba, int offset) {\n int value = 0;\n value = (value << 8) | (ba[offset++] & 0xFF);\n value = (value << 8) | (ba[offset++] & 0xFF);\n value = (value << 8) | (ba[offset++] & 0xFF);\n value = (value << 8) | (ba[offset++] & 0xFF);\n return value;\n }", "public int[] byte2intArray(byte[] bytes){\n ByteBuffer buf = ByteBuffer.wrap(bytes);\n\n int[] result = new int[bytes.length / Integer.BYTES];\n for (int i = 0; i < result.length; i++) {\n result[i] = buf.getInt();\n }\n\n return result;\n }", "private static int getIntFromByteArray(byte[] bytes)\r\n {\r\n int val = 0;\r\n for (int i=0; i<4; i++)\r\n {\r\n val = (val << 8) - Byte.MIN_VALUE + bytes[i];\r\n }\r\n return val;\r\n }", "public static int bytesToInt(byte[] bytes,int offset,int length) {\n ByteBuffer byteBuffer = ByteBuffer.wrap(bytes,offset,length);\n return byteBuffer.getInt();\n\n }", "public static int toInt32(byte[] value) {\r\n\t\treturn toInt32(value, 0);\r\n\t}", "public int[] utf8ToInt(byte[] bval) {\n return utf8ToInt(bval, bval.length);\n }", "public static int byteArrayToUnsignedInt(byte @NotNull [] data) {\n return byteArrayToUnsignedInt(data, 0, Endian.BIG, INT_WIDTH);\n }", "private static int readInt(@Nullable byte[] data) {\n if (data == null || data.length == 0) {\n return 0;\n }\n int value = 0;\n for (byte b : data) {\n value <<= 8;\n value += (0xff & b);\n }\n return value;\n }", "public static int asn1Value_ByteArrayToInteger(byte[] asn1IntValue) throws ValueNullException, ValueTooBigException {\n\t\t//check if the array is null\n\t\tif(asn1IntValue == null) {\n\t\t\tthrow new ValueNullException(\"The input is null, not an encoded integer\");\n\t\t}\n\t\t//check if the value 0 has been encoded\n\t\tif((asn1IntValue[0] == 0) && (asn1IntValue.length == 1) ) {\n\t\t\treturn 0;\n\t\t}\n\t\t//check if the value is too long to be converted to an integer\n\t\tif((asn1IntValue.length>4)) {\n\t\t\tthrow new ValueTooBigException(\"Java integer can only hold 32 bits or 4 octets. The passed value is bigger than that\");\n\t\t}\n\t\t\n\t\tBigInteger tmpInt = new BigInteger(asn1IntValue);\n\t\treturn tmpInt.intValue();\n\t}", "protected static int getInt(byte[] data, int offset){\n return makeInt(data, offset);\n }", "private int byteToInt(byte b) { int i = b & 0xFF; return i; }", "private static int getValue(final byte [] byteArray) { \n int value = 0; \n final int byteArrayLength = byteArray.length; \n \n for (int i = 0; i < byteArrayLength; i++) { \n final int shift = (byteArrayLength - 1 - i) * 8; \n value += (byteArray[i] & 0x000000FF) << shift; \n } \n \n return value; \n }", "@Test\n public void testByteArray2Integer() {\n System.out.println(\"byteArray2Integer\");\n SntParser instance = new SntParser();\n byte[] array = {0x20, 0x00, 0x30, 0x34};\n int start = 0;\n int length = 3;\n int expResult = 0x200030;\n int result = byteArray2Integer(array, start, length);\n assertEquals(expResult, result);\n }", "public static int readNumberFromBytes(byte[] data) {\n return readNumberFromBytes(data, data.length, 0);\n }", "public static int toInt(byte b) {\n return b & 0xFF;\n }", "private int toInt(int[] arrValue) {\n // convert int[] to int\n StringBuilder temp = new StringBuilder();\n\n int i = 0;\n while (i < arrValue.length) {\n temp.append(arrValue[i]);\n i++;\n }\n\n return Integer.parseInt(temp.toString());\n }", "private static final int decodeBEInt(byte[] paramArrayOfByte, int paramInt)\r\n/* 145: */ {\r\n/* 146:225 */ return (paramArrayOfByte[paramInt] & 0xFF) << 24 | (paramArrayOfByte[(paramInt + 1)] & 0xFF) << 16 | (paramArrayOfByte[(paramInt + 2)] & 0xFF) << 8 | paramArrayOfByte[(paramInt + 3)] & 0xFF;\r\n/* 147: */ }", "public void testToInt(){\t\t\r\n\t\tassertEquals(fIntToTest, ByteUtil.byteArrayToInt(fIntToTestByteArray));\r\n\t}", "public static int convertToInt32(byte[] bytes)\r\n {\r\n if (bytes.length >= 4)\r\n {\r\n return (((bytes[0] & 0xff) << 24) + ((bytes[1] & 0xff) << 16)\r\n + ((bytes[2] & 0xff) << 8) + ((bytes[3] & 0xff) << 0));\r\n }\r\n return 0;\r\n }", "public long toLong()\n\t{\n\t\t// holds the int to return\n\t\tlong result = 0;\n\t\t\n\t\t// for every byte value\n\t\tfor (int i = 0; i < bytes.length; i++)\n\t\t{\n\t\t\t// Extract the bits out of the array by \"and\"ing them with the\n\t\t\t// maximum value of\n\t\t\t// a byte. This is done because java does not support unsigned\n\t\t\t// types. Now that the\n\t\t\t// unsigned byte has been extracted, shift it to the right as far as\n\t\t\t// it is needed.\n\t\t\t// Examples:\n\t\t\t// byte array int\n\t\t\t// {0x01, 0x00} = 256\n\t\t\t//\n\t\t\t// byte array int\n\t\t\t// {0x01, 0x8C 0xF0} = 0x018CF0\n\t\t\tresult += (byteToLong(bytes[i]) << (Byte.SIZE * (bytes.length - i - 1)));\n\t\t}\n\t\t\n\t\t// return the int\n\t\treturn result;\n\t}", "public int toInt() {\n return this.toIntArray()[0];\n }", "public int getInt2() {\n\t\tfinal int b1 = payload.get() & 0xFF;\n\t\tfinal int b2 = payload.get() & 0xFF;\n\t\tfinal int b3 = payload.get() & 0xFF;\n\t\tfinal int b4 = payload.get() & 0xFF;\n\t\treturn b2 << 24 & 0xFF | b1 << 16 & 0xFF | b4 << 8 & 0xFF | b3 & 0xFF;\n\t}", "public static int byteArrayToUnsignedInt(byte @NotNull [] data, int offset) {\n return byteArrayToUnsignedInt(data, offset, Endian.BIG, INT_WIDTH);\n }", "public static int fourBytesToInt(byte[] bytes) {\n if (bytes.length > 4) throw new IllegalArgumentException(\"Expected at most four bytes.\");\n if (bytes.length == 0) return 0;\n\n int val = bytes[0];\n for (int i = 1; i < bytes.length; ++i) {\n // shift by 8 bits\n val <<= 8;\n // pack the next 8 bits\n val |= bytes[i] & 0xff;\n }\n return val;\n }", "public int utf8ToInt(byte bval) {\n\t\t\treturn utf8_map[ByteUtil.byteToUint(bval)];\n\t\t}", "public static int byteBufferToInt(ByteBuffer byteBuffer,int off){\n byte[] bytes = new byte[byteBuffer.limit()];\n for(int i=0;i<byteBuffer.limit();i++){\n bytes[i] = byteBuffer.get(i);\n }\n\n int b0 = bytes[off] & 0xFF;\n int b1 = bytes[off + 1] & 0xFF;\n int b2 = bytes[off + 2] & 0xFF;\n int b3 = bytes[off + 3] & 0xFF;\n return (b0 << 24) | (b1 << 16) | (b2 << 8) | b3;\n }", "protected static int[] convert(byte[] packet) {\n\t\tint[] p = new int[packet.length - 3];\n\t\t\n\t\t// would arrayscopy work here?\n\t\tfor(int i = 2; i < packet.length - 1; i++) {\n\t\t\tp[i - 2] = packet[i] & 0xFF;\n\t\t}\n\t\t\n\t\treturn p;\n\t}", "public static int readIntFromBytes(byte[] data, int startIndex) {\n return readNumberFromBytes(data, Constants.INTEGER_SIZE, startIndex);\n }", "public int toInt()\n\t{\n\t\treturn (int) toLong();\n\t}", "public static int OpaqueToType(byte[] b) { \n int type = b[8];\n return type; \n }", "public int getInt1() {\n\t\tfinal byte b1 = payload.get();\n\t\tfinal byte b2 = payload.get();\n\t\tfinal byte b3 = payload.get();\n\t\tfinal byte b4 = payload.get();\n\t\treturn b3 << 24 & 0xFF | b4 << 16 & 0xFF | b1 << 8 & 0xFF | b2 & 0xFF;\n\t}", "public static int convertToInt32(byte[] bytes, boolean isLE)\r\n {\r\n if (bytes.length >= 4)\r\n {\r\n if (isLE)\r\n {\r\n return (((bytes[3] & 0xff) << 24) + ((bytes[2] & 0xff) << 16)\r\n + ((bytes[1] & 0xff) << 8) + ((bytes[0] & 0xff) << 0));\r\n }\r\n else\r\n {\r\n return (((bytes[0] & 0xff) << 24) + ((bytes[1] & 0xff) << 16)\r\n + ((bytes[2] & 0xff) << 8) + ((bytes[3] & 0xff) << 0));\r\n }\r\n }\r\n return 0;\r\n }", "public int fromByteArray(byte [] value, int start, int length)\n {\n int Return = 0;\n for (int i=start; i< start+length; i++)\n {\n Return = (Return << 8) + (value[i] & 0xff);\n }\n return Return;\n }", "public static int unsignedByteToInt(byte b) {\n return b & 0xFF;\n }", "public static int readInt(byte[] source, int position) {\n return makeInt(source[position], source[position + 1], source[position + 2], source[position + 3]);\n }", "public static int[] byteArr2IntArr(byte[] b, int length, int bytesPerInt)\r\n\t\t\tthrows DataLenUnproperException {\r\n\t\tif (length % bytesPerInt != 0) {\r\n\t\t\tthrow new DataLenUnproperException();\r\n\t\t}\r\n\r\n\t\tint[] intArr = new int[length / bytesPerInt];\r\n\t\tint value = 0;\r\n\t\tfor (int i = 0, j = 0; i < length; i++) {\r\n\t\t\tvalue <<= 8; // 低地址byte在高位,大端格式\r\n\t\t\tvalue |= (b[i] & 0xff); // 运算时会对b[i]进行自动转型,导致b[i]的符号位扩展\r\n\r\n\t\t\tif (i % bytesPerInt == bytesPerInt - 1) {\r\n\t\t\t\t// System.out.println(\"bin:\" +\r\n\t\t\t\t// Integer.toBinaryString(Integer.MIN_VALUE >>\r\n\t\t\t\t// (4-bytesPerInt)*8));\r\n\t\t\t\t// System.out.println(\"bin:\" +\r\n\t\t\t\t// Integer.toBinaryString(Integer.MIN_VALUE)); //符号位为1,其余为0\r\n\t\t\t\t// System.out.println(\"0x80 & (1<<7): \" + (0x80 & (1<<7)));\r\n\t\t\t\t// //结果为0x80(128),不为1\r\n\t\t\t\tif ((b[i + 1 - bytesPerInt] & (1 << 7)) != 0) { // 是一个负数,当不足32位时进行符号扩展(不能利用等于1判断,只有1不移位时与的结果才为1)\r\n\t\t\t\t\tif ((bytesPerInt * 8) < 32) // 移位的次数为指定次数对32取模,因此若为32时,实际上不移位,不符合需要\r\n\t\t\t\t\t\tvalue |= Integer.MIN_VALUE >> (4 - bytesPerInt) * 8; // 将int剩余位进行符号扩展,\r\n\t\t\t\t}\r\n\t\t\t\tintArr[j++] = value;\r\n\t\t\t\tvalue = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn intArr;\r\n\r\n\t}", "private int bytesToInt32(byte bytes[], Endianness endianness) {\n int number;\n\n if (Endianness.BIG_ENNDIAN == endianness) {\n number = ((bytes[0] & 0xFF) << 24) | ((bytes[1] & 0xFF) << 16) |\n ((bytes[2] & 0xFF) << 8) | (bytes[3] & 0xFF);\n } else {\n number = (bytes[0] & 0xFF) | ((bytes[1] & 0xFF) << 8) |\n ((bytes[2] & 0xFF) << 16) | ((bytes[3] & 0xFF) << 24);\n }\n return number;\n }", "public int[] getAsInts() {\n if (data instanceof int[]) {\n return (int[])data;\n } else if (data instanceof char[]){\n char[] cdata = (char[])data;\n int[] idata = new int[cdata.length];\n for (int i = 0; i < cdata.length; i++) {\n idata[i] = (int)(cdata[i] & 0xffff);\n }\n return idata;\n } else if (data instanceof short[]){\n short[] sdata = (short[])data;\n int[] idata = new int[sdata.length];\n for (int i = 0; i < sdata.length; i++) {\n idata[i] = (int)sdata[i];\n }\n return idata;\n } else {\n throw new ClassCastException(\n \"Data not char[], short[], or int[]!\");\n }\n }", "public int getInt(){\n return new BigInteger(this.value).intValue();\n }", "public int[] convertByteToInt(BufferedImage img) throws IOException {\r\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n ImageIO.write(img, \"png\", baos);\r\n byte[] byteArr = baos.toByteArray();\r\n int[] intArr = new int[byteArr.length];\r\n for(int i = 0; i < byteArr.length; i++) {\r\n intArr[i] = (int)byteArr[i] & 0xFF;\r\n }\r\n return intArr;\r\n }", "@Override\n public int read(byte[] b) throws IOException {\n int len = ((int) Math.ceil((b.length-24) / 32.0))*4+24;\n byte[] comp = new byte[len];\n in.read(comp);\n in.close();\n\n //copy the first 24 cells to b\n for (int i=0; i<24; i++)\n {\n b[i] = comp[i];\n }\n\n //4 cells represents byte --> int --> binary\n byte[] temp = new byte[4];\n int resInt;\n String resStr;\n int dif = b.length-24;\n int index = 0;\n for (int i=24; i<comp.length; i=i+4)\n {\n //byte --> int\n temp[0] = comp[i];\n temp[1] = comp[i+1];\n temp[2] = comp[i+2];\n temp[3] = comp[i+3];\n ByteBuffer byteBuffer = ByteBuffer.wrap(temp);\n resInt = byteBuffer.getInt();\n //int --> binary (string)\n resStr = Integer.toBinaryString(resInt);\n //checks the length of the string\n if (dif >=32 ) {\n dif = dif - 32;\n if (resStr.length()<32)\n resStr = addZero (resStr, 32-resStr.length());\n }\n else\n {\n if (resStr.length()<dif)\n resStr = addZero (resStr, dif-resStr.length());\n }\n //more converts\n for (int j=0; j<resStr.length(); j++)\n {\n String tempStr = \"\"+resStr.charAt(j); //each char --> string\n int digit = Integer.parseInt(tempStr); //string (with one char) --> int\n b[index+24] = (byte) digit; //int --> byte\n index++;\n }\n }\n return 0;\n }", "public static final int signedToInt(byte b) {\n \t\treturn (b & 0xff);\n \t}", "int decodeInt();", "public static int readLittleEndianInt(byte[] bytes) {\n int signum = 1;\n if ((bytes[0] & 0x80) != 0) {\n signum = -1;\n bytes[0] &= 0x7F;\n }\n return new BigInteger(signum, bytes).intValue();\n }", "public static int bigEndian2int(byte[] bytes, int pos) {\n if (pos == 0) {\n return (int) Integer.toUnsignedLong((Byte.toUnsignedInt(bytes[0]) << 24) + (Byte.toUnsignedInt(bytes[1]) << 16) + (Byte.toUnsignedInt(bytes[2]) << 8) + (Byte.toUnsignedInt(bytes[3]))); // = width (Bild-Breite)\n } else {\n return (int) Integer.toUnsignedLong((Byte.toUnsignedInt(bytes[4]) << 24) + (Byte.toUnsignedInt(bytes[5]) << 16) + (Byte.toUnsignedInt(bytes[6]) << 8) + (Byte.toUnsignedInt(bytes[7]))); // = height (Bild-Hoehe)\n }\n }", "public static int toInt(IRubyObject irb) {\n\t\treturn Integer.valueOf(irb.toString());\n\t}", "public int stringToInt(String bytesStr) {\r\n int result = 0;\r\n for(char b : bytesStr.toCharArray())\r\n result = (result << 8) + (int)b;\r\n return result;\r\n }", "private int getInt() {\n intBuffer.rewind();\n archive.read(intBuffer);\n intBuffer.flip();\n return intBuffer.getInt();\n }", "public static int parseInt(char[] myArray){\n return Integer.parseInt(new String(myArray));\n }", "private static int convertByteToPositiveInt(byte value) {\n return value >= 0 ? value : value + INTEGER_COMPLEMENT;\n }", "public int getInt(int index) throws ArrayIndexOutOfBoundsException\n\t{\n\t\treturn bytes[index] & 0xFF;\n\t}", "private int getInt(byte [] buffer, int offset) {\r\n\t\tint result = buffer[offset++] << 24;\r\n\t\tresult |= (buffer[offset++] << 16) & 0x00FF0000;\r\n\t\tresult |= (buffer[offset++] << 8) & 0x0000FF00;\r\n\t\tresult |= buffer[offset] & 0x000000FF;\r\n\r\n\t\treturn result;\r\n\t}", "public static int toInt32(byte[] value, int startIndex) {\r\n\t\treturn ByteBuffer.wrap(value, startIndex, 4).order(ByteOrder.LITTLE_ENDIAN).getInt();\r\n\t}", "private long convertByteValueToLong(byte[] b) {\n long m = 0;\n for (int i = 0; i < b.length; i++) {\n m = m * 256 + (b[i] < 0 ? (256 + (long) b[i]) : b[i]);\n }\n return m;\n }", "public static long toInt64(byte[] value) {\r\n\t\treturn toInt16(value, 0);\r\n\t}", "protected final int get_INTEGER(int column) {\n // @AGG had to get integer as Little Endian\n if (metadata.isZos())\n return dataBuffer_.getInt(columnDataPosition_[column - 1]);\n else\n return dataBuffer_.getIntLE(columnDataPosition_[column - 1]);\n// return SignedBinary.getInt(dataBuffer_,\n// columnDataPosition_[column - 1]);\n }", "public static int readNumberFromBytes(byte[] data, int readSize, int startIndex) {\n int value = 0;\n for (int i = 0; i < readSize; i++)\n value += ((long) data[startIndex + i] & 0xFFL) << (Constants.BITS_PER_BYTE * i);\n return value;\n }", "public static int convertToInt16(byte[] bytes)\r\n {\r\n if (bytes.length >= 2)\r\n {\r\n return ((bytes[0] & 0xff) << 8) + ((bytes[1] & 0xff) << 0);\r\n }\r\n return 0;\r\n }", "public static int parseInt(char[] value)\n\t{\n\t\tString integerString = new String(value);\n\t\t\n\t\treturn integerString.matches(\"-?\\\\d+\") ? Integer.parseInt(integerString) : 0;\n\t}", "public static int deserializeInteger(ByteBuffer bb) {\n return bb.getInt();\n }", "public static int getInt(byte[] buffer, int index, int len) {\n switch (len) {\n case 0: return 0xFFFFFFFF;\n case 1: return 0xFFFFFF00 | _getByte(buffer, index, 1);\n case 2: return 0xFFFF0000 | _getShort(buffer, index, 2);\n case 3: return 0xFF000000 | _getInt(buffer, index, 3);\n case 4: return _getInt(buffer, index, 4);\n default: throw new IllegalArgumentException(\"len is out of range: \" + len);\n }\n }", "public static long toNumber(final byte[] bytes) {\n\t\treturn toNumber(bytes, 0, bytes.length);\n\t}", "public static int INT(byte[] sz, int type) {\n int num = 0, i = 0, s = 1 , itr = 0;\n if(type == 1) {\n s = -1;\n i = sz.length;\n }//set loop from end for little indian \n while(itr < 4 && itr < sz.length) {\n i = i + s * 1;\n //System.out.println(\"INT \"+itr+\" : IN \" + HEX(num));\n // System.out.println(\"BYTE : IN \" + HEX(sz[i]));\n num = num << 8;\n num = num + (sz[i] & 0xff);\n //System.out.println(\"INT : IN \" + HEX(num));\n itr++;\n }return num;\n }", "private static int unserializeUint32(byte[] arr, int offset) {\n\t\tint i;\n\t\tint r = 0;\n\t\n\t\tfor (i = 3; i >= 0; i--)\n\t\t\tr |= (byte2int(arr[offset++])) << (i * 8);\n\t\treturn r;\n\t}", "public static int readBytesForList(byte[] byteBuffer) {\n List<Integer> message = new ArrayList<>();\n String guess = \"\";\n for (int i = 0; i < byteBuffer.length; i++) {\n guess += byteBuffer[i];\n }\n int decoded = Integer.parseInt(guess);\n return decoded;\n }", "@Override\n public int getValue(byte[] value, int offset) {\n return 0;\n }", "public static int readBytes(byte[] message) {\n byte[] byteBuffer = new byte[4];\n\n for (int i = 0; i < byteBuffer.length; i++) {\n byteBuffer[i] = (byte) 0xBB;\n }\n\n String guess = \"\";\n for (int i = 0; i < byteBuffer.length; i++) {\n //formats the byte array into hex format string\n guess += String.format(\"%02x\", message[i]);\n }\n guess = guess.replace(\"0\", \"\");\n return (!guess.isEmpty() ? Integer.parseInt(guess) : -2);\n }", "public static int signedByte2unsignedInteger(byte in) {\n int a;\n\n a = (int)in;\n if ( a < 0 ) a += 256;\n return a;\n\n }", "private int getNumberBufAsInt(ByteOrder byteOrder, int nrReadBytes,\n int firstBytePos) {\n\n int result = 0;\n int bytePortion = 0;\n for (int i = 0; i < nrReadBytes; i++) {\n bytePortion = 0xFF & (byteBuffer.get(firstBytePos++));\n\n if (byteOrder == ByteOrder.LittleEndian)\n // reshift bytes\n result = result | bytePortion << (i << 3);\n else\n result = bytePortion << ((nrReadBytes - i - 1) << 3) | result;\n }\n\n return result;\n }", "public static int convertToInt16(byte[] bytes, boolean isLE)\r\n {\r\n if (bytes.length >= 2)\r\n {\r\n if (isLE)\r\n {\r\n return ((bytes[1] & 0xff) << 8) + ((bytes[0] & 0xff) << 0);\r\n }\r\n else\r\n {\r\n return ((bytes[0] & 0xff) << 8) + ((bytes[1] & 0xff) << 0);\r\n }\r\n }\r\n return 0;\r\n }", "public static int int32_tToInt(byte b0, byte b1, byte b2, byte b3) {\n return unsignedByteToInt(b0) +\n (unsignedByteToInt(b1) << 8) +\n (unsignedByteToInt(b2) << 16) +\n (unsignedByteToInt(b3) << 24);\n }", "static\n int decodedNumBytes(ArrayList charToBytes, int start, int end) {\n int numBytes = 0;\n for (int i = start; i < end; i++) {\n Integer iobj = (Integer) charToBytes.get(i);\n numBytes += iobj.intValue();\n }\n return numBytes;\n }", "public int onBytes(byte[] b) {\n synchronized (this) {//ensure block is not interleaved with new input on other threads.\n int accum = 0;\n for (byte item : b) {//#PRESERVE order!\n accum = onByte(item & 255);//lookahead is of bytes alone, no codes will be mebedded\n }\n return accum;\n }\n }", "public static int toInt(Integer b1, Integer b2, Integer b3, Integer b4, BitConversion flag) {\n switch (flag) {\n case LITTLE_ENDIAN: {\n if (b4 != null) {\n return (b4 & 0xff) << 24 | (b3 & 0xff) << 16 | (b2 & 0xff) << 8 | b1 & 0xff;\n } else if (b3 != null) {\n return (b3 & 0xff) << 16 | (b2 & 0xff) << 8 | b1 & 0xff;\n } else if (b2 != null) {\n return (b2 & 0xff) << 8 | b1 & 0xff;\n } else {\n return b1 & 0xff;\n }\n }\n\n default:\n case BIG_ENDIAN: {\n if (b4 != null) {\n return (b1 & 0xff) << 24 | (b2 & 0xff) << 16 | (b3 & 0xff) << 8 | b4 & 0xff;\n } else if (b3 != null) {\n return (b1 & 0xff) << 16 | (b2 & 0xff) << 8 | b3 & 0xff;\n } else if (b2 != null) {\n return (b1 & 0xff) << 8 | b2 & 0xff;\n } else {\n return b1 & 0xff;\n }\n }\n }\n }", "public static int getInt(byte bc[], int index) {\n int i, bhh, bhl, blh, bll;\n bhh = (((bc[index])) << 24) & 0xff000000;\n bhl = (((bc[index + 1])) << 16) & 0xff0000;\n blh = (((bc[index + 2])) << 8) & 0xff00;\n bll = ((bc[index + 3])) & 0xff;\n i = bhh | bhl | blh | bll;\n return i;\n }", "private int read_int(RandomAccessFile file) throws IOException {\n int number = 0;\n for (int i = 0; i < 4; ++i) {\n number += (file.readByte() & 0xFF) << (8 * i);\n }\n return number;\n }", "public static int byteToUnsignedInt(byte b) {\n return b & 0xff;\n }", "public static int toUnsignedInt(byte x)\n {\n return (int)(x) & 0xff;\n }", "public int getValueAsIntegerValue() throws DataFieldException {\n\t\ttry {\n\t\t\treturn Integer.parseInt(this.value);\n\t\t} catch (NumberFormatException nfe) {\n\t\t\tthrow new DataFieldException(\n\t\t\t\t\t\"Couldn't parse value into an integer. Value: \"\n\t\t\t\t\t+ this.value, nfe);\n\t\t}\n\t}", "public static int byteToUInt(byte b)\r\n\t{\r\n\t\treturn b & 0xFF;\r\n\t}", "public int toInt(){\n\t\tString s = txt().trim();\n\t\tint i;\n\t\ttry{\n\t\t\ti = Integer.parseInt(s);\n\t\t}catch(NumberFormatException exp){\n\t\t\texp.printStackTrace();\n\t\t\treturn 0;\n\t\t}\n\t\treturn i;\t\n\t}", "public int getIndex(byte[] value);", "public byte[] readRawInt() throws IOException {\n byte[] bytes = new byte[5];\n bytes[0] = (byte) Type.INT.code;\n in.readFully(bytes, 1, 4);\n return bytes;\n }", "public static int[] converter(String[] a){\n int size = a.length;\n int[] integers = new int[size];\n for (int i = 0; i < size; i++) {\n integers[i] = Integer.parseInt(a[i]);\n }\n return integers;\n }", "public static Integer toInteger(Object o,byte type) throws ExecException {\n try {\n switch (type) {\n case BOOLEAN:\n if (((Boolean)o) == true) {\n return Integer.valueOf(1);\n } else {\n return Integer.valueOf(0);\n }\n\n case BYTE:\n return Integer.valueOf(((Byte)o).intValue());\n\n case INTEGER:\n return (Integer)o;\n\n case LONG:\n return Integer.valueOf(((Long)o).intValue());\n\n case FLOAT:\n return Integer.valueOf(((Float)o).intValue());\n\n case DOUBLE:\n return Integer.valueOf(((Double)o).intValue());\n\n case BYTEARRAY:\n return Integer.valueOf(((DataByteArray)o).toString());\n\n case CHARARRAY:\n return Integer.valueOf((String)o);\n\n case BIGINTEGER:\n return Integer.valueOf(((BigInteger)o).intValue());\n\n case BIGDECIMAL:\n return Integer.valueOf(((BigDecimal)o).intValue());\n\n case NULL:\n return null;\n\n case DATETIME:\n return Integer.valueOf(Long.valueOf(((DateTime)o).getMillis()).intValue());\n\n case MAP:\n case INTERNALMAP:\n case TUPLE:\n case BAG:\n case UNKNOWN:\n default:\n int errCode = 1071;\n String msg = \"Cannot convert a \" + findTypeName(o) +\n \" to an Integer\";\n throw new ExecException(msg, errCode, PigException.INPUT);\n }\n } catch (ClassCastException cce) {\n throw cce;\n } catch (ExecException ee) {\n throw ee;\n } catch (NumberFormatException nfe) {\n int errCode = 1074;\n String msg = \"Problem with formatting. Could not convert \" + o + \" to Integer.\";\n throw new ExecException(msg, errCode, PigException.INPUT, nfe);\n } catch (Exception e) {\n int errCode = 2054;\n String msg = \"Internal error. Could not convert \" + o + \" to Integer.\";\n throw new ExecException(msg, errCode, PigException.BUG);\n }\n }", "public void testToByte(){\t\r\n\t\t\r\n\t\tbyte[] lRes = ByteUtil.intToByteArray(fIntToTest);\r\n\t\t\r\n\t\tfor(int lCnt =0; lCnt< lRes.length; lCnt++){\r\n\t\t\tassertEquals(lRes[lCnt], fIntToTestByteArray[lCnt]);\r\n\t\t}\r\n\t\t\r\n\t}", "public byte[] process(int[] data) throws Exception {\r\n\t\t\treturn this.process(toBytes(data));\r\n\t\t}", "public abstract int parse(byte bc[], int index);", "public Integer toInteger() {\n\t\treturn this.getValue().intValue();\n\t}", "public int toInt(String entity) { return ent_2_i.get(entity); }", "public static long toNumber(final byte[] bytes, final int start, final int end) {\n\t\tlong result = 0;\n\t\tfor (int i = start; i < end; i++) {\n\t\t\tresult = (result << 8) | (bytes[i] & 0xff);\n\t\t}\n\t\treturn result;\n\t}", "public static int[] converter(String[] a){\n int size = a.length - 1;\n int[] integers = new int[size];\n for (int i = 0; i < size; i++) {\n integers[i] = Integer.parseInt(a[i+1]);\n }\n return integers;\n }" ]
[ "0.7801084", "0.7711935", "0.75238043", "0.7422982", "0.7407294", "0.7369565", "0.7353913", "0.73056364", "0.73038375", "0.71837556", "0.71692234", "0.71651065", "0.7140769", "0.7135033", "0.71291316", "0.70935947", "0.70437056", "0.69864297", "0.6982481", "0.69801855", "0.6920961", "0.6877805", "0.6821965", "0.6767471", "0.6745411", "0.67101955", "0.6706919", "0.6679058", "0.6559134", "0.65140635", "0.65037733", "0.6500328", "0.64633316", "0.64584297", "0.64547294", "0.6442689", "0.64117664", "0.6397785", "0.638087", "0.63092923", "0.6282429", "0.62420344", "0.62408066", "0.6228788", "0.62252647", "0.621063", "0.6195389", "0.618194", "0.61228466", "0.6104747", "0.6096239", "0.60863024", "0.6070685", "0.60693413", "0.6069328", "0.60671484", "0.60612094", "0.6055065", "0.6052508", "0.60226846", "0.6013323", "0.59943265", "0.5980593", "0.5965367", "0.59587055", "0.594612", "0.594186", "0.59006405", "0.5869265", "0.58328307", "0.5782221", "0.5781106", "0.5760035", "0.57530934", "0.5727085", "0.57087034", "0.5698086", "0.5691468", "0.56903803", "0.5685394", "0.56783193", "0.5662807", "0.56558293", "0.5653705", "0.56490725", "0.5627419", "0.5617672", "0.56172407", "0.5588267", "0.55841815", "0.5583481", "0.55694985", "0.5565173", "0.55645597", "0.5550416", "0.5550158", "0.55468976", "0.55451715", "0.5526342", "0.55130786" ]
0.6367971
39
Converts an integer to a byte array.
public byte[] i2b(int value) { byte[] data = new byte[4]; data[0] = (byte) ((value >> 24) & 0xFF); data[1] = (byte) ((value >> 16) & 0xFF); data[2] = (byte) ((value >> 8) & 0xFF); data[3] = (byte) (value & 0xFF); return data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static byte[] intToBytes(int i) {\n\n ByteBuffer byteBuffer = ByteBuffer.allocate(NUM_BYTES_IN_INT);\n byteBuffer.putInt(i);\n return byteBuffer.array();\n\n }", "private static byte[] intToBytes(Integer integer) {\n\t\treturn BigInteger.valueOf(integer).toByteArray();\n\t}", "public static byte[] intToBytes(int value) {\n ByteBuffer bb = ByteBuffer.allocate(4);\n bb.putInt(value);\n return bb.array();\n }", "private byte[] intToByteArray(int i) {\n ByteBuffer bbf = ByteBuffer.allocate(4)\n .order(ByteOrder.LITTLE_ENDIAN)\n .putInt(i);\n return bbf.array();\n }", "public static byte[] toByteArray(int value) {\n INT_BUFFER.clear();\n return INT_BUFFER.order(ByteOrder.LITTLE_ENDIAN).putInt(value).array();\n }", "byte[] IntToByte(int i)\r\n {\r\n return Integer.toString(i).getBytes();\r\n }", "public byte[] intToBytes(int x) {\n\t\tByteBuffer buffer = ByteBuffer.allocate(Integer.BYTES);\n\t\tbuffer.putInt(x);\n\t\treturn buffer.array();\n\t}", "static byte[] toArray(int value) {\n return new byte[] {\n (byte) (value >> 24),\n (byte) (value >> 16),\n (byte) (value >> 8),\n (byte) value };\n }", "public static byte[] intToByte(int i) {\n return new byte[] {(byte)(i>>24), (byte)(i>>16), (byte)(i>>8), (byte)i};\n }", "public static byte[] intToBytesArray(int num) {\r\n\t\tbyte[] byteArr = new byte[4];\r\n\t\t// big endian, low to high\r\n\t\tfor (int i = 0; i < byteArr.length; i++) {\r\n\t\t\tbyteArr[byteArr.length - 1 - i] = (byte) (num & 0xff);\r\n\t\t\tnum >>= 8;\r\n\t\t}\r\n\t\treturn byteArr;\r\n\t}", "private byte[] intToBytes(int i) {\n\t\tb.clear();\n\t\treturn b.order(ByteOrder.LITTLE_ENDIAN).putInt(i).array();\n\t}", "public static byte[] getBytes(int value) {\r\n\t\treturn ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putInt(value).array();\r\n\t}", "public static byte[] intToBinary(int value)\n {\n String tmp = Integer.toBinaryString(value);\n int len = tmp.length();\n int change = 8 - (len % 8);\n\n if(change != 0) len += change;\n\n byte[] res = new byte[len];\n for(int i = 0; i < len; i++) {\n if(i < change){\n // Tag on leading zeroes if needed\n res[i] = 0x00;\n }else{\n char c = tmp.charAt(i - change);\n res[i] = (byte) (c == '0' ? 0x00 : 0x01);\n }\n }\n\n return res;\n }", "public static byte[] intToBytes(int in) {\n byte[] bytes = new byte[4];\n for (int i = 0; i < 4; i++) {\n bytes[i] = (byte) ((in >>> i * 8) & 0xFF);\n }\n return bytes;\n }", "public byte[] convertIntToByte(int[] intArr) throws IOException {\r\n byte[] byteArr = new byte[intArr.length];\r\n for(int i = 0; i < intArr.length; i++) {\r\n Integer tempInt = intArr[i];\r\n byte tempByte = tempInt.byteValue();\r\n byteArr[i] = tempByte;\r\n }\r\n return byteArr;\r\n }", "private static byte[] toByteArray(int[] array) {\n final byte[] res = new byte[array.length];\n for (int i = 0; i < array.length; ++i) {\n final int value = array[i];\n res[i] = (byte) value;\n }\n return res;\n }", "public static void intToByteArray(int value, byte[] buffer, int offset) {\n buffer[offset] = (byte) (value >> 24 & 0xFF);\n buffer[offset + 1] = (byte) (value >> 16 & 0xFF);\n buffer[offset + 2] = (byte) (value >> 8 & 0xFF);\n buffer[offset + 3] = (byte) (value & 0xFF);\n }", "public static byte[] convertInt8(int v)\r\n {\r\n byte[] bytes = new byte[1];\r\n bytes[0] = (byte) v;\r\n return bytes;\r\n }", "public static byte[] toBytes(int val) {\n byte [] b = new byte[4];\n for(int i = 3; i > 0; i--) {\n b[i] = (byte) val;\n val >>>= 8;\n }\n b[0] = (byte) val;\n return b;\n }", "public static byte[] convertIntToByteArray(int toConvert, Boolean... bigEndian) {\n // Get the byte array of the int and return it, little endian style\n if (bigEndian.length > 0 && bigEndian[0]) {\n return ByteBuffer.allocate(4).order(ByteOrder.BIG_ENDIAN).putInt(toConvert).array();\n }\n else {\n return ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putInt(toConvert).array();\n }\n }", "static byte[] toBEBytes(int i) {\n\t\treturn ByteBuffer.allocate(4).order(ByteOrder.BIG_ENDIAN).putInt(i).array();\n\t}", "private static byte[] intArray2ByteArray (int[] src)\n\t{\n\t\tbyte[] dst = new byte [src.length];\n\t\tfor (int i = 0; i < src.length; ++ i)\n\t\t\tdst[i] = (byte) src[i];\n\t\treturn dst;\n\t}", "public static byte[] intToFourBytes(int val) {\n if (val < 0) throw new IllegalArgumentException(\"Value may not be signed.\");\n byte[] bytes = new byte[4];\n\n for (int i = 3; i >= 0; --i) {\n // unpack a byte\n byte b = (byte)(val & 0xff);\n // shift by 8 bits\n val >>= 8;\n // store the unpacked byte, moving from LSB to MSB (so the MSB ends up in bytes[0])\n bytes[i] = b;\n }\n\n return bytes;\n }", "private static byte[] getBytes(int val) {\n log.log(Level.FINEST, String.format(\"%d\", val));\n byte[] ret = new byte[NekoIOConstants.INT_LENGTH];\n for (int i = 0; i < NekoIOConstants.INT_LENGTH; i++) {\n if (NekoIOConstants.BIG_ENDIAN) {\n ret[NekoIOConstants.INT_LENGTH - 1 - i] = (byte) val;\n } else {\n ret[i] = (byte) val;\n }\n val >>= 8;\n }\n return ret;\n }", "public static byte[] b(int... array) {\n if (array == null) {\n return null;\n }\n byte[] ret = new byte[array.length];\n for (int i = 0; i < ret.length; i++) {\n ret[i] = (byte) array[i];\n }\n return ret;\n }", "public byte[] int2byteArray(int[] ints){\n ByteBuffer buf = ByteBuffer.allocate(ints.length * Integer.BYTES);\n for (int i = 0; i < ints.length; i++) {\n buf.putInt(ints[i]);\n }\n\n return buf.array();\n }", "public byte[] getEncoded() {\n return toByteArray(Integer.valueOf(this.intValue));\n }", "public static byte[] toLEBytes(int i) {\n\t\treturn ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putInt(i).array();\n\t}", "static byte[] Int16ToByteArray(int data) {\n byte[] result = new byte[2];\n result[0] = (byte) ((data & 0x000000FF));\n result[1] = (byte) ((data & 0x0000FF00) >> 8);\n return result;\n }", "public static byte[] convertIntegersToBytes(int[] nums) {\n if (nums != null) {\n byte[] outputBytes = new byte[nums.length * 4];\n for(int i = 0, k = 0; i < nums.length; i++) {\n int integerTemp = nums[i];\n for(int j = 0; j < 4; j++, k++) {\n outputBytes[k] = (byte)((integerTemp >> (8 * j)) & 0xFF);\n }\n }\n return outputBytes;\n } else {\n return null;\n }\n }", "private byte[] bit_conversion(int i) {\n // originally integers (ints) cast into bytes\n // byte byte7 = (byte)((i & 0xFF00000000000000L) >>> 56);\n // byte byte6 = (byte)((i & 0x00FF000000000000L) >>> 48);\n // byte byte5 = (byte)((i & 0x0000FF0000000000L) >>> 40);\n // byte byte4 = (byte)((i & 0x000000FF00000000L) >>> 32);\n\n // only using 4 bytes\n byte byte3 = (byte) ((i & 0xFF000000) >>> 24); // 0\n byte byte2 = (byte) ((i & 0x00FF0000) >>> 16); // 0\n byte byte1 = (byte) ((i & 0x0000FF00) >>> 8); // 0\n byte byte0 = (byte) ((i & 0x000000FF));\n // {0,0,0,byte0} is equivalent, since all shifts >=8 will be 0\n return (new byte[] { byte3, byte2, byte1, byte0 });\n }", "public static byte[] integerAsConsecutiveBytes(int num) {\r\n\t\tbyte[] bytes = new byte[4];\r\n\t\tfor(int i=0; i < bytes.length; i++) {\r\n\t\t\tint shiftFactor = 8 * (bytes.length - (i + 1));\r\n\t\t\tint value = num >> shiftFactor;\r\n\t\t\tbytes[i] = (byte) value;\r\n\t\t}\r\n\t\treturn bytes;\r\n\t}", "public static byte[] toBytes(final long number) {\n\t\treturn new byte[] {\n\t\t\t(byte) (number >>> 56),\n\t\t\t(byte) (number >>> 48),\n\t\t\t(byte) (number >>> 40),\n\t\t\t(byte) (number >>> 32),\n\t\t\t(byte) (number >>> 24),\n\t\t\t(byte) (number >>> 16),\n\t\t\t(byte) (number >>> 8),\n\t\t\t(byte) (number)\n\t\t};\n\t}", "public static byte[] parseIntToIP(int ip) {\n return ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putInt(ip).array();\n }", "static int intToBytes(int int_value, byte[] dest, int index) {\n dest[index + 0] = (byte) (int_value & 0xff);\n dest[index + 1] = (byte) ((int_value >> 8) & 0xff);\n dest[index + 2] = (byte) ((int_value >> 16) & 0xff);\n dest[index + 3] = (byte) ((int_value >> 24) & 0xff);\n return 4;\n }", "public abstract byte[] toByteArray();", "public abstract byte[] toByteArray();", "public static byte[] toBigEndianByteArray(Number number) throws ScriptException\n {\n long n = number.longValue();\n for (int i = 1; i <= 8; i++)\n {\n long maxNum = 1L << (i * 8 - 1);\n if (n <= maxNum && n >= -maxNum)\n {\n byte[] res = new byte[i];\n boolean changeSign = false;\n if (n < 0)\n {\n changeSign = true;\n n = -n;\n }\n for (int j = 0; j < i; j++)\n {\n res[j] = (byte) ((n >> j * 8) & 0xFF);\n }\n // Bitcoin scripts use 1-complement for negative numbers\n if (changeSign)\n {\n res[i - 1] |= 0x80;\n }\n return res;\n }\n }\n throw new ScriptException(\"Number to large to convert to binary: \" + number);\n }", "private byte[] intToBits(int number, int n) {\n\t\tbyte[] bits = new byte[n];\n\t\t\n\t\tString bitString = Integer.toBinaryString(number);\n\t\twhile (bitString.length() < n) {\n\t\t\tbitString = \"0\" + bitString;\n\t\t}\n\t\t\n\t\tfor(int i = 0, maxLen = bits.length; i < maxLen; i++) {\n\t\t\tbits[i] = (byte) (bitString.charAt(i) == 1 ? 1 : 0);\n\t\t}\n\t\t\n\t\treturn bits;\n\t}", "public static byte[] integerToByteArray_ASN1_Value(int toBeConverted) {\n\t\t\n\t\t//create the temporary version of what will be returned\n\t\tbyte[] tempToBeReturned = {\n\t (byte)(toBeConverted >> 24),\n\t (byte)(toBeConverted >> 16),\n\t (byte)(toBeConverted >> 8),\n\t (byte)toBeConverted};\n\t\t\n\t\t\n\t\t//converting positive integers\n\t\tif(toBeConverted >= 0) {\n\t\t\t//0 to 127: return only one octet\n\t\t\tif(toBeConverted<=127) {\n\t\t\t\tbyte[] toBeReturned = new byte[1];\n\t\t\t\ttoBeReturned[0] = tempToBeReturned[3];\t\t\t\t\n\t\t\t\treturn toBeReturned;\n\t\t\t}\n\t\t\t\n\t\t\t//128 to 32768-1 return two octets\n\t\t\telse if(toBeConverted<=32767) {\n\t\t\t\tbyte[] toBeReturned = new byte[2];\n\t\t\t\ttoBeReturned[0] = tempToBeReturned[2];\t\t\t\t\n\t\t\t\ttoBeReturned[1] = tempToBeReturned[3];\n\t\t\t\treturn toBeReturned;\n\t\t\t}\n\t\t\t\n\t\t\t//32767 to 8388607 return three octets\n\t\t\telse if(toBeConverted<=8388607) {\n\t\t\t\tbyte[] toBeReturned = new byte[3];\n\t\t\t\ttoBeReturned[0] = tempToBeReturned[1];\t\t\t\t\n\t\t\t\ttoBeReturned[1] = tempToBeReturned[2];\n\t\t\t\ttoBeReturned[2] = tempToBeReturned[3];\n\t\t\t\treturn toBeReturned;\n\t\t\t}\n\t\t\t\n\t\t\t//above that: return four octets\n\t\t\telse {\n\t\t\t\treturn tempToBeReturned;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//converting negative integers\n\t\telse if(toBeConverted<0) {\n\t\t\t//-1 to -128: return one octet\n\t\t\tif(toBeConverted>=-128) {\n\t\t\t\tbyte[] toBeReturned = new byte[1];\n\t\t\t\ttoBeReturned[0] = tempToBeReturned[3];\t\t\t\t\n\t\t\t\treturn toBeReturned;\n\t\t\t}\n\t\t\t\n\t\t\t//-129 to -32768 return two octets\n\t\t\telse if(toBeConverted>=-32768) {\n\t\t\t\tbyte[] toBeReturned = new byte[2];\n\t\t\t\ttoBeReturned[0] = tempToBeReturned[2];\t\t\t\t\n\t\t\t\ttoBeReturned[1] = tempToBeReturned[3];\n\t\t\t\treturn toBeReturned;\n\t\t\t}\n\t\t\t\n\t\t\t//-32769 to -8388608 return three octets\n\t\t\telse if(toBeConverted>=-8388608) {\n\t\t\t\tbyte[] toBeReturned = new byte[3];\n\t\t\t\ttoBeReturned[0] = tempToBeReturned[1];\t\t\t\t\n\t\t\t\ttoBeReturned[1] = tempToBeReturned[2];\n\t\t\t\ttoBeReturned[2] = tempToBeReturned[3];\n\t\t\t\treturn toBeReturned;\n\t\t\t}\n\t\t\t\n\t\t\t//above that: return four octets\n\t\t\telse {\n\t\t\t\treturn tempToBeReturned;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t//if method fails for any reason, it returns null\n\t\treturn null;\n\t}", "public char[] decimalToBinary(int value) {\n\t\t// TODO: Implement this method.\n\t\treturn null;\n\t}", "public static byte[] getBytes(long value) {\r\n\t\treturn ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN).putLong(value).array();\r\n\t}", "public int toByte(){\n return toByte(0);\n }", "public static int toUnsignedByte(final int intValue) {\n return intValue & BYTE_MASK;\n }", "public static int[] integerToBinary(int num)\n\t{\n\t\tint binaryNumber []= new int[3];\n\t\tint finalBinaryNumber []= {0,0,0};\n\t\tint count=2;\n\t\tint k= Math.abs(num);\n\t\twhile(k>0)\n\t\t{\n\t\t\tbinaryNumber[count]= k%2;\n\t\t\tk=k/2;\n\t\t\tcount--;\n\t\t\t\n\t\t}\n\t\tfor(int i=2; i>=0;i--)\n\t\t{\n\t\t\tfinalBinaryNumber[i]= binaryNumber[i];\n\t\t}\n\t\treturn finalBinaryNumber;\n\t}", "private static byte[] intToSmallBytes(int value) {\n return shortToBytes((short)value);\n }", "public byte[] getByteArray() {\n long val = getValue();\n return new byte[] {\n (byte)((val>>24) & 0xff),\n (byte)((val>>16) & 0xff),\n (byte)((val>>8) & 0xff),\n (byte)(val & 0xff) };\n }", "public static Binary integer_to_binary_1(Integer integer) {\n return new Binary(integer.toString().getBytes(ISO_8859_1));\n }", "public static byte[] toBytes(long val) {\n byte [] b = new byte[8];\n for (int i = 7; i > 0; i--) {\n b[i] = (byte) val;\n val >>>= 8;\n }\n b[0] = (byte) val;\n return b;\n }", "private static ByteBuffer toByteBuffer(int[] array) {\n final ByteBuffer buffer = ByteBuffer.allocateDirect(array.length);\n buffer.put(toByteArray(array));\n buffer.rewind();\n return buffer;\n }", "private byte[] shortToByteArray(short i) {\n ByteBuffer bbf = ByteBuffer.allocate(2)\n .order(ByteOrder.LITTLE_ENDIAN)\n .putShort(i);\n return bbf.array();\n }", "public void testToByte(){\t\r\n\t\t\r\n\t\tbyte[] lRes = ByteUtil.intToByteArray(fIntToTest);\r\n\t\t\r\n\t\tfor(int lCnt =0; lCnt< lRes.length; lCnt++){\r\n\t\t\tassertEquals(lRes[lCnt], fIntToTestByteArray[lCnt]);\r\n\t\t}\r\n\t\t\r\n\t}", "public byte[] toByteArray() {\n/* 510 */ ByteBuffer buff = ByteBuffer.allocate(40).order(ByteOrder.LITTLE_ENDIAN);\n/* 511 */ writeTo(buff);\n/* 512 */ return buff.array();\n/* */ }", "public static byte toSignedByte(final int intValue) {\n return (byte) ((intValue << 24) >> 24);\n }", "public abstract byte[] toBytes() throws Exception;", "public static byte[] initBytes(byte[] b, int value) {\n\t\tfor (int i=0; i<b.length; i++) b[i]=(byte)value;\n\t\treturn b;\n\t}", "public static void unsignedIntToBytes(byte[] buf, int offset, int len, int value) {\n for (int i = len - 1; i >= 0; i--) {\n buf[i + offset] = (byte) (value & 0xFF);\n value >>= 8;\n }\n }", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default byte[] asByteArray() {\n //TODO this is actually sbyte[], but @Unsigned doesn't work on arrays right now\n return notSupportedCast(\"byte[]\");\n }", "public byte[] toByteArray() {\n byte[] array = new byte[count];\n System.arraycopy(buf, 0, array, 0, count);\n return array;\n }", "public static byte[] longToBytes(long x) {\n\t ByteBuffer buffer = ByteBuffer.allocate(Long.BYTES);\n\t buffer.putLong(x);\n\t return buffer.array();\n\t}", "public byte[] l2b(long value) {\n byte[] data = new byte[8];\n data[0] = (byte) ((value >> 56) & 0xFF);\n data[1] = (byte) ((value >> 48) & 0xFF);\n data[2] = (byte) ((value >> 40) & 0xFF);\n data[3] = (byte) ((value >> 32) & 0xFF);\n data[4] = (byte) ((value >> 24) & 0xFF);\n data[5] = (byte) ((value >> 16) & 0xFF);\n data[6] = (byte) ((value >> 8) & 0xFF);\n data[7] = (byte) (value & 0xFF);\n return data;\n }", "public static byte[] longToBytes(long l) {\n\n ByteBuffer byteBuffer = ByteBuffer.allocate(NUM_BYTES_IN_LONG);\n byteBuffer.putLong(l);\n return byteBuffer.array();\n\n }", "private static final void encodeBEInt(int paramInt1, byte[] paramArrayOfByte, int paramInt2)\r\n/* 137: */ {\r\n/* 138:209 */ paramArrayOfByte[(paramInt2 + 0)] = ((byte)(paramInt1 >>> 24));\r\n/* 139:210 */ paramArrayOfByte[(paramInt2 + 1)] = ((byte)(paramInt1 >>> 16));\r\n/* 140:211 */ paramArrayOfByte[(paramInt2 + 2)] = ((byte)(paramInt1 >>> 8));\r\n/* 141:212 */ paramArrayOfByte[(paramInt2 + 3)] = ((byte)paramInt1);\r\n/* 142: */ }", "byte[] getBytes();", "byte[] getBytes();", "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 static byte[] createByteArray(int... bytes) {\n byte[] array = new byte[bytes.length];\n for (int i = 0; i < array.length; i++) {\n Assertions.checkState(0x00 <= bytes[i] && bytes[i] <= 0xFF);\n array[i] = (byte) bytes[i];\n }\n return array;\n }", "public final byte[] mo18193a(int i) {\n return new byte[i];\n }", "private static final byte[] longToByteArray(long l) {\n\t\tbyte[] retVal = new byte[8];\n\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tretVal[i] = (byte) l;\n\t\t\tl >>= 8;\n\t\t}\n\n\t\treturn retVal;\n\t}", "public static byte[] arrayBigIntegerToByte(BigInteger... a) {\n if(a.length == 0) {\n throw new IllegalArgumentException(\"You must supply at least one BigInteger\");\n }\n\n int[] bigIntLengths = new int[a.length];\n byte[][] bigInts = new byte[a.length][];\n int len = 0; // length of the array of numbers\n for(int i = 0; i < a.length; i++) {\n // first INT_LENGTH_IN_BYTES bytes = number length\n bigInts[i] = a[i].toByteArray();\n bigIntLengths[i] = bigInts[i].length;\n len += INT_LENGTH_IN_BYTES + bigIntLengths[i]; // INT_LENGTH_IN_BYTES to save the length of the number\n }\n\n if(len > Integer.MAX_VALUE) {\n // TODO: ....\n throw new OutOfMemoryError(\"Could not send the array of BigIntegers\");\n }\n byte[] res = new byte[INT_LENGTH_IN_BYTES + (int)len];\n System.arraycopy(intToByte(a.length), 0, res, 0, INT_LENGTH_IN_BYTES);\n for(int i = 0, offset = INT_LENGTH_IN_BYTES; i < a.length; i++) {\n // append BigInteger length\n System.arraycopy(intToByte(bigIntLengths[i]), 0, res, offset, INT_LENGTH_IN_BYTES);\n // append BigInteger\n System.arraycopy(bigInts[i], 0, res, offset + INT_LENGTH_IN_BYTES, bigIntLengths[i]);\n offset += bigIntLengths[i] + INT_LENGTH_IN_BYTES;\n }\n\n return res;\n }", "public native static long getConvertBytes();", "public byte[] toBytes () {\n return toTuple().toBytes();\n }", "byte[] mo12209b(int i);", "public static byte[] convertInt32(int v, boolean isLE)\r\n {\r\n byte[] bytes = new byte[4];\r\n if (isLE)\r\n {\r\n bytes[3] = (byte) ((v >>> 24) & 0xFF);\r\n bytes[2] = (byte) ((v >>> 16) & 0xFF);\r\n bytes[1] = (byte) ((v >>> 8) & 0xFF);\r\n bytes[0] = (byte) ((v >>> 0) & 0xFF);\r\n }\r\n else\r\n {\r\n bytes[0] = (byte) ((v >>> 24) & 0xFF);\r\n bytes[1] = (byte) ((v >>> 16) & 0xFF);\r\n bytes[2] = (byte) ((v >>> 8) & 0xFF);\r\n bytes[3] = (byte) ((v >>> 0) & 0xFF);\r\n }\r\n return bytes;\r\n }", "public static String intToBinaryString(int value) {\r\n String bin = \"00000000000000000000000000000000\" + Integer.toBinaryString(value);\r\n\r\n return bin.substring(bin.length() - 32, bin.length() - 24)\r\n + \" \"\r\n + bin.substring(bin.length() - 24, bin.length() - 16)\r\n + \" \"\r\n + bin.substring(bin.length() - 16, bin.length() - 8)\r\n + \" \"\r\n + bin.substring(bin.length() - 8, bin.length());\r\n }", "public byte[] toBytes() {\n return toProtobuf().toByteArray();\n }", "public static String toByteString(byte value) {\n String str = String.format(\"%x\", value);\n if (str.length() == 1)\n str = \"0\" + str;\n return str;\n }", "static byte[] encode(BigInteger n) {\n\t\tbyte[] encodedN;\n\t\tif (n.signum() == 0) {\n\t\t\t// If n is zero, return an zero-length byte array\n\t\t\tencodedN = new byte[0];\n\t\t} else {\n\t\t\t// No need to reverse as C# original does at this point, as Java is always Big Endian.\n\t\t\tbyte[] nAsByteArray = n.toByteArray();\n\t\t\tint firstNonZeroIndex = 0;\n\t\t\twhile ((nAsByteArray[firstNonZeroIndex] == 0) && (firstNonZeroIndex < nAsByteArray.length)) {\n\t\t\t\tfirstNonZeroIndex++;\n\t\t\t}\n\t\t\t// Finally copy the non-zero bytes in to a new array\n\t\t\tencodedN = new byte[nAsByteArray.length - firstNonZeroIndex];\n\t\t\tSystem.arraycopy(nAsByteArray, firstNonZeroIndex, encodedN, 0, nAsByteArray.length - firstNonZeroIndex);\n\t\t}\n\n\t\treturn encodedN;\n\t}", "public static byte[] getEncodeIntervalNumberByteArray(long intervalNumber) {\n return intToByteLittleEndian((int)getUint32(intervalNumber));\n }", "public static String dexToBin(int value) {\n\tString binVal = Integer.toBinaryString(value);\n\t\treturn binVal;\n\t\t\n\t}", "public int convertToByteArray(byte[] buffer, int offset, AudioFormat format) {\n\t\treturn convertToByteArray(0, getSampleCount(), buffer, offset, format);\n\t}", "String intToBinaryNumber(int n){\n return Integer.toBinaryString(n);\n }", "public static void byteToByteArray(byte value, byte[] buffer, int offset) {\n buffer[offset] = (byte) (value & 0xFF);\n }", "public byte[] toByteArray() \r\n {\r\n \tbyte newbuf[] = new byte[count];\r\n \tSystem.arraycopy(buf, 0, newbuf, 0, count);\r\n \treturn newbuf;\r\n }", "public static int intToBytes(int s, byte bc[], int index) {\n bc[index++] = (byte) ((s >> 24) & 0xff);\n bc[index++] = (byte) ((s >> 16) & 0xff);\n bc[index++] = (byte) ((s >> 8) & 0xff);\n bc[index++] = (byte) (s & 0xff);\n return index;\n }", "public static byte[] createBytes()\n\t{\n\t\tbyte[]\t\trc = new byte[16];\n\t\tint\t\tid;\n\n\t\tsynchronized(itsLock)\n\t\t{\n\t\t\tid = itsCounter++;\n\n\t\t\tif(itsCounter == 0)\n\t\t\t{\n\t\t\t\t// We've wrapped around: regenerate a new base array\n\t\t\t\t_getBase();\n\t\t\t}\n\t\t}\n\n\t\tSystem.arraycopy(itsBase, 0, rc, 0, 12);\n\t\trc[12] = (byte)(id & 0xff);\n\t\trc[13] = (byte)((id >> 8) & 0xff);\n\t\trc[14] = (byte)((id >> 16) & 0xff);\n\t\trc[15] = (byte)((id >> 24) & 0xff);\n\n\t\treturn rc;\n\t}", "byte[] convertTo8Bit(byte[] data, int from, int to)\n {\n // How big?\n int main = ((to - from) / 8) * 8;\n int remainder = (to - from) - main;\n int size = ((to - from) / 8) * 7 + (remainder - 1);\n \n byte[] newd = new byte[size];\n \n int j = 0;\n for(int i = from; i < to; i += 8)\n { \n for(int x = 0; x < 7; x++)\n {\n if (j + x < newd.length)\n newd[j + x] = (byte)(data[i + x + 1] | (byte)(((data[i] >>> x) & 0x1) << 7));\n }\n j += 7;\n }\n return newd;\n }", "byte toByteValue() {\n return (byte) value;\n }", "public byte[] toByteArray() throws IOException\n {\n try (InputStream is = createInputStream())\n {\n return is.readAllBytes();\n }\n }", "public static byte[] intToHex(long value){\n\t\tint count=7;\n\t\tshort[] bytes = new short[8];\n\t\tcal(value,count,bytes);\n\t\treturn shorts2bytes(bytes);\n\t}", "List<Byte> getAsBytes();", "public static byte[] I2OSP(int value, int length) {\n\t\tbyte[] res = new byte[length];\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tres[length - i - 1] = (byte) ((value >> (i << 3)) & 0xFF);\n\t\t}\n\t\treturn res;\n\t}", "public byte[] readRawInt() throws IOException {\n byte[] bytes = new byte[5];\n bytes[0] = (byte) Type.INT.code;\n in.readFully(bytes, 1, 4);\n return bytes;\n }", "public static byte[] getBytes(char value) {\r\n\t\treturn ByteBuffer.allocate(2).order(ByteOrder.LITTLE_ENDIAN).putChar(value).array();\r\n\t}", "public static byte[] NumStringToBytes(String in) {\n BigInteger num = new BigInteger(in);\n byte[] bytes = num.toByteArray();\n if (bytes.length > 0) {\n if (bytes[0] == 0) {\n byte[] cuttedByte = new byte[bytes.length - 1];\n System.arraycopy(bytes, 1, cuttedByte, 0, bytes.length - 1);\n return cuttedByte;\n }\n\n }\n return num.toByteArray();\n }", "public static byte[] valueToBytes(Object value) throws JSONException, IOException {\n if (value == null || value.equals(null)) {\n return Constants.NullByteMarker;\n }\n \t// return raw bytes is value is byte[] - else use normal json string conversion\n if (value instanceof byte[]) {\n \treturn (byte[])value;\n }\n \n if (value instanceof long[]) {\n \treturn Util.UTF8(longArrayString((long[])value));\n }\n \n if (value instanceof JSONString) {\n Object o;\n try {\n o = ((JSONString)value).toJSONString();\n } catch (Exception e) {\n throw new JSONException(e);\n }\n if (o instanceof String) {\n return Util.UTF8(o);\n }\n throw new JSONException(\"Bad value from toJSONString: \" + o);\n }\n if (value instanceof Number) {\n return Util.UTF8(JSONObject.numberToString((Number) value));\n }\n if (value instanceof Boolean || value instanceof JSONObject ||\n value instanceof JSONArray) {\n return Util.UTF8(value);\n }\n if (value instanceof Map) {\n return Util.UTF8(new JSONObject((Map)value));\n }\n if (value instanceof JSONList) {\n return ((JSONList)value).getBytes().makeExact().bytes();\n }\n if (value instanceof List) {\n return new JSONList((List)value).getBytes().makeExact().bytes();\n }\n if (value instanceof Collection) {\n return Util.UTF8(new JSONArray((Collection)value));\n }\n if (value.getClass().isArray()) {\n return Util.UTF8(new JSONArray(value));\n }\n return Util.UTF8(JSONObject.quote(value.toString()));\n }", "private byte[] integerToOctetString(BigInteger r, BigInteger modulus) throws IOException {\n byte[] modulusBytes = modulus.toByteArray();\n int modulusLen = modulusBytes.length;\n byte[] rBytes = r.toByteArray();\n int rLen = rBytes.length;\n int rMSB = rBytes[0] & 0xFF;\n\n if (modulusBytes[0] == 0x00) {\n modulusLen -= 1;\n }\n\n // for arrays that are more than one byte longer\n if ((rLen == modulusLen + 1 && rMSB != 0x00) || rLen > modulusLen + 1) {\n throw new IOException(\"Integer value is larger than modulus\");\n }\n\n byte[] rUnsigned = new byte[modulusLen];\n System.arraycopy(rBytes, (rLen > modulusLen) ? (rLen - modulusLen) : 0, rUnsigned,\n (modulusLen > rLen) ? (modulusLen - rLen) : 0, (modulusLen > rLen) ? rLen : modulusLen);\n\n return rUnsigned;\n }", "private static byte int2(int x) { return (byte)(x >> 16); }", "public byte[] toByteArray() {\n\t\treturn baos.toByteArray();\n\t}", "public byte[] marshall();" ]
[ "0.8207556", "0.79320586", "0.78882784", "0.78662467", "0.77960414", "0.7759286", "0.77181596", "0.76991236", "0.76638824", "0.7529154", "0.7500729", "0.74098283", "0.74034745", "0.7375364", "0.73263067", "0.73152375", "0.7312256", "0.72947633", "0.7100104", "0.7093468", "0.7077339", "0.7054366", "0.69032305", "0.6885557", "0.68776566", "0.68515205", "0.67248285", "0.66628283", "0.66349924", "0.6597498", "0.6492137", "0.64305323", "0.64121157", "0.63404685", "0.6332109", "0.62789845", "0.62789845", "0.62463117", "0.6213491", "0.61931914", "0.6171773", "0.6135639", "0.6117411", "0.6088556", "0.6077147", "0.6059051", "0.60410863", "0.602726", "0.6017781", "0.59923446", "0.5983185", "0.59562445", "0.5930334", "0.5926941", "0.5911723", "0.58916616", "0.58734924", "0.5867778", "0.58357906", "0.57984006", "0.57896316", "0.578709", "0.5782056", "0.573149", "0.573149", "0.57191324", "0.5717843", "0.5716982", "0.5707472", "0.5681058", "0.56669545", "0.5661433", "0.5655117", "0.5640327", "0.562758", "0.55983824", "0.5595638", "0.5547635", "0.55410975", "0.5526237", "0.55162", "0.5500375", "0.54909456", "0.54883796", "0.548251", "0.5478863", "0.5472554", "0.5451755", "0.54446435", "0.5425299", "0.54051536", "0.5401409", "0.5400515", "0.53878325", "0.5386395", "0.5370281", "0.5362084", "0.5351755", "0.5350728", "0.534164" ]
0.67700434
26
Converts the byte array to a long integer value.
public long b2l(byte[] b, int offset) { return (b[offset + 7] & 0xFF) | ((b[offset + 6] & 0xFF) << 8) | ((b[offset + 5] & 0xFF) << 16) | ((b[offset + 4] & 0xFF) << 24) | ((b[offset + 3] & 0xFF) << 32) | ((b[offset + 2] & 0xFF) << 40) | ((b[offset + 1] & 0xFF) << 48) | ((b[offset] & 0xFF) << 56); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long toLong()\n\t{\n\t\t// holds the int to return\n\t\tlong result = 0;\n\t\t\n\t\t// for every byte value\n\t\tfor (int i = 0; i < bytes.length; i++)\n\t\t{\n\t\t\t// Extract the bits out of the array by \"and\"ing them with the\n\t\t\t// maximum value of\n\t\t\t// a byte. This is done because java does not support unsigned\n\t\t\t// types. Now that the\n\t\t\t// unsigned byte has been extracted, shift it to the right as far as\n\t\t\t// it is needed.\n\t\t\t// Examples:\n\t\t\t// byte array int\n\t\t\t// {0x01, 0x00} = 256\n\t\t\t//\n\t\t\t// byte array int\n\t\t\t// {0x01, 0x8C 0xF0} = 0x018CF0\n\t\t\tresult += (byteToLong(bytes[i]) << (Byte.SIZE * (bytes.length - i - 1)));\n\t\t}\n\t\t\n\t\t// return the int\n\t\treturn result;\n\t}", "public static long toInt64(byte[] value) {\r\n\t\treturn toInt16(value, 0);\r\n\t}", "public static long getBytesAsLong(byte[] b) {\n\t\treturn ((long) (b[0] & 0xff) << 56)\n\t\t\t\t| ((long) (b[1] & 0xFF) << 48)\n\t\t\t\t| ((long) (b[2] & 0xFF) << 40)\n\t\t\t\t| ((long) (b[3] & 0xFF) << 32)\n\t\t\t\t| ((long) (b[4] & 0xFF) << 24)\n\t\t\t\t| ((long) (b[5] & 0xFF) << 16)\n\t\t\t\t| ((long) (b[6] & 0xFF) << 8)\n\t\t\t\t| ((long) (b[7] & 0xFF));\n\t}", "public static long convertToLong(byte[] longBuffer)\r\n {\r\n if (longBuffer.length >= 8)\r\n {\r\n return (((long) longBuffer[0] << 56)\r\n + ((long) (longBuffer[1] & 255) << 48)\r\n + ((long) (longBuffer[2] & 255) << 40)\r\n + ((long) (longBuffer[3] & 255) << 32)\r\n + ((long) (longBuffer[4] & 255) << 24)\r\n + ((longBuffer[5] & 255) << 16)\r\n + ((longBuffer[6] & 255) << 8) + ((longBuffer[7] & 255) << 0));\r\n }\r\n return 0;\r\n }", "public static long bytesToLong(byte[] bytes) {\n\n ByteBuffer byteBuffer = ByteBuffer.wrap(bytes);\n return byteBuffer.getLong();\n\n }", "public static long byteArrayToLong(byte[] ba, int offset) {\n long value = 0;\n value = (value << 8) | (ba[offset++] & 0xFF);\n value = (value << 8) | (ba[offset++] & 0xFF);\n value = (value << 8) | (ba[offset++] & 0xFF);\n value = (value << 8) | (ba[offset++] & 0xFF);\n value = (value << 8) | (ba[offset++] & 0xFF);\n value = (value << 8) | (ba[offset++] & 0xFF);\n value = (value << 8) | (ba[offset++] & 0xFF);\n value = (value << 8) | (ba[offset++] & 0xFF);\n return value;\n }", "public static long byteArrayToUnsignedLong(byte @NotNull [] data) {\n return byteArrayToUnsignedLong(data, 0, Endian.BIG, LONG_WIDTH);\n }", "public static long toLong(byte[] macAddress) {\n return MACAddress.valueOf(macAddress).toLong();\n }", "public static long readLong(byte[] source, int position) {\n return makeLong(source[position], source[position + 1], source[position + 2], source[position + 3],\n source[position + 4], source[position + 5], source[position + 6], source[position + 7]);\n }", "private long convertByteValueToLong(byte[] b) {\n long m = 0;\n for (int i = 0; i < b.length; i++) {\n m = m * 256 + (b[i] < 0 ? (256 + (long) b[i]) : b[i]);\n }\n return m;\n }", "public static long getLong(final byte[] buffer, final int index, final int len) {\n switch (len) {\n case 0: return 0xFFFFFFFF_FFFFFFFFL;\n case 1: return 0xFFFFFFFF_FFFFFF00L | _getByte(buffer, index, 1);\n case 2: return 0xFFFFFFFF_FFFF0000L | _getShort(buffer, index, 2);\n case 3: return 0xFFFFFFFF_FF000000L | _getInt(buffer, index, 3);\n case 4: return 0xFFFFFFFF_00000000L | _getInt(buffer, index, 4);\n case 5: return 0xFFFFFF00_00000000L | _getLong(buffer, index, 5);\n case 6: return 0xFFFF0000_00000000L | _getLong(buffer, index, 6);\n case 7: return 0xFF000000_00000000L | _getLong(buffer, index, 7);\n case 8: return _getLong(buffer, index, 8);\n default: throw new IllegalArgumentException(\"len is out of range: \" + len);\n }\n }", "public static long asn1Value_ByteArrayToLong(byte[] asn1LongValue) throws ValueNullException, ValueTooBigException {\n\t\t//check if the array is null\n\t\tif(asn1LongValue == null) {\n\t\t\tthrow new ValueNullException(\"The input is null, not an encoded long\");\n\t\t}\n\t\t//check if the value 0 has been encoded\n\t\tif((asn1LongValue[0] == 0) && (asn1LongValue.length == 1) ) {\n\t\t\treturn 0L;\n\t\t}\n\t\t//check if the value is too long to be converted to a long\n\t\tif((asn1LongValue.length>8)) {\n\t\t\tthrow new ValueTooBigException(\"Java long can only hold 64 bits or 8 octets. The passed value is bigger than that\");\n\t\t}\n\t\t\n\t\tBigInteger tmpLong = new BigInteger(asn1LongValue);\n\t\treturn tmpLong.longValue();\n\t}", "long decodeLong();", "public static long byteArrayToLong(byte[] bytes, int size) {\n return byteArrayToLong(bytes, size, true);\n }", "public long toLong() {\n return this.toLongArray()[0];\n }", "public static long toInt64(byte[] value, int startIndex) {\r\n\t\treturn ByteBuffer.wrap(value, startIndex, 8).order(ByteOrder.LITTLE_ENDIAN).getLong();\r\n\t}", "public static long byteArrayToUnsignedLong(byte @NotNull [] data, int offset) {\n return byteArrayToUnsignedLong(data, offset, Endian.BIG, LONG_WIDTH);\n }", "public static long consecutiveBytesAsLong(byte... bytes) {\r\n\t\tlong result = 0;\r\n\t\tfor(int i=0; i<bytes.length; i++) {\r\n\t\t\tint shiftFactor = 8 * (bytes.length - (i + 1));\r\n\t\t\tresult += bytes[i] << shiftFactor;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public static long toNumber(final byte[] bytes) {\n\t\treturn toNumber(bytes, 0, bytes.length);\n\t}", "private long getNumberBufAsLong(ByteOrder byteOrder, int nrReadBytes,\n int firstBytePos) {\n\n long result = 0L;\n long bytePortion = 0L;\n for (int i = 0; i < nrReadBytes; i++) {\n bytePortion = 0xFF & (byteBuffer.get(firstBytePos++));\n\n if (byteOrder == ByteOrder.LittleEndian)\n // reshift bytes\n result = result | bytePortion << (i << 3);\n else\n result = bytePortion << ((nrReadBytes - i - 1) << 3) | result;\n }\n\n return result;\n }", "public static long byteArrayToLong(byte[] bytes, int size, boolean bigEndian) {\n if (size > 8) {\n throw new IllegalArgumentException(\"Can't convert more than 8 bytes.\");\n }\n if (size > bytes.length) {\n throw new IllegalArgumentException(\"Size can't be larger than array length.\");\n }\n long total = 0L;\n for (int i = 0; i < size; i++) {\n if (bigEndian) {\n total = total << 8 | bytes[i] & 0xff;\n } else {\n total = total << 8 | bytes[size - i - 1] & 0xff;\n }\n }\n return total;\n }", "private long getLong() {\n longBuffer.rewind();\n archive.read(longBuffer);\n longBuffer.flip();\n return longBuffer.getLong();\n }", "private long byteToLong(byte b)\n\t{\n\t\treturn (b & 0xFF);\n\t}", "private long read_long(MappedByteBuffer buff) throws IOException {\n long number = 0;\n for (int i = 0; i < 8; ++i) {\n number += ((long) (buff.get() & 0xFF)) << (8 * i);\n }\n return number;\n }", "public abstract void read_long_array(int[] value, int offset, int\nlength);", "public abstract void read_longlong_array(long[] value, int offset, int\nlength);", "@Override\n public long applyAsLong(BytesStore bytes) {\n return applyAsLong(bytes, bytes.readRemaining());\n }", "public static long toLong(IRubyObject irb) {\n\t\treturn Long.valueOf(irb.toString());\n\t}", "private static long getLongLittleEndian(byte[] buf, int offset) {\n return ((long) buf[offset + 7] << 56) | ((buf[offset + 6] & 0xffL) << 48)\n | ((buf[offset + 5] & 0xffL) << 40) | ((buf[offset + 4] & 0xffL) << 32)\n | ((buf[offset + 3] & 0xffL) << 24) | ((buf[offset + 2] & 0xffL) << 16)\n | ((buf[offset + 1] & 0xffL) << 8) | ((buf[offset] & 0xffL));\n }", "public abstract long[] toLongArray();", "private long read_long(RandomAccessFile file) throws IOException {\n long number = 0;\n for (int i = 0; i < 8; ++i) {\n number += ((long) (file.readByte() & 0xFF)) << (8 * i);\n }\n return number;\n }", "public long readAsLong(int nrBits) {\n return readAsLong(bitPos, nrBits, ByteOrder.BigEndian);\n }", "private final long get_BIGINT(int column) {\n // @AGG force Little Endian\n if (metadata.isZos())\n return dataBuffer_.getLong(columnDataPosition_[column - 1]);\n else\n return dataBuffer_.getLongLE(columnDataPosition_[column - 1]);\n// return SignedBinary.getLong(dataBuffer_,\n// columnDataPosition_[column - 1]);\n }", "public static Long toLong(Object o,byte type) throws ExecException {\n try {\n switch (type) {\n case BOOLEAN:\n if (((Boolean)o) == true) {\n return Long.valueOf(1);\n } else {\n return Long.valueOf(0);\n }\n\n case BYTE:\n return Long.valueOf(((Byte)o).longValue());\n\n case INTEGER:\n return Long.valueOf(((Integer)o).longValue());\n\n case LONG:\n return (Long)o;\n\n case FLOAT:\n return Long.valueOf(((Float)o).longValue());\n\n case DOUBLE:\n return Long.valueOf(((Double)o).longValue());\n\n case BYTEARRAY:\n return Long.valueOf(((DataByteArray)o).toString());\n\n case CHARARRAY:\n return Long.valueOf((String)o);\n\n case BIGINTEGER:\n return Long.valueOf(((BigInteger)o).longValue());\n\n case BIGDECIMAL:\n return Long.valueOf(((BigDecimal)o).longValue());\n\n case NULL:\n return null;\n\n case DATETIME:\n return Long.valueOf(((DateTime)o).getMillis());\n case MAP:\n case INTERNALMAP:\n case TUPLE:\n case BAG:\n case UNKNOWN:\n default:\n int errCode = 1071;\n String msg = \"Cannot convert a \" + findTypeName(o) +\n \" to a Long\";\n throw new ExecException(msg, errCode, PigException.INPUT);\n }\n } catch (ClassCastException cce) {\n throw cce;\n } catch (ExecException ee) {\n throw ee;\n } catch (NumberFormatException nfe) {\n int errCode = 1074;\n String msg = \"Problem with formatting. Could not convert \" + o + \" to Long.\";\n throw new ExecException(msg, errCode, PigException.INPUT, nfe);\n } catch (Exception e) {\n int errCode = 2054;\n String msg = \"Internal error. Could not convert \" + o + \" to Long.\";\n throw new ExecException(msg, errCode, PigException.BUG);\n }\n\n }", "public abstract void read_ulonglong_array(long[] value, int offset, int\nlength);", "long readLong();", "public long getAsLong(int index) {\n switch (type) {\n case TIFFTag.TIFF_BYTE: case TIFFTag.TIFF_UNDEFINED:\n return ((byte[])data)[index] & 0xff;\n case TIFFTag.TIFF_SBYTE:\n return ((byte[])data)[index];\n case TIFFTag.TIFF_SHORT:\n return ((char[])data)[index] & 0xffff;\n case TIFFTag.TIFF_SSHORT:\n return ((short[])data)[index];\n case TIFFTag.TIFF_SLONG:\n return ((int[])data)[index];\n case TIFFTag.TIFF_LONG: case TIFFTag.TIFF_IFD_POINTER:\n return ((long[])data)[index];\n case TIFFTag.TIFF_SRATIONAL:\n int[] ivalue = getAsSRational(index);\n return (long)((double)ivalue[0]/ivalue[1]);\n case TIFFTag.TIFF_RATIONAL:\n long[] lvalue = getAsRational(index);\n return (long)((double)lvalue[0]/lvalue[1]);\n case TIFFTag.TIFF_ASCII:\n String s = ((String[])data)[index];\n return (long)Double.parseDouble(s);\n default:\n throw new ClassCastException();\n }\n }", "private long m674a(byte[] bArr) {\n return ((((long) bArr[7]) & 255) << 56) | ((((long) bArr[6]) & 255) << 48) | ((((long) bArr[5]) & 255) << 40) | ((((long) bArr[4]) & 255) << 32) | ((((long) bArr[3]) & 255) << 24) | ((((long) bArr[2]) & 255) << 16) | ((((long) bArr[1]) & 255) << 8) | (255 & ((long) bArr[0]));\n }", "public static Long toLong(Object value) {\n if (value instanceof Integer)\n return (long)(int)(Integer)value;\n else if (value instanceof Long)\n return (Long)value;\n else if (value instanceof Double)\n return (long)(double)(Double)value;\n else if (value == null)\n return null;\n else\n throw new RuntimeException(\"Can't convert [\" + value + \"] to Long\");\n }", "public native static long getConvertBytes();", "public long getLong(String key) {\n long result;\n Object value = get(key);\n if (value instanceof Long) {\n result = (Long)value;\n } else if (value instanceof String) {\n try {\n String valueString = (String)value;\n if (valueString.length() == 0) {\n result = 0;\n } else if (valueString.charAt(0) == '-') {\n result = Long.parseLong(valueString);\n } else {\n result = Long.parseUnsignedLong((String)value);\n }\n } catch (NumberFormatException exc) {\n result = 0;\n }\n } else {\n result = 0;\n }\n return result;\n }", "protected final long getLong(int offset)\n {\n final byte[] tableData = tables.getTablesData();\n return Bytes.getLong(tableData, cursor+offset);\n }", "public int read(long[] l) throws IOException {\n\t\treturn read(l, 0, l.length);\n\t}", "long fetch64(BytesStore bytes, @NonNegative long off) throws IllegalStateException, BufferUnderflowException {\n return bytes.readLong(off);\n }", "public static long extractLongValue(Object object) {\n\t\tClass<?> c = object.getClass();\n\t\ttry {\n\t\t\tif (c.isArray()) {\n\t\t\t\tfinal Object[] objects = (Object[]) object;\n\t\t\t\tif (LOG.isDebugEnabled()) {\n\t\t\t\t\tfor (Object o : objects) {\n\t\t\t\t\t\tLOG.debug(o.getClass().getName() + \" isPrimitive=\" + o.getClass().isPrimitive() + \" toString=\" + o.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (objects[0].getClass().equals(BigInteger.class)) {\n\t\t\t\t\tobject = objects[objects.length-1];\n\t\t\t\t} else if (objects[objects.length-1].getClass().equals(BigDecimal.class)) {\n\t\t\t\t\tobject = objects[0];\n\t\t\t\t} else {\n\t\t\t\t\tthrow new RuntimeException(\"Unsupported object type to cenvert to long.\");\n\t\t\t\t}\n\t\t\t\tc = object.getClass();\n\t\t\t}\n\t\t\treturn ((Long) c.getMethod(\"longValue\").invoke(object)).longValue();\n\t\t} catch (Exception e) {\n\t\t\tLOG.error(c.getName() + \", isPrimitive=\" + c.isPrimitive(), e);\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public final Long _parseLong(JsonParser jVar, DeserializationContext gVar) throws IOException {\n int m = jVar.mo29329m();\n if (m == 3) {\n return (Long) _deserializeFromArray(jVar, gVar);\n }\n if (m == 11) {\n return (Long) _coerceNullToken(gVar, this._primitive);\n }\n switch (m) {\n case 6:\n String trim = jVar.mo29334t().trim();\n if (trim.length() == 0) {\n return (Long) _coerceEmptyString(gVar, this._primitive);\n }\n if (_hasTextualNull(trim)) {\n return (Long) _coerceTextualNull(gVar, this._primitive);\n }\n _verifyStringForScalarCoercion(gVar, trim);\n try {\n return Long.valueOf(NumberInput.m23786b(trim));\n } catch (IllegalArgumentException unused) {\n return (Long) gVar.mo31517b(this._valueClass, trim, \"not a valid Long value\", new Object[0]);\n }\n case 7:\n return Long.valueOf(jVar.mo29248D());\n case 8:\n if (!gVar.mo31509a(DeserializationFeature.ACCEPT_FLOAT_AS_INT)) {\n _failDoubleToIntCoercion(jVar, gVar, \"Long\");\n }\n return Long.valueOf(jVar.mo29297L());\n default:\n return (Long) gVar.mo31493a(this._valueClass, jVar);\n }\n }", "public abstract int read_long();", "long getLongValue();", "long getLongValue();", "public static int putLong(byte[] bytes, int offset, long val) {\n if (bytes.length - offset < SIZEOF_LONG) {\n throw new IllegalArgumentException(\"Not enough room to put a long at\"\n + \" offset \" + offset + \" in a \" + bytes.length + \" byte array\");\n }\n\n for(int i = offset + 7; i > offset; i--) {\n bytes[i] = (byte) val;\n val >>>= 8;\n }\n bytes[offset] = (byte) val;\n return offset + SIZEOF_LONG;\n\n }", "public long readLong() throws IOException;", "public static long readlong()\n\t{\n\t\treturn sc.nextLong();\n\t}", "public long getLong(int addr) throws ProgramException {\n return getLittleEndian(addr, Long.BYTES);\n }", "public final long getLong(final boolean endianess) throws IOException {\r\n b1 = (tagBuffer[bPtr] & 0xff);\r\n b2 = (tagBuffer[bPtr + 1] & 0xff);\r\n b3 = (tagBuffer[bPtr + 2] & 0xff);\r\n b4 = (tagBuffer[bPtr + 3] & 0xff);\r\n b5 = (tagBuffer[bPtr + 4] & 0xff);\r\n b6 = (tagBuffer[bPtr + 5] & 0xff);\r\n b7 = (tagBuffer[bPtr + 6] & 0xff);\r\n b8 = (tagBuffer[bPtr + 7] & 0xff);\r\n\r\n long tmpLong;\r\n\r\n if (endianess == FileDicomBaseInner.BIG_ENDIAN) {\r\n tmpLong = ( ((long) b1 << 56) | ((long) b2 << 48) | ((long) b3 << 40) | ((long) b4 << 32)\r\n | ((long) b5 << 24) | ((long) b6 << 16) | ((long) b7 << 8) | b8);\r\n } else {\r\n tmpLong = ( ((long) b8 << 56) | ((long) b7 << 48) | ((long) b6 << 40) | ((long) b5 << 32)\r\n | ((long) b4 << 24) | ((long) b3 << 16) | ((long) b2 << 8) | b1);\r\n }\r\n\r\n bPtr += 8;\r\n\r\n return (tmpLong);\r\n }", "@Override\n\tpublic int decode(byte[] buffer, int offset) throws IOException {\n\t\tlong value = NeuronReader.readRawInt64(buffer, offset);\n\t\tunionCache.setLong(fieldIndex, value);\n\n\t\treturn NeuronReader.LONG_SIZE;\n\t}", "public long getLongValue() {\n if (typeCase_ == 3) {\n return (java.lang.Long) type_;\n }\n return 0L;\n }", "public static long byteToUnsignedLong(byte b) {\n return b & 0xff;\n }", "public void testValueOfLong()\n {\n // let's test that creating a EthernetAddress from an zero long\n // gives a null EthernetAddress (definition of a null EthernetAddress)\n EthernetAddress ethernet_address =\n EthernetAddress.valueOf(0x0000000000000000L);\n assertEquals(\n \"EthernetAddress.valueOf did not create expected EthernetAddress\",\n NULL_ETHERNET_ADDRESS_LONG,\n ethernet_address.toLong());\n \n // let's test creating an array from a good long\n ethernet_address =\n EthernetAddress.valueOf(VALID_ETHERNET_ADDRESS_LONG);\n assertEquals(\n \"EthernetAddress.valueOf did not create expected EthernetAddress\",\n VALID_ETHERNET_ADDRESS_LONG,\n ethernet_address.toLong());\n }", "long readLong() throws IOException;", "public static LongArrayBitVector wrap( final long[] array ) {\n\t\treturn wrap( array, (long)array.length * Long.SIZE );\n\t}", "public static final long Integer(final Object o) {\n\t\t\n\t\treturn Convert.Any.toLong(o, 0);\n\t}", "public static final long readLong(InputStream in) throws IOException {\n byte[] buff = new byte[8];\n StreamTool.readFully(in, buff);\n return getLong(buff, 0);\n }", "public long longValue() {\n if (originalValue instanceof Long) {\n return (Long) originalValue;\n } else if (originalValue instanceof Number) {\n return ((Number) originalValue).longValue();\n } else if (originalValue instanceof String) {\n final String originalString = (String) this.originalValue;\n\n try {\n return Long.parseLong(originalString);\n } catch (NumberFormatException e1) {\n try {\n return (long) Double.parseDouble(originalString);\n } catch (NumberFormatException e2) {\n // it will be more reasonable to throw an exception which\n // indicates that the conversion to long has failed\n e1.addSuppressed(e2);\n throw new CellValueCastException(e1);\n }\n }\n } else {\n throw new CellValueCastException();\n }\n }", "public long longValue() {\r\n return intValue();\r\n }", "public final long getLong(final String tagToGet) {\n try {\n return Long.parseLong(getStr(tagToGet));\n } catch (final Exception t) {\n return 0;\n }\n }", "public abstract long read_longlong();", "protected long _getLongLE(int index)\r\n/* 411: */ {\r\n/* 412:425 */ return HeapByteBufUtil.getLongLE(this.array, index);\r\n/* 413: */ }", "public long[] getAsLongs() {\n return (long[])data;\n }", "public long longValue(final int i) {\n if (isInteger(i)) {\n return values[i];\n }\n throw new ClassCastException(\"value #\" + i + \" is not a long in \" + this);\n }", "public long getLong(String key) {\n\t\tString value = getString(key);\n\t\t\n\t\ttry {\n\t\t\treturn Long.parseLong(value);\n\t\t}\n\t\tcatch( NumberFormatException e ) {\n\t\t\tthrow new IllegalStateException( \"Illegal value for long integer configuration parameter: \" + key);\n\t\t}\n\t}", "public abstract long read_ulonglong();", "public native long[] __longArrayMethod( long __swiftObject, long[] arg );", "public long readLong() throws IOException {\n return in.readLong();\n }", "private long m10259a(byte[] bArr) {\r\n return ((((((((((long) bArr[7]) & 255) << 56) | ((((long) bArr[6]) & 255) << 48)) | ((((long) bArr[5]) & 255) << 40)) | ((((long) bArr[4]) & 255) << 32)) | ((((long) bArr[3]) & 255) << 24)) | ((((long) bArr[2]) & 255) << 16)) | ((((long) bArr[1]) & 255) << 8)) | (((long) bArr[0]) & 255);\r\n }", "@SuppressWarnings(\"cast\")\n public static long makeLong(int b1, int b2, int b3, int b4, int b5, int b6, int b7, int b8) {\n return ((long) b1 << 56) +\n ((long) (b2 & 255) << 48) +\n ((long) (b3 & 255) << 40) +\n ((long) (b4 & 255) << 32) +\n ((long) (b5 & 255) << 24) +\n (long) ((b6 & 255) << 16) +\n (long) ((b7 & 255) << 8) +\n (long) ((b8 & 255));\n }", "public long getLongValue() {\n return longValue_;\n }", "public static long ipToLong(String ipAddress) {\n\n\t\tString[] ipAddressInArray = ipAddress.split(\"\\\\.\");\n\n\t\tlong result = 0;\n\t\tfor (int i = 0; i < ipAddressInArray.length; i++) {\n\n\t\t\tint power = 3 - i;\n\t\t\tint ip = Integer.parseInt(ipAddressInArray[i]);\n\t\t\tresult += ip * Math.pow(256, power);\n\n\t\t}\n\n\t\treturn result;\n\t}", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default long[] asLongArray() {\n \n return notSupportedCast(\"long[]\");\n }", "public long longValue() {\n return (long) m_value;\n }", "public long getValueAsLongValue() throws DataFieldException {\n\t\ttry {\n\t\t\treturn Long.parseLong(this.value);\n\t\t} catch (NumberFormatException nfe) {\n\t\t\tthrow new DataFieldException(\n\t\t\t\t\t\"Couldn't parse value into a long. Value: \" + this.value,\n\t\t\t\t\tnfe);\n\t\t}\n\t}", "public long getLongValue() {\n return longValue_;\n }", "protected long _getLong(int index)\r\n/* 400: */ {\r\n/* 401:414 */ return HeapByteBufUtil.getLong(this.array, index);\r\n/* 402: */ }", "public long getLongValue() {\n if (getValueIndex() <= 0)\n return 0L;\n return ((LongEntry) getPool().getEntry(getValueIndex())).getValue();\n }", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default long asLong() {\n \n return notSupportedCast(BasicTypeID.LONG);\n }", "public static long toLong( Date date ) {\n return date == null ? 0 : Functions.toLong( date );\n }", "public void testGetLongLE() {\n byte[] array = new byte[] {\n 0x78, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,\n -0x1, -0x1, -0x1, -0x1, -0x1, -0x1, -0x1, 0x7F\n };\n // end::noformat\n BytesReference ref = new BytesArray(array, 0, array.length);\n assertThat(ref.getLongLE(0), equalTo(888L));\n assertThat(ref.getLongLE(8), equalTo(Long.MAX_VALUE));\n Exception e = expectThrows(ArrayIndexOutOfBoundsException.class, () -> ref.getLongLE(9));\n assertThat(e.getMessage(), equalTo(\"Index 9 out of bounds for length 9\"));\n }", "public void testToLong()\n {\n // test making a couple EthernetAddresss and then check that the toLong\n // gives back the same value in long form that was used to create it\n \n // test the null EthernetAddress\n EthernetAddress ethernet_address = new EthernetAddress(0L);\n assertEquals(\"null EthernetAddress long and toLong did not match\",\n NULL_ETHERNET_ADDRESS_LONG,\n ethernet_address.toLong());\n \n // test a non-null EthernetAddress\n ethernet_address =\n new EthernetAddress(VALID_ETHERNET_ADDRESS_BYTE_ARRAY);\n assertEquals(\"EthernetAddress long and toLong results did not match\",\n VALID_ETHERNET_ADDRESS_LONG,\n ethernet_address.toLong());\n }", "public static final long crc64Long(String in) {\r\n if (in == null || in.length() == 0) {\r\n return 0;\r\n }\r\n return crc64Long(getBytes(in));\r\n }", "public long getLong(String name) {\n Enumeration enumer = LONGS.elements();\n while(enumer.hasMoreElements()) {\n SimpleMessageObjectLongItem item = (SimpleMessageObjectLongItem) enumer.nextElement();\n if(item.getName().compareTo(name) == 0) {\n return item.getValue();\n }\n }\n return -1L;\n }", "public static int writeLong(byte[] target, int offset, long value) {\n target[offset] = (byte) (value >>> 56);\n target[offset + 1] = (byte) (value >>> 48);\n target[offset + 2] = (byte) (value >>> 40);\n target[offset + 3] = (byte) (value >>> 32);\n target[offset + 4] = (byte) (value >>> 24);\n target[offset + 5] = (byte) (value >>> 16);\n target[offset + 6] = (byte) (value >>> 8);\n target[offset + 7] = (byte) value;\n return Long.BYTES;\n }", "private static long l(String s) {\n return Long.parseLong(s);\n }", "public static long toNumber(final byte[] bytes, final int start, final int end) {\n\t\tlong result = 0;\n\t\tfor (int i = start; i < end; i++) {\n\t\t\tresult = (result << 8) | (bytes[i] & 0xff);\n\t\t}\n\t\treturn result;\n\t}", "public static long uint32_tToLong(byte b0, byte b1, byte b2, byte b3) {\n return (unsignedByteToInt(b0) +\n (unsignedByteToInt(b1) << 8) +\n (unsignedByteToInt(b2) << 16) +\n (unsignedByteToInt(b3) << 24)) &\n 0xFFFFFFFFL;\n }", "public long evaluateAsLong();", "public long longValue() {\n return value;\n }", "public static final int m64153E(@C6003d long[] jArr, @C6003d C6080l<? super Long, Integer> lVar) {\n C14445h0.m62478f(jArr, \"$receiver\");\n C14445h0.m62478f(lVar, \"selector\");\n int i = 0;\n for (long valueOf : jArr) {\n i += ((Number) lVar.invoke(Long.valueOf(valueOf))).intValue();\n }\n return i;\n }", "private synchronized long readLong(int len) throws IOException {\n\t\tread(bytes, len);\n\t\treturn readLong(bytes, 0, len);\n\t}", "public TLongArray(long[] array) {\n\t\tthis.array = array;\n\t}", "public int read(long[] l, int start, int len) throws IOException {\n\n\t\tint i = start;\n\t\ttry {\n\t\t\tfor (; i < start + len; i += 1) {\n\t\t\t\tif (count - pos < 8) {\n\t\t\t\t\tfillBuf(8);\n\t\t\t\t}\n\t\t\t\tint i1 = buf[pos] << 24 | (buf[pos + 1] & 0xFF) << 16\n\t\t\t\t\t\t| (buf[pos + 2] & 0xFF) << 8 | (buf[pos + 3] & 0xFF);\n\t\t\t\tint i2 = buf[pos + 4] << 24 | (buf[pos + 5] & 0xFF) << 16\n\t\t\t\t\t\t| (buf[pos + 6] & 0xFF) << 8 | (buf[pos + 7] & 0xFF);\n\t\t\t\tl[i] = ((long) i1) << 32 | ((long) i2 & 0x00000000FFFFFFFFL);\n\t\t\t\tpos += 8;\n\t\t\t}\n\n\t\t} catch (EOFException e) {\n\t\t\treturn eofCheck(e, i, start, 8);\n\t\t}\n\t\treturn 8 * len;\n\t}", "void writeLongs(long[] l, int off, int len) throws IOException;" ]
[ "0.829732", "0.76841277", "0.74620056", "0.7423944", "0.7398077", "0.73839754", "0.7373932", "0.730917", "0.7294149", "0.7185547", "0.71502775", "0.7087527", "0.7069155", "0.70416445", "0.6990911", "0.6935505", "0.6906566", "0.68380713", "0.6742797", "0.6699237", "0.66951823", "0.66626567", "0.6636302", "0.66236275", "0.64747596", "0.6474597", "0.647136", "0.6466473", "0.6457753", "0.6409672", "0.6388681", "0.6367825", "0.636497", "0.6354563", "0.6315216", "0.6311817", "0.6301764", "0.6273609", "0.62591445", "0.6234087", "0.62336147", "0.62265694", "0.620535", "0.6202558", "0.61792576", "0.61754334", "0.61737317", "0.61434525", "0.61434525", "0.6128292", "0.6122506", "0.6104558", "0.61027336", "0.6099612", "0.6084385", "0.6068051", "0.60637176", "0.6062569", "0.60437644", "0.60337317", "0.60185015", "0.59995264", "0.59990346", "0.5993251", "0.59859407", "0.5985749", "0.598491", "0.5979988", "0.5972135", "0.59648657", "0.59560394", "0.5948565", "0.59433424", "0.5941746", "0.5940068", "0.59327406", "0.5929267", "0.5918457", "0.5915398", "0.5908911", "0.5898369", "0.589033", "0.58894175", "0.58859074", "0.58809704", "0.58681434", "0.58440435", "0.5840171", "0.58401155", "0.5836735", "0.5818121", "0.5816164", "0.58119035", "0.5810083", "0.5809294", "0.57957375", "0.5789725", "0.57798827", "0.57742685", "0.57646954" ]
0.6954259
15
Converts a long integer to a byte array.
public byte[] l2b(long value) { byte[] data = new byte[8]; data[0] = (byte) ((value >> 56) & 0xFF); data[1] = (byte) ((value >> 48) & 0xFF); data[2] = (byte) ((value >> 40) & 0xFF); data[3] = (byte) ((value >> 32) & 0xFF); data[4] = (byte) ((value >> 24) & 0xFF); data[5] = (byte) ((value >> 16) & 0xFF); data[6] = (byte) ((value >> 8) & 0xFF); data[7] = (byte) (value & 0xFF); return data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static byte[] longToBytes(long l) {\n\n ByteBuffer byteBuffer = ByteBuffer.allocate(NUM_BYTES_IN_LONG);\n byteBuffer.putLong(l);\n return byteBuffer.array();\n\n }", "public static byte[] longToBytes(long x) {\n\t ByteBuffer buffer = ByteBuffer.allocate(Long.BYTES);\n\t buffer.putLong(x);\n\t return buffer.array();\n\t}", "private static final byte[] longToByteArray(long l) {\n\t\tbyte[] retVal = new byte[8];\n\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tretVal[i] = (byte) l;\n\t\t\tl >>= 8;\n\t\t}\n\n\t\treturn retVal;\n\t}", "public static byte[] getLongAsBytes(long l) {\n\t\treturn new byte[] {\n\t\t\t\t(byte) (l >> 56),\n\t\t\t\t(byte) (l >> 48),\n\t\t\t\t(byte) (l >> 40),\n\t\t\t\t(byte) (l >> 32),\n\t\t\t\t(byte) (l >> 24),\n\t\t\t\t(byte) (l >> 16),\n\t\t\t\t(byte) (l >> 8),\n\t\t\t\t(byte) l\n\t\t\t};\n\t}", "public static byte[] toBytes(final long number) {\n\t\treturn new byte[] {\n\t\t\t(byte) (number >>> 56),\n\t\t\t(byte) (number >>> 48),\n\t\t\t(byte) (number >>> 40),\n\t\t\t(byte) (number >>> 32),\n\t\t\t(byte) (number >>> 24),\n\t\t\t(byte) (number >>> 16),\n\t\t\t(byte) (number >>> 8),\n\t\t\t(byte) (number)\n\t\t};\n\t}", "public static byte[] toBytes(long val) {\n byte [] b = new byte[8];\n for (int i = 7; i > 0; i--) {\n b[i] = (byte) val;\n val >>>= 8;\n }\n b[0] = (byte) val;\n return b;\n }", "public static void longToByteArray(long value, byte[] buffer, int offset) {\n buffer[offset] = (byte) (value >> 56 & 0xFF);\n buffer[offset + 1] = (byte) (value >> 48 & 0xFF);\n buffer[offset + 2] = (byte) (value >> 40 & 0xFF);\n buffer[offset + 3] = (byte) (value >> 32 & 0xFF);\n buffer[offset + 4] = (byte) (value >> 24 & 0xFF);\n buffer[offset + 5] = (byte) (value >> 16 & 0xFF);\n buffer[offset + 6] = (byte) (value >> 8 & 0xFF);\n buffer[offset + 7] = (byte) (value & 0xFF);\n }", "public static byte[] getBytes(long value) {\r\n\t\treturn ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN).putLong(value).array();\r\n\t}", "public synchronized static byte [] LongToBytes ( long ldata, int n )\n {\n byte buff[] = new byte [ n ];\n\n for ( int i=n-1; i>=0; i--)\n {\n // Keep assigning the right most 8 bits to the\n // byte arrays while shift 8 bits during each iteration\n buff [ i ] = (byte) ldata;\n ldata = ldata >> 8;\n }\n return buff;\n }", "static byte[] long2byteArray(long number, int length, boolean swapHalfWord) {\n }", "public static byte[] convertLong(long v, boolean isLE)\r\n {\r\n byte[] bytes = new byte[8];\r\n if (isLE)\r\n {\r\n bytes[0] = (byte) (v >>> 0);\r\n bytes[1] = (byte) (v >>> 8);\r\n bytes[2] = (byte) (v >>> 16);\r\n bytes[3] = (byte) (v >>> 24);\r\n bytes[4] = (byte) (v >>> 32);\r\n bytes[5] = (byte) (v >>> 40);\r\n bytes[6] = (byte) (v >>> 48);\r\n bytes[7] = (byte) (v >>> 56);\r\n }\r\n else\r\n {\r\n bytes[0] = (byte) (v >>> 56);\r\n bytes[1] = (byte) (v >>> 48);\r\n bytes[2] = (byte) (v >>> 40);\r\n bytes[3] = (byte) (v >>> 32);\r\n bytes[4] = (byte) (v >>> 24);\r\n bytes[5] = (byte) (v >>> 16);\r\n bytes[6] = (byte) (v >>> 8);\r\n bytes[7] = (byte) (v >>> 0);\r\n }\r\n return bytes;\r\n }", "public static byte[] longToByteArray(long value, int valueSize, int length) {\n long val = value;\n // Convert the long to 8-byte BE representation\n byte[] b = new byte[8];\n for (int i = 7; i >= 0 && val != 0L; i--) {\n b[i] = (byte) val;\n val >>>= 8;\n }\n // Then copy the rightmost valueSize bytes\n // e.g., for an integer we want rightmost 4 bytes\n return Arrays.copyOfRange(b, 8 - valueSize, 8 + length - valueSize);\n }", "public static byte[] toBytes(final long... numbers) {\n\t\tbyte[] bytes = new byte[numbers.length * 8];\n\t\tfor (int i = 0, j = 0; i < numbers.length; i++, j += 8) {\n\t\t\tSystem.arraycopy(toBytes(numbers[i]), 0, bytes, j, 8);\n\t\t}\n\t\treturn bytes;\n\t}", "public native static long getConvertBytes();", "public abstract long[] toLongArray();", "public static byte[] LongToOpaque(long number) { \n long temp = number; \n byte[] b = new byte[16]; //0-7 time stamp, 8-15 customized \n for (int i = 0; i < 8; i++) { \n b[i] = new Long(temp & 0xff).byteValue();\n temp = temp >> 8; // right shift 8\n } \n return b; \n }", "private static byte[] intToBytes(Integer integer) {\n\t\treturn BigInteger.valueOf(integer).toByteArray();\n\t}", "public static byte[] intToBytes(int i) {\n\n ByteBuffer byteBuffer = ByteBuffer.allocate(NUM_BYTES_IN_INT);\n byteBuffer.putInt(i);\n return byteBuffer.array();\n\n }", "private byte[] toByte(long address) {\n byte[] addressInBytes = new byte[]{\n (byte) (address >> 40 & 0xff),\n (byte) (address >> 32 & 0xff),\n (byte) (address >> 24 & 0xff),\n (byte) (address >> 16 & 0xff),\n (byte) (address >> 8 & 0xff),\n (byte) (address >> 0 & 0xff)\n };\n return addressInBytes;\n }", "public byte[] intToBytes(int x) {\n\t\tByteBuffer buffer = ByteBuffer.allocate(Integer.BYTES);\n\t\tbuffer.putInt(x);\n\t\treturn buffer.array();\n\t}", "public static byte[] longToBytes(float x) {\n int bits = Float.floatToIntBits(x);\n byte[] buffer = new byte[4];\n buffer[0] = (byte)(bits & 0xff);\n buffer[1] = (byte)((bits >> 8) & 0xff);\n buffer[2] = (byte)((bits >> 16) & 0xff);\n buffer[3] = (byte)((bits >> 24) & 0xff);\n\n return buffer;\n }", "public static long toInt64(byte[] value) {\r\n\t\treturn toInt16(value, 0);\r\n\t}", "private byte[] intToByteArray(int i) {\n ByteBuffer bbf = ByteBuffer.allocate(4)\n .order(ByteOrder.LITTLE_ENDIAN)\n .putInt(i);\n return bbf.array();\n }", "public static byte[] toBigEndianByteArray(Number number) throws ScriptException\n {\n long n = number.longValue();\n for (int i = 1; i <= 8; i++)\n {\n long maxNum = 1L << (i * 8 - 1);\n if (n <= maxNum && n >= -maxNum)\n {\n byte[] res = new byte[i];\n boolean changeSign = false;\n if (n < 0)\n {\n changeSign = true;\n n = -n;\n }\n for (int j = 0; j < i; j++)\n {\n res[j] = (byte) ((n >> j * 8) & 0xFF);\n }\n // Bitcoin scripts use 1-complement for negative numbers\n if (changeSign)\n {\n res[i - 1] |= 0x80;\n }\n return res;\n }\n }\n throw new ScriptException(\"Number to large to convert to binary: \" + number);\n }", "public static long convertToLong(byte[] longBuffer)\r\n {\r\n if (longBuffer.length >= 8)\r\n {\r\n return (((long) longBuffer[0] << 56)\r\n + ((long) (longBuffer[1] & 255) << 48)\r\n + ((long) (longBuffer[2] & 255) << 40)\r\n + ((long) (longBuffer[3] & 255) << 32)\r\n + ((long) (longBuffer[4] & 255) << 24)\r\n + ((longBuffer[5] & 255) << 16)\r\n + ((longBuffer[6] & 255) << 8) + ((longBuffer[7] & 255) << 0));\r\n }\r\n return 0;\r\n }", "void writeLongs(long[] l, int off, int len) throws IOException;", "public static byte[] intToBytesArray(int num) {\r\n\t\tbyte[] byteArr = new byte[4];\r\n\t\t// big endian, low to high\r\n\t\tfor (int i = 0; i < byteArr.length; i++) {\r\n\t\t\tbyteArr[byteArr.length - 1 - i] = (byte) (num & 0xff);\r\n\t\t\tnum >>= 8;\r\n\t\t}\r\n\t\treturn byteArr;\r\n\t}", "public long toLong()\n\t{\n\t\t// holds the int to return\n\t\tlong result = 0;\n\t\t\n\t\t// for every byte value\n\t\tfor (int i = 0; i < bytes.length; i++)\n\t\t{\n\t\t\t// Extract the bits out of the array by \"and\"ing them with the\n\t\t\t// maximum value of\n\t\t\t// a byte. This is done because java does not support unsigned\n\t\t\t// types. Now that the\n\t\t\t// unsigned byte has been extracted, shift it to the right as far as\n\t\t\t// it is needed.\n\t\t\t// Examples:\n\t\t\t// byte array int\n\t\t\t// {0x01, 0x00} = 256\n\t\t\t//\n\t\t\t// byte array int\n\t\t\t// {0x01, 0x8C 0xF0} = 0x018CF0\n\t\t\tresult += (byteToLong(bytes[i]) << (Byte.SIZE * (bytes.length - i - 1)));\n\t\t}\n\t\t\n\t\t// return the int\n\t\treturn result;\n\t}", "public byte[] getByteArray() {\n long val = getValue();\n return new byte[] {\n (byte)((val>>24) & 0xff),\n (byte)((val>>16) & 0xff),\n (byte)((val>>8) & 0xff),\n (byte)(val & 0xff) };\n }", "public static byte[] toLEBytes(int i) {\n\t\treturn ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putInt(i).array();\n\t}", "public ByteArray(final long value)\n\t{\n\t\t// create the array\n\t\tthis.bytes = new byte[8];\n\t\t\n\t\t// for every byte\n\t\tfor (int i = 0; i < 8; i++)\n\t\t{\n\t\t\t// assign the array of bytes\n\t\t\tthis.bytes[i] = (byte) (value >> ((7 - i) * 8));\n\t\t}\n\t}", "public static byte[] longToByteArray_ASN1_Value(long toBeConverted) {\n\t\t\t\n\t\t\t//create the temporary version of what will be returned\n\t\t\tbyte[] tempToBeReturned = {\n\t\t\t\t\t(byte)(toBeConverted >> 56),\n\t\t\t\t\t(byte)(toBeConverted >> 48),\n\t\t\t\t\t(byte)(toBeConverted >> 40),\n\t\t\t\t\t(byte)(toBeConverted >> 32),\n\t\t\t\t\t(byte)(toBeConverted >> 24),\n\t\t\t\t\t(byte)(toBeConverted >> 16),\n\t\t\t\t\t(byte)(toBeConverted >> 8),\n\t\t\t\t\t(byte)toBeConverted};\n\t\t\t\n\t\t\t\n\t\t\t//converting positive long values\n\t\t\tif(toBeConverted >= 0) {\n\t\t\t\t//0 to 127: return only one octet\n\t\t\t\tif(toBeConverted<=127) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[1];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[7];\t\t\t\t\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//128 to 32768-1 return two octets\n\t\t\t\telse if(toBeConverted<=32767) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[2];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[6];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//32767 to 8388607 return three octets\n\t\t\t\telse if(toBeConverted<=8388607) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[3];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[5];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//8388608 to 2147483647 return four octets\n\t\t\t\telse if(toBeConverted<=2147483647) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[4];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[4];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[5];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[3] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//the value 0 if x == y; a value less than 0 if x < y; and a value greater than 0 if x > y\n\t\t\t\t//2147483648 to 549755813887 return five octets\n\t\t\t\telse if((Long.compare(toBeConverted, 549755813888L))<0) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[5];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[3];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[4];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[5];\n\t\t\t\t\ttoBeReturned[3] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[4] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//549755813888 to 140737488355327 return six octets\n\t\t\t\telse if((Long.compare(toBeConverted, 140737488355328L))<0) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[6];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[2];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[3];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[4];\n\t\t\t\t\ttoBeReturned[3] = tempToBeReturned[5];\n\t\t\t\t\ttoBeReturned[4] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[5] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//140737488355328 to 36028797018963967 return seven octets\n\t\t\t\telse if((Long.compare(toBeConverted, 36028797018963967L))<0) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[7];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[1];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[2];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[3];\n\t\t\t\t\ttoBeReturned[3] = tempToBeReturned[4];\n\t\t\t\t\ttoBeReturned[4] = tempToBeReturned[5];\n\t\t\t\t\ttoBeReturned[5] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[6] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//above: return eight octets\n\t\t\t\telse {\n\t\t\t\t\treturn tempToBeReturned;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//converting negative long values\n\t\t\telse if(toBeConverted<0) {\n\t\t\t\t//-1 to -128 1 octet \n\t\t\t\tif(toBeConverted>=-128) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[1];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[7];\t\t\t\t\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//-129 to -32768 2 octets\n\t\t\t\telse if(toBeConverted>=-32768) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[2];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[6];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//-32769 to -8388608 3 octets\n\t\t\t\telse if(toBeConverted>=-8388608) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[3];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[5];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//-8388609 to -2147483648 4 octets\n\t\t\t\telse if(toBeConverted>=-2147483648) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[4];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[4];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[5];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[3] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//the value 0 if x == y; a value less than 0 if x < y; and a value greater than 0 if x > y\n\t\t\t\t//-2147483649 to -549755813888 5 octets \n\t\t\t\telse if((Long.compare(toBeConverted, -549755813889L))>0) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[5];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[3];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[4];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[5];\n\t\t\t\t\ttoBeReturned[3] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[4] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//-549755813889 to -140737488355328 6 octets\n\t\t\t\telse if((Long.compare(toBeConverted, -140737488355329L))>0) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[6];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[2];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[3];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[4];\n\t\t\t\t\ttoBeReturned[3] = tempToBeReturned[5];\n\t\t\t\t\ttoBeReturned[4] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[5] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//-140737488355329 to 36028797018963968 7 octets\n\t\t\t\telse if((Long.compare(toBeConverted, -36028797018963969L))>0) {\n\t\t\t\t\tbyte[] toBeReturned = new byte[7];\n\t\t\t\t\ttoBeReturned[0] = tempToBeReturned[1];\t\t\t\t\n\t\t\t\t\ttoBeReturned[1] = tempToBeReturned[2];\n\t\t\t\t\ttoBeReturned[2] = tempToBeReturned[3];\n\t\t\t\t\ttoBeReturned[3] = tempToBeReturned[4];\n\t\t\t\t\ttoBeReturned[4] = tempToBeReturned[5];\n\t\t\t\t\ttoBeReturned[5] = tempToBeReturned[6];\n\t\t\t\t\ttoBeReturned[6] = tempToBeReturned[7];\n\t\t\t\t\treturn toBeReturned;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//below that: 8 octets\n\t\t\t\telse {\n\t\t\t\t\treturn tempToBeReturned;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//if method fails for any reason, it returns null\n\t\t\treturn null;\n\t\t}", "public static int[] getBytesFromQuadByte(final long longValue) {\n int[] intArray = new int[4];\n\n intArray[0] = (int) ((longValue >>> 3 * BYTE_LENGTH) & BYTE_MASK);\n intArray[1] = (int) ((longValue >>> 2 * BYTE_LENGTH) & BYTE_MASK);\n intArray[2] = (int) ((longValue >>> BYTE_LENGTH) & BYTE_MASK);\n intArray[3] = (int) (longValue & BYTE_MASK);\n\n return intArray;\n }", "public abstract void read_longlong_array(long[] value, int offset, int\nlength);", "private byte[] intToBytes(int i) {\n\t\tb.clear();\n\t\treturn b.order(ByteOrder.LITTLE_ENDIAN).putInt(i).array();\n\t}", "public byte[] readRawLong() throws IOException {\n byte[] bytes = new byte[9];\n bytes[0] = (byte) Type.LONG.code;\n in.readFully(bytes, 1, 8);\n return bytes;\n }", "public static byte[] intToBytes(int in) {\n byte[] bytes = new byte[4];\n for (int i = 0; i < 4; i++) {\n bytes[i] = (byte) ((in >>> i * 8) & 0xFF);\n }\n return bytes;\n }", "public native long[] __longArrayMethod( long __swiftObject, long[] arg );", "static byte[] toArray(int value) {\n return new byte[] {\n (byte) (value >> 24),\n (byte) (value >> 16),\n (byte) (value >> 8),\n (byte) value };\n }", "public static long getBytesAsLong(byte[] b) {\n\t\treturn ((long) (b[0] & 0xff) << 56)\n\t\t\t\t| ((long) (b[1] & 0xFF) << 48)\n\t\t\t\t| ((long) (b[2] & 0xFF) << 40)\n\t\t\t\t| ((long) (b[3] & 0xFF) << 32)\n\t\t\t\t| ((long) (b[4] & 0xFF) << 24)\n\t\t\t\t| ((long) (b[5] & 0xFF) << 16)\n\t\t\t\t| ((long) (b[6] & 0xFF) << 8)\n\t\t\t\t| ((long) (b[7] & 0xFF));\n\t}", "public static void intToByteArray(int value, byte[] buffer, int offset) {\n buffer[offset] = (byte) (value >> 24 & 0xFF);\n buffer[offset + 1] = (byte) (value >> 16 & 0xFF);\n buffer[offset + 2] = (byte) (value >> 8 & 0xFF);\n buffer[offset + 3] = (byte) (value & 0xFF);\n }", "public byte[] int2byteArray(int[] ints){\n ByteBuffer buf = ByteBuffer.allocate(ints.length * Integer.BYTES);\n for (int i = 0; i < ints.length; i++) {\n buf.putInt(ints[i]);\n }\n\n return buf.array();\n }", "public static byte[] intToBytes(int value) {\n ByteBuffer bb = ByteBuffer.allocate(4);\n bb.putInt(value);\n return bb.array();\n }", "private static byte[] getBytes(int val) {\n log.log(Level.FINEST, String.format(\"%d\", val));\n byte[] ret = new byte[NekoIOConstants.INT_LENGTH];\n for (int i = 0; i < NekoIOConstants.INT_LENGTH; i++) {\n if (NekoIOConstants.BIG_ENDIAN) {\n ret[NekoIOConstants.INT_LENGTH - 1 - i] = (byte) val;\n } else {\n ret[i] = (byte) val;\n }\n val >>= 8;\n }\n return ret;\n }", "public static byte[] arrayBigIntegerToByte(BigInteger... a) {\n if(a.length == 0) {\n throw new IllegalArgumentException(\"You must supply at least one BigInteger\");\n }\n\n int[] bigIntLengths = new int[a.length];\n byte[][] bigInts = new byte[a.length][];\n int len = 0; // length of the array of numbers\n for(int i = 0; i < a.length; i++) {\n // first INT_LENGTH_IN_BYTES bytes = number length\n bigInts[i] = a[i].toByteArray();\n bigIntLengths[i] = bigInts[i].length;\n len += INT_LENGTH_IN_BYTES + bigIntLengths[i]; // INT_LENGTH_IN_BYTES to save the length of the number\n }\n\n if(len > Integer.MAX_VALUE) {\n // TODO: ....\n throw new OutOfMemoryError(\"Could not send the array of BigIntegers\");\n }\n byte[] res = new byte[INT_LENGTH_IN_BYTES + (int)len];\n System.arraycopy(intToByte(a.length), 0, res, 0, INT_LENGTH_IN_BYTES);\n for(int i = 0, offset = INT_LENGTH_IN_BYTES; i < a.length; i++) {\n // append BigInteger length\n System.arraycopy(intToByte(bigIntLengths[i]), 0, res, offset, INT_LENGTH_IN_BYTES);\n // append BigInteger\n System.arraycopy(bigInts[i], 0, res, offset + INT_LENGTH_IN_BYTES, bigIntLengths[i]);\n offset += bigIntLengths[i] + INT_LENGTH_IN_BYTES;\n }\n\n return res;\n }", "public static byte[] toByteArray(int value) {\n INT_BUFFER.clear();\n return INT_BUFFER.order(ByteOrder.LITTLE_ENDIAN).putInt(value).array();\n }", "long decodeLong();", "byte[] IntToByte(int i)\r\n {\r\n return Integer.toString(i).getBytes();\r\n }", "public static byte[] intToHex(long value){\n\t\tint count=7;\n\t\tshort[] bytes = new short[8];\n\t\tcal(value,count,bytes);\n\t\treturn shorts2bytes(bytes);\n\t}", "public static byte[] getEncodeIntervalNumberByteArray(long intervalNumber) {\n return intToByteLittleEndian((int)getUint32(intervalNumber));\n }", "public static byte[] toBytes(int val) {\n byte [] b = new byte[4];\n for(int i = 3; i > 0; i--) {\n b[i] = (byte) val;\n val >>>= 8;\n }\n b[0] = (byte) val;\n return b;\n }", "public static byte[] intToByte(int i) {\n return new byte[] {(byte)(i>>24), (byte)(i>>16), (byte)(i>>8), (byte)i};\n }", "public static byte[] convertIntToByteArray(int toConvert, Boolean... bigEndian) {\n // Get the byte array of the int and return it, little endian style\n if (bigEndian.length > 0 && bigEndian[0]) {\n return ByteBuffer.allocate(4).order(ByteOrder.BIG_ENDIAN).putInt(toConvert).array();\n }\n else {\n return ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putInt(toConvert).array();\n }\n }", "private static byte[] toByteArray(int[] array) {\n final byte[] res = new byte[array.length];\n for (int i = 0; i < array.length; ++i) {\n final int value = array[i];\n res[i] = (byte) value;\n }\n return res;\n }", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default long[] asLongArray() {\n \n return notSupportedCast(\"long[]\");\n }", "String longWrite();", "public static int writeLong(byte[] target, int offset, long value) {\n target[offset] = (byte) (value >>> 56);\n target[offset + 1] = (byte) (value >>> 48);\n target[offset + 2] = (byte) (value >>> 40);\n target[offset + 3] = (byte) (value >>> 32);\n target[offset + 4] = (byte) (value >>> 24);\n target[offset + 5] = (byte) (value >>> 16);\n target[offset + 6] = (byte) (value >>> 8);\n target[offset + 7] = (byte) value;\n return Long.BYTES;\n }", "public static byte[] getBytes(int value) {\r\n\t\treturn ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putInt(value).array();\r\n\t}", "private long convertByteValueToLong(byte[] b) {\n long m = 0;\n for (int i = 0; i < b.length; i++) {\n m = m * 256 + (b[i] < 0 ? (256 + (long) b[i]) : b[i]);\n }\n return m;\n }", "private static BIG byte_to_BIG(byte [] array){\n BIG result = new BIG();\n long[] long_ = new long[4];\n for(int i=long_.length; i > 0;i--){\n long_[i-1] =\n ((array[i*7-3] & 0xFFL) << 48) |\n ((array[i*7-2] & 0xFFL) << 40) |\n ((array[i*7-1] & 0xFFL) << 32) |\n ((array[i*7] & 0xFFL) << 24) | \n ((array[i*7+1] & 0xFFL) << 16) | \n ((array[i*7+2] & 0xFFL) << 8) | \n ((array[i*7+3] & 0xFFL) << 0) ; \n }\n int int_ = \n (int) (((array[0] & 0xFFL) << 24) |\n\t\t ((array[1] & 0xFFL) << 16) |\n\t\t ((array[2] & 0xFFL) << 8) |\n\t\t ((array[3] & 0xFFL) << 0)) ;\n \n long[] temp = {long_[3],long_[2],long_[1],long_[0],int_};\n\n result = new BIG(temp);\n return result;\n }", "public static byte[] convertInt8(int v)\r\n {\r\n byte[] bytes = new byte[1];\r\n bytes[0] = (byte) v;\r\n return bytes;\r\n }", "static byte[] toBEBytes(int i) {\n\t\treturn ByteBuffer.allocate(4).order(ByteOrder.BIG_ENDIAN).putInt(i).array();\n\t}", "public static LongBuffer createLongBuffer(int longs) {\n SimpleLogger.d(BufferUtils.class, \"Creating long buffer with int size: \" + longs);\n return ByteBuffer.allocateDirect(longs * 8).order(ByteOrder.nativeOrder()).asLongBuffer();\n\n }", "public long[] read();", "public native byte[] __byteArrayMethod( long __swiftObject, byte[] arg );", "void writeLong(long value);", "private static byte[] intArray2ByteArray (int[] src)\n\t{\n\t\tbyte[] dst = new byte [src.length];\n\t\tfor (int i = 0; i < src.length; ++ i)\n\t\t\tdst[i] = (byte) src[i];\n\t\treturn dst;\n\t}", "public void printLongBinary(long l) {\n\t}", "public static long asn1Value_ByteArrayToLong(byte[] asn1LongValue) throws ValueNullException, ValueTooBigException {\n\t\t//check if the array is null\n\t\tif(asn1LongValue == null) {\n\t\t\tthrow new ValueNullException(\"The input is null, not an encoded long\");\n\t\t}\n\t\t//check if the value 0 has been encoded\n\t\tif((asn1LongValue[0] == 0) && (asn1LongValue.length == 1) ) {\n\t\t\treturn 0L;\n\t\t}\n\t\t//check if the value is too long to be converted to a long\n\t\tif((asn1LongValue.length>8)) {\n\t\t\tthrow new ValueTooBigException(\"Java long can only hold 64 bits or 8 octets. The passed value is bigger than that\");\n\t\t}\n\t\t\n\t\tBigInteger tmpLong = new BigInteger(asn1LongValue);\n\t\treturn tmpLong.longValue();\n\t}", "public static long toInt64(byte[] value, int startIndex) {\r\n\t\treturn ByteBuffer.wrap(value, startIndex, 8).order(ByteOrder.LITTLE_ENDIAN).getLong();\r\n\t}", "public abstract void read_long_array(int[] value, int offset, int\nlength);", "public byte[] convertIntToByte(int[] intArr) throws IOException {\r\n byte[] byteArr = new byte[intArr.length];\r\n for(int i = 0; i < intArr.length; i++) {\r\n Integer tempInt = intArr[i];\r\n byte tempByte = tempInt.byteValue();\r\n byteArr[i] = tempByte;\r\n }\r\n return byteArr;\r\n }", "public static byte[] b(int... array) {\n if (array == null) {\n return null;\n }\n byte[] ret = new byte[array.length];\n for (int i = 0; i < ret.length; i++) {\n ret[i] = (byte) array[i];\n }\n return ret;\n }", "public abstract void read_ulonglong_array(long[] value, int offset, int\nlength);", "public static LongArrayBitVector wrap( final long[] array ) {\n\t\treturn wrap( array, (long)array.length * Long.SIZE );\n\t}", "public long[] toLongArray()\r\n {\r\n long[] a = new long[count];\r\n \r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<=count-1;i++)\r\n {\r\n a[i] = (Long) vi.getObject();\r\n vi = vi.getNext();\r\n }\r\n\r\n return a; \r\n }", "public static byte[] convertIntegersToBytes(int[] nums) {\n if (nums != null) {\n byte[] outputBytes = new byte[nums.length * 4];\n for(int i = 0, k = 0; i < nums.length; i++) {\n int integerTemp = nums[i];\n for(int j = 0; j < 4; j++, k++) {\n outputBytes[k] = (byte)((integerTemp >> (8 * j)) & 0xFF);\n }\n }\n return outputBytes;\n } else {\n return null;\n }\n }", "public static BigInteger[] byteToArrayBigInteger(byte[] a) {\n byte lenByte[] = new byte[INT_LENGTH_IN_BYTES];\n System.arraycopy(a, 0, lenByte, 0, INT_LENGTH_IN_BYTES);\n int len = byteToInt(lenByte);\n BigInteger[] res = new BigInteger[len];\n int offset = INT_LENGTH_IN_BYTES;\n\n for(int i = 0; i < len; i++) {\n byte[] lenBigIntegerByte = new byte[INT_LENGTH_IN_BYTES];\n System.arraycopy(a, offset, lenBigIntegerByte, 0, INT_LENGTH_IN_BYTES);\n int lenBigInteger = byteToInt(lenBigIntegerByte);\n byte[] bigInteger = new byte[lenBigInteger];\n System.arraycopy(a, offset+INT_LENGTH_IN_BYTES, bigInteger, 0, lenBigInteger);\n\n res[i] = new BigInteger(bigInteger);\n\n offset += INT_LENGTH_IN_BYTES + lenBigInteger;\n }\n\n return res;\n }", "public static byte[] intToFourBytes(int val) {\n if (val < 0) throw new IllegalArgumentException(\"Value may not be signed.\");\n byte[] bytes = new byte[4];\n\n for (int i = 3; i >= 0; --i) {\n // unpack a byte\n byte b = (byte)(val & 0xff);\n // shift by 8 bits\n val >>= 8;\n // store the unpacked byte, moving from LSB to MSB (so the MSB ends up in bytes[0])\n bytes[i] = b;\n }\n\n return bytes;\n }", "com.google.protobuf.ByteString\n getLongTokenBytes();", "com.google.protobuf.ByteString\n getLongTokenBytes();", "public static Bytes bytes(final long bytes)\n\t{\n\t\treturn new Bytes(bytes);\n\t}", "void writeLong(long v) throws IOException;", "public static byte[] toByteArray(long macAddress) {\n return MACAddress.valueOf(macAddress).toBytes();\n }", "public static byte[] intToBinary(int value)\n {\n String tmp = Integer.toBinaryString(value);\n int len = tmp.length();\n int change = 8 - (len % 8);\n\n if(change != 0) len += change;\n\n byte[] res = new byte[len];\n for(int i = 0; i < len; i++) {\n if(i < change){\n // Tag on leading zeroes if needed\n res[i] = 0x00;\n }else{\n char c = tmp.charAt(i - change);\n res[i] = (byte) (c == '0' ? 0x00 : 0x01);\n }\n }\n\n return res;\n }", "public long b2l(byte[] b, int offset) {\n return (b[offset + 7] & 0xFF)\n | ((b[offset + 6] & 0xFF) << 8)\n | ((b[offset + 5] & 0xFF) << 16)\n | ((b[offset + 4] & 0xFF) << 24)\n | ((b[offset + 3] & 0xFF) << 32)\n | ((b[offset + 2] & 0xFF) << 40)\n | ((b[offset + 1] & 0xFF) << 48)\n | ((b[offset] & 0xFF) << 56);\n }", "public long[] getAsLongs() {\n return (long[])data;\n }", "public byte[] toByteArray() {\n/* 510 */ ByteBuffer buff = ByteBuffer.allocate(40).order(ByteOrder.LITTLE_ENDIAN);\n/* 511 */ writeTo(buff);\n/* 512 */ return buff.array();\n/* */ }", "private final long get_BIGINT(int column) {\n // @AGG force Little Endian\n if (metadata.isZos())\n return dataBuffer_.getLong(columnDataPosition_[column - 1]);\n else\n return dataBuffer_.getLongLE(columnDataPosition_[column - 1]);\n// return SignedBinary.getLong(dataBuffer_,\n// columnDataPosition_[column - 1]);\n }", "public static String toBinaryString(long addr, boolean LP64) {\n\tif (LP64)\n\t return Long.toBinaryString(addr);\n\telse\n\t return Integer.toBinaryString((int) addr); \n }", "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 static byte [] toBytes(final double d) {\n // Encode it as a long\n return Bytes.toBytes(Double.doubleToRawLongBits(d));\n }", "private long byteToLong(byte b)\n\t{\n\t\treturn (b & 0xFF);\n\t}", "public static long consecutiveBytesAsLong(byte... bytes) {\r\n\t\tlong result = 0;\r\n\t\tfor(int i=0; i<bytes.length; i++) {\r\n\t\t\tint shiftFactor = 8 * (bytes.length - (i + 1));\r\n\t\t\tresult += bytes[i] << shiftFactor;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "private byte[] bit_conversion(int i) {\n // originally integers (ints) cast into bytes\n // byte byte7 = (byte)((i & 0xFF00000000000000L) >>> 56);\n // byte byte6 = (byte)((i & 0x00FF000000000000L) >>> 48);\n // byte byte5 = (byte)((i & 0x0000FF0000000000L) >>> 40);\n // byte byte4 = (byte)((i & 0x000000FF00000000L) >>> 32);\n\n // only using 4 bytes\n byte byte3 = (byte) ((i & 0xFF000000) >>> 24); // 0\n byte byte2 = (byte) ((i & 0x00FF0000) >>> 16); // 0\n byte byte1 = (byte) ((i & 0x0000FF00) >>> 8); // 0\n byte byte0 = (byte) ((i & 0x000000FF));\n // {0,0,0,byte0} is equivalent, since all shifts >=8 will be 0\n return (new byte[] { byte3, byte2, byte1, byte0 });\n }", "public long toLong() {\n return this.toLongArray()[0];\n }", "private byte[] intToBits(int number, int n) {\n\t\tbyte[] bits = new byte[n];\n\t\t\n\t\tString bitString = Integer.toBinaryString(number);\n\t\twhile (bitString.length() < n) {\n\t\t\tbitString = \"0\" + bitString;\n\t\t}\n\t\t\n\t\tfor(int i = 0, maxLen = bits.length; i < maxLen; i++) {\n\t\t\tbits[i] = (byte) (bitString.charAt(i) == 1 ? 1 : 0);\n\t\t}\n\t\t\n\t\treturn bits;\n\t}", "static byte[] encode(BigInteger n) {\n\t\tbyte[] encodedN;\n\t\tif (n.signum() == 0) {\n\t\t\t// If n is zero, return an zero-length byte array\n\t\t\tencodedN = new byte[0];\n\t\t} else {\n\t\t\t// No need to reverse as C# original does at this point, as Java is always Big Endian.\n\t\t\tbyte[] nAsByteArray = n.toByteArray();\n\t\t\tint firstNonZeroIndex = 0;\n\t\t\twhile ((nAsByteArray[firstNonZeroIndex] == 0) && (firstNonZeroIndex < nAsByteArray.length)) {\n\t\t\t\tfirstNonZeroIndex++;\n\t\t\t}\n\t\t\t// Finally copy the non-zero bytes in to a new array\n\t\t\tencodedN = new byte[nAsByteArray.length - firstNonZeroIndex];\n\t\t\tSystem.arraycopy(nAsByteArray, firstNonZeroIndex, encodedN, 0, nAsByteArray.length - firstNonZeroIndex);\n\t\t}\n\n\t\treturn encodedN;\n\t}", "public ByteBuf writeLongLE(long value)\r\n/* 877: */ {\r\n/* 878:886 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 879:887 */ return super.writeLongLE(value);\r\n/* 880: */ }", "public ByteBuf writeLong(long value)\r\n/* 557: */ {\r\n/* 558:568 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 559:569 */ return super.writeLong(value);\r\n/* 560: */ }" ]
[ "0.8085281", "0.78264666", "0.77294445", "0.7700713", "0.7423659", "0.7374437", "0.7339649", "0.72341275", "0.72064936", "0.7119535", "0.68993396", "0.68569374", "0.66885835", "0.6672539", "0.6598407", "0.65580523", "0.64981323", "0.64743465", "0.62605476", "0.62140614", "0.6166254", "0.61541235", "0.6131684", "0.6109597", "0.6079344", "0.6069605", "0.60326123", "0.5998089", "0.59977615", "0.5996666", "0.59915584", "0.5939485", "0.5933458", "0.5916764", "0.5864917", "0.586113", "0.5841705", "0.5837064", "0.5826057", "0.581866", "0.57980657", "0.57673657", "0.57653165", "0.57641244", "0.57623225", "0.57389635", "0.56972265", "0.56970435", "0.56951696", "0.5693845", "0.56697357", "0.56675804", "0.563494", "0.5623955", "0.561432", "0.5587391", "0.5583764", "0.5579303", "0.5575357", "0.55693924", "0.5532139", "0.55230534", "0.55208325", "0.550955", "0.5507503", "0.54986656", "0.5490013", "0.54858387", "0.54816395", "0.5477218", "0.5463591", "0.54476035", "0.54333895", "0.54153275", "0.5399172", "0.5356268", "0.53546184", "0.5350621", "0.5319037", "0.5315773", "0.5315773", "0.53126144", "0.5297843", "0.52918476", "0.52839285", "0.5281762", "0.5270138", "0.5261197", "0.5243635", "0.524339", "0.5232623", "0.5225061", "0.52017903", "0.5192334", "0.5185117", "0.51819164", "0.51809454", "0.5145306", "0.51132107", "0.5111712" ]
0.7223292
8
A CipherAlgorithm is an algorithm used for encryption and decryption. An example would be RSA, or a symmetric encryption algorithm. An example of a KeyAlgorithm that is not a CipherAlgorithm would be DSA it only signs and verifies.
public interface CipherAlgorithm< Self extends CipherAlgorithm<Self> > extends CryptoAlgorithm { String name(); Cipher<Self> defaultCipherAlgorithm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Cryptor(int algorithm, int xcryptMode) {\n //Checks if the algorithm supplied is valid\n ALGORITHM = algorithm;\n MODE = xcryptMode;\n if (algorithm != DES_ALGORITHM && algorithm != T3DES_ALGORITHM & algorithm != AUTO_DETECT_ALGORITHM) {\n throw new RuntimeException(\"Invalid Algorithm Mode Supplied\");\n }\n if (xcryptMode != ENCRYPT_MODE && xcryptMode != DECRYPT_MODE) {\n throw new RuntimeException(\"Invalid Cipher Mode Supplied\");\n }\n\n }", "private Cipher createCipher() throws NoSuchAlgorithmException, NoSuchProviderException, NoSuchPaddingException {\n\t\tif (algorithmProvider != null && !(algorithmProvider.equals(\"\")) && algorithm != null && !(algorithm.equals(\"\"))) {\n\t\t\t/* if there is an entered algorithm and its provider, \n\t\t\t * return the Cipher's instance of it\n\t\t\t */\n\t\t\treturn Cipher.getInstance(algorithm, algorithmProvider);\n\t\t} else if (algorithm != null && !(algorithm.equals(\"\"))) {\n\t\t\t/* if there is only algorithm entered,\n\t\t\t * return the Cipher's instance of it using default provider\n\t\t\t */\n\t\t\treturn Cipher.getInstance(algorithm);\n\t\t} else {\n\t\t\t/* if there is isn't an algorithm entered,\n\t\t\t * return an AES in CBC mode Cipher as default\n\t\t\t */\n\t\t\treturn Cipher.getInstance(\"AES//CBC//PKCS5Padding\");\n\t\t}\n\t}", "public String getAlgorithm() {\r\n return algorithm;\r\n }", "public void setAlgorithm(String algorithm) {\n\t\tthis.algorithm = algorithm;\n\t}", "public interface ICryptoEngine \n{\n\t/**\n\t * Initialize the \n\t * \n\t * @param forEncryption should the engine be initialized for encryption (true) or decryption (false)\n\t * @param key - symmetric encryption key\n\t * \n\t * @throws IllegalStateException - if any initialization parameters are invalid\n\t */\n\tpublic void init(boolean forEncryption, byte[] key) throws IllegalStateException;\n\t\n\t/**\n\t * @return name of the encryption algorithm\n\t */\n\tpublic String getAlgorithmName();\n\t\n\t/**\n\t * @return block size of the encryption algorithm\n\t */\n\tpublic int getBlockSize();\n\t\n\t/**\n\t * Performs an encryption or decryption of a block.\n\t * The amount of processed data depends on the actual algorithm's block size \n\t * \n\t * @param in - buffer with the data to be processed\n\t * @param inOff - starting position of the data at 'in'\n\t * @param out - preallocated buffer to store the processed data\n\t * @param outOff - starting position at 'out'\n\t * \n\t * @return size of processed data (typically algorithm's block size)\n\t * \n\t * @throws IllegalStateException if engine was not initialized or buffers are invalid\n\t */\n\tpublic int processBlock(byte[] in, int inOff, byte[] out, int outOff) throws IllegalStateException;\n\t\n\t/**\n\t * Resets the encryption engine (if required by the implementation)\n\t */\n\tpublic void reset();\n}", "@Override\n public String getAlgorithm()\n {\n return algorithm;\n }", "public interface ICrypto\n{\n\t/**\n\t *\n\t * @return\ttrue for Public/Private key and false for password style encryption\n\t */\n\tboolean isPublic();\n\n\t/**\n\t * @param clearText\t\tClear text\n\t * @return\t\t\t\tStringized (BasicBase64) version of the cipher for the clear text\n\t */\n\tString encrypt(String clearText);\n\n\t/**\n\t * @param cipherText\tClear text\n\t * @return\t\t\t\tClear text from the stringized (BasicBase64) version of the cipherTetxt\n\t */\n\tString decrypt(String cipherText);\n\n\t/**\n\t * @return\tThe cryptography algorithm\n\t */\n\tString getAlgorithm();\n\n\t/**\n\t *\n\t * @return\tThe name by which this combination algorithm/key are known.\n\t */\n\tString getAliasName();\n}", "public String getEncryptionAlgOID()\n {\n return encryptionAlgorithm.getAlgorithm().getId();\n }", "public void setAlgorithm(String algorithm) {\n _algorithm = algorithm;\n }", "public String getAlgorithm() {\n return _algorithm;\n }", "public void setAlgorithm(Algorithm alg) {\n this.algorithm=alg;\n }", "public interface EncryptionAlgorithm {\n\n public String encrypt(String plaintext);\n\n}", "public interface Cipher {\n\n /*\n return key of the cipher\n */\n int getKey();\n\n /*\n set key of the cipher\n */\n void setKey(int key);\n\n /*\n cipher text/char based on the key\n */\n char cipher(int charToCipher);\n\n /*\n decipher text/char based on the key\n */\n char decipher(int charToDeCipher);\n}", "protected boolean isKeyTransportAlgorithm(@Nonnull final String algorithm) {\n \n return AlgorithmSupport.isKeyEncryptionAlgorithm(getAlgorithmRegistry().get(algorithm));\n }", "protected boolean isKeyTransportAlgorithm(@Nonnull final String algorithm) {\n \n return AlgorithmSupport.isKeyEncryptionAlgorithm(getAlgorithmRegistry().get(algorithm));\n }", "public String getJCEAlgorithmString() {\n/* 187 */ return this.signatureAlgorithm.engineGetJCEAlgorithmString();\n/* */ }", "public static CipherAlgorithm getCipherAlgorithm(UUID cipherUuid) {\n for (CipherAlgorithm ca : values()) {\n if (ca.getCipherUuid().equals(cipherUuid)) {\n return ca;\n }\n }\n throw new IllegalArgumentException(\"Unknown Cipher UUID\");\n }", "void setCryptAlgorithmType(org.openxmlformats.schemas.presentationml.x2006.main.STAlgType.Enum cryptAlgorithmType);", "AlgorithmIdentifier getAlgorithmIdentifier();", "public int getAlgorithm()\n {\n return publicPk.getAlgorithm();\n }", "public EncryptionAlgorithms()\n\t{\n\t\tkexAlgs = new LinkedList<KexAlgs>();\n\t\tcipherAlgs = new LinkedList<Ciphers>();\n\t\thmacAlgs = new LinkedList<Hmacs>();\n\t\tcompAlgs = new LinkedList<CompAlgs>();\n\t}", "public Cipher()\n {\n CodecInterface base64UriCodec = new Base64UriCodec();\n AsymmetricBlockCipher rsaCipher = new OAEPEncoding(\n new RSAEngine(),\n new SHA1Digest()\n );\n BufferedBlockCipher aesCipher = new PaddedBufferedBlockCipher(\n new CBCBlockCipher(new AESEngine()),\n new PKCS7Padding()\n );\n Digest sha1Digest = new SHA1Digest();\n SecureRandom random = new SecureRandom();\n\n this.encryptionCipher = new EncryptionCipher(\n base64UriCodec,\n rsaCipher,\n aesCipher,\n sha1Digest,\n random\n );\n this.decryptionCipher = new DecryptionCipher(\n base64UriCodec,\n rsaCipher,\n aesCipher,\n sha1Digest\n );\n }", "public AEADBlockCipherSpec(final String algName, final String cipherMode)\n {\n this.algorithm = algName;\n this.mode = cipherMode;\n }", "void setCryptAlgorithmClass(org.openxmlformats.schemas.presentationml.x2006.main.STAlgClass.Enum cryptAlgorithmClass);", "public interface EncryptionMethod {\n /**\n * Returns the algorithm applied to the cipher data.\n *\n * @return the encryption algorithm.\n */\n String getAlgorithm();\n\n /**\n * Returns the key size of the key of the algorithm applied to the cipher\n * data.\n *\n * @return the key size.\n */\n int getKeySize();\n\n /**\n * Sets the size of the key of the algorithm applied to the cipher data.\n *\n * @param size the key size.\n */\n void setKeySize(int size);\n\n /**\n * Returns the OAEP parameters of the algorithm applied applied to the\n * cipher data.\n *\n * @return the OAEP parameters.\n */\n byte[] getOAEPparams();\n\n /**\n * Sets the OAEP parameters.\n *\n * @param parameters the OAEP parameters.\n */\n void setOAEPparams(byte[] parameters);\n\n /**\n * Set the Digest Algorithm to use\n * @param digestAlgorithm the Digest Algorithm to use\n */\n void setDigestAlgorithm(String digestAlgorithm);\n\n /**\n * Get the Digest Algorithm to use\n * @return the Digest Algorithm to use\n */\n String getDigestAlgorithm();\n\n /**\n * Set the MGF Algorithm to use\n * @param mgfAlgorithm the MGF Algorithm to use\n */\n void setMGFAlgorithm(String mgfAlgorithm);\n\n /**\n * Get the MGF Algorithm to use\n * @return the MGF Algorithm to use\n */\n String getMGFAlgorithm();\n\n /**\n * Returns an iterator over all the additional elements contained in the\n * <code>EncryptionMethod</code>.\n *\n * @return an <code>Iterator</code> over all the additional information\n * about the <code>EncryptionMethod</code>.\n */\n Iterator<Element> getEncryptionMethodInformation();\n\n /**\n * Adds encryption method information.\n *\n * @param information additional encryption method information.\n */\n void addEncryptionMethodInformation(Element information);\n\n /**\n * Removes encryption method information.\n *\n * @param information the information to remove from the\n * <code>EncryptionMethod</code>.\n */\n void removeEncryptionMethodInformation(Element information);\n}", "String getAlgorithm();", "@org.junit.Test\n public void testCipher() {\n Assert.assertEquals(\"DITISGEHEIM\", Vigenere.cipher(\"DITISGEHEIM\", \"A\", true));\n Assert.assertEquals(\"DITISGEHEIM\", Vigenere.cipher(\"DITISGEHEIM\", \"A\", false));\n\n Assert.assertEquals(\"B\", Vigenere.cipher(\"A\", \"B\", true));\n Assert.assertEquals(\"A\", Vigenere.cipher(\"B\", \"B\", false));\n\n String plain = \"DUCOFIJMA\";\n String key = \"ABC\";\n String shouldEncryptTo = \"DVEOGKJNC\";\n String actualEncrypted = Vigenere.cipher(plain, key, true);\n Assert.assertEquals(shouldEncryptTo, actualEncrypted);\n String decrypted = Vigenere.cipher(shouldEncryptTo, key, false);\n Assert.assertEquals(plain, decrypted);\n }", "public String getAlg() {\r\n\t\treturn alg;\r\n\t}", "public void appendCipher(Ciphers alg)\n\t{\n\t\tappendAlgorithm(cipherAlgs, alg);\n\t}", "public String getAlgorithmName() {\n\t}", "public final java.lang.String getAlgorithm() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.security.AlgorithmParameterGenerator.getAlgorithm():java.lang.String, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.AlgorithmParameterGenerator.getAlgorithm():java.lang.String\");\n }", "org.openxmlformats.schemas.presentationml.x2006.main.STAlgType.Enum getCryptAlgorithmType();", "public static String getKeyAlgorithm(final PublicKey publickey) {\n\t\tString keyAlg = null;\n\t\tif ( publickey instanceof RSAPublicKey ) {\n\t\t\tkeyAlg = AlgorithmConstants.KEYALGORITHM_RSA;\n\t\t} else if ( publickey instanceof DSAPublicKey ) {\n\t\t\tkeyAlg = AlgorithmConstants.KEYALGORITHM_DSA;\n\t\t} else if ( publickey instanceof ECPublicKey ) {\n\t\t\tkeyAlg = AlgorithmConstants.KEYALGORITHM_ECDSA;\n\t\t}\n\t\treturn keyAlg;\n\t}", "public com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier getHashAlgorithm() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.getHashAlgorithm():com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.getHashAlgorithm():com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier\");\n }", "Algorithm createAlgorithm();", "org.openxmlformats.schemas.presentationml.x2006.main.STAlgType xgetCryptAlgorithmType();", "org.openxmlformats.schemas.presentationml.x2006.main.STAlgClass xgetCryptAlgorithmClass();", "protected boolean isDataEncryptionAlgorithm(final String algorithm) {\n \n return AlgorithmSupport.isDataEncryptionAlgorithm(getAlgorithmRegistry().get(algorithm));\n }", "protected boolean isDataEncryptionAlgorithm(final String algorithm) {\n \n return AlgorithmSupport.isDataEncryptionAlgorithm(getAlgorithmRegistry().get(algorithm));\n }", "public Cipher generateCipher() throws NoSuchAlgorithmException,\n\t\t\tNoSuchPaddingException, NoSuchProviderException {\n\t\tCipher cipher = Cipher.getInstance(\"AES/GCM/NoPadding\", \"BC\");\n\t\treturn cipher;\n\t}", "private void providerCheckAESCrypto() throws NoAlgorithmAvailableException {\n final LinkedList<String> algorithms = super.providerCheck();\n if (algorithms.contains(\"PBKDF2WithHmacSHA256\")) {\n PBE_ALGORITHM = \"PBKDF2WithHmacSHA256\";\n } else if (algorithms.contains(\"PBKDF2WithHmacSHA1\")) {\n PBE_ALGORITHM = \"PBKDF2WithHmacSHA1\";\n } else {\n throw new NoAlgorithmAvailableException(NO_ALG_MSG);\n }\n }", "public Cipher getCipherAES() throws NoSuchPaddingException, NoSuchAlgorithmException {\n return Cipher.getInstance(\"AES_256/ECB/PKCS5Padding\");\n }", "public Cipher(\n EncryptionCipherInterface encryptionCipher,\n DecryptionCipherInterface decryptionCipher\n ) {\n this.encryptionCipher = encryptionCipher;\n this.decryptionCipher = decryptionCipher;\n }", "public static String getKeyAlgorithmFromSigAlg(final String signatureAlgorithm) {\n\t\tfinal String ret;\n\t\tif ( signatureAlgorithm.contains(\"ECDSA\") ) {\n\t\t\tret = AlgorithmConstants.KEYALGORITHM_ECDSA;\n\t\t} else if ( signatureAlgorithm.contains(\"DSA\") ) {\n\t\t\tret = AlgorithmConstants.KEYALGORITHM_DSA;\n\t\t} else {\n\t\t\tret = AlgorithmConstants.KEYALGORITHM_RSA;\t\t\t\n\t\t}\n\t\treturn ret;\n\t}", "public String rotationCipherCrack(String cipher, String alphabet);", "@Test\n public void determine_what_provider_JRE_selected_for_our_Cipher() throws Exception {\n Cipher cipher = Cipher.getInstance(\"Blowfish/ECB/NoPadding\");\n System.out.println(cipher.getProvider());\n /**\n * Or we can create our Cipher asking the JRE to get a specific implementation\n * of an algorithim from a given provider, e.g. BC\n */\n Cipher bc = Cipher.getInstance(\"Blowfish/ECB/NoPadding\", \"BC\"); //or\n // Cipher bc = Cipher.getInstance(\"Blowfish/ECB/NoPadding\", Security.getProvider(\"BC\")); //or\n System.out.println(bc.getProvider());\n }", "public boolean isEncryptionKey()\n {\n int algorithm = publicPk.getAlgorithm();\n\n return ((algorithm == RSA_GENERAL) || (algorithm == RSA_ENCRYPT)\n || (algorithm == ELGAMAL_ENCRYPT) || (algorithm == ELGAMAL_GENERAL));\n }", "org.openxmlformats.schemas.presentationml.x2006.main.STAlgClass.Enum getCryptAlgorithmClass();", "public int\ngetAlgorithm() {\n\treturn alg;\n}", "public static boolean isSupportedAlgorithm(String alignmentAlgorithm) {\n\t\treturn BIOJAVA_ALGORITHMS.contains(alignmentAlgorithm);\n\t}", "public ImplicitCertificateGenerator(SignatureAlgorithms algorithm, byte[] parameters)\n throws IllegalArgumentException, UnsupportedOperationException, NoSuchAlgorithmException,\n NoSuchProviderException {\n if (algorithm == null) {\n throw new IllegalArgumentException(\"Missing algorithm OID\");\n } else if (!algorithm.isEcqv()) {\n throw new UnsupportedOperationException(\n \"This provider can only be used with ECQV-based signature types\");\n }\n\n X962Parameters x9params = new X962Parameters(new ASN1ObjectIdentifier(algorithm.getSecOid()));\n\n digest = MessageDigest.getInstance(\n algorithm.getDigestAlgorithm().getDigestName(), BouncyCastleProvider.PROVIDER_NAME);\n curveParameters =\n ECNamedCurveTable.getParameterSpec(algorithm.getCryptoAlgorithm().getAlgorithmName());\n algorithmId =\n new AlgorithmIdentifier(X9ObjectIdentifiers.id_ecPublicKey, x9params.toASN1Primitive());\n }", "public Blob\n encrypt(Blob plainData, EncryptAlgorithmType algorithmType)\n throws InvalidKeySpecException, NoSuchAlgorithmException,\n NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException,\n BadPaddingException\n {\n return encrypt(plainData.getImmutableArray(), algorithmType);\n }", "public void setAlnAlgorithm(boolean alnAlgorithm) {\n\t\tthis.alnAlgorithm = alnAlgorithm;\n\n\t\tif (alnAlgorithm) {\n\t\t\tthis.setMemAlgorithm(false);\n\t\t\tthis.setBwaswAlgorithm(false);\n\t\t}\n\t}", "public CaesarCipherOne(int key) {this.key=key;}", "public void CreateCipher() {\n String key = \"IWantToPassTAP12\"; // 128 bit key\n aesKey = new javax.crypto.spec.SecretKeySpec(key.getBytes(), \"AES\");\n try {\n this.cipher = Cipher.getInstance(\"AES\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public final void setAlgorithmName(String algorithmName)\r\n {\r\n _algorithmName = algorithmName;\r\n setField(ALGORITHM, new SimpleString(algorithmName));\r\n }", "public boolean isAlnAlgorithm() {\n\t\treturn alnAlgorithm;\n\t}", "public com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier getPSourceAlgorithm() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.getPSourceAlgorithm():com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.getPSourceAlgorithm():com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier\");\n }", "public static String getEncSigAlgFromSigAlg(final String signatureAlgorithm) {\n\t\tString encSigAlg = signatureAlgorithm;\n\t\tif ( signatureAlgorithm.equals(AlgorithmConstants.SIGALG_SHA256_WITH_ECDSA) ) {\n\t\t\tencSigAlg = AlgorithmConstants.SIGALG_SHA256_WITH_RSA;\n\t\t} else if ( signatureAlgorithm.equals(AlgorithmConstants.SIGALG_SHA224_WITH_ECDSA) ) {\n\t\t\tencSigAlg = AlgorithmConstants.SIGALG_SHA256_WITH_RSA;\n\t\t} else if ( signatureAlgorithm.equals(AlgorithmConstants.SIGALG_SHA1_WITH_ECDSA) ) {\n\t\t\tencSigAlg = AlgorithmConstants.SIGALG_SHA1_WITH_RSA;\n\t\t} else if( signatureAlgorithm.equals(AlgorithmConstants.SIGALG_SHA1_WITH_DSA) ) {\n\t\t\tencSigAlg = AlgorithmConstants.SIGALG_SHA1_WITH_RSA;\n\t\t}\n\t\treturn encSigAlg;\n\t}", "public Algorithm getAlgorithm(String type)\n\t{\n\t\tif(type.equalsIgnoreCase(\"PCC\"))\n\t\t\treturn new AlgorithmPCC();\n\t\telse if(type.equalsIgnoreCase(\"Cosine\"))\n\t\t\treturn new AlgorithmCosine();\n\t\telse if(type.equalsIgnoreCase(\"DotProduct\"))\n\t\t\treturn new AlgorithmDotProduct();\n\t\t\n\t\telse \n\t\t\treturn null;\n\t}", "default Cipher cipher() {\n return null;\n }", "String getHashAlgorithm();", "public boolean isSetAlgorithm() {\n return this.algorithm != null;\n }", "public Blob\n encrypt(byte[] plainData, EncryptAlgorithmType algorithmType)\n throws InvalidKeySpecException, NoSuchAlgorithmException,\n NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException,\n BadPaddingException\n {\n java.security.PublicKey publicKey = keyFactory_.generatePublic\n (new X509EncodedKeySpec(keyDer_.getImmutableArray()));\n\n String transformation;\n if (algorithmType == EncryptAlgorithmType.RsaPkcs) {\n if (keyType_ != KeyType.RSA)\n throw new Error(\"The key type must be RSA\");\n\n transformation = \"RSA/ECB/PKCS1Padding\";\n }\n else if (algorithmType == EncryptAlgorithmType.RsaOaep) {\n if (keyType_ != KeyType.RSA)\n throw new Error(\"The key type must be RSA\");\n\n transformation = \"RSA/ECB/OAEPWithSHA-1AndMGF1Padding\";\n }\n else\n throw new Error(\"unsupported padding scheme\");\n\n Cipher cipher = Cipher.getInstance(transformation);\n cipher.init(Cipher.ENCRYPT_MODE, publicKey);\n return new Blob(cipher.doFinal(plainData), false);\n }", "private static Map<CryptoAlgorithm, String> createExactCipherMapping() {\n HashMap<CryptoAlgorithm, String> map = new HashMap<>();\n map.put(CryptoAlgorithm.AES_CBC, \"AES/CBC/PKCS5PADDING\");\n return Collections.unmodifiableMap(map);\n }", "public static Cipher getCypher(int mode) throws NoSuchAlgorithmException, NoSuchPaddingException,\r\n InvalidKeyException {\n Key aesKey = new SecretKeySpec(ENC_KEY.getBytes(), \"AES\");\r\n Cipher cipher = Cipher.getInstance(\"AES\");\r\n // encrypt the text\r\n cipher.init(mode, aesKey);\r\n return cipher;\r\n }", "private static byte[] genKey(String algorithm, int keySize) throws NoSuchAlgorithmException {\n KeyGenerator keyGenerator = KeyGenerator.getInstance(algorithm);\n\n keyGenerator.init(keySize);\n\n SecretKey secretKey = keyGenerator.generateKey();\n\n return secretKey.getEncoded();\n }", "public EncryptionCipherInterface encryptionCipher()\n {\n return this.encryptionCipher;\n }", "public CipherDMAP(String algorithm, Key key) throws DMAPException{\n this.key = key;\n encryption = SecurityHelper.generateCipher(algorithm, Cipher.ENCRYPT_MODE, key);\n decryption = SecurityHelper.generateCipher(algorithm, Cipher.DECRYPT_MODE, key);\n }", "public void deleteAlgorithm(){\r\n \ttry {\r\n\t\t\tConnectionFactory.createConnection().deleteAlgorithm(this.getSelectedAlgorithmID());\r\n\t\t\tinitAlgorithmList(-1);\r\n\r\n\t\t} catch (DataStorageException e) {\r\n\t\t\tthis.getLog().error(e.getMessage());\r\n\t\t}\r\n }", "private static Cipher getCipher(int mode, String key) {\n\t\tCipher mCipher;\r\n\t\tbyte[] keyPtr = new byte[KEYSIZEAES128];\r\n\t\tIvParameterSpec ivParam = new IvParameterSpec(keyPtr);\r\n\t\tbyte[] passPtr = key.getBytes();\r\n\t\ttry {\r\n\t\t\tmCipher = Cipher.getInstance(TYPE + \"/CBC/PKCS5Padding\");\r\n\t\t\tfor (int i = 0; i < KEYSIZEAES128; i++) {\r\n\t\t\t\tif (i < passPtr.length)\r\n\t\t\t\t\tkeyPtr[i] = passPtr[i];\r\n\t\t\t\telse\r\n\t\t\t\t\tkeyPtr[i] = 0;\r\n\t\t\t}\r\n\t\t\tSecretKeySpec keySpec = new SecretKeySpec(keyPtr, TYPE);\r\n\t\t\tmCipher.init(mode, keySpec, ivParam);\r\n\t\t\treturn mCipher;\r\n\t\t} catch (InvalidKeyException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (NoSuchPaddingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (InvalidAlgorithmParameterException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public IAsymetricAlgorithm getAsymetricAlgorithm() throws DirectoryException\n\t{\n\t\treturn (IAsymetricAlgorithm) algorithm.getObject();\n\t}", "private static String sslContextAlgorithm(List<String> supportedProtocols) {\n if (supportedProtocols.isEmpty()) {\n throw new IllegalArgumentException(\"no SSL/TLS protocols have been configured\");\n }\n for (Entry<String, String> entry : ORDERED_PROTOCOL_ALGORITHM_MAP.entrySet()) {\n if (supportedProtocols.contains(entry.getKey())) {\n return entry.getValue();\n }\n }\n throw new IllegalArgumentException(\"no supported SSL/TLS protocol was found in the configured supported protocols: \"\n + supportedProtocols);\n }", "public String getDigestAlgOID()\n {\n return digestAlgorithm.getAlgorithm().getId();\n }", "String getDigestAlgorithm();", "public org.bouncycastle.crypto.BlockCipher getUnderlyingCipher() {\n\t}", "public static SecretKey passSecretKey(char[] password, byte[] salt,\r\n\t\t\tString algorithm) {\r\n\t\tPBEKeySpec mykeyspec = null;\r\n\t\tSecretKey key = null;\r\n\t\ttry {\r\n\t\t\tfinal int HASH_ITERATIONS = 10000;\r\n\t\t\tfinal int KEY_LENGTH = 256;\r\n\t\t\tmykeyspec = new PBEKeySpec(password, salt, HASH_ITERATIONS,\r\n\t\t\t\t\tKEY_LENGTH);\r\n\r\n\t\t\tSet<String> algor = Security.getAlgorithms(\"Cipher\");\r\n\t\t\tkey = SecretKeyFactory.getInstance((String) (algor.toArray())[0])\r\n\t\t\t\t\t.generateSecret(mykeyspec);\r\n\t\t} catch (NoSuchAlgorithmException ex) {\r\n\t\t\tLogger.getLogger(AES.class.getName()).log(Level.SEVERE, null, ex);\r\n\t\t} catch (InvalidKeySpecException ex) {\r\n\t\t\tLogger.getLogger(AES.class.getName()).log(Level.SEVERE, null, ex);\r\n\t\t}\r\n\t\treturn key;\r\n\t}", "public AlgorithmRunner(AbstractEvolutionaryAlgorithm<S> algorithm) {\n this.algorithm = algorithm;\n }", "public String algorithmName();", "@Override\n\tpublic void selectAlgorithm(String algorithmName) {\n\t\tproblem.setAlgorithm(algorithmName);\n\t}", "private static byte[] symmetricTemplate(final byte[] data,\n final byte[] key,\n final String algorithm,\n final String transformation,\n final byte[] iv,\n final boolean isEncrypt) {\n if (data == null || data.length == 0 || key == null || key.length == 0) return null;\n try {\n SecretKey secretKey;\n if (\"DES\".equals(algorithm)) {\n DESKeySpec desKey = new DESKeySpec(key);\n SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(algorithm);\n secretKey = keyFactory.generateSecret(desKey);\n } else {\n secretKey = new SecretKeySpec(key, algorithm);\n }\n Cipher cipher = Cipher.getInstance(transformation);\n if (iv == null || iv.length == 0) {\n cipher.init(isEncrypt ? Cipher.ENCRYPT_MODE : Cipher.DECRYPT_MODE, secretKey);\n } else {\n AlgorithmParameterSpec params = new IvParameterSpec(iv);\n cipher.init(isEncrypt ? Cipher.ENCRYPT_MODE : Cipher.DECRYPT_MODE, secretKey, params);\n }\n return cipher.doFinal(data);\n } catch (Throwable e) {\n e.printStackTrace();\n return null;\n }\n }", "public void setEncryptionMode(String encryptionMode) {\n this.encryptionMode = encryptionMode;\n }", "public Object getAlgorithm() {\n return graphConfig.getAlgorithm();\n }", "public final java.security.AlgorithmParameters generateParameters() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.security.AlgorithmParameterGenerator.generateParameters():java.security.AlgorithmParameters, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.AlgorithmParameterGenerator.generateParameters():java.security.AlgorithmParameters\");\n }", "String getMessageDigestAlgorithm();", "public static HydraKey generateKey(String inAlgorithm, int length)\n throws NoSuchAlgorithmException {\n\n if (length == 0) { \n throw new IllegalArgumentException(\"Key length can't be 0\");\n }\n\n String algorithm = inAlgorithm;\n \n if (algorithm == null) {\n algorithm = ALGORITHM_DEFAULT;\n }\n\n KeyGenerator keygen = KeyGenerator.getInstance(algorithm);\n keygen.init(length); // set a keylength of 128 bits\n SecretKey secret_key = keygen.generateKey();\n HydraKey hk = new HydraKey(secret_key.getEncoded(), algorithm);\n return hk;\n }", "@Test\r\n\tpublic void testSimple() throws IOException, URISyntaxException, IllegalKeyException{\r\n\t\tbyte data [] = {97,98,99,100};\r\n\t\tbyte [] keys = {50};\r\n\t\tEncryptionDecryptionManager man = new AlgoritemManaging();\r\n\t\tCaesarEncryption ce = new CaesarEncryption(man);\r\n\t\tbyte[] encData = ce.Encrypt(keys,data);\r\n\t\t\r\n\t\tCaesarDecryption c = new CaesarDecryption(man);\r\n\t\tbyte[] decData = c.Decrypt(keys,encData);\r\n\t\tassert decData [0] == (byte)(97);\r\n\t\tassert decData [1] == (byte)(98);\r\n\t\tassert decData [2] == (byte)(99);\r\n\t\tassert decData [3] == (byte)(100);\r\n\t}", "void xsetCryptAlgorithmType(org.openxmlformats.schemas.presentationml.x2006.main.STAlgType cryptAlgorithmType);", "@Nullable protected String resolveKeyTransportAlgorithm(@Nonnull final Credential keyTransportCredential, \n @Nonnull final CriteriaSet criteria, @Nonnull final Predicate<String> includeExcludePredicate,\n @Nullable final String dataEncryptionAlgorithm) {\n \n return resolveKeyTransportAlgorithm(keyTransportCredential, getEffectiveKeyTransportAlgorithms(criteria, \n includeExcludePredicate), dataEncryptionAlgorithm, resolveKeyTransportAlgorithmPredicate(criteria));\n }", "public abstract StandaloneAlgorithm createAlgorithm();", "HandlebarsKnotOptions setCacheKeyAlgorithm(String cacheKeyAlgorithm) {\n this.cacheKeyAlgorithm = cacheKeyAlgorithm;\n return this;\n }", "void setCryptAlgorithmSid(long cryptAlgorithmSid);", "private void encryptionAlgorithm() {\n\t\ttry {\n\t\t\t\n\t\t\tFileInputStream fileInputStream2=new FileInputStream(\"D:\\\\program\\\\key.txt\");\n\t\t\tchar key=(char)fileInputStream2.read();\n\t\t\tSystem.out.println(key);\n\t\t\tFileInputStream fileInputStream1=new FileInputStream(\"D:\\\\program\\\\message.txt\");\n\t\t\tint i=0;\n\t\t\t\n\t\t\tStringBuilder message=new StringBuilder();\n\t\t\twhile((i= fileInputStream1.read())!= -1 )\n\t\t\t{\n\t\t\t\tmessage.append((char)i);\n\t\t\t}\n\t\t\tString s=message.toString();\n\t\t\tchar[] letters=new char[s.length()];\n\t\t\tStringBuilder en=new StringBuilder();\n\t\t\tfor(int j = 0;j < letters.length;j++)\n\t\t\t{\n\t\t\t\ten.append((char)(byte)letters[j]+key);\n\t\t\t}\t\t\n\t\t\tFileOutputStream fileoutput=new FileOutputStream(\"D:\\\\program\\\\encryptedfile.txt\");\n\t\t\t\n\t\t\tfileInputStream1.close();\n\t\t\tfileInputStream2.close();\n\t\t\t\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t}", "public void setBwaswAlgorithm(boolean bwaswAlgorithm) {\n\t\tthis.bwaswAlgorithm = bwaswAlgorithm;\n\n\t\tif (bwaswAlgorithm) {\n\t\t\tthis.setAlnAlgorithm(false);\n\t\t\tthis.setMemAlgorithm(false);\n\t\t}\n\t}", "public AlgoDiffusion getAlg() {\n\t\treturn alg;\n\t}", "@Nullable protected String resolveKeyTransportAlgorithm(@Nonnull final Credential keyTransportCredential, \n @Nonnull final List<String> keyTransportAlgorithms, @Nullable final String dataEncryptionAlgorithm,\n @Nullable final KeyTransportAlgorithmPredicate keyTransportPredicate) {\n \n if (log.isTraceEnabled()) {\n final Key key = CredentialSupport.extractEncryptionKey(keyTransportCredential);\n log.trace(\"Evaluating key transport encryption credential of type: {}\", \n key != null ? key.getAlgorithm() : \"n/a\");\n }\n \n for (final String algorithm : keyTransportAlgorithms) {\n assert algorithm != null;\n log.trace(\"Evaluating key transport credential against algorithm: {}\", algorithm);\n if (credentialSupportsAlgorithm(keyTransportCredential, algorithm) && isKeyTransportAlgorithm(algorithm)) {\n if (keyTransportPredicate != null) {\n if (keyTransportPredicate.test(new KeyTransportAlgorithmPredicate.SelectionInput(\n algorithm, dataEncryptionAlgorithm, keyTransportCredential))) {\n return algorithm;\n }\n } else {\n return algorithm;\n }\n }\n }\n \n return null;\n }", "Encryption encryption();", "private Optional<Cipher> getCipher(int mode, byte[] iv) {\n Optional<Cipher> result = Optional.empty();\n\n Cipher cipher = null;\n try {\n cipher = Cipher.getInstance(this.algorithmMode);\n\n IvParameterSpec ivParameterSpec = new IvParameterSpec(iv);\n AlgorithmParameters parameters =\n AlgorithmParameters.getInstance(this.algorithm);\n parameters.init(ivParameterSpec);\n\n cipher.init(mode, this.key, parameters);\n result = Optional.of(cipher);\n } catch (NoSuchAlgorithmException e) {\n log.error(\"Could not find cipher mode: `{}`\", e.getMessage());\n log.debug(e.toString());\n } catch (NoSuchPaddingException e) {\n log.error(\"Could not find padding type: `{}`\", e.getMessage());\n log.debug(e.toString());\n } catch (InvalidKeyException e) {\n log.error(\"Encryption key is invalid: `{}`\", e.getMessage());\n log.debug(e.toString());\n } catch (InvalidParameterSpecException e) {\n log.error(\"Algorithm parameter spec invalid: `{}`\", e.getMessage());\n log.debug(e.toString());\n } catch (InvalidAlgorithmParameterException e) {\n log.error(\"Algorithm parameters invalid: `{}`\", e.getMessage());\n log.debug(e.toString());\n }\n\n return result;\n}", "public String decrypt(String cipherText);", "@Nullable protected String resolveKeyTransportAlgorithm(@Nonnull final Credential keyTransportCredential, \n @Nonnull final List<String> keyTransportAlgorithms, @Nullable final String dataEncryptionAlgorithm,\n @Nullable final KeyTransportAlgorithmPredicate keyTransportPredicate) {\n \n if (log.isTraceEnabled()) {\n final Key key = CredentialSupport.extractEncryptionKey(keyTransportCredential);\n log.trace(\"Evaluating key transport encryption credential of type: {}\", \n key != null ? key.getAlgorithm() : \"n/a\");\n }\n \n for (final String algorithm : keyTransportAlgorithms) {\n log.trace(\"Evaluating key transport credential against algorithm: {}\", algorithm);\n if (credentialSupportsAlgorithm(keyTransportCredential, algorithm) && isKeyTransportAlgorithm(algorithm)) {\n if (keyTransportPredicate != null) {\n if (keyTransportPredicate.test(new KeyTransportAlgorithmPredicate.SelectionInput(\n algorithm, dataEncryptionAlgorithm, keyTransportCredential))) {\n return algorithm;\n }\n } else {\n return algorithm;\n }\n }\n }\n \n return null;\n }" ]
[ "0.67145926", "0.6656235", "0.63113636", "0.6305683", "0.62704736", "0.62691396", "0.6264045", "0.6243185", "0.6196199", "0.61630446", "0.61027586", "0.6044321", "0.6024313", "0.5988072", "0.5988072", "0.59735584", "0.5944608", "0.594308", "0.59005827", "0.58970493", "0.5866765", "0.58650774", "0.58526784", "0.5808028", "0.58000755", "0.5796607", "0.5783596", "0.57411957", "0.572859", "0.5713324", "0.56965804", "0.5637367", "0.5636561", "0.55994004", "0.55942065", "0.55857956", "0.5585573", "0.5571265", "0.5571265", "0.5568843", "0.5561196", "0.5553464", "0.5521779", "0.551108", "0.5497241", "0.54942256", "0.5491482", "0.5462564", "0.5450989", "0.5447431", "0.543036", "0.5416275", "0.5404042", "0.53894603", "0.53652656", "0.5358199", "0.53565", "0.5333284", "0.53319985", "0.53281313", "0.53206676", "0.52933735", "0.5289746", "0.5286669", "0.52736217", "0.52612793", "0.52460444", "0.52431023", "0.5238968", "0.52307314", "0.522234", "0.5221999", "0.5217427", "0.5194314", "0.51870835", "0.51858425", "0.5179417", "0.517365", "0.5154132", "0.51532876", "0.5126129", "0.5119935", "0.51193833", "0.5086318", "0.50789666", "0.5045085", "0.5045029", "0.50427806", "0.5041272", "0.50385624", "0.5020896", "0.50166106", "0.50131464", "0.50054383", "0.49964026", "0.49846953", "0.497868", "0.49785388", "0.4968729", "0.4966754" ]
0.55322623
42
Handle the loan amount. In the event that the agent cannot handle the request, they should redirect the request to the next agent in the chain.
abstract public LoanApplicationResponse handleLoanRequest(LoanApplicationRequest loanRequest);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void calculateLoan(View view){\n Intent intent = new Intent(this, ResultActivity.class);\n\n //TODO: calculate monthly payment and determine\n double carPrice;\n double downPayment;\n double loadPeriod;\n double interestRate;\n\n \n\n //loan application status; approve or reject\n double monthlyPayment;\n String status;\n\n //Passing data using putExtra method\n //putExtra(TAG, value)\n intent.putExtra(MONTHLY_PAYMENT, monthlyPayment);\n intent.putExtra(LOAN_STATUS, status);\n startActivity(intent);\n }", "public void takeOutLoan(double value)\r\n {\r\n loan += value;\r\n addCash(value);\r\n }", "public void replayLoan(double value)\r\n {\n subtractCash(value);\r\n payOffLoan(value);\r\n }", "public void setLoanAmount(double loanAmount) {\n this.loanAmount = loanAmount;\n }", "public void setLoan(int loan) {\n\t\tthis.loan = loan;\n\t}", "public static void calculateLoanPayment() {\n\t\t//get values from text fields\n\t\tdouble interest = \n\t\t\t\tDouble.parseDouble(tfAnnualInterestRate.getText());\n\t\tint year = Integer.parseInt(tfNumberOfYears.getText());\n\t\tdouble loanAmount =\n\t\t\t\tDouble.parseDouble(tfLoanAmount.getText());\n\t\t\n\t\t//crate a loan object\n\t\t Loan loan = new Loan(interest, year, loanAmount);\n\t\t \n\t\t //Display monthly payment and total payment\n\t\t tfMonthlyPayment.setText(String.format(\"$%.2f\", loan.getMonthlyPayment()));\n\t\t tfTotalPayment.setText(String.format(\"$%.2f\", loan.getTotalPayment()));\n\t}", "public float handleClaim(){\r\n float re_amount = amount;\r\n depreciate();\r\n return re_amount;\r\n }", "private void calculateLoanPayment() {\n double interest =\n Double.parseDouble(tfAnnualInterestRate.getText());\n int year = Integer.parseInt(tfNumberOfYears.getText());\n double loanAmount =\n Double.parseDouble(tfLoanAmount.getText());\n\n // Create a loan object. Loan defined in Listing 10.2\n loan lloan = new loan(interest, year, loanAmount);\n\n // Display monthly payment and total payment\n tfMonthlyPayment.setText(String.format(\"$%.2f\",\n lloan.getMonthlyPayment()));\n tfTotalPayment.setText(String.format(\"$%.2f\",\n lloan.getTotalPayment()));\n }", "public double payOffLoan(double value)\r\n {\r\n loan -= value;\r\n\r\n double remainder = 0;\r\n\r\n if (loan < 0)\r\n {\r\n remainder = loan * -1;\r\n loan = 0;\r\n }\r\n\r\n return remainder;\r\n\r\n }", "public void upgradeWardenGainLoseAmount(int amount) {\n this.baseWardenGainLoseAmount = this.wardenGainLoseAmount + amount;\n this.wardenGainLoseAmount = this.baseWardenGainLoseAmount;\n this.upgradedWardenGainLoseAmount = true;\n }", "public double getLoanAmount() {\n return loanAmount;\n }", "public void setLoanAmount(double loanAmount)\n {\n if (loanAmount <= 0)\n {\n throw new IllegalArgumentException(\"The loan amount has to be greater than 0.\");\n }\n\n this.loanAmount = loanAmount;\n }", "public void setAmount(double amount) {\nloanAmount = amount;\n}", "@Override\n\tpublic void msgPaymentAccepted(Lord l,double amount) {\n\t\t\n\t}", "public static void log(LoanResponse loanResponse) {\n }", "@Override\r\n\t\tpublic void action() {\n MessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.ACCEPT_PROPOSAL);\r\n MessageTemplate mt2 = MessageTemplate.MatchPerformative(ACLMessage.PROPOSE);\r\n ACLMessage msg = myAgent.receive(mt);\r\n //If it is a ACCEPT_PROPOSAL, the seller sell the book to the buyer (execpt if the book if not here anymore)\r\n if (msg != null) {\r\n // ACCEPT_PROPOSAL Message received. Process it\r\n title = msg.getContent();\r\n ACLMessage reply = msg.createReply();\r\n\r\n Integer price = (Integer) catalogue.remove(title);\r\n if (price != null) {\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(String.valueOf(price));\r\n System.out.println(title+\" sold to agent \"+msg.getSender().getName());\r\n }\r\n else {\r\n // The requested book has been sold to another buyer in the meanwhile .\r\n reply.setPerformative(ACLMessage.FAILURE);\r\n reply.setContent(\"not-available\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n //If it is a new PROPOSE, the buyer is trying to negociate.\r\n else {\r\n ACLMessage msg2 = myAgent.receive(mt2);\r\n if(msg2 != null){\r\n ACLMessage reply = msg2.createReply();\r\n //If the price of the buyer is OK for the seller according to his tolerance, the transaction is made\r\n if(((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) <= tolerance){\r\n System.out.println(myAgent.getLocalName() + \" say : OK, let's make a deal\");\r\n updateCatalogue(title, Integer.parseInt(msg2.getContent()));\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(msg2.getContent());\r\n }\r\n //Else, the seller accept to negociate, he up his tolerance and ask the buyer to up his real price\r\n else{\r\n //Send a REQUEST Message to negociate with the buyer\r\n reply.setPerformative(ACLMessage.REQUEST);\r\n //Up the tolerance by *change*\r\n tolerance += change;\r\n reply.setContent(String.valueOf(change));\r\n System.out.println(myAgent.getLocalName() + \" say : Let's up your real price while I up my tolerance (\" + ((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) + \" < \" + tolerance + \")\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n else{\r\n block();\r\n }\r\n }\r\n\t\t}", "@Override\r\n\tpublic void calculateLoanPayments() {\r\n\t\t\r\n\t\tBigDecimal numInstall = getNumberOfInstallments(this.numberOfInstallments);\r\n\t\tBigDecimal principle = this.loanAmount;\r\n\t\tBigDecimal duration = this.duration;\r\n\t\tBigDecimal totalInterest = getTotalInterest(principle, duration,\r\n\t\t\t\tthis.interestRate);\r\n\t\tBigDecimal totalRepayment = totalInterest.add(principle);\r\n\t\tBigDecimal repaymentPerInstallment = getRepaymentPerInstallment(\r\n\t\t\t\ttotalRepayment, numInstall);\r\n\t\tBigDecimal interestPerInstallment = getInterestPerInstallment(\r\n\t\t\t\ttotalInterest, numInstall);\r\n\t\tBigDecimal principlePerInstallment = getPrinciplePerInstallment(\r\n\t\t\t\trepaymentPerInstallment, interestPerInstallment, numInstall);\r\n\t\tBigDecimal principleLastInstallment = getPrincipleLastInstallment(\r\n\t\t\t\tprinciple, principlePerInstallment, numInstall);\r\n\t\tBigDecimal interestLastInstallment = getInterestLastInstallment(\r\n\t\t\t\ttotalInterest, interestPerInstallment, numInstall);\t\r\n\t\t\r\n\t\tfor(int i=0; i<this.numberOfInstallments-1;i++) {\r\n\t\t\tthis.principalPerInstallment.add(principlePerInstallment);\r\n\t\t\tthis.interestPerInstallment.add(interestPerInstallment);\r\n\t\t}\r\n\t\tthis.principalPerInstallment.add(principleLastInstallment);\r\n\t\tthis.interestPerInstallment.add(interestLastInstallment);\r\n\t}", "@Override\n public void handle(RoutingContext routingContext) {\n\n var body = routingContext.getBodyAsJson();\n\n if (body == null) {\n routingContext.fail(400);\n return;\n }\n\n var data = body.mapTo(IssueRequest.class);\n Ed25519PublicKey publicKey;\n var amount = new BigInteger(data.amount);\n\n // validates the public key to ensure its 32-bytes and\n // optionally has the expected prefix\n\n try {\n publicKey = Ed25519PublicKey.fromString(data.address);\n } catch (IllegalStateException e) {\n routingContext.fail(400);\n return;\n }\n\n // FIXME: this is for exposition only; in a production system\n // there would be an exchange of payment before we move on\n // to the next step\n\n // TODO: An optimization would be to immediately return from the\n // request here and use push notifications to communicate\n // when its complete or failed\n\n // issue some money to the address\n\n routingContext.vertx().<String>executeBlocking(promise -> {\n try {\n executeMintTransaction(amount);\n\n var transactionId = executeTransferTransaction(publicKey, amount);\n\n promise.complete(transactionId);\n } catch (HederaStatusException e) {\n promise.fail(e);\n }\n }, v -> {\n if (v.failed()) {\n routingContext.fail(v.cause());\n return;\n }\n\n routingContext.response()\n .putHeader(\"content-type\", \"application/json\")\n .end(JsonObject.mapFrom(new HederaTransactionResponse(v.result())).encode());\n });\n }", "@Override\n\tpublic void msgRentDue(Landlord l, int rentrate) {\n\t\thouseperson.getBills().add(8);\n\t\tlog.add(new LoggedEvent(\"Received rent due from Landlord\"));\n\t}", "@Override\n\tpublic void landedOn() {\n\t\tMonopolyGameController.getInstance();\n\t\tMonopolyGameController.getCurrentPlayer().increaseMoney(300);\n\t\tLogger.getInstance().notifyAll(MonopolyGameController.getCurrentPlayer().getName()+ \" gained 300 dollars by landing on Bonus Square\");\n\t\tMonopolyGameController.allowCurrentPlayerToEndTurn();\n\n\t}", "@Test(groups = {\"Regression\", \"IntakeLender\"})\n\tpublic void RemoveLoanTaskfee_LoanRequest() throws InterruptedException {\n\t\t// Login to the BLN with provided credentials\n\t\tHomePage homePage = new HomePage(d);\n\t\t// Login to BLN Application\n\t\thomePage.logIntoBLN();\n\t\t// Navigating to MyProfile Tab\n\t\tUsers Users1 = homePage.navigateToUsers();\n\t\tUsers1.select_intakeLender();\n\t\tLoanRequest LoanRequest1 = homePage.navigateToLoanRequest();\n\t\tLoanRequest1.validateHeaderNav();\n\t}", "public int getLoan() {\n\t\treturn loan;\n\t}", "public LoanApplicationResponse approveLoanRequest() {\n return new LoanApplicationResponse(this, true);\n }", "protected int dropOff(int amt) {\n delayElevator();\n return load.addAndGet(-amt);\n }", "private int adjustLoan(PreparedStatement updateLoan, int loanNumber, float adjustedLoanAmount) throws SQLException {\n updateLoan.setFloat(1, adjustedLoanAmount);\n updateLoan.setInt(2, loanNumber);\n return updateLoan.executeUpdate(); // TODO: call to executeUpdate on a PreparedStatement\n }", "@Override\r\n\tpublic void personalLoanInterest() {\n\t\t\r\n\t}", "public double getloanAmount( double loanAmount) {\nreturn loanAmount;\n}", "public void handleFollow() {\r\n if (following == null) {\r\n setFollowing();\r\n }\r\n if (following == null) {\r\n return;\r\n }\r\n if (--lastHit < 1) {\r\n int hit = RandomUtil.random(1, 14);\r\n following.getImpactHandler().manualHit(this, hit, ImpactHandler.HitsplatType.NORMAL);\r\n following.getActionSender().sendMessage(\"The dark core creature steals some life from you for its master.\", 1);\r\n corporealBeastNPC.getSkills().heal(hit);\r\n lastHit = RandomUtil.random(10, 25);\r\n }\r\n }", "public void loanAmount_Validation() {\n\t\thelper.assertString(usrLoanAmount_AftrLogin(), payOffOffer.usrLoanAmount_BfrLogin());\n\t\tSystem.out.print(\"The loan amount is: \" + usrLoanAmount_AftrLogin());\n\n\t}", "public void setCurrentLoan(Loan currentLoan) {\n\t\tthis.currentLoan = currentLoan;\n\t}", "public void refill(int amount) {\n myAmount = myAmount + amount;\n }", "private void handleMessage(final AdoptRequest msg) {\n if (!parents.containsKey(msg.getTreeID()) || bloomFilter.get(msg.getTreeID()).mightContain(msg.sourceId)\n || currLoad + 1 > upperThreshold) {\n if (!msg.isLoadBalancing()) {\n debugPrint(network.getAddress() + \" refused to latency-adopt \" + msg.sourceId);\n }\n network.send(new AdoptRequestDecline(getMessageTag(), network.getAddress(), msg.sourceId, msg.getTreeID(), msg\n .getThirdParty(), msg.isLoadBalancing()));\n } else {\n if (!msg.isLoadBalancing()) {\n debugPrint(network.getAddress() + \" agreed to latency-adopt \" + msg.sourceId);\n }\n addSonToTree(msg.getTreeID(), msg.sourceId);\n network.send(new AdoptRequestAccept(getMessageTag(), network.getAddress(), msg.sourceId, msg.getTreeID(),\n msg.getThirdParty(), bloomFilter.get(msg.getTreeID()).copy(), msg.isLoadBalancing()));\n }\n }", "private String PayAgentPayment(HttpServletRequest request) {\n\n try {\n HttpSession session = request.getSession();\n int serviceId = Integer.parseInt(request.getParameter(CONFIG.PARAM_SERVICE_ID));\n int operationId = Integer.parseInt(request.getParameter(CONFIG.OPERATION_ID));\n String amount = request.getParameter(CONFIG.AMOUNT);\n String agentIdentifier = request.getParameter(CONFIG.PARAM_MSISDN);\n int custId = Integer.parseInt((String) request.getSession().getAttribute(CONFIG.PARAM_PIN));\n String lang = request.getSession().getAttribute(CONFIG.lang).equals(\"\") ? \"en\" : \"ar\";\n\n Donation_AgentPaymentRequestDTO agentPaymentRequestDTO = new Donation_AgentPaymentRequestDTO();\n agentPaymentRequestDTO.setSERVICE_ID(serviceId);\n agentPaymentRequestDTO.setOPERATION_ID(operationId);\n agentPaymentRequestDTO.setAMOUNT(amount);\n agentPaymentRequestDTO.setCUSTOMER_ID(custId);\n agentPaymentRequestDTO.setAGENT_IDENTIFIER(agentIdentifier);\n agentPaymentRequestDTO.setCHANNEL(\"WEB\");\n agentPaymentRequestDTO.setLANG(lang);\n String national_id = request.getParameter(\"national_ID\");\n agentPaymentRequestDTO.setNATIONAL_ID(national_id);\n\n DonationAgentPaymentRespponseDto agentPaymentRespponseDto = MasaryManager.getInstance().do_agent_payment_without_inquiry(agentPaymentRequestDTO);\n MasaryManager.logger.info(\"Error code \" + agentPaymentRespponseDto.getSTATUS_CODE());\n if (agentPaymentRespponseDto.getSTATUS_CODE().equals(\"200\")) {\n\n session.setAttribute(\"donationPaymentResponse\", agentPaymentRespponseDto);\n session.setAttribute(\"SERVICE_ID\", (String.valueOf(serviceId)));\n\n// request.setAttribute(\"Fees\", fees.trim());\n return CONFIG.PAGE_PAY_AGENTPAYMENT;\n } else {\n request.getSession().setAttribute(\"ErrorCode\", CONFIG.getBillErrorCode(request.getSession())\n .concat(agentPaymentRespponseDto.getSTATUS_CODE())\n .concat(\" \")\n .concat(agentPaymentRespponseDto.getSTATUS_MESSAGE()));\n return CONFIG.PAGE_Agent_Payment;\n\n }\n\n } catch (Exception e) {\n MasaryManager.logger.error(\"Exception\" + e.getMessage(), e);\n\n request.getSession().setAttribute(\"ErrorCode\", e.getMessage());\n return CONFIG.PAGE_Agent_Payment;\n }\n\n }", "@Override\n\tpublic void passedBy() {\n\t\tMonopolyGameController.getInstance();\n\t\tMonopolyGameController.getCurrentPlayer().increaseMoney(250);\n\t\tLogger.getInstance().notifyAll(MonopolyGameController.getCurrentPlayer().getName()+ \" gained 250 dollars by landing on Bonus Square\");\n\n\t}", "public void edicationLoan() {\n\t\tSystem.out.println(\"hsbc -- education loan\");\n\t\t\n\t}", "@Override\n\tpublic void handleSpecificActivity() {\n\t\tdouble expIncrease = (double) params.getParamValue(\"traineeDefaultExpIncrease\");\n\t\tint grade = this.getGrade();\n\t\t\n\t\tdouble modifier = getGradeModifier(70, grade);\n\t\texpIncrease *= modifier;\n\t\t\n\t\tthis.experience += expIncrease;\t\t\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tGUILoanRequest loan = new GUILoanRequest();\n\t\t\t\tcloseFrame();\n\t\t\t}", "public double getLoan()\r\n {\r\n return loan;\r\n }", "private void doAgentRequest(final String amount) {\n\n bankRequestObject = new JSONObject();\n try {\n bankRequestObject.put(Constants.CLASS_TRANSACTIONS_FROM, mCurrentUser);\n bankRequestObject.put(Constants.CLASS_TRANSACTIONS_TYPE, Constants.CLASS_TRANSACTIONS_TYPE_FUNDS_REQUEST_AGENT);\n bankRequestObject.put(Constants.CLASS_TRANSACTIONS_AMOUNT, Integer.parseInt(amount));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n\n mProgressBar.setVisibility(View.INVISIBLE);\n\n saveTransaction(amount, Constants.CLASS_TRANSACTIONS_TYPE_FUNDS_REQUEST_AGENT);\n\n Fragment showQRFragment = new ShowQR();\n Bundle qrContent = new Bundle();\n qrContent.putString(\"qrData\", bankRequestObject.toString());\n showQRFragment.setArguments(qrContent);\n mFormWrap.setVisibility(View.GONE);\n getSupportFragmentManager().beginTransaction().replace(mContainer.getId(), showQRFragment).commit();\n showDone();\n\n }", "private LoanProtocol generateAnswer(LoanProtocol request)\n\t{\n\t\tUser user = m_server.lookUpUser(request.getUser());\n\t\tif (user != null)\n\t\t{\n\t\t\tuser.calculateCurrentLoanAmount();\n\t\t}\n\t\tLoanProtocol answer = new LoanProtocol(request.getId(), request.getHost(),\n\t\t\t\trequest.getPort(), user, messageType.LoanAnswer);\n\t\treturn answer;\n\t}", "@PostMapping(value=\"/loans\")\n public ResponseEntity<?> addLoan(@RequestBody LoanApplicationDTO loanApplicationDTO, Authentication authentication) {\n Optional<Client> clientOptional = clientService.getClientEmail(authentication.getName());\n if(!clientOptional.isPresent()) {\n return new ResponseEntity<>(\"El cliente no esta registrado\", HttpStatus.UNAUTHORIZED);\n }\n Client client = clientOptional.get();\n\n Loan loan = loanService.getLoan(loanApplicationDTO.getId());\n Account account = accountService.getAccByNumber(loanApplicationDTO.getAccountDestiny());\n\n if(loanApplicationDTO.getAmount() == 0 || loanApplicationDTO.getPayments() == 0){\n return new ResponseEntity<>(\"Ingreso un valor incorrecto\", HttpStatus.FORBIDDEN);\n }\n if(loan == null){\n return new ResponseEntity<>(\"Ese prestamo no existe\", HttpStatus.FORBIDDEN);\n }\n if(loan.getMaxAmount() < loanApplicationDTO.getAmount()){\n return new ResponseEntity<>(\"El monto excede el máximo\", HttpStatus.FORBIDDEN);\n }\n if(loan.getPayments().contains(loanApplicationDTO.getPayments()) == false){\n return new ResponseEntity<>(\"La cantidad de cuotas no es válida\", HttpStatus.FORBIDDEN);\n }\n if(client.getAccounts().contains(loanApplicationDTO.getAccountDestiny())){\n return new ResponseEntity<>(\"La cuenta es incorrecta\", HttpStatus.FORBIDDEN);\n }\n\n ClientLoan clientLoan = new ClientLoan(loanApplicationDTO.getAmount() + (loanApplicationDTO.getAmount() * loan.getFee()), loanApplicationDTO.getPayments(), client, loan);\n clientLoanRepository.save(clientLoan);\n transactionService.saveTransaction(new Transaction(loanApplicationDTO.getAmount(),loan.getName() + \" \" + \"loan approved\", LocalDateTime.now(), TransactionType.CREDIT, account, account.getBalance() + loanApplicationDTO.getAmount()));\n account.setBalance(account.getBalance() + loanApplicationDTO.getAmount());\n accountService.saveAcc(account);\n return new ResponseEntity<>(\"Created\", HttpStatus.CREATED);\n }", "public void giveExp ( int amount ) {\n\t\texecute ( handle -> handle.giveExp ( amount ) );\n\t}", "private LoanProtocol processProtocol(LoanProtocol protocol)\n\t{\n\t\tswitch (protocol.getType())\n\t\t{\n\t\t// if it's a requesting protocol, then generate answer for it\n\t\tcase RequestLoan:\n\t\t\treturn generateAnswer(protocol);\n\t\t\t// if it's an answer from another server, then calculate\n\t\t\t// how many loan the user has on the other server\n\t\tcase LoanAnswer:\n\t\t\tif (protocol.getUser() != null)\n\t\t\t{\n\t\t\t\tm_usedAmount += protocol.getUser().getLoanAmount();\n\t\t\t}\n\t\t\tm_lock.countDown();\n\t\t\treturn null;\n\t\tcase ValidateAdmin:\n\t\t\tboolean result = m_server.validateAdminUser(protocol.getUser().getUsr(), protocol\n\t\t\t\t\t.getUser().getPassword());\n\t\t\tLoanProtocol l = new LoanProtocol(\"\", protocol.getHost(), protocol.getPort(), null,\n\t\t\t\t\tnull);\n\t\t\tl.setResult(result);\n\t\t\treturn l;\n\t\tcase Transfer:\n\t\t\treturn ProcessTransferRequest(protocol);\n\n\t\tcase TransferAnswer:\n\t\t\treturn ProcessTransferAnswer(protocol);\n\t\tcase RollBack:\n\t\t\treturn processRollback(protocol);\n\t\t\t// commit that everything is ok, so now we can release the transfer\n\t\t\t// lock\n\t\tcase Commit:\n\t\t\ttransferLock.countDown();\n\t\t\tshouldRollback = false;\n\t\t\treturn null;\n\t\tdefault:\n\t\t\treturn null;\n\t\t}\n\t}", "public static void editLoanCost() {\n //We can only edit loan cost on Videos.\n char[] type = {'v'};\n String oldID = getExistingID(\"Video\", type);\n\n //Validate ID\n if (oldID != null) {\n //Run input validation\n String[] choiceOptions = {\"4\", \"6\"};\n int newLoan = Integer.parseInt(receiveStringInput(\"Enter new Loan Fee:\", choiceOptions, true, 1));\n try {\n //Replace the loan fee\n inv.replaceLoan(oldID, newLoan);\n } catch (IncorrectDetailsException e) {\n System.out.println(Utilities.ERROR_MESSAGE + \" Adding failed due to \" + e + \" with error message: \\n\" + e.getMessage());\n }\n } else System.out.println(Utilities.INFORMATION_MESSAGE + \"Incorrect ID, nothing was changed.\");\n }", "private LoanProtocol ProcessTransferAnswer(LoanProtocol protocol)\n\t{\n\t\t// if result in the protocol indicates transfer is accepted by target\n\t\t// bank, then remove loan from the current bank\n\t\tif (protocol.getResult())\n\t\t{\n\t\t\tif (m_server.removeLoan(protocol.getLoanInfo()))\n\t\t\t{\n\t\t\t\tm_lock.countDown();\n\t\t\t\tm_lock = null;\n\t\t\t\tprotocol.setType(messageType.Commit);\n\t\t\t}\n\t\t\t// if something wrong happened during remove loan... then we send\n\t\t\t// roll back message to the other server\n\t\t\telse\n\t\t\t{\n\t\t\t\tprotocol.setType(messageType.RollBack);\n\t\t\t}\n\t\t}\n\n\t\treturn protocol;\n\t}", "@Override\r\n public void criteriaHandler(int amount) {\n\r\n if (amount <= 10000){\r\n System.out.println(\"Tipo de credito: Local\");\r\n } else {\r\n this.next.criteriaHandler(amount);\r\n }\r\n\r\n }", "public void setAmount(int amount) {\n\t\tif (amount > 0) { // checks if amount is valid - larger than 0\n\t\t\tLocateRequest.amount = amount;\n\t\t} else {\n\t\t\tSystem.err.print(\"The amount provided is not valid\"); // print message that input is not valid\n\t\t}\n\t}", "private void addLoanRequestFunction() {\n\t\tloanRequestButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tGUILoanRequest loan = new GUILoanRequest();\n\t\t\t\tcloseFrame();\n\t\t\t}\t\t\n\t\t});\n\t}", "@Test\n public void testLoanForeclosure() {\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n final Integer loanProductID = createLoanProduct(false, NONE);\n\n List<HashMap> charges = new ArrayList<>();\n\n Integer flatAmountChargeOne = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_FLAT, \"50\", false));\n addCharges(charges, flatAmountChargeOne, \"50\", \"01 October 2011\");\n Integer flatAmountChargeTwo = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_FLAT, \"100\", true));\n addCharges(charges, flatAmountChargeTwo, \"100\", \"15 December 2011\");\n\n List<HashMap> collaterals = new ArrayList<>();\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n Assertions.assertNotNull(collateralId);\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n String.valueOf(clientID), collateralId);\n Assertions.assertNotNull(clientCollateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanID = applyForLoanApplication(clientID, loanProductID, charges, null, \"10,000.00\", collaterals);\n Assertions.assertNotNull(loanID);\n\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n LOG.info(\"----------------------------------- APPROVE LOAN -----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(\"20 September 2011\", loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"----------------------------------- DISBURSE LOAN ----------------------------------------\");\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(\"20 September 2011\", loanID, \"10,000.00\",\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LOG.info(\"DISBURSE {}\", loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n LOG.info(\"---------------------------------- Make repayment 1 --------------------------------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 October 2011\", Float.parseFloat(\"2676.24\"), loanID);\n\n LOG.info(\"---------------------------------- FORECLOSE LOAN ----------------------------------------\");\n LOAN_TRANSACTION_HELPER.forecloseLoan(\"08 November 2011\", loanID);\n\n // retrieving the loan status\n loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n // verifying the loan status is closed\n LoanStatusChecker.verifyLoanAccountIsClosed(loanStatusHashMap);\n // retrieving the loan sub-status\n loanStatusHashMap = LoanStatusChecker.getSubStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n // verifying the loan sub-status is foreclosed\n LoanStatusChecker.verifyLoanAccountForeclosed(loanStatusHashMap);\n\n }", "public TransactionResponse sell() {\r\n \t\ttry {\r\n \t\t\tTransactionResponse response = new TransactionResponse(hp);\r\n \t\t\tCalculation calc = hc.getCalculation();\r\n \t\t\tAccount acc = hc.getAccount();\r\n \t\t\tLanguageFile L = hc.getLanguageFile();\r\n \t\t\tLog log = hc.getLog();\r\n \t\t\tNotification not = hc.getNotify();\r\n \t\t\tInfoSignHandler isign = hc.getInfoSignHandler();\r\n \t\t\tString playerecon = hp.getEconomy();\r\n \t\t\tint id = hyperObject.getId();\r\n \t\t\tint data = hyperObject.getData();\r\n \t\t\tString name = hyperObject.getName();\r\n \t\t\tif (giveInventory == null) {\r\n \t\t\t\tgiveInventory = hp.getPlayer().getInventory();\r\n \t\t\t}\r\n \t\t\tif (amount > 0) {\r\n \t\t\t\tif (id >= 0) {\r\n \t\t\t\t\tint totalitems = im.countItems(id, data, giveInventory);\r\n \t\t\t\t\tif (totalitems < amount) {\r\n \t\t\t\t\t\tboolean sellRemaining = hc.getYaml().getConfig().getBoolean(\"config.sell-remaining-if-less-than-requested-amount\");\r\n \t\t\t\t\t\tif (sellRemaining) {\r\n \t\t\t\t\t\t\tamount = totalitems;\r\n \t\t\t\t\t\t} else {\t\r\n \t\t\t\t\t\t\tresponse.addFailed(L.f(L.get(\"YOU_DONT_HAVE_ENOUGH\"), name), hyperObject);\r\n \t\t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif (amount > 0) {\r\n \t\t\t\t\t\tdouble price = hyperObject.getValue(amount, hp);\r\n \t\t\t\t\t\tBoolean toomuch = false;\r\n \t\t\t\t\t\tif (price == 3235624645000.7) {\r\n \t\t\t\t\t\t\ttoomuch = true;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tif (!toomuch) {\r\n \t\t\t\t\t\t\tint maxi = hyperObject.getMaxInitial();\r\n \t\t\t\t\t\t\tboolean isstatic = false;\r\n \t\t\t\t\t\t\tboolean isinitial = false;\r\n \t\t\t\t\t\t\tisinitial = Boolean.parseBoolean(hyperObject.getInitiation());\r\n \t\t\t\t\t\t\tisstatic = Boolean.parseBoolean(hyperObject.getIsstatic());\r\n \t\t\t\t\t\t\tif ((amount > maxi) && !isstatic && isinitial) {\r\n \t\t\t\t\t\t\t\tamount = maxi;\r\n \t\t\t\t\t\t\t\tprice = hyperObject.getValue(amount, hp);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tboolean sunlimited = hc.getYaml().getConfig().getBoolean(\"config.shop-has-unlimited-money\");\r\n \t\t\t\t\t\t\tif (acc.checkshopBalance(price) || sunlimited) {\r\n \t\t\t\t\t\t\t\tif (maxi == 0) {\r\n \t\t\t\t\t\t\t\t\tprice = hyperObject.getValue(amount, hp);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tim.removeItems(id, data, amount, giveInventory);\r\n \t\t\t\t\t\t\t\tdouble shopstock = 0;\r\n \t\t\t\t\t\t\t\tshopstock = hyperObject.getStock();\r\n \t\t\t\t\t\t\t\tif (!Boolean.parseBoolean(hyperObject.getIsstatic()) || !hc.getConfig().getBoolean(\"config.unlimited-stock-for-static-items\")) {\r\n \t\t\t\t\t\t\t\t\thyperObject.setStock(shopstock + amount);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tint maxi2 = hyperObject.getMaxInitial();\r\n \t\t\t\t\t\t\t\tif (maxi2 == 0) {\r\n \t\t\t\t\t\t\t\t\thyperObject.setInitiation(\"false\");\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tdouble salestax = hp.getSalesTax(price);\r\n \t\t\t\t\t\t\t\tacc.deposit(price - salestax, hp.getPlayer());\r\n \t\t\t\t\t\t\t\tacc.withdrawShop(price - salestax);\r\n \t\t\t\t\t\t\t\tif (sunlimited) {\r\n \t\t\t\t\t\t\t\t\tString globalaccount = hc.getYaml().getConfig().getString(\"config.global-shop-account\");\r\n \t\t\t\t\t\t\t\t\tacc.setBalance(0, globalaccount);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\r\n \t\t\t\t\t\t\t\tresponse.addSuccess(L.f(L.get(\"SELL_MESSAGE\"), amount, calc.twoDecimals(price), name, calc.twoDecimals(salestax)), price - salestax, hyperObject);\r\n \t\t\t\t\t\t\t\tresponse.setSuccessful();\r\n \t\t\t\t\t\t\t\tString type = \"dynamic\";\r\n \t\t\t\t\t\t\t\tif (Boolean.parseBoolean(hyperObject.getInitiation())) {\r\n \t\t\t\t\t\t\t\t\ttype = \"initial\";\r\n \t\t\t\t\t\t\t\t} else if (Boolean.parseBoolean(hyperObject.getIsstatic())) {\r\n \t\t\t\t\t\t\t\t\ttype = \"static\";\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tlog.writeSQLLog(hp.getName(), \"sale\", name, (double) amount, calc.twoDecimals(price - salestax), calc.twoDecimals(salestax), playerecon, type);\r\n \t\t\t\t\t\t\t\tisign.updateSigns();\r\n \t\t\t\t\t\t\t\tnot.setNotify(name, null, playerecon);\r\n \t\t\t\t\t\t\t\tnot.sendNotification();\r\n \t\t\t\t\t\t\t\treturn response;\r\n \t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\tresponse.addFailed(L.get(\"SHOP_NOT_ENOUGH_MONEY\"), hyperObject);\r\n \t\t\t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\tresponse.addFailed(L.f(L.get(\"CURRENTLY_CANT_SELL_MORE_THAN\"), hyperObject.getStock(), name), hyperObject);\r\n \t\t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tresponse.addFailed(L.f(L.get(\"YOU_DONT_HAVE_ENOUGH\"), name), hyperObject);\r\n \t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t}\r\n \t\t\t\t} else {\r\n \t\t\t\t\tresponse.addFailed(L.f(L.get(\"CANNOT_BE_SOLD_WITH\"), name), hyperObject);\r\n \t\t\t\t\treturn response;\t\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\tresponse.addFailed(L.f(L.get(\"CANT_SELL_LESS_THAN_ONE\"), name), hyperObject);\r\n \t\t\t\treturn response;\t\r\n \t\t\t}\r\n \t\t} catch (Exception e) {\r\n \t\t\tString info = \"Transaction sell() passed values name='\" + hyperObject.getName() + \"', player='\" + hp.getName() + \"', id='\" + hyperObject.getId() + \"', data='\" + hyperObject.getData() + \"', amount='\" + amount + \"'\";\r\n \t\t\tnew HyperError(e, info);\r\n \t\t\treturn new TransactionResponse(hp);\r\n \t\t}\r\n \t}", "List<Loan> listLoanByRequest(String clientCode, String requestId);", "public static double getLoanAmount()\r\n {\r\n // Your code goes here ... use cut and paste as much as possible!\r\n int i = 0;\r\n double amount = 0;\r\nwhile (i == 0) {\r\n Scanner s = new Scanner(System.in);\r\n System.out.print(\"Enter loan amount (Example 120000.95): \");\r\n amount = Double.parseDouble(s.nextLine());\r\n\r\n if (amount < 50000 || amount > 1000000) {\r\n i = 0;\r\n }\r\n else {\r\n i = 1;\r\n }\r\n } \r\n return amount;\r\n\r\n\r\n }", "private void handle(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException {\n\t\tString targetUrl = \"/\";\r\n\t\t\r\n\t\tif(response.isCommitted()){\r\n\t\t\t//Response has already been committed. Unable to redirect to \" + url\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tredirectStrategy.sendRedirect(request, response, targetUrl);\r\n\t}", "@CommandHandler\n public void handle(RedeemCardCommand command) {\n if (command.amount() <= 0) {\n throw new IllegalArgumentException(\"amount <= 0\");\n }\n if (command.amount() > remainingValue) {\n throw new IllegalStateException(\"amount > remaining value\");\n }\n apply(new CardRedeemedEvent(giftCardId, command.amount()));\n }", "public void Action(Player p) {\n int x = p.getMoney();\n int a = super.getAmount();\n if (x - a < 0) {\n p.setLoan((a - x) + 1000);\n p.setMoney((a - x) + 1000);\n p.setMoney(-a);\n } else {\n p.setMoney(-a);\n }\n this.JackMoney = a;\n }", "public void takeDamage(int amount){\r\n\t\tthis.life = this.life - amount;\r\n\t}", "public abstract double calculateLoanPayment(double principalAmount, double annualPrimeIntRate, int monthsAmort);", "Loan getLoanById(String clientCode, String loanId);", "@Override\n\tpublic void rent() {\n\t\tcontactLandlord();\n\t\tli.rent();\n\t\tchargeAgency();\n\t}", "private void handleRaiseFund()\n {\n\n Doctor selectedDoctor = selectDoctor(); // will be null if the doctor is occupied\n\n // TODO:\n // step 1. check to see if selectedDoctor is occupied, if the selectedDoctor is occupied, add the string\n // \"Please select a unoccupied doctor.\\n\" to the printResult ArrayList and output the ArrayList to the log\n // window by calling updateListViewLogWindow(), and then return from this method\n // step 2. if the selectedDoctor is not occupied,\n // a. use the doctor object to call raiseFund(), add the returned value to the money of the human\n // player using humanPlayer.collectMoney()\n // b. end the turn for the selectedDoctor\n // c. add the string selectedDoctor.getName() + \" raises \"+fundAmount+\" successfully.\\n\" to\n // printResult where fundAmount is the amount returned by raiseFund() in step 2a\n // d. output the printResult by updateListViewLogWindow()\n // e. now after the selecteddoctor raised the fund, the money of the player is changed, and also the\n // status of the selectedDoctor is also changed (from unoccupied to occupied). So we need to update\n // the display in UI to reflect the changes. To do that we call updateHumanPlayerMoney() and\n // updateListViewDoctorItems()\n // f. set listViewSelectedDoctor to null, this is a string holding all the name, specialty, skill level,\n // salary etc information of the doctor being selected to raise fund. The selectDoctor()\n // method extract the name to search for the doctor object from the doctors list of the player.\n // WE ASSUME DOCTOR NAMES ARE UNIQUE, if this is not the case, selectDoctor() will not work correctly\n if(selectedDoctor == null){ //1\n printResult.add(\"Please select a unoccupied doctor.\\n\");\n updateListViewLogWindow();\n return;\n }\n int fundAmount = selectedDoctor.raiseFund();//a\n humanPlayer.collectMoney(fundAmount);\n selectedDoctor.endTurn();//b\n printResult.add(selectedDoctor.getName() + \" raises \"+fundAmount+\" successfully.\\n\");//c\n updateListViewLogWindow();//d\n updateHumanPlayerMoney();//e\n updateListViewDoctorItems();\n listViewSelectedDoctor = null;//f\n }", "@Override\n\tpublic void process(double amt) {\n\t\tSystem.out.println(\"Amt Deposited:\" +amt);\n\t\tb1.bal = b1.bal+amt;\n\t\tb1.getBal();\n\t\tSystem.out.println(\"Transaction completed\");\n\t}", "@Override\n\tpublic void action() {\n\n\t\tif(this.step.equals(STATE_INIT))\n\t\t{\n\t\t\tthis.nbVoters = 0;\n\t\t\tthis.nbAsynchronousPlayers = 0;\n\t\t\tthis.globalResults = new VoteResults();\n\t\t\tthis.agentSender = null;\n\t\t\tthis.request = null;\n\t\t\tthis.currentTime = -1;\n\t\t\tthis.results = new VoteResults();\n\t\t\tthis.nextStep = STATE_RECEIVE_REQUEST;\n\n\n\t\t}\n\n\t\telse if(this.step.equals(STATE_RECEIVE_REQUEST))\n\t\t{\n\t\t\t/*** reception demande de vote **/\n\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.REQUEST),\n\t\t\t\t\tMessageTemplate.MatchConversationId(\"VOTE_REQUEST\"));\n\n\t\t\tACLMessage message = this.myAgent.receive(mt);\n\t\t\tif(message != null)\n\t\t\t{\n\t\t\t\tthis.agentSender = message.getSender();\n\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\ttry {\n\n\t\t\t\t\t//System.err.println(\"[RQST INITIAL] \"+message.getContent());\n\n\t\t\t\t\tthis.request = mapper.readValue(message.getContent(), VoteRequest.class);\n\t\t\t\t\tthis.request.setLocalVoteResults(this.results);\n\t\t\t\t\tthis.results.initWithChoice(this.request.getChoices());\n\n\t\t\t\t\tFunctions.newActionToLog(\"Début vote \"+this.request.getRequest(),this.myAgent, this.controllerAgent.getGameid());\n\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tthis.nextStep = SEND_REQUEST_GLOBAL_VOTE_RESULTS;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tblock(1000);\n\t\t\t}\n\n\t\t}\n\t\telse if(this.step.equals(SEND_REQUEST_GLOBAL_VOTE_RESULTS))\n\t\t{\n\t\t\tList<AID> agents = DFServices.findGameControllerAgent(\"ENVIRONMENT\", this.myAgent, this.controllerAgent.getGameid());\n\t\t\tif(!agents.isEmpty())\n\t\t\t{\n\t\t\t\tACLMessage message = new ACLMessage(ACLMessage.REQUEST);\n\t\t\t\tmessage.setSender(this.myAgent.getAID());\n\t\t\t\tfor(AID aid : agents)\n\t\t\t\t{\n\t\t\t\t\tmessage.addReceiver(aid);\n\t\t\t\t}\n\t\t\t\tmessage.setConversationId(\"GLOBAL_VOTE_RESULTS\");\n\n\t\t\t\tthis.myAgent.send(message);\n\t\t\t}\n\n\t\t\tthis.nextStep = RECEIVE_REQUEST_GLOBAL_VOTE_RESULTS;\n\t\t}\n\t\telse if(this.step.equals(RECEIVE_REQUEST_GLOBAL_VOTE_RESULTS))\n\t\t{\n\t\t\t/*** reception demande de vote **/\n\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.REQUEST),\n\t\t\t\t\tMessageTemplate.MatchConversationId(\"GLOBAL_VOTE_RESULTS\"));\n\n\t\t\tACLMessage message = this.myAgent.receive(mt);\n\t\t\tif(message != null)\n\t\t\t{\n\n\t\t\t\t//System.out.println(\"CTRL Reception de global results\");\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\ttry {\n\t\t\t\t\tthis.globalResults = mapper.readValue(message.getContent(), VoteResults.class);\n\t\t\t\t\tthis.request.setGlobalCitizenVoteResults(this.globalResults);\n\t\t\t\t} \n\t\t\t\tcatch (IOException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tthis.nextStep = STATE_GET_SIMPLE_SUSPICION;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tblock(1000);\n\t\t\t}\n\t\t}\t\t\n\t\telse if(this.step.equals(STATE_SEND_REQUEST))\n\t\t{\n\t\t\tACLMessage messageRequest = new ACLMessage(ACLMessage.REQUEST);\n\t\t\tmessageRequest.setSender(this.myAgent.getAID());\n\t\t\tmessageRequest.setConversationId(\"VOTE_REQUEST\");\n\n\t\t\tint reste = this.request.getAIDVoters().size()-this.nbVoters;\n\t\t\tif(false )// reste >= Data.MAX_SYNCHRONOUS_PLAYERS)\n\t\t\t{\n\t\t\t\t/** hybrid synchronous mode **/\n\t\t\t\tthis.nbAsynchronousPlayers = (int) (Math.random()*Math.min(Data.MAX_SYNCHRONOUS_PLAYERS-1, (reste-1)))+1;\n\t\t\t\t//System.err.println(\"HYDBRID ASYNCRHONOUS ENABLED BECAUSE TOO MANY PARTICIPANTS \"+this.nbAsynchronousPlayers+\" in //\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.nbAsynchronousPlayers = 1;\n\t\t\t}\n\n\t\t\tObjectMapper mapper = new ObjectMapper();\n\n\t\t\tString json =\"\";\n\n\t\t\ttry {\t\t\n\t\t\t\tjson = mapper.writeValueAsString(this.request);\t\n\t\t\t\tSystem.err.println(\"[RQST] \"+json);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tmessageRequest.setContent(json);\n\t\t\tfor(int i = 0; i<this.nbAsynchronousPlayers; ++i)\n\t\t\t{\n\t\t\t\t//System.err.println(\"DK ENVOI REQUEST \"+this.request.getAIDVoters().get(this.nbVoters+i).getLocalName());\n\t\t\t\tmessageRequest.addReceiver(this.request.getAIDVoters().get(this.nbVoters+i));\t\n\t\t\t}\n\n\t\t\tthis.myAgent.send(messageRequest);\n\n\t\t\tthis.nextStep = STATE_RECEIVE_INFORM;\n\t\t}\n\t\telse if(this.step.equals(STATE_RECEIVE_INFORM))\n\t\t{\n\t\t\tif(this.currentTime == -1)\n\t\t\t{\n\t\t\t\tthis.currentTime = System.currentTimeMillis();\n\t\t\t}\n\n\t\t\tif(System.currentTimeMillis() - this.currentTime > 3000)\n\t\t\t{\n\t\t\t\tthis.currentTime = -1;\n\t\t\t\tACLMessage wakeup = new ACLMessage(ACLMessage.UNKNOWN);\n\t\t\t\twakeup.setSender(this.myAgent.getAID());\n\t\t\t\tif(nbVoters < this.request.getVoters().size())\n\t\t\t\t{\n\t\t\t\t\twakeup.addReceiver(this.request.getAIDVoters().get(nbVoters));\n\t\t\t\t\twakeup.setConversationId(\"WAKEUP\");\n\t\t\t\t\tthis.myAgent.send(wakeup);\n\n\t\t\t\t\tSystem.out.println(\"Relance du joueur \"+this.request.getAIDVoters().get(nbVoters).getLocalName()+\" ...\");\n\t\t\t\t}\n\n\n\t\t\t}\n\n\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.INFORM),\n\t\t\t\t\tMessageTemplate.MatchConversationId(\"VOTE_INFORM\"));\n\n\t\t\tACLMessage message = this.myAgent.receive(mt);\n\t\t\tif(message!=null)\n\t\t\t{\n\t\t\t\tthis.currentTime = -1;\n\t\t\t\t++this.nbVoters;\n\t\t\t\t--this.nbAsynchronousPlayers;\n\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\tVoteResults res = new VoteResults();\n\t\t\t\ttry {\n\t\t\t\t\tres = mapper.readValue(message.getContent(), VoteResults.class);\n\t\t\t\t} \n\t\t\t\tcatch (IOException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tAID aidPlayer = message.getSender();\n\n\t\t\t\tthis.results.add(res);\n\n\t\t\t\tif(this.request.getRequest().equals(\"CITIZEN_VOTE\")&&\n\t\t\t\t\t\tDFServices.containsGameAgent(aidPlayer, \"PLAYER\", \"MAYOR\", this.myAgent, this.controllerAgent.getGameid()))\n\t\t\t\t{\n\t\t\t\t\t/** poids double **/\n\t\t\t\t\tthis.results.add(res);\n\t\t\t\t\tthis.globalResults.add(res);\n\t\t\t\t}\n\n\n\t\t\t\t//envoi du resultat partiel \n\t\t\t\tString json = \"\";\n\t\t\t\tmapper = new ObjectMapper();\n\t\t\t\ttry {\n\t\t\t\t\tjson = mapper.writeValueAsString(this.results);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tACLMessage msg = new ACLMessage(ACLMessage.AGREE);\n\t\t\t\tmsg.setContent(json);\n\t\t\t\tmsg.setSender(this.myAgent.getAID());\n\t\t\t\tmsg.setConversationId(\"NEW_VOTE_RESULTS\");\n\n\t\t\t\tList<AID> agents = DFServices.findGameControllerAgent(\"ENVIRONMENT\", this.myAgent, this.controllerAgent.getGameid());\n\t\t\t\tif(!agents.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tfor(AID aid : agents)\n\t\t\t\t\t{\n\t\t\t\t\t\tmsg.addReceiver(aid);\n\t\t\t\t\t}\n\t\t\t\t\tthis.myAgent.send(msg);\n\t\t\t\t}\n\n\t\t\t\t///\tSystem.err.println(\"\\nSV : \"+this.nbVoters+\"/\"+this.request.getAIDVoters().size());\n\n\t\t\t\tif(this.nbVoters >= this.request.getAIDVoters().size())\n\t\t\t\t{\n\t\t\t\t\tthis.nbVoters = 0;\n\t\t\t\t\t//System.err.println(\"SV next step\");\n\t\t\t\t\tthis.nextStep = STATE_RESULTS;\n\t\t\t\t}\n\t\t\t\telse if(this.nbAsynchronousPlayers > 0)\n\t\t\t\t{\n\t\t\t\t\t//System.err.println(\"SV waiting other\");\n\t\t\t\t\tthis.nextStep = STATE_RECEIVE_INFORM;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"SV send request to other\");\n\t\t\t\t\tthis.nextStep = STATE_SEND_REQUEST;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tblock(1000);\t\n\t\t\t}\n\t\t}\n\n\n\t\telse if(this.step.equals(STATE_GET_SIMPLE_SUSPICION))\n\t\t{\n\t\t\tACLMessage messageRequest = new ACLMessage(ACLMessage.REQUEST);\n\t\t\tmessageRequest.setSender(this.myAgent.getAID());\n\t\t\tmessageRequest.setConversationId(\"GET_SIMPLE_SUSPICION\");\n\n\t\t\tObjectMapper mapper = new ObjectMapper();\n\n\t\t\tString json =\"\";\n\n\t\t\ttry {\t\t\n\t\t\t\tjson = mapper.writeValueAsString(this.request);\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tmessageRequest.setContent(json);\n\t\t\tfor(AID aid : this.request.getAIDVoters()){\n\t\t\t\tmessageRequest.addReceiver(aid);\t\n\t\t\t}\n\n\t\t\tthis.nbVoters = 0;\n\t\t\tthis.myAgent.send(messageRequest);\n\t\t\tthis.nextStep = STATE_ADD_SIMPLE_SUSPICION;\n\t\t}\n\t\telse if(this.step.equals(STATE_ADD_SIMPLE_SUSPICION))\n\t\t{\n\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.INFORM),\n\t\t\t\t\tMessageTemplate.MatchConversationId(\"GET_SIMPLE_SUSPICION\"));\n\n\t\t\tACLMessage message = this.myAgent.receive(mt);\n\t\t\tif(message!=null)\n\t\t\t{\n\t\t\t\t++this.nbVoters;\n\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\tSuspicionScore suspicionScore = new SuspicionScore();\n\t\t\t\ttry {\n\t\t\t\t\tsuspicionScore = mapper.readValue(message.getContent(), SuspicionScore.class);\n\t\t\t\t\t//System.err.println(\"ADD PARTIAL SUSPICION \\n\"+message.getContent());\n\t\t\t\t} \n\t\t\t\tcatch (IOException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tAID aidPlayer = message.getSender();\n\t\t\t\tthis.request.getCollectiveSuspicionScore().addSuspicionScoreGrid(aidPlayer.getName(), suspicionScore);\n\n\t\t\t\tif(this.nbVoters>= this.request.getAIDVoters().size())\n\t\t\t\t{\n\t\t\t\t\tthis.nbVoters = 0;\n\t\t\t\t\tSystem.err.println(\"SUSPICION COLLECTIVE \\n \"+this.request.getCollectiveSuspicionScore().getScore());\n\n\t\t\t\t\t//sort random\n\t\t\t\t\tCollections.shuffle(this.request.getVoters());\n\t\t\t\t\tthis.nextStep = STATE_SEND_REQUEST;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthis.nextStep = STATE_ADD_SIMPLE_SUSPICION;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.nextStep = STATE_ADD_SIMPLE_SUSPICION;\n\t\t\t\tblock(1000);\n\t\t\t}\n\t\t}\n\n\t\telse if(this.step.equals(STATE_RESULTS))\n\t\t{\n\t\t\tthis.finalResults = this.results.getFinalResults();\n\n\t\t\t/** equality ? **/\n\t\t\tif(this.finalResults.size() == 1)\n\t\t\t{\n\t\t\t\tthis.nextStep = STATE_SEND_RESULTS;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//defavorisé le bouc emmissaire\n\t\t\t\tList<AID> scapegoats = DFServices.findGamePlayerAgent(Roles.SCAPEGOAT, this.myAgent, this.controllerAgent.getGameid());\n\t\t\t\tList<String> nameScapegoats = new ArrayList<String>();\n\t\t\t\tfor(AID scapegoat : scapegoats)\n\t\t\t\t{\n\t\t\t\t\tnameScapegoats.add(scapegoat.getName());\n\t\t\t\t}\n\t\t\t\tfor(String scapegoat : nameScapegoats)\n\t\t\t\t{\n\t\t\t\t\tif(this.finalResults.contains(scapegoat))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(this.request.isVoteAgainst())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.finalResults = nameScapegoats;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(this.finalResults.size()>1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.finalResults.remove(scapegoat);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(this.lastResults != null && this.lastResults.equals(this.finalResults))\n\t\t\t\t{\n\t\t\t\t\t/** interblocage **/\n\t\t\t\t\tArrayList<String> tmp = new ArrayList<String>();\n\n\t\t\t\t\t//System.err.println(\"INTERBLOCAGE\");\n\n\t\t\t\t\t/** random choice **/\n\t\t\t\t\ttmp.add(this.finalResults.get((int)Math.random()*this.finalResults.size()));\t\t\t\t\n\t\t\t\t\tthis.finalResults = tmp;\n\n\t\t\t\t\tthis.nextStep = STATE_SEND_RESULTS;\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// new vote with finalists\n\t\t\t\t\tthis.request.setChoices(this.finalResults);\n\n\t\t\t\t\t//sort random\n\t\t\t\t\tCollections.shuffle(this.request.getVoters());\n\n\t\t\t\t\tthis.results = new VoteResults();\n\t\t\t\t\tthis.results.initWithChoice(this.request.getChoices());\n\t\t\t\t\tthis.request.setLocalVoteResults(this.results);\n\t\t\t\t\tthis.lastResults = this.finalResults;\n\t\t\t\t\tthis.nbVoters = 0;\n\t\t\t\t\tthis.nextStep = STATE_SEND_REQUEST;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(this.step.equals(STATE_SEND_RESULTS))\n\t\t{\n\t\t\tif(this.finalResults.isEmpty())\n\t\t\t{\n\t\t\t\tSystem.err.println(\"ERROR\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"RESULTS => \"+this.finalResults.get(0));\n\t\t\t}\n\n\t\t\t//envoi resultat final + maj global vote\n\t\t\tif(this.request.getRequest().equals(\"CITIZEN_VOTE\"))\n\t\t\t{\n\t\t\t\tString json = \"\";\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\ttry {\n\t\t\t\t\tjson = mapper.writeValueAsString(this.results);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tACLMessage message = new ACLMessage(ACLMessage.AGREE);\n\t\t\t\tmessage.setContent(json);\n\t\t\t\tmessage.setSender(this.myAgent.getAID());\n\t\t\t\tmessage.setConversationId(\"NEW_CITIZEN_VOTE_RESULTS\");\n\n\t\t\t\tList<AID> agents = DFServices.findGameControllerAgent(\"ENVIRONMENT\", this.myAgent, this.controllerAgent.getGameid());\n\t\t\t\tif(!agents.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tfor(AID aid : agents)\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage.addReceiver(aid);\n\t\t\t\t\t}\n\t\t\t\t\tthis.myAgent.send(message);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tACLMessage message = new ACLMessage(ACLMessage.INFORM);\n\t\t\tmessage.setSender(this.myAgent.getAID());\n\t\t\tmessage.addReceiver(this.agentSender);\n\t\t\tmessage.setConversationId(\"VOTE_RESULTS\");\n\t\t\tmessage.setContent(this.finalResults.get(0));\n\n\n\t\t\tString name = this.finalResults.get(0);\n\n\t\t\tif(!this.request.isAskRequest()){\n\t\t\t\tint index = name.indexOf(\"@\");\n\t\t\t\tname = name.substring(0, index);\n\t\t\t\tFunctions.newActionToLog(\"Vote : \"+name, this.getAgent(), this.controllerAgent.getGameid());\n\t\t\t}\n\t\t\t\n\n\t\t\tthis.myAgent.send(message);\t\n\t\t\tthis.nextStep = STATE_INIT;\n\t\t}\n\n\n\n\t\tif(!this.nextStep.isEmpty())\n\t\t{\n\t\t\tthis.step = this.nextStep;\n\t\t\tthis.nextStep =\"\";\n\t\t}\n\n\n\t}", "@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}", "public Loyalty(int l)\r\n\t{\r\n\t\tvalue = l;\r\n\t}", "void redirect(Reagent reagent);", "public Loan(double annualInterestRate, int numberOfYears, double loanAmount)\n {\n setAnnualInterestRate(annualInterestRate);\n setNumberOfYears(numberOfYears);\n setLoanAmount(loanAmount);\n loanDate = new Date();\n }", "@Override\n\tpublic void handle(HttpServletRequest request, HttpServletResponse response,\n\t\tAccessDeniedException accessDeniedException) \n throws IOException, ServletException {\n\t\tresponse.sendRedirect(errorPage);\n\n\t}", "void bust() {\n\t\t_loses++;\n\t\t//_money -= _bet;\n\t\tclearHand();\n\t\t_bet = 0;\n\t}", "public Loan(double annualInterestRate, int numberOfYears, double loanAmount) {\n this.annualInterestRate = annualInterestRate;\n this.numberOfYears = numberOfYears;\n this.loanAmount = loanAmount;\n loanDate = new java.util.Date();\n }", "public int getLoanId() {\r\n\t\treturn loanId;\r\n\t}", "public static void enterDetails(int num, double interest){\r\n Scanner s = new Scanner(System.in);\r\n String name;\r\n double amm=0;\r\n int term=-1;\r\n \r\n int loanType;\r\n \r\n do{\r\n System.out.println(\"Press 1: Business Loan\\n\"\r\n + \"Press 2: Personal Loan\");\r\n loanType = parseInt(s.next());\r\n }while(!(loanType == 1 || loanType == 2));\r\n \r\n while(amm <= 0 || amm > 100000){\r\n System.out.print(\"Enter loan ammount: \");\r\n amm = parseDouble(s.next());\r\n if(amm > 100000){\r\n System.out.println(\"Loan exceeds limit\");\r\n }\r\n }\r\n System.out.print(\"Enter the term in years: \");\r\n term = parseInt(s.next());\r\n if(!(term==3 || term==5)){\r\n System.out.println(\"Loan term set to 1 year\");\r\n }\r\n \r\n System.out.print(\"Enter last name: \");\r\n name = s.next();\r\n \r\n switch (loanType) {\r\n case 1:\r\n BusinessLoan b = new BusinessLoan(num, name, amm, term, interest);\r\n if(b.loanNum!=-1){\r\n loan.add(b);\r\n System.out.println(\"Loan approved\");\r\n } \r\n break;\r\n case 2:\r\n PersonalLoan p = new PersonalLoan(num, name, amm, term, interest);\r\n if(p.loanNum!=-1){\r\n loan.add(p);\r\n System.out.println(\"Loan approved\");\r\n }\r\n break;\r\n }\r\n System.out.println(\"---------------------------------------------\");\r\n }", "public void handleEntrance(){\r\n\t\t\tcarsArriving();\r\n\t\t\tcarsEntering(entrancePassQueue);\r\n\t\t\tcarsEntering(entranceCarQueue); \t\r\n\t\t}", "@Override\n\tpublic void handle(HttpServletRequest arg0, HttpServletResponse arg1, AccessDeniedException arg2)\n\t throws IOException, ServletException {\n\t\targ1.sendRedirect(errorPage);\n\t}", "protected int pickUp(int amt) {\n delayElevator();\n return load.addAndGet(amt);\n }", "protected void responseGold(String gold){\n\t\tgoldLeft = Integer.parseInt(gold.split(\" \")[1]);\n\t}", "private void DealersTurn() {\n\n dealer.setHandSum(CalcHandSum(dealer, dealer.hand));\n //Hits while hand is less than 17\n while (dealer.getHandSum() < 17) {\n dealer.Hit(dealer, deck);\n dealer.setHandSum(CalcHandSum(dealer, dealer.hand));\n }\n if (IsBust(dealer)) {\n System.out.println(\"Dealer busts at \" + dealer.getHandSum());\n dealer.isBust = true;\n }\n else {\n System.out.println(\"Dealer stays at \" + dealer.getHandSum());\n dealer.setHandSum(dealer.getHandSum());\n }\n }", "public void brake(double amount){\n if(acceptedValueRange(amount)){\n decrementSpeed(Math.abs(amount));\n }\n }", "public void dischargeLoan(boolean isDamaged) {\n\t\tif (!state.equals(ControlState.INSPECTING)) {\r\n\t\t\tthrow new RuntimeException(\"ReturnBookControl: cannot call dischargeLoan except in INSPECTING state\");\r\n\t\t}\t\r\n\t\tlibrary.dischargeLoan(currentLoan, isDamaged); //Changed method name to verb starting with lowercase and in camelBack\r\n\t\tcurrentLoan = null; //Changed variable name to a meaningful word\r\n\t\tuserInterface.setState(ReturnBookUI.UI_STATE.READY);\r\n\t\tstate = ControlState.READY;\t\t\t\t\r\n\t}", "protected void retrieveMIBFollowups(String tx404Request) throws Exception {\n NbaTXLife tx404Response = callWebService(tx404Request);\n processWebServiceResponse(tx404Response);\n }", "private void filterAndHandleRequest () {\n\t// Filter the request based on the header.\n\t// A response means that the request is blocked.\n\t// For ad blocking, bad header configuration (http/1.1 correctness) ... \n\tHttpHeaderFilterer filterer = proxy.getHttpHeaderFilterer ();\n\tHttpHeader badresponse = filterer.filterHttpIn (this, channel, request);\n\tif (badresponse != null) {\n\t statusCode = badresponse.getStatusCode ();\n\t sendAndClose (badresponse);\n\t} else {\n\t status = \"Handling request\";\n\t if (getMeta ())\n\t\thandleMeta ();\n\t else\n\t\thandleRequest ();\n\t}\n }", "@Override\n\tpublic void acceptRequest(RequestLoanDevices requesLoanDevices) {\n\t\ttry {\n\t\t\tacceptedDao.getNumberLoanByDates(requesLoanDevices.getDateLoan(), requesLoanDevices.getDateClose(),\n\t\t\t\t\trequesLoanDevices.getUsersByUserRequest().getIdUser());\n\t\t} catch (DaoException e) {\n\t\t\tthrow e;\n\t\t}\n\t\trequestDao.update(requesLoanDevices);\n\t\tString mensajeCorreo = \"\";\n\t\tif (requesLoanDevices.getApproved()) {\n\t\t\tAccetedLoanDevices accetedLoanDevices = new AccetedLoanDevices();\n\t\t\taccetedLoanDevices.setDateClose(requesLoanDevices.getDateClose());\n\t\t\taccetedLoanDevices.setDateLoan(requesLoanDevices.getDateLoan());\n\t\t\taccetedLoanDevices.setDevices(requesLoanDevices.getDevice());\n\t\t\taccetedLoanDevices.setRequestLoanDeviceId(requesLoanDevices.getIdrequestLoanDevices());\n\t\t\taccetedLoanDevices.setUser(requesLoanDevices.getUsersByUserRequest());\n\t\t\tacceptedDao.save(accetedLoanDevices);\n\t\t\tmensajeCorreo = \"Solictud aprobada para la fecha \" + requesLoanDevices.getDateLoan();\n\t\t} else {\n\t\t\tmensajeCorreo = \"Solictud rechazada para la fecha \" + requesLoanDevices.getDateLoan();\n\t\t}\n\t\tnew SendEmail().enviar(requesLoanDevices.getUsersByUserApproved().getIdUser(),\n\t\t\t\t\"Notificacion de solicitud de prestamo\", mensajeCorreo);\n\n\t}", "public void educationLoan(){\r\n\t\tSystem.out.println(\"HSBC ----educationLoan method called from HSBCBank class\");\r\n\t}", "public BigDecimal getLoanAmont() {\n return loanAmount == null ? BigDecimal.ZERO : loanAmount;\n }", "public LoanApplicationResponse rejectLoanRequest() {\n return new LoanApplicationResponse(this, false);\n }", "@Test\n public void retrieveLoanTest() throws ApiException {\n Long loanId = null;\n GetSelfLoansLoanIdResponse response = api.retrieveLoan(loanId);\n\n // TODO: test validations\n }", "public void damage ( double amount ) {\n\t\texecute ( handle -> handle.damage ( amount ) );\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n APIContext apiContext = null;\n String accessToken = null;\n HttpSession session = request.getSession(); \n \n try {\n accessToken = GenerateAccessToken.getAccessToken();\n\n apiContext = new APIContext(accessToken);\n\n if (request.getParameter(\"PayerID\") != null) {\n \n Payment payment = new Payment();\n payment.setId((String) session.getAttribute(\"paymentId\"));\n\n PaymentExecution paymentExecution = new PaymentExecution();\n paymentExecution.setPayerId(request.getParameter(\"PayerID\"));\n payment.execute(apiContext, paymentExecution);\n \n payment = Payment.get(accessToken, payment.getId());\n \n String transactionStatus = \"created\";\n \n if (!payment.getTransactions().isEmpty()) {\n if (!payment.getTransactions().get(0).getRelatedResources().isEmpty()) {\n transactionStatus = payment.getTransactions().get(0).getRelatedResources().get(0).getSale().getState();\n LOGGER.log(Level.INFO, \"Transaction details: \" + payment.getTransactions().get(0).getRelatedResources().get(0).getSale().getState());\n }\n }\n \n if (transactionStatus.equals(\"completed\")) {\n if (this.releaseCandies()) {\n request.setAttribute(\"response\", \"{status: success!}\");\n } else {\n request.setAttribute(\"error\", \"{status: candies don't released!}\");\n }\n } else {\n request.setAttribute(\"error\", \"{status: payment wasn't completed!}\");\n }\n \n }\n \n } catch (PayPalRESTException e) {\n LoggingManager.debug(PayPalPostSale.class, e.getLocalizedMessage());\n request.setAttribute(\"error\", e.getMessage());\n }\n \n request.getRequestDispatcher(\"response.jsp\").forward(request, response);\n }", "public void handle(int procent) {\n\t\t\n\t}", "public void decreaseHealingNumber() {\n healingNumber--;\n }", "@Override\r\n protected void handleEvent(int actionId)\r\n {\n cancelCurrentRequest();\r\n requestRouteChoices();\r\n }", "@Override\n\tpublic void onTalkToNpc(Player p, final Npc n) {\n\t\tp.setBusy(true);\n\t\tn.blockedBy(p);\n\n\t\tplayMessages(p, n, true, \"Can I come through this gate?\");\n\t\tplayMessages(p, n, false, \"You must pay a toll of 10 gold coins to pass\");\n\n\t\tString[] options = new String[] { \"No thankyou, I'll walk round\", \"Who does my money go to?\", \"yes ok\" };\n\n\t\tp.setMenuHandler(new MenuHandler(options) {\n\t\t\t@Override\n\t\t\tpublic void handleReply(int option, String reply) {\n\t\t\t\towner.setBusy(true);\n\t\t\t\tplayMessages(owner, n, true, reply);\n\n\t\t\t\tswitch(option) {\n\t\t\t\tcase 0: // no thanks\n\t\t\t\t\tplayMessages(owner, n, false, \"Ok suit yourself\");\n\n\t\t\t\t\tn.unblock();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1: // who does money go to\n\t\t\t\t\tplayMessages(owner, n, false, \"The money goes to the city of Al Kharid\");\n\n\t\t\t\t\tn.unblock();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2: // yes\n\t\t\t\t\tif(owner.getInventory().remove(10, 10) > -1) { // enough money\n\t\t\t\t\t\towner.getActionSender().sendInventory();\n\t\t\t\t\t\towner.getActionSender().sendMessage(\"You pay the guard\");\n\t\t\t\t\t\tplayMessages(owner, n, false, \"You may pass\");\n\t\t\t\t\t\towner.getActionSender().sendMessage(\"The gate swings open\"); // lold\n\t\t\t\t\t\t//x > 91 (left side of fence\n\t\t\t\t\t\tif(owner.getX() > 91)\n\t\t\t\t\t\t\towner.teleport(90, 649, false);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\towner.teleport(93, 649, false);\n\t\t\t\t\t\n\n\t\t\t\t\t\tn.unblock();\n\t\t\t\t\t} else { // not enough money\n\t\t\t\t\t\tplayMessages(owner, n, true, \"Oh dear I don't actually seem to have enough money\");\n\n\t\t\t\t\t\tn.unblock();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\towner.setBusy(false);\n\t\t\t}\n\t\t});\n\t\tp.getActionSender().sendMenu(options);\n\t\tp.setBusy(false);\n\t}", "@SuppressWarnings(\"PMD.SignatureDeclareThrowsException\")\n public void redoLoanDisbursalWithPastDateUnpaid() throws Exception {\n // Testing redo loan\n RedoLoanDisbursalParameters paramsPastDate = new RedoLoanDisbursalParameters();\n paramsPastDate.setDisbursalDateDD(\"25\");\n paramsPastDate.setDisbursalDateMM(\"02\");\n paramsPastDate.setDisbursalDateYYYY(\"2011\");\n paramsPastDate.setLoanAmount(\"3000.0\");\n paramsPastDate.setInterestRate(\"10\");\n paramsPastDate.setNumberOfInstallments(\"52\");\n RedoLoanDisbursalParameters paramsCurrentDate = new RedoLoanDisbursalParameters();\n paramsCurrentDate.setDisbursalDateDD(\"22\");\n paramsCurrentDate.setDisbursalDateMM(\"2\");\n paramsCurrentDate.setDisbursalDateYYYY(\"2012\");\n LoanAccountPage loanAccountPage = loanTestHelper.redoLoanDisbursal(\"Default Group\", \"WeeklyGroupFlatLoanWithOnetimeFee\", paramsPastDate, paramsCurrentDate, 0, true);\n loanAccountPage.verifyStatus(\"Active in Good Standing\");\n loanAccountPage.verifyPerformanceHistory(\"51\", \"0\");\n // Testing multiple reverse payments\n String payAmount = \"63\";\n String reverseNote = \"Reversed \";\n int loanBalance = (int) (Float.parseFloat(loanAccountPage.getTotalBalance()) + 63 * 3);\n for (int i = 0; i < 3; i++) {\n ApplyAdjustmentPage applyAdjustmentPage = loanAccountPage.navigateToApplyAdjustment();\n applyAdjustmentPage.verifyAdjustment(payAmount, reverseNote + (i + 1));\n }\n verifyMultipleReversePayments(loanAccountPage, payAmount, reverseNote, loanBalance);\n }", "public void deleteLoan() throws SQLException{\n\t\tConnection conn = DataSource.getConnection();\n\t\ttry{\n\t\t\t\n\t\t\tString query = \"SELECT no_irregular_payments FROM loan\"\n\t\t\t\t\t\t+ \" WHERE client_id ='\"+this.client_id+\"' AND start_date ='\"+this.start_date+\"';\";\n\t\t\tStatement stat = conn.createStatement();\n\t\t\tResultSet rs = stat.executeQuery(query);\n\t\t\trs.next();\n\t\t\tint irrPayments = rs.getInt(1);\n\t\t\t\n\t\t\t// get the current date that will serve as an end date for the loan\n\t\t\tDate current_time = new Date();\n\t\t\t// MySQL date format\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t// Adapt the java data format to the mysql one\n\t\t\tString end_date = sdf.format(current_time);\n\t\t\t\n\t\t\tquery = \"INSERT INTO loan_history \"\n\t\t\t\t\t+ \"VALUES ('\"+this.client_id+\"', \"+this.principal_amount+\", '\"+this.start_date+\"', '\"+end_date+\"', \"+irrPayments+\")\";\n\t\t\tstat.executeUpdate(query);\n\t\t\t\n\t\t\t// delete the loan\n\t\t\tquery = \"DELETE FROM loan \"\n\t\t\t\t\t+ \"WHERE client_id = '\"+this.client_id+\"' AND start_date = '\"+this.start_date+\"';\";\n\t\t\tstat.executeUpdate(query);\n\t\t\t\n\t\t}finally{\n\t\t\tconn.close();\n\t\t}\n\t}", "@Override\n public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException {\n if (response.getStatus() == HttpServletResponse.SC_NOT_FOUND) {\n forward(redirectRoute, baseRequest, response);\n } else {\n super.handle(target, baseRequest, request, response);\n }\n }", "private void handleConfirmBillPayment() {\n\t\t// TODO Auto-generated method stub\n\t\ttry {\n\t\t\tPaymentBiller request = new PaymentBiller();\n\t\t\tObjectFactory f = new ObjectFactory();\n\t\t\tCommonParam2 commonParam = f.createCommonParam2();\n\t\t\t\n\t\t\tcommonParam.setProcessingCode(f.createCommonParam2ProcessingCode(\"100601\"));\n\t\t\tcommonParam.setChannelId(f.createCommonParam2ChannelId(\"6018\"));\n\t\t\tcommonParam.setChannelType(f.createCommonParam2ChannelType(\"PB\"));\n\t\t\tcommonParam.setNode(f.createCommonParam2Node(\"WOW_CHANNEL\"));\n\t\t\tcommonParam.setCurrencyAmount(f.createCommonParam2CurrencyAmount(\"IDR\"));\n\t\t\tcommonParam.setAmount(f.createCommonParam2Amount(String.valueOf(billPayBean.getBillAmount())));\n\t\t\tcommonParam.setCurrencyfee(f.createCommonParam2Currencyfee(billPayBean.getFeeCurrency()));\n\t\t\tcommonParam.setFee(f.createCommonParam2Fee(String.valueOf(billPayBean.getFeeAmount())));\n\t\t\tcommonParam.setTransmissionDateTime(f.createCommonParam2TransmissionDateTime(PortalUtils.getSaveXMLGregorianCalendar(Calendar.getInstance()).toXMLFormat()));\n\t\t\tcommonParam.setRequestId(f.createCommonParam2RequestId(MobiliserUtils.getExternalReferenceNo(isystemEndpoint)));\n\t\t\tcommonParam.setAcqId(f.createCommonParam2AcqId(\"213\"));\n\t\t\tcommonParam.setReferenceNo(f.createCommonParam2ReferenceNo(String.valueOf(billPayBean.getReferenceNumber())));\n\t\t\tcommonParam.setTerminalId(f.createCommonParam2TerminalId(\"WOW\"));\n\t\t\tcommonParam.setTerminalName(f.createCommonParam2TerminalName(\"WOW\"));\n\t\t\tcommonParam.setOriginal(f.createCommonParam2Original(billPayBean.getAdditionalData()));\n\t\t\t\n\t\t\trequest.setCommonParam(commonParam);\n\t\t\tPhoneNumber phone = new PhoneNumber(this.getMobiliserWebSession().getBtpnLoggedInCustomer().getUsername());\n\t\t\trequest.setAccountNo(phone.getNationalFormat());\n\t\t\trequest.setBillerCustNo( billPayBean.getSelectedBillerId().getId()); \n\t\t\trequest.setDebitType(\"0\");\n\t\t\trequest.setInstitutionCode(billPayBean.getBillerId());\n\t\t\trequest.setProductID(billPayBean.getProductId());\n\t\t\trequest.setUnitId(\"0901\");\n\t\t\trequest.setProcessingCodeBiller(\"501000\");\n\t\t\t\n\t\t\tString desc1=\"Bill Payment\";\n\t\t\tString desc2= billPayBean.getBillerId();\n\t\t\tString desc3=\"\";\n\t\t\t\n\t\t\trequest.setAdditionalData1(desc1);\n\t\t\trequest.setAdditionalData2(desc2);\n\t\t\trequest.setAdditionalData3(desc3);\n\t\t\t\n\t\t\tPaymentBillerResponse response = new PaymentBillerResponse();\n\t\t\t\n\t\t\tresponse = (PaymentBillerResponse) webServiceTemplete.marshalSendAndReceive(request, \n\t\t\t\t\tnew WebServiceMessageCallback() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void doWithMessage(WebServiceMessage message) throws IOException,\n\t\t\t\t\t\tTransformerException {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t((SoapMessage) message)\n\t\t\t\t\t.setSoapAction(\"com_btpn_biller_ws_provider_BtpnBillerWsTopup_Binder_paymentBiller\");\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tif (response.getResponseCode().equals(\"00\")) {\n\t\t\t\tbillPayBean.setStatusMessage(getLocalizer().getString(\"success.perform.billpayment\", this));\n\t\t\t\tsetResponsePage(new BankBillPaymentStatusPage(billPayBean));\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(MobiliserUtils.errorMessage(response.getResponseCode(), response.getResponseDesc(), getLocalizer(), this));\n\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\terror(getLocalizer().getString(\"error.exception\", this));\n\t\t\tLOG.error(\"An exception was thrown\", e);\n\t\t}\n\t}", "public void setRequestNum(int amount){\n requestNum = amount;\n }", "@Override\n\tpublic void processRequest(HttpRequest request, HttpResponse response) throws Exception {\n\t\tresponse.setHeaderField( \"Server-Name\", \"Las2peer 0.1\" );\n\t\tresponse.setContentType( \"text/xml\" );\n\t\t\n\t\t\n\t\t\n\t\tif(authenticate(request,response))\n\t\t\tif(invoke(request,response));\n\t\t\t\t//logout(_currentUserId);\n\t \n\t\n\t\t//connector.logMessage(request.toString());\n\t\t\n\t\t\n\t}", "@Override\n\t\tpublic void action() {\n\t\t\tMessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.REQUEST); \n\t\t\tACLMessage msg = receive(mt);\n\t\t\tif(msg != null){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tContentElement ce = null;\n\t\t\t\t\tSystem.out.println(msg.getContent()); //print out the message content in SL\n\n\t\t\t\t\t// Let JADE convert from String to Java objects\n\t\t\t\t\t// Output will be a ContentElement\n\t\t\t\t\tce = getContentManager().extractContent(msg);\n\t\t\t\t\tSystem.out.println(ce);\n\t\t\t\t\tif(ce instanceof Action) {\n\t\t\t\t\t\tConcept action = ((Action)ce).getAction();\n\t\t\t\t\t\tif (action instanceof SupplierOrder) {\n\t\t\t\t\t\t\tSupplierOrder order = (SupplierOrder)action;\n\t\t\t\t\t\t\t//CustomerOrder cust = order.getItem();\n\t\t\t\t\t\t\t//OrderQuantity = order.getQuantity();\n\t\t\t\t\t\t\tif(!order.isFinishOrder()) {\n\t\t\t\t\t\t\tSystem.out.println(\"exp test: \" + order.getQuantity());\n\t\t\t\t\t\t\trecievedOrders.add(order);}\n\t\t\t\t\t\t\telse {orderReciever = true;}\n\t\t\t\t\t\t\t//Item it = order.getItem();\n\t\t\t\t\t\t\t// Extract the CD name and print it to demonstrate use of the ontology\n\t\t\t\t\t\t\t//if(it instanceof CD){\n\t\t\t\t\t\t\t\t//CD cd = (CD)it;\n\t\t\t\t\t\t\t\t//check if seller has it in stock\n\t\t\t\t\t\t\t\t//if(itemsForSale.containsKey(cd.getSerialNumber())) {\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Selling CD \" + cd.getName());\n\t\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t\t\t//else {\n\t\t\t\t\t\t\t\t\t//System.out.println(\"You tried to order something out of stock!!!! Check first!\");\n\t\t\t\t\t\t\t\t//}\n\n\t\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\t\n\n\t\t\t\t\t}\n\t\t\t\t\t//deal with bool set here\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcatch (CodecException ce) {\n\t\t\t\t\tce.printStackTrace();\n\t\t\t\t}\n\t\t\t\tcatch (OntologyException oe) {\n\t\t\t\t\toe.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tblock();\n\t\t\t}\n\t\t}", "private SpeechletResponse handleTransferMoneyExecute(Session session) {\n\t\treturn null;\n\t}", "public void arrive(BusIfc bus)\n {\n\n TillLoanCargo cargo = (TillLoanCargo) bus.getCargo();\n RegisterIfc register = cargo.getRegister();\n\n // Set current till (used by poscount service)\n TillIfc t = DomainGateway.getFactory().getTillInstance();\n t.setTillID(register.getCurrentTillID());\n cargo.setTillID(register.getCurrentTillID());\n t.addCashier(cargo.getOperator());\n cargo.setTill(t);\n \n // Create the Till Loan Transaction\n UtilityManagerIfc utility = \n (UtilityManagerIfc) bus.getManager(UtilityManagerIfc.TYPE);\n TillAdjustmentTransactionIfc transaction =\n DomainGateway.getFactory().getTillAdjustmentTransactionInstance();\n transaction.setTransactionType(TransactionIfc.TYPE_LOAN_TILL);\n utility.initializeTransaction(transaction, bus, -1);\n cargo.setTransaction(transaction);\n\n // Determine the letter according to the loan count setting \n String letterName = null;\n int tillCountCashLoan = register.getTillCountCashLoan();\n\n switch (tillCountCashLoan)\n {\n case FinancialCountIfc.COUNT_TYPE_NONE:\n {\n cargo.setLoanCountType(FinancialCountIfc.COUNT_TYPE_NONE);\n letterName = TillLetterIfc.COUNT_TYPE_NONE;\n break;\n }\n case FinancialCountIfc.COUNT_TYPE_DETAIL:\n {\n cargo.setLoanCountType(FinancialCountIfc.COUNT_TYPE_DETAIL);\n letterName = TillLetterIfc.COUNT_TYPE_DETAIL;\n break;\n }\n case FinancialCountIfc.COUNT_TYPE_SUMMARY:\n default:\n {\n cargo.setLoanCountType(FinancialCountIfc.COUNT_TYPE_SUMMARY);\n letterName = TillLetterIfc.COUNT_TYPE_SUMMARY;\n }\n } \n\n bus.mail(new Letter(letterName), BusIfc.CURRENT);\n\n }" ]
[ "0.59531", "0.5877681", "0.57431304", "0.5702589", "0.5502467", "0.54900527", "0.5473349", "0.5459849", "0.54465836", "0.5360575", "0.53540874", "0.5345292", "0.53013325", "0.5283912", "0.5272563", "0.52574664", "0.52555686", "0.5183357", "0.5169756", "0.5164082", "0.5138846", "0.5099171", "0.5090671", "0.5053464", "0.504781", "0.5044306", "0.50385886", "0.50238985", "0.500653", "0.49984515", "0.4986033", "0.49688762", "0.49684283", "0.49622664", "0.49526605", "0.49516344", "0.494377", "0.49400455", "0.48864555", "0.48826602", "0.48577282", "0.48364955", "0.48345733", "0.4832224", "0.48244834", "0.4813535", "0.47977266", "0.47971982", "0.47892413", "0.47806168", "0.4779643", "0.47691256", "0.475679", "0.4751025", "0.47359455", "0.47308722", "0.47219783", "0.47141796", "0.47122607", "0.47010097", "0.4690872", "0.4687962", "0.46856993", "0.46854362", "0.4672952", "0.46690422", "0.46677086", "0.46615145", "0.46574286", "0.46557406", "0.46451795", "0.46435505", "0.46414578", "0.46287334", "0.46196085", "0.4614424", "0.45971182", "0.45965368", "0.45938078", "0.4588172", "0.45833582", "0.4579175", "0.45684087", "0.45621628", "0.45578423", "0.45453548", "0.45415992", "0.45413694", "0.45353305", "0.45326838", "0.45315152", "0.45260814", "0.45257103", "0.45233893", "0.45182616", "0.45166382", "0.4508004", "0.45063847", "0.45035085", "0.45026004" ]
0.6843378
0
Approve the loan request and return it to the customer.
public LoanApplicationResponse approveLoanRequest() { return new LoanApplicationResponse(this, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(\"/agent/enrollment/approve\")\n public String approve(@RequestParam(\"id\") long id, ApprovalDTO dto) {\n String signature = \"EnrollmentController#approve(long id, ApprovalDTO dto)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"id\", \"dto\" }, new Object[] { id, dto });\n StatusDTO statusDTO = new StatusDTO();\n\n try {\n completeReview(id, dto, false, \"\");\n statusDTO.setSuccess(true);\n ControllerHelper.flashInfo(\"Approval request has been sent, you will be notified once it is processed.\");\n } catch (PortalServiceException ex) {\n LogUtil.traceError(getLog(), signature, ex);\n ControllerHelper.flashError(USER_ERROR_MSG);\n }\n return \"redirect:/ops/viewDashboard\";\n }", "public ApproveWithdrawalResponseData approveWithdrawal(ApproveWithdrawalRequestData request) throws TrustlyRequestException {\n return this.sendRequest(request, ApproveWithdrawalResponseData.class, \"ApproveWithdrawal\", null);\n }", "public void employeeServiceApprove() {\n\t\t\n\t\tEmployee employee = new Employee();\n\t\t employee.approve();\n\t}", "HrDocumentRequest approve(HrDocumentRequest hrDocumentRequest);", "@RequestMapping(value = \"/{id}/approve\", method = RequestMethod.POST)\n \tpublic String approve(@PathVariable(\"id\") Long id,\n \t @RequestParam(value = \"approve\", defaultValue = \"true\", required = false) boolean approve,\n \t @RequestParam(value = \"region\", required = false) final String region, ModelMap model) {\n \t\tagentManagerService.approve(id, approve);\n \t\tmodel.addAttribute(\"region\", region);\n \t\tmodel.addAttribute(\"regions\", regionService.getAll().keySet());\n \t\treturn \"agent/list\";\n \t}", "private TransferPointRequest processTransferApproval(TransferPointRequest transferPointRequest) throws InspireNetzException {\n Customer requestor = transferPointRequest.getFromCustomer();\n\n Customer approver = customerService.findByCusCustomerNo(transferPointRequest.getApproverCustomerNo());\n\n //if a new request , send approval request and save request\n if(transferPointRequest.getPtrId() == null || transferPointRequest.getPtrId() == 0){\n\n // Log the information\n log.info(\"transferPoints -> New request for point transfer received(Approval needed)\");\n\n //add a new transfer point request\n transferPointRequest = addTransferPointRequest(transferPointRequest);\n\n log.info(\"transferPoints: Sending approval request to approver\");\n\n //send approval request to approver\n partyApprovalService.sendApproval(requestor,approver,transferPointRequest.getPtrId(),PartyApprovalType.PARTY_APPROVAL_TRANSFER_POINT_REQUEST,transferPointRequest.getToLoyaltyId(),transferPointRequest.getRewardQty()+\"\");\n\n //set transfer allowed to false\n transferPointRequest.setTransferAllowed(false);\n\n } else {\n\n //CHECK whether approver has accepted the request\n boolean isTransferAllowed = isPartyApprovedTransfer(transferPointRequest);\n\n if(isTransferAllowed){\n\n log.info(\"transferPoints : Transfer is approved by the linked account\");\n\n //set redemption allowed to true\n transferPointRequest.setTransferAllowed(true);\n\n } else {\n\n log.info(\"transferPoints : Transfer request rejected by linked account\");\n\n //set redemption allowed to false\n transferPointRequest.setTransferAllowed(false);\n\n\n }\n }\n\n return transferPointRequest;\n }", "org.hyperledger.fabric.protos.token.Transaction.PlainApprove getPlainApprove();", "public String approve() throws Exception\r\n {\r\n try\r\n {\r\n PoInvGrnDnMatchingHolder holder = poInvGrnDnMatchingService.selectByKey(param.getMatchingOid());\r\n \r\n if (\"yes\".equals(this.getSession().get(SESSION_SUPPLIER_DISPUTE)))\r\n {\r\n if (PoInvGrnDnMatchingStatus.PENDING.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"pending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.MATCHED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"matched\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.INSUFFICIENT_INV.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"insufficientInv\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.OUTDATED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"outdated\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingInvStatus.APPROVED.equals(holder.getInvStatus()) || PoInvGrnDnMatchingInvStatus.SYS_APPROVED.equals(holder.getInvStatus()))\r\n {\r\n this.result = \"approved\";\r\n return SUCCESS;\r\n }\r\n if (!holder.getRevised())\r\n {\r\n if (PoInvGrnDnMatchingSupplierStatus.PENDING.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplierpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.ACCEPTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplieraccept\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.REJECTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"buyerpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.REJECTED.equals(holder.getBuyerStatus()))\r\n {\r\n this.result = \"rejected\";\r\n return SUCCESS;\r\n }\r\n }\r\n }\r\n if (null == param.getInvStatusActionRemarks() || param.getInvStatusActionRemarks().length() == 0 || param.getInvStatusActionRemarks().length() > 255)\r\n {\r\n this.result = \"remarks\";\r\n return SUCCESS;\r\n }\r\n this.checkInvFileExist(holder);\r\n poInvGrnDnMatchingService.changeInvDateToFirstGrnDate(holder);\r\n PoInvGrnDnMatchingHolder newHolder = new PoInvGrnDnMatchingHolder();\r\n BeanUtils.copyProperties(holder, newHolder);\r\n newHolder.setInvStatus(PoInvGrnDnMatchingInvStatus.APPROVED);\r\n newHolder.setInvStatusActionDate(new Date());\r\n newHolder.setInvStatusActionRemarks(param.getInvStatusActionRemarks());\r\n newHolder.setInvStatusActionBy(getProfileOfCurrentUser().getLoginId());\r\n poInvGrnDnMatchingService.auditUpdateByPrimaryKeySelective(this.getCommonParameter(), holder, newHolder);\r\n poInvGrnDnMatchingService.moveFile(holder);\r\n this.result = \"1\";\r\n }\r\n catch (Exception e)\r\n {\r\n ErrorHelper.getInstance().logError(log, this, e);\r\n this.result = \"0\";\r\n }\r\n return SUCCESS;\r\n }", "public void autoApprove(int reimburseID, String autoReason, int status);", "public void approveApplication(PersonalLoanApplication application, Applicant applicant, String message) throws SQLException, MessagingException {\r\n\t\tapplicationDao.updateLoanApplicationStatus(\"C\", application.getApplicationId());\r\n\t\tsendApplicationApprovedMail(application, applicant, message);\r\n\t}", "public void clickbtnApprove() {\n\t\twaitForElementClickable(10,btnApprove);\n\t\tclickByJavaScript(btnApprove);\n\t\tsleep(1);\n\t}", "public void processAppointmentRequest(int appointmentId)\n {\n AppointmentListSingleton appointments = AppointmentListSingleton.getInstance();\n appointments.approveRequest(appointmentId);\n }", "public void approveApplication(MortgageApplication application, Applicant applicant, String message) throws SQLException, MessagingException {\r\n\t\tapplicationDao.updateMortgageApplicationStatus(\"C\", application.getApplicationId());\r\n\t\tsendApplicationApprovedMail(application, applicant, message);\r\n\t}", "public boolean approveAppointment() {\n\t\tIHealthCareDAO dao = new HealthCareDAO();\r\n\t\treturn dao.approveAppointment();\r\n\t}", "private boolean isPartyApprovedTransfer(TransferPointRequest transferPointRequest) {\n Customer requestor = transferPointRequest.getFromCustomer();\n\n Customer approver = customerService.findByCusCustomerNo(transferPointRequest.getApproverCustomerNo());\n\n // Check if there is a entry in the LinkingApproval table\n PartyApproval partyApproval = partyApprovalService.getExistingPartyApproval(approver, requestor, PartyApprovalType.PARTY_APPROVAL_TRANSFER_POINT_REQUEST, transferPointRequest.getPtrId());\n\n // If the partyApproval is not found, then return false\n if ( partyApproval == null) {\n\n // Log the information\n log.info(\"isPartyApproved -> Party has not approved linking\");\n\n // return false\n return false;\n\n } else {\n\n return transferPointRequest.isApproved();\n }\n\n }", "@Override\n\tpublic boolean approveIt() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean approvePartner(Partner partner) {\n\t\treturn false;\n\t}", "@Override\n\tpublic void approveForm(Context ctx) {\n\t\t//Authentication\n\t\tUser approver = ctx.sessionAttribute(\"loggedUser\");\n\t\tif (approver == null) {\n\t\t\tctx.status(401);\n\t\t\treturn;\n\t\t}\n\t\tString username = ctx.pathParam(\"username\");\n\t\tif (!approver.getUsername().equals(username)) {\n\t\t\tctx.status(403);\n\t\t\treturn;\n\t\t}\n\t\t// Implementation\n\t\tString id = ctx.pathParam(\"id\");\n\t\tForm form = fs.getForm(UUID.fromString(id));\n\t\tapprover.getAwaitingApproval().remove(form);\n\t\tus.updateUser(approver);\n\t\t// If approver is just the direct supervisor\n\t\tif (!approver.getType().equals(UserType.DEPARTMENT_HEAD) && !approver.getType().equals(UserType.BENCO)) {\n\t\t\tform.setSupervisorApproval(true);\n\t\t\tUser departmentHead = us.getUserByName(approver.getDepartmentHead());\n\t\t\tdepartmentHead.getAwaitingApproval().add(form);\n\t\t\tus.updateUser(departmentHead);\n\t\t}\n\t\t// If the approver is a department head but not a benco\n\t\tif (approver.getType().equals(UserType.DEPARTMENT_HEAD) && !approver.getType().equals(UserType.BENCO)) {\n\t\t\tform.setDepartmentApproval(true);\n\t\t\tUser benco = us.getUser(\"sol\");\n\t\t\tbenco.getAwaitingApproval().add(form);\n\t\t\tus.updateUser(benco);\n\t\t}\n\t\t// if the approver is a BenCo\n\t\tif (approver.getType().equals(UserType.BENCO)) {\n\t\t\tform.setBencoApproval(true);\n\t\t\tUser formSubmitter = us.getUserByName(form.getName());\n\t\t\tif (formSubmitter.getAvailableReimbursement() >= form.getCompensation()) {\n\t\t\t\tformSubmitter.setAvailableReimbursement(formSubmitter.getAvailableReimbursement() - form.getCompensation());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tformSubmitter.setAvailableReimbursement(0.00);\n\t\t\t}\n\t\t\tformSubmitter.getAwaitingApproval().remove(form);\n\t\t\tformSubmitter.getCompletedForms().add(form);\n\t\t\tus.updateUser(formSubmitter);\n\t\t}\n\t\t\n\t\tfs.updateForm(form);\n\t\tctx.json(form);\n\t}", "@RequestMapping(value = \"/approve\", method = RequestMethod.GET)\n\t\tpublic String approveHunterCert(Model model,\n\t\t\t\t@RequestParam(value = \"horseName\", required = true) String name,\n\t\t\t\t@RequestParam(value = \"approve\", required = true) String approve) {\n\n\t\t\t\n\n\t\t\tif (approve.equals(\"approveStage\")) {\n\t\t\t\tmodel.addAttribute(\"horse_name\", name);\n\t\t\t\tmodel.addAttribute(\"approve\", \"approve\");\n\t\t\t\treturn \"huntercert-approveCancel\";\n\n\t\t\t}\n\n\t\t\telse if (approve.equals(\"rejectStage\")) {\n\t\t\t\tmodel.addAttribute(\"horse_name\", name);\n\t\t\t\tmodel.addAttribute(\"reject\", \"reject\");\n\t\t\t\treturn \"huntercert-approveCancel\";\n\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\telse if (approve.equals(\"approve\")) {\n\t\t\t\t\n\t\t\t\thunterCertService.approveHunterCertByHunt(Integer.parseInt(horseService.getHorses(name).get(0).getId()));\n\t\t\t\treturn \"redirect:/huntApproval/\";\n\n\t\t\t}\n\t\t\t\n\t\t\telse if(approve.equals(\"reject\")){\n\t\t\t\thunterCertService.rejectHunterCertByHunt(Integer.parseInt(horseService.getHorses(name).get(0).getId()));\n\t\t\t\treturn \"redirect:/huntApproval/\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn \"redirect:/huntApproval/\";\n\t\t\t}\n\t\t\t\n\n\t\t\n\n\t\t}", "@Override\n\tpublic void acceptRequest(RequestLoanDevices requesLoanDevices) {\n\t\ttry {\n\t\t\tacceptedDao.getNumberLoanByDates(requesLoanDevices.getDateLoan(), requesLoanDevices.getDateClose(),\n\t\t\t\t\trequesLoanDevices.getUsersByUserRequest().getIdUser());\n\t\t} catch (DaoException e) {\n\t\t\tthrow e;\n\t\t}\n\t\trequestDao.update(requesLoanDevices);\n\t\tString mensajeCorreo = \"\";\n\t\tif (requesLoanDevices.getApproved()) {\n\t\t\tAccetedLoanDevices accetedLoanDevices = new AccetedLoanDevices();\n\t\t\taccetedLoanDevices.setDateClose(requesLoanDevices.getDateClose());\n\t\t\taccetedLoanDevices.setDateLoan(requesLoanDevices.getDateLoan());\n\t\t\taccetedLoanDevices.setDevices(requesLoanDevices.getDevice());\n\t\t\taccetedLoanDevices.setRequestLoanDeviceId(requesLoanDevices.getIdrequestLoanDevices());\n\t\t\taccetedLoanDevices.setUser(requesLoanDevices.getUsersByUserRequest());\n\t\t\tacceptedDao.save(accetedLoanDevices);\n\t\t\tmensajeCorreo = \"Solictud aprobada para la fecha \" + requesLoanDevices.getDateLoan();\n\t\t} else {\n\t\t\tmensajeCorreo = \"Solictud rechazada para la fecha \" + requesLoanDevices.getDateLoan();\n\t\t}\n\t\tnew SendEmail().enviar(requesLoanDevices.getUsersByUserApproved().getIdUser(),\n\t\t\t\t\"Notificacion de solicitud de prestamo\", mensajeCorreo);\n\n\t}", "public void calculateLoan(View view){\n Intent intent = new Intent(this, ResultActivity.class);\n\n //TODO: calculate monthly payment and determine\n double carPrice;\n double downPayment;\n double loadPeriod;\n double interestRate;\n\n \n\n //loan application status; approve or reject\n double monthlyPayment;\n String status;\n\n //Passing data using putExtra method\n //putExtra(TAG, value)\n intent.putExtra(MONTHLY_PAYMENT, monthlyPayment);\n intent.putExtra(LOAN_STATUS, status);\n startActivity(intent);\n }", "@FXML\n\tvoid approveActionButton(ActionEvent event) {\n\t\t// change the duration\n\t\tboolean res = false;\n\t\tMessage messageToServer = new Message();\n\t\tmessageToServer.setMsg(req.getEcode() + \" \" + req.getNewDur());\n\t\tmessageToServer.setOperation(\"updateExamDurationTime\");\n\t\tmessageToServer.setControllerName(\"ExamController\");\n\t\tres = (boolean) ClientUI.client.handleMessageFromClientUI(messageToServer);\n\t\tif (!res) {\n\t\t\tUsefulMethods.instance().display(\"error in approval duration!\");\n\t\t} else\n\t\t\tdeleteRequest();\n\t\tUsefulMethods.instance().close(event);\n\t}", "abstract public LoanApplicationResponse handleLoanRequest(LoanApplicationRequest loanRequest);", "public org.hyperledger.fabric.protos.token.Transaction.PlainApprove getPlainApprove() {\n if (dataCase_ == 4) {\n return (org.hyperledger.fabric.protos.token.Transaction.PlainApprove) data_;\n }\n return org.hyperledger.fabric.protos.token.Transaction.PlainApprove.getDefaultInstance();\n }", "public org.hyperledger.fabric.protos.token.Transaction.PlainApprove getPlainApprove() {\n if (plainApproveBuilder_ == null) {\n if (dataCase_ == 4) {\n return (org.hyperledger.fabric.protos.token.Transaction.PlainApprove) data_;\n }\n return org.hyperledger.fabric.protos.token.Transaction.PlainApprove.getDefaultInstance();\n } else {\n if (dataCase_ == 4) {\n return plainApproveBuilder_.getMessage();\n }\n return org.hyperledger.fabric.protos.token.Transaction.PlainApprove.getDefaultInstance();\n }\n }", "public Builder setPlainApprove(org.hyperledger.fabric.protos.token.Transaction.PlainApprove value) {\n if (plainApproveBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n data_ = value;\n onChanged();\n } else {\n plainApproveBuilder_.setMessage(value);\n }\n dataCase_ = 4;\n return this;\n }", "@Override\n\tpublic boolean isApproved();", "@Suspendable\n @Override\n public Void call() throws FlowException {\n // We retrieve the notary identity from the network map.\n final Party notary = getServiceHub().getNetworkMapCache().getNotaryIdentities().get(0);\n QueryCriteria queryCriteria = new QueryCriteria.LinearStateQueryCriteria(null, ImmutableList.of(this.linearId),\n Vault.StateStatus.UNCONSUMED, null);\n List<StateAndRef<NDAState>> ndaStates = getServiceHub().getVaultService().queryBy(NDAState.class, queryCriteria).getStates();\n\n // We create the transaction components.\n NDAState outputState = new NDAState(getOurIdentity(), crmParty, \"APPROVED\");\n StateAndContract outputStateAndContract = new StateAndContract(outputState, LEGAL_CONRACT_ID);\n List<PublicKey> requiredSigners = ImmutableList.of(getOurIdentity().getOwningKey(), crmParty.getOwningKey());\n Command cmd = new Command<>(new LegalContract.Approve(), requiredSigners);\n\n // We create a transaction builder and add the components.\n final TransactionBuilder txBuilder = new TransactionBuilder();\n txBuilder.addInputState(ndaStates.get(0));\n txBuilder.setNotary(notary);\n txBuilder.withItems(outputStateAndContract, cmd);\n\n // Signing the transaction.\n final SignedTransaction signedTx = getServiceHub().signInitialTransaction(txBuilder);\n // Creating a session with the other party.\n FlowSession otherpartySession = initiateFlow(crmParty);\n // Obtaining the counterparty's signature.\n SignedTransaction fullySignedTx = subFlow(new CollectSignaturesFlow(\n signedTx, ImmutableList.of(otherpartySession), CollectSignaturesFlow.tracker()));\n // Finalising the transaction.\n subFlow(new FinalityFlow(fullySignedTx));\n return null;\n }", "public String approveMsg(Long id){\n return messagesParser.approve(id);\n }", "@SystemAPI\n\tboolean needsApproval();", "public RemoteCall<KlayTransactionReceipt.TransactionReceipt> approve(String spender, BigInteger value) {\n final Function function = new Function(\n FUNC_APPROVE,\n Arrays.<Type>asList(new org.web3j.abi.datatypes.Address(spender),\n new org.web3j.abi.datatypes.generated.Uint256(value)),\n Collections.<TypeReference<?>>emptyList());\n return executeRemoteCallTransaction(function);\n }", "@Test\n\tvoid grantScholarshipApproved() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(166);\n\t\tassertEquals(scholarship,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}", "public boolean isApproved()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"APPROVED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\r\n\tpublic String approveSingleTicketService(ApproveTravekBookingPojo pojo) {\n\t\treturn approvetktDao.approveSingleTicketDao(pojo);\r\n\t}", "org.hyperledger.fabric.protos.token.Transaction.PlainApproveOrBuilder getPlainApproveOrBuilder();", "public void setApproveStatus(Byte approveStatus) {\n this.approveStatus = approveStatus;\n }", "public org.hyperledger.fabric.protos.token.Transaction.PlainApproveOrBuilder getPlainApproveOrBuilder() {\n if ((dataCase_ == 4) && (plainApproveBuilder_ != null)) {\n return plainApproveBuilder_.getMessageOrBuilder();\n } else {\n if (dataCase_ == 4) {\n return (org.hyperledger.fabric.protos.token.Transaction.PlainApprove) data_;\n }\n return org.hyperledger.fabric.protos.token.Transaction.PlainApprove.getDefaultInstance();\n }\n }", "void approveStudent(String studentId);", "public boolean approvePotentialDeliveryMan(final Parcel parcel, final String email);", "@POST\n @Path(\"/{leaveId}/approvedeny\")\n @Produces(MediaType.APPLICATION_JSON)\n @Consumes(MediaType.APPLICATION_JSON)\n public final String approveDeny(@PathParam(\"leaveId\") final int leaveId, final ManagerResponse m) {\n LeaveDetails leaveDetails = LeaveDetails.listById(leaveId);\n String s1 = leaveDetails.approveDeny(leaveId, m.getLeaveStatus(), m.getLeaveMgrComment());\n return \"Manager Response:\" + s1 + \" \";\n }", "public org.hyperledger.fabric.protos.token.Transaction.PlainApproveOrBuilder getPlainApproveOrBuilder() {\n if (dataCase_ == 4) {\n return (org.hyperledger.fabric.protos.token.Transaction.PlainApprove) data_;\n }\n return org.hyperledger.fabric.protos.token.Transaction.PlainApprove.getDefaultInstance();\n }", "public void setApproved(boolean approved) {\n this.approved = approved;\n }", "public int approve(String seller, String name, int itemID) {\n //store method to accept purchase of item with itemID and buyer with name\n return itemID;\n }", "@WebMethod(operationName = \"approveMember\")\n public boolean approveMember(@WebParam(name = \"id\") String id) {\n return update(id, \"APPROVED\");\n }", "public boolean ApproveReimbursement(int employeeID, int reimburseID, String reason, int status);", "@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveCreateNewData ( DATA approvedData , String approverUserId ) throws Exception;", "@Override\n\tpublic void approveAcceptedOffer(String matriculation) {\n\t\tofferman.approveAcceptedOffer(matriculation);\n\t\t\n\t}", "public boolean approveAppointment() {\n\t\tSet <String> set=(HealthCareDAO.map).keySet();\r\n\t\tint count=1;\r\n\t\tfor(String s:set)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"You have a center \"+map.get(s).getCenterName() +\"--\"+\"Center and id is \"+s);\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tSystem.out.println(\"Enter Center id :\");\r\n\t\tString str=scan.next();\r\n\t\tDiagnoisticCenter center=HealthCareDAO.map.get(str); //get Diagonistic object of given key \r\n\t\tList<Appointment> l=center.getAppointmentList();\r\n\t\t//System.out.println(l);\r\n\t\tint y=1;\r\n\t\tfor(Appointment a:l)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter Approval or disapproval\");\r\n\t\tboolean decision=scan.nextBoolean()\t;\r\n\t\t\ta.setApproved(decision);\r\n\t\t\tif(a.isApproved()==true)\r\n\t\t\t{\tSystem.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is Approved\");}\r\n\t\t\telse {System.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is not Approved\");}\r\n\t\t\ty++;\r\n\t\t\tif(y>3)\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t}\r\n\t\tcenter.setAppointmentList(l);\r\n\t\tSystem.out.println(\"Appointment List count :\"+l.size());\r\n\t\t\r\n\t\treturn false;\r\n\t}", "private PlainApprove(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private boolean doGetApproval() {\n\t\tcurrentStep = OPERATION_NAME+\": getting approval from BAMS\";\n\t\tif (!_atmssHandler.doDisDisplayUpper(SHOW_PLEASE_WAIT)) {\n\t\t\trecord(\"Dis\");\n\t\t\treturn false;\n\t\t}\n\t\tresult = _atmssHandler.doBAMSUpdatePasswd(newPassword, _session);\n\t\tif (result) {\n\t\t\trecord(\"password changed\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\trecord(\"BAMS\");\n\t\t\tif (!_atmssHandler.doDisDisplayUpper(FAILED_FROM_BAMS_UPDATING_PW)) {\n\t\t\t\trecord(\"Dis\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tpause(3);\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isApproved();", "public boolean isApproved();", "@Override\r\n\tpublic String approveAllTravelBookingDetailsService(\r\n\t\t\tApproveTravekBookingPojo pojo) {\n\t\treturn approvetktDao.approveAllTravelBookingDetailsDao(pojo);\r\n\t}", "@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveEditData ( DATA approvedData , String approverUserId ) throws Exception;", "@Override\n\tpublic boolean isApproved() {\n\t\treturn model.isApproved();\n\t}", "boolean hasPlainApprove();", "public String approveRegistration() {\n\t\treturn \"Company approved\";\r\n\t}", "public static void editLoanCost() {\n //We can only edit loan cost on Videos.\n char[] type = {'v'};\n String oldID = getExistingID(\"Video\", type);\n\n //Validate ID\n if (oldID != null) {\n //Run input validation\n String[] choiceOptions = {\"4\", \"6\"};\n int newLoan = Integer.parseInt(receiveStringInput(\"Enter new Loan Fee:\", choiceOptions, true, 1));\n try {\n //Replace the loan fee\n inv.replaceLoan(oldID, newLoan);\n } catch (IncorrectDetailsException e) {\n System.out.println(Utilities.ERROR_MESSAGE + \" Adding failed due to \" + e + \" with error message: \\n\" + e.getMessage());\n }\n } else System.out.println(Utilities.INFORMATION_MESSAGE + \"Incorrect ID, nothing was changed.\");\n }", "@Override\n\tpublic void onResponseReady(PayByTokenResponse response) {\n\t\tUtils.stopProcessingDialog(_context);\n\t\t// record last used credit card for next payment default\n\t\tUserConfig.setLastCreditCard(_context, cCard.getId());\n\n\t\t\tString msg = _context.getString(R.string.payment_approve_line_1_1) + totalAmount + \" \" + _context.getString(R.string.payment_approve_line_1_2) + \"\\n\"\n\t\t\t\t\t+ _context.getString(R.string.payment_cc_approve_line_2_card_num) + \"\\n\" + \"*\" + cCard.getLast4CardNum() + \"\\n\"\n\t\t\t\t\t+ _context.getString(R.string.payment_cc_approve_line_3_auth_code) + \" \" + response.GetAuthorizationCode();\n\n\t\t\tif (response.GetEmailSent()) {\n\t\t\t\tmsg += \"\\n\" + _context.getString(R.string.payment_cc_approve_email_sent) + \"\\n\" + response.GetEmail();\n\t\t\t}\n\t\t\tDaoManager daoManager = DaoManager.getInstance(_context);\n\t\t\tDBBookingDao bookingDao = daoManager.getDBBookingDao(DaoManager.TYPE_READ);\n\t\t\tdbBook.setAlready_paid(true);\n\t\t\tdbBook.setPaidAmount(totalAmount);\n\t\t\tdbBook.setAuthCode(response.GetAuthorizationCode());\n\t\t\tbookingDao.update(dbBook);\n\t\t\t((PayActivity)_context).showPaySuccessDialog(msg); \n\t}", "@Override\r\n\t\tpublic void action() {\n MessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.ACCEPT_PROPOSAL);\r\n MessageTemplate mt2 = MessageTemplate.MatchPerformative(ACLMessage.PROPOSE);\r\n ACLMessage msg = myAgent.receive(mt);\r\n //If it is a ACCEPT_PROPOSAL, the seller sell the book to the buyer (execpt if the book if not here anymore)\r\n if (msg != null) {\r\n // ACCEPT_PROPOSAL Message received. Process it\r\n title = msg.getContent();\r\n ACLMessage reply = msg.createReply();\r\n\r\n Integer price = (Integer) catalogue.remove(title);\r\n if (price != null) {\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(String.valueOf(price));\r\n System.out.println(title+\" sold to agent \"+msg.getSender().getName());\r\n }\r\n else {\r\n // The requested book has been sold to another buyer in the meanwhile .\r\n reply.setPerformative(ACLMessage.FAILURE);\r\n reply.setContent(\"not-available\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n //If it is a new PROPOSE, the buyer is trying to negociate.\r\n else {\r\n ACLMessage msg2 = myAgent.receive(mt2);\r\n if(msg2 != null){\r\n ACLMessage reply = msg2.createReply();\r\n //If the price of the buyer is OK for the seller according to his tolerance, the transaction is made\r\n if(((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) <= tolerance){\r\n System.out.println(myAgent.getLocalName() + \" say : OK, let's make a deal\");\r\n updateCatalogue(title, Integer.parseInt(msg2.getContent()));\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(msg2.getContent());\r\n }\r\n //Else, the seller accept to negociate, he up his tolerance and ask the buyer to up his real price\r\n else{\r\n //Send a REQUEST Message to negociate with the buyer\r\n reply.setPerformative(ACLMessage.REQUEST);\r\n //Up the tolerance by *change*\r\n tolerance += change;\r\n reply.setContent(String.valueOf(change));\r\n System.out.println(myAgent.getLocalName() + \" say : Let's up your real price while I up my tolerance (\" + ((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) + \" < \" + tolerance + \")\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n else{\r\n block();\r\n }\r\n }\r\n\t\t}", "public String approveMarriageNotice() {\n if (logger.isDebugEnabled()) {\n logger.debug(\"approving marriage notice idUKey : \" + idUKey + \" and notice type : \" + noticeType +\n \" and with ignore warnings : \" + ignoreWarnings);\n }\n //todo remove\n //follow use to display serial number in action message ans action errors\n marriage = marriageRegistrationService.getByIdUKey(idUKey, user);\n String[] actionMassageArray = new String[]{(noticeType == MarriageNotice.Type.FEMALE_NOTICE) ?\n Long.toString(marriage.getSerialOfFemaleNotice()) : Long.toString(marriage.getSerialOfMaleNotice())};\n try {\n warnings = marriageRegistrationService.\n approveMarriageNotice(idUKey, noticeType, ignoreWarnings, user);\n if (warnings.size() > 0) {\n //if warning size is more than 0 we forward in to approval warning page\n warningsAtApproval = true;\n return \"warning\";\n }\n addActionMessage(getText(\"message.approve.success\", actionMassageArray));\n logger.debug(\"successfully approved marriage notice idUKey : {} and notice type :{ }\", idUKey, noticeType);\n } catch (CRSRuntimeException e) {\n //error happens when approving marriage notice\n switch (e.getErrorCode()) {\n case ErrorCodes.OTHER_PARTY_MUST_APPROVE_FIRST:\n addActionError(getText(\"error.other.party.approve.first\",\n new String[]{(noticeType == MarriageNotice.Type.FEMALE_NOTICE) ?\n (marriage.getSerialOfMaleNotice() != null) ?\n Long.toString(marriage.getSerialOfMaleNotice()) : getText(\"message.not.yet.add\") :\n (marriage.getSerialOfFemaleNotice() != null) ?\n Long.toString(marriage.getSerialOfFemaleNotice()) : getText(\"message.not.yet.add\")}));\n break;\n case ErrorCodes.UNABLE_APPROVE_MARRIAGE_NOTICE_PROHIBITED_RELATIONSHIP:\n addActionError(getText(\"error.approval.failed\", actionMassageArray) + \" , \" + e.getMessage());\n break;\n case ErrorCodes.BRIDES_FATHER_IN_PRS_IS_MISMATCHED_WITH_GIVEN_FATHER:\n addActionError(getText(\"error.given.brides.father.details.are.mismatched.with.prs\"));\n break;\n case ErrorCodes.GROOMS_FATHER_IN_PRS_IS_MISMATCHED_WITH_GIVEN_FATHER:\n addActionError(getText(\"error.given.grooms.father.details.are.mismatched.with.prs\"));\n break;\n case ErrorCodes.MORE_THAN_ONE_ACTIVE_LICENSE:\n addActionError(getText(\"error.unable.to.approve.already.issued.license\"));\n break;\n default:\n addActionError(getText(\"error.approval.failed\", actionMassageArray));\n }\n commonUtil.populateDynamicLists(districtList, dsDivisionList, mrDivisionList, districtId,\n dsDivisionId, mrDivisionId, AppConstants.MARRIAGE, user, language);\n getApprovalPendingNotices();\n return \"failed\";\n } catch (Exception e) {\n logger.debug(\"exception while approving marriage notice :idUKey \");\n return ERROR;\n }\n commonUtil.populateDynamicLists(districtList, dsDivisionList, mrDivisionList, districtId, dsDivisionId,\n mrDivisionId, AppConstants.MARRIAGE, user, language);\n getApprovalPendingNotices();\n return SUCCESS;\n }", "public void approveOrderBySystemUser(String orderId) {\n String approvePath = mgmtOrdersPath + orderId + \"/approve\";\n sendRequest(putResponseType, systemUserAuthToken(), approvePath, allResult, statusCode200);\n }", "private void completeReview(long ticketId, ApprovalDTO dto, boolean reject, String reason)\n throws PortalServiceException {\n CMSUser user = ControllerHelper.getCurrentUser();\n Enrollment ticketDetails = enrollmentService.getTicketDetails(user, ticketId);\n \n long processInstanceId = ticketDetails.getProcessInstanceId();\n if (processInstanceId <= 0) {\n throw new PortalServiceException(\"Requested profile is not available for approval.\");\n }\n try {\n List<TaskSummary> availableTasks = businessProcessService.getAvailableTasks(user.getUsername(),\n Arrays.asList(user.getRole().getDescription()));\n boolean found = false;\n for (TaskSummary taskSummary : availableTasks) {\n if (taskSummary.getName().equals(APPROVAL_TASK_NAME)\n && taskSummary.getProcessInstanceId() == processInstanceId) {\n found = true;\n long taskId = taskSummary.getId();\n\n if (!reject) {\n // apply approver changes\n ProviderInformationType provider = applyChanges(dto, taskId);\n businessProcessService.completeReview(taskId, user.getUsername(),\n Arrays.asList(user.getRole().getDescription()), provider, false, reason);\n } else {\n businessProcessService.completeReview(taskId, user.getUsername(),\n Arrays.asList(user.getRole().getDescription()), null, true, reason);\n }\n }\n }\n if (!found) {\n throw new PortalServiceException(\"You do not have access to the requested operation.\");\n }\n } catch (Exception ex) {\n throw new PortalServiceException(\"Error while invoking process server.\", ex);\n }\n }", "@Test\n public void testLoanForeclosure() {\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n final Integer loanProductID = createLoanProduct(false, NONE);\n\n List<HashMap> charges = new ArrayList<>();\n\n Integer flatAmountChargeOne = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_FLAT, \"50\", false));\n addCharges(charges, flatAmountChargeOne, \"50\", \"01 October 2011\");\n Integer flatAmountChargeTwo = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_FLAT, \"100\", true));\n addCharges(charges, flatAmountChargeTwo, \"100\", \"15 December 2011\");\n\n List<HashMap> collaterals = new ArrayList<>();\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n Assertions.assertNotNull(collateralId);\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n String.valueOf(clientID), collateralId);\n Assertions.assertNotNull(clientCollateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanID = applyForLoanApplication(clientID, loanProductID, charges, null, \"10,000.00\", collaterals);\n Assertions.assertNotNull(loanID);\n\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n LOG.info(\"----------------------------------- APPROVE LOAN -----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(\"20 September 2011\", loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"----------------------------------- DISBURSE LOAN ----------------------------------------\");\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(\"20 September 2011\", loanID, \"10,000.00\",\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LOG.info(\"DISBURSE {}\", loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n LOG.info(\"---------------------------------- Make repayment 1 --------------------------------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 October 2011\", Float.parseFloat(\"2676.24\"), loanID);\n\n LOG.info(\"---------------------------------- FORECLOSE LOAN ----------------------------------------\");\n LOAN_TRANSACTION_HELPER.forecloseLoan(\"08 November 2011\", loanID);\n\n // retrieving the loan status\n loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n // verifying the loan status is closed\n LoanStatusChecker.verifyLoanAccountIsClosed(loanStatusHashMap);\n // retrieving the loan sub-status\n loanStatusHashMap = LoanStatusChecker.getSubStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n // verifying the loan sub-status is foreclosed\n LoanStatusChecker.verifyLoanAccountForeclosed(loanStatusHashMap);\n\n }", "public void approveTeacherAccount(TeacherUser teacher) {\n\t\tteacher.setIsApproved(true);\n\t}", "public Byte getApproveStatus() {\n return approveStatus;\n }", "public Action<PaymentState, PaymentEvent> authAction(){\n return context -> {\n System.out.println(\"preAuth was called !!\");\n\n if(new Random().nextInt(10) < 5){\n System.out.println(\"Approved\");\n\n // Send an event to the state machine to APPROVED the auth request\n context.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.AUTH_APPROVED)\n .setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, context.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER))\n .build());\n } else {\n System.out.println(\"Declined No Credit !!\");\n\n // Send an event to the state machine to DECLINED the auth request, and add the\n context.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.AUTH_DECLINED)\n .setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, context.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER))\n .build());\n }\n };\n }", "public boolean isActiveLoan();", "public void approveQuestion(Question question) throws Exception {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n question.setApproved(true);\n dbb.overwriteQuestion(question);\n dbb.commit();\n dbb.closeConnection();\n }", "@RequestMapping(value = \"/apply\", method = RequestMethod.POST)\n @Transactional\n public Applicant postLoan(@RequestBody CreateLoanRequest request){\n\n\n Applicant applicant= new Applicant();\n\n applicant.setSSNNumber(request.getApplicantSSN());\n applicant.setFirstName(request.getApplicantfirstName());\n applicant.setMiddleName(request.getApplicantmiddleName());\n applicant.setLastName(request.getApplicantlastName());\n applicant.setDateofBirth(Date.valueOf(request.getApplicantdob()));\n applicant.setDateSubmitted(Date.valueOf(LocalDate.now()));\n applicant.setMaritalStatus(request.getApplicantmaritalStatus());\n applicant.setAddressLine1(request.getApplicantaddrLine1());\n applicant.setAddressLine2(request.getApplicantaddrLine2());\n applicant.setCity(request.getApplicantcity());\n applicant.setState(request.getApplicantstate());\n applicant.setPostalCode(request.getApplicantpostalCode());\n applicant.setDescription(request.getApplicantdescription());\n applicant.setLoanAmount(request.getApplicantloanAmount());\n applicant.setLoanPurpose(request.getApplicantloanPurpose());\n applicant.setAnnualSalary(request.getApplicantAnnualSalary());\n applicant.setEmployername(request.getApplicantEmployerName());\n applicant.setEmployerAddress1(request.getApplicantEmployerAddr1());\n applicant.setEmployerAddress2(request.getApplicantEmployerAddr2());\n applicant.setEmployerCity(request.getApplicantEmployerCity());\n applicant.setEmployerState(request.getApplicantEmployerState());\n applicant.setEmployerPostalCode(request.getApplicantEmployerPostalCode());\n applicant.setDesignation(request.getApplicantdesignation());\n applicant.setHomePhone(request.getApplicanthomePhone());\n applicant.setOfficePhone(request.getApplicantofficePhone());\n applicant.setMobile(request.getApplicantmobile());\n applicant.setEmailAddress(request.getApplicantemail());\n applicant.setWorkExperienceMonth(request.getApplicantWorkExperienceMonth());\n applicant.setWorkExperienceYears(request.getApplicantWorkExperienceYears());\n\n applicant.setApplicationStatus(\"In Progress\");\n applicant.setScore(\"-\");\n applicant.setDeclineReason(\"In Progress\");\n\n Applicant applicant1=applicantService.createApplicant(applicant);\n\n boolean valid=TRUE;\n\n LocalDate l = applicant.getDateofBirth().toLocalDate(); //specify year, month, date directly\n LocalDate now = LocalDate.now(); //gets localDate Period\n Period diff = Period.between(l, now); //difference between the dates is calculated\n\n if(applicant.getAnnualSalary()<10000){\n valid=FALSE;\n applicant.setDeclineReason(\"Declined at FrontEnd - Salary is less than $10000\");\n }\n else if(diff.getYears()<18||diff.getYears()>65) {\n valid=FALSE;\n applicant.setDeclineReason(\"Declined at FrontEnd - Age not Age Group in 18-65\");\n }\n else if(applicant.getWorkExperienceYears()<1&&applicant.getWorkExperienceMonth()<6){\n valid=FALSE;\n applicant.setDeclineReason(\"Declined at FrontEnd - Work Experience is less than 6 months\");\n }\n\n int score=0;\n\n if(valid){\n score=applicantService.calculateScore(applicant);\n applicant.setScore(String.valueOf(score));\n if(score>10){ //threshold is 10 randomly, to be calculated by prasanna\n applicant.setApplicationStatus(\"Approved\");\n applicant.setDeclineReason(\"-\");\n }\n else{\n applicant.setApplicationStatus(\"Declined\");\n\n applicant.setDeclineReason(\" \"); //prassanna take\n }\n }\n else{\n applicant.setScore(\"0\");\n applicant.setApplicationStatus(\"Declined\");\n applicant.setDeclineReason(\"Validations Failed\");\n }\n\n applicantService.updateApplicant(applicant1);\n\n return null;\n }", "@Override\n\tpublic Boolean approveRejectLista(int statoApprovazione, String nomeLista) {\n\t\t\n\t\tLista listaElettorale = listaElettoraleDaNome(nomeLista);\n\t\t\n\t\tlistaElettorale.setStatoApprovazione(statoApprovazione);\n\t\t\n\t\t//modifica la lista elettorale dato lo stato di approvazione\n\t\tmodificaListaElettorale(listaElettorale);\n\n\t\treturn true;\n\t}", "@Test\n public void acceptRevoked() {\n /*\n * Given\n */\n var uid = UID.apply();\n var user = UserAuthorization.random();\n var granted = Instant.now();\n var privilege = DatasetPrivilege.CONSUMER;\n var executor = UserId.random();\n\n var grant = DatasetGrant.createApproved(\n uid, user, privilege,\n executor, granted, Markdown.lorem());\n\n var revoked = grant.revoke(UserId.random(), Instant.now(), Markdown.lorem());\n\n /*\n * When\n */\n var approved = revoked.approve(executor, Instant.now(), Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(approved)\n .as(\"The approval should not be successful\")\n .satisfies(a -> {\n assertThat(a.isFailure()).isTrue();\n });\n }", "void approveSelf() throws IllegalAccessException {\n\t\tif (this.secOpFlag)\n\t\t\tthrow new IllegalAccessException(\"Diagnose requires second opinion and can't be self approved.\");\n\t\tthis.approved = true;\n\t\tthis.secOpFlag = false;\n\t}", "public boolean isApproved() {\n return approved;\n }", "ApproveRequestsTask(final String requestId, final ProxyConnector conn, final OperationRequestListener listener) {\n\t\tthis.requestIds = new String[] { requestId };\n\t\tthis.conn = conn;\n\t\tthis.listener = listener;\n\t\tthis.t = null;\n\t}", "@RequestMapping(value = \"/revokeCustomer\", method = RequestMethod.GET)\n\tpublic ModelAndView suspendCustomerApprove(Long id, ModelMap model, RedirectAttributes attributes)\n\t\t\tthrows CustomException {\n\t\tEndUser endUser = endUserDAOImpl.findUserByCustomerId(id);\n\t\tendUserForm.setUserName(endUser.getUserName());\n\t\tendUserForm.setEmail(endUser.getEmail());\n\t\tendUserForm.setContactNo(endUser.getContactNo());\n\t\tendUserForm.setId(endUser.getCustomerId());\n\t\tmodel.put(\"endUserForm\", endUserForm);\n\n\t\treturn new ModelAndView(\"suspendCustomerApproveFromAdmin\", \"model\", model);\n\t}", "public static void log(LoanResponse loanResponse) {\n }", "private Mono<String> forceApprove(\n String baseUrl,\n String authHeader,\n BitbucketServerPullRequest pullRequest,\n String action\n ) {\n return getVersion(authHeader, baseUrl, pullRequest)\n .flatMap(version -> callApprove(baseUrl, authHeader, pullRequest, action, version));\n }", "public Builder mergePlainApprove(org.hyperledger.fabric.protos.token.Transaction.PlainApprove value) {\n if (plainApproveBuilder_ == null) {\n if (dataCase_ == 4 &&\n data_ != org.hyperledger.fabric.protos.token.Transaction.PlainApprove.getDefaultInstance()) {\n data_ = org.hyperledger.fabric.protos.token.Transaction.PlainApprove.newBuilder((org.hyperledger.fabric.protos.token.Transaction.PlainApprove) data_)\n .mergeFrom(value).buildPartial();\n } else {\n data_ = value;\n }\n onChanged();\n } else {\n if (dataCase_ == 4) {\n plainApproveBuilder_.mergeFrom(value);\n }\n plainApproveBuilder_.setMessage(value);\n }\n dataCase_ = 4;\n return this;\n }", "private TransferPointRequest checkTransferRequestEligibility(TransferPointRequest transferPointRequest) {\n Customer fromAccount = transferPointRequest.getFromCustomer();\n\n //get destination account\n Customer toAccount = transferPointRequest.getToCustomer();\n\n //check if account is linked\n transferPointRequest = isAccountLinked(transferPointRequest);\n\n //set request customer no as from account customer no\n transferPointRequest.setRequestorCustomerNo(fromAccount.getCusCustomerNo());\n\n //if accounts are not linked , requestor is eligible for transfer\n if(!transferPointRequest.isAccountLinked()){\n\n //set transfer eligibility to ELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n } else {\n\n //if linked , get the transfer point settings\n TransferPointSetting transferPointSetting = transferPointRequest.getTransferPointSetting();\n\n //check redemption settings\n switch(transferPointSetting.getTpsLinkedEligibilty()){\n\n case TransferPointSettingLinkedEligibity.NO_AUTHORIZATION:\n\n //if authorization is not needed set eligibity to ELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.PRIMARY_ONLY:\n\n //check the requestor is primary\n if(!transferPointRequest.isCustomerPrimary()){\n\n //if not primary , then set eligibility to INELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.INELIGIBLE);\n\n } else {\n\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n }\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.SECONDARY_WITH_AUTHORIZATION:\n\n //if customer is secondary , set eligibility to APRROVAL_NEEDED and set approver\n //and requestor customer no's\n if(!transferPointRequest.isCustomerPrimary()){\n\n //set eligibility status as approval needed\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.APPROVAL_NEEDED);\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getParentCustomerNo());\n\n } else {\n\n //set eligibility to eligible\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n }\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.ANY_ACCOUNT_WITH_AUTHORIZATION:\n\n //set eligibility to approval needed\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.APPROVAL_NEEDED);\n\n if(transferPointRequest.isCustomerPrimary()){\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getChildCustomerNo());\n\n } else {\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getParentCustomerNo());\n\n }\n\n return transferPointRequest;\n\n }\n }\n\n return transferPointRequest;\n\n }", "@Test\n public void approveGrant() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n var approvedBy = UserId.random();\n var approvedAt = Instant.now();\n var justification = Markdown.lorem();\n\n var grantedAuth = GrantedAuthorization.apply(approvedBy, approvedAt, grantFor);\n var member = DatasetMember.apply(grantedAuth, privilege);\n\n /*\n * When\n */\n grant = grant\n .approve(approvedBy, approvedAt, justification)\n .map(g -> g, e -> null);\n\n /*\n * Then\n */\n assertThat(grant.getRequest())\n .as(\"The request should be available in the grant.\")\n .isPresent()\n .satisfies(ro -> ro.ifPresent(r -> {\n assertThat(r).isEqualTo(request);\n }));\n\n assertThat(grant.getRequestResponse())\n .as(\"The request response should be set and it should be approved\")\n .isPresent()\n .satisfies(ro -> ro.ifPresent(r -> {\n assertThat(r)\n .extracting(\n o -> o.getExecuted().getBy(),\n o -> o.getExecuted().getAt(),\n AccessRequestResponse::isApproved)\n .containsExactly(approvedBy, approvedAt, true);\n }));\n\n assertThat(grant)\n .as(\"Since the request is approved, the grant should be active\")\n .satisfies(g -> {\n assertThat(g.asDatasetMember())\n .isPresent()\n .get()\n .isEqualTo(member);\n\n assertThat(g.isOpen()).isFalse();\n assertThat(g.isActive()).isTrue();\n assertThat(g.isClosed()).isFalse();\n });\n }", "public boolean hasPlainApprove() {\n return dataCase_ == 4;\n }", "public void transact() {\n\t\truPay.transact();\n\n\t}", "public appaporve(String id,String approve) {\n this.id = id;\n this.approve = approve;\n }", "public void addTaxManagerToPR(ApprovalRequest ar, Approvable lic) {\r\n\t\tLog.customer.debug(\"%s ::: addTaxManagerToPR - %s\", className, lic);\r\n\t\tProcureLineItemCollection plic = (ProcureLineItemCollection) lic;\r\n\r\n\t\tString TaxRole = \"Tax Manager\";\r\n\t\tString TaxReason = \"Tax Reason\";\r\n\t\tboolean flag1 = true;\r\n\t\tObject obj = Role.getRole(TaxRole);\r\n\t\t// plic.setFieldValue(\"ProjectID\",\"F\");\r\n\t\tLog.customer.debug(\r\n\t\t\t\t\"%s ::: isTaxManagerRequired - plic bfore create %s\",\r\n\t\t\t\tclassName, plic.toString());\r\n\t\tApprovalRequest approvalrequest1 = ApprovalRequest.create(plic,\r\n\t\t\t\t((ariba.user.core.Approver) (obj)), flag1, \"RuleReasons\",\r\n\t\t\t\tTaxReason);\r\n\t\tLog.customer.debug(\"%s ::: approvalrequest1 got activated- %s\",\r\n\t\t\t\tclassName);\r\n\r\n\t\tBaseVector basevector1 = plic.getApprovalRequests();\r\n\t\tLog.customer.debug(\"%s ::: basevector1 got activated- %s\", className);\r\n\r\n\t\tBaseVector basevector2 = approvalrequest1.getDependencies();\r\n\t\tLog.customer.debug(\"%s ::: basevector2 got activated- %s\", className);\r\n\r\n\t\tbasevector2.add(0, ar);\r\n\t\tLog.customer.debug(\"%s ::: ar added to basevector2 %s\", className);\r\n\r\n\t\tapprovalrequest1.setFieldValue(\"Dependencies\", basevector2);\r\n\t\tar.setState(2);\r\n\t\tLog.customer.debug(\"%s ::: ar.setState- %s\", className);\r\n\r\n\t\tar.updateLastModified();\r\n\t\tLog.customer.debug(\"%s ::: ar.updatelastmodified- %s\", className);\r\n\r\n\t\tbasevector1.removeAll(ar);\r\n\t\tLog.customer.debug(\"%s ::: basevecotr1 .removeall %s\", className);\r\n\r\n\t\tbasevector1.add(0, approvalrequest1);\r\n\t\tLog.customer.debug(\"%s ::: basevector1 .add- %s\", className);\r\n\r\n\t\tplic.setApprovalRequests(basevector1);\r\n\t\tLog.customer.debug(\"%s ::: ir .setApprovalRequests got activated- %s\",\r\n\t\t\t\tclassName);\r\n\r\n\t\tjava.util.List list = ListUtil.list();\r\n\t\tjava.util.Map map = MapUtil.map();\r\n\t\tboolean flag6 = approvalrequest1.activate(list, map);\r\n\r\n\t\tLog.customer.debug(\"%s ::: New TaxAR Activated - %s\", className);\r\n\t\tLog.customer.debug(\"%s ::: State (AFTER): %s\", className);\r\n\t\tLog.customer.debug(\"%s ::: Approved By: %s\", className);\r\n\r\n\t}", "@Test\n public void respondApproved() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n var approvedBy = UserId.random();\n var approvedAt = Instant.now();\n var justification = Markdown.lorem();\n\n var firstReject = grant\n .approve(approvedBy, approvedAt, justification)\n .map(g -> g, e -> null);\n\n /*\n * When\n */\n Result<DatasetGrant> approve = firstReject.approve(approvedBy, approvedAt, Markdown.lorem());\n Result<DatasetGrant> reject = firstReject.reject(UserId.random(), approvedAt, Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(reject.isFailure())\n .as(\"The 2nd call as reject cannot be successful\")\n .isTrue();\n\n assertThat(approve)\n .as(\"The 2nd call as approve is also successful with the same result\")\n .satisfies(r -> {\n var secondReject = r.map(g -> g, g -> null);\n assertThat(r.isSuccess()).isTrue();\n assertThat(secondReject).isEqualTo(firstReject);\n });\n }", "public static void calculateLoanPayment() {\n\t\t//get values from text fields\n\t\tdouble interest = \n\t\t\t\tDouble.parseDouble(tfAnnualInterestRate.getText());\n\t\tint year = Integer.parseInt(tfNumberOfYears.getText());\n\t\tdouble loanAmount =\n\t\t\t\tDouble.parseDouble(tfLoanAmount.getText());\n\t\t\n\t\t//crate a loan object\n\t\t Loan loan = new Loan(interest, year, loanAmount);\n\t\t \n\t\t //Display monthly payment and total payment\n\t\t tfMonthlyPayment.setText(String.format(\"$%.2f\", loan.getMonthlyPayment()));\n\t\t tfTotalPayment.setText(String.format(\"$%.2f\", loan.getTotalPayment()));\n\t}", "public Builder setPlainApprove(\n org.hyperledger.fabric.protos.token.Transaction.PlainApprove.Builder builderForValue) {\n if (plainApproveBuilder_ == null) {\n data_ = builderForValue.build();\n onChanged();\n } else {\n plainApproveBuilder_.setMessage(builderForValue.build());\n }\n dataCase_ = 4;\n return this;\n }", "public String addinit() throws Exception{\n\t\t\r\n\t\tApprove approve = approveServ.getApproveById(id);\r\n\t\t\r\n\t\trequest.setAttribute(\"approve\", approve);\r\n\t\t\r\n\t\t\r\n\t\treturn SUCCESS;\r\n\t}", "boolean approveDeny(String choice, int id, int resolverId);", "public int approve_reject_Request(int approval_status, String approvedBy, String approverComment, Timestamp time_approved,String social_Email)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"update SOCIAL_EAI_APPROVAL set (APPROVAL_STATUS,APPROVED_BY,APPROVER_COMMENT,TIME_APPROVED)=(?,?,?,?) where REQ_SOCIAL_EMAIL=?\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setInt(1,approval_status); \r\n\t\t\tpstmt.setString(2,approvedBy); \r\n\t\t\tpstmt.setString(3,approverComment);\r\n\t\t\tpstmt.setTimestamp(4,time_approved);\r\n\t\t\tpstmt.setString(5,social_Email);\r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\r\n\t\t\tSystem.out.println(\"EXception:\");\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\r\n\t\treturn result;\r\n\t}", "RequestResult[] approveRequests(String[] requestIds) throws SAXException, IOException;", "public void saveLoan (Loan loan) throws SQLException{\n\t\tConnection conn = DataSource.getConnection();\n\t\t\n\t\ttry{\n\t\t\tString query = \"INSERT INTO loan (client_id, principal_amount, interest_rate, no_years, no_payments_yearly, start_date)\"\n\t\t\t\t\t\t+ \" VALUES ('\"+this.client_id+\"', \"+this.principal_amount+\", \"+this.interest_rate+\", \"+this.no_years+\", \"\n\t\t\t\t\t\t\t\t+ \"\"+this.no_payments_yearly+\", '\"+this.start_date+\"')\";\n\t\t\tStatement stat = conn.createStatement();\n\t\t\tstat.execute(query);\n\t\t\t\n\t\t\t// Deposit the money in the client's account\n\t\t\tClient client = Client.getClient(client_id);\n\t\t\tClient.deposit(client, principal_amount);\n\t\t}finally{\n\t\t\tconn.close();\n\t\t}\n\t}", "public void requestToken(View pView){\n mAttestation.fetchApproovToken();\n }", "@Override\n\tpublic boolean isAutoApprove(String arg0) {\n\t\treturn false;\n\t}", "@Override\n\tpublic void msgPaymentAccepted(Lord l,double amount) {\n\t\t\n\t}", "@Override\n\t\tpublic void action() {\n\t\t\tMessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.REQUEST); \n\t\t\tACLMessage msg = receive(mt);\n\t\t\tif(msg != null){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tContentElement ce = null;\n\t\t\t\t\tSystem.out.println(msg.getContent()); //print out the message content in SL\n\n\t\t\t\t\t// Let JADE convert from String to Java objects\n\t\t\t\t\t// Output will be a ContentElement\n\t\t\t\t\tce = getContentManager().extractContent(msg);\n\t\t\t\t\tSystem.out.println(ce);\n\t\t\t\t\tif(ce instanceof Action) {\n\t\t\t\t\t\tConcept action = ((Action)ce).getAction();\n\t\t\t\t\t\tif (action instanceof SupplierOrder) {\n\t\t\t\t\t\t\tSupplierOrder order = (SupplierOrder)action;\n\t\t\t\t\t\t\t//CustomerOrder cust = order.getItem();\n\t\t\t\t\t\t\t//OrderQuantity = order.getQuantity();\n\t\t\t\t\t\t\tif(!order.isFinishOrder()) {\n\t\t\t\t\t\t\tSystem.out.println(\"exp test: \" + order.getQuantity());\n\t\t\t\t\t\t\trecievedOrders.add(order);}\n\t\t\t\t\t\t\telse {orderReciever = true;}\n\t\t\t\t\t\t\t//Item it = order.getItem();\n\t\t\t\t\t\t\t// Extract the CD name and print it to demonstrate use of the ontology\n\t\t\t\t\t\t\t//if(it instanceof CD){\n\t\t\t\t\t\t\t\t//CD cd = (CD)it;\n\t\t\t\t\t\t\t\t//check if seller has it in stock\n\t\t\t\t\t\t\t\t//if(itemsForSale.containsKey(cd.getSerialNumber())) {\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Selling CD \" + cd.getName());\n\t\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t\t\t//else {\n\t\t\t\t\t\t\t\t\t//System.out.println(\"You tried to order something out of stock!!!! Check first!\");\n\t\t\t\t\t\t\t\t//}\n\n\t\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\t\n\n\t\t\t\t\t}\n\t\t\t\t\t//deal with bool set here\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcatch (CodecException ce) {\n\t\t\t\t\tce.printStackTrace();\n\t\t\t\t}\n\t\t\t\tcatch (OntologyException oe) {\n\t\t\t\t\toe.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tblock();\n\t\t\t}\n\t\t}", "RequestSender onAgree(Consumer<Message> consumer);", "public ActionForward disapprovedTeachingRequest(ActionMapping mapping,\r\n\t\t\tActionForm form, HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) throws Exception {\n\t\tString justification = (String) request.getParameter(\"justification\");\r\n\t\tif (justification == null || justification.trim().length() == 0) {\r\n\r\n\t\t\tActionMessages messages = new ActionMessages();\r\n\r\n\t\t\tmessages.add(\"justification\", new ActionMessage(\r\n\t\t\t\"errors.missingJustification\"));\r\n\t\t\tsaveErrors(request, messages);\r\n\r\n\t\t\treturn mapping.getInputForward();\r\n\r\n\t\t}\r\n\r\n\t\tint userRequestId = Integer.parseInt(request\r\n\t\t\t\t.getParameter(\"userRequestId\"));\r\n\r\n\t\ttry {\r\n\r\n\t\t\tUserRequest userRequest = facade\r\n\t\t\t.searchUserRequestById(userRequestId);\r\n\t\t\tif (!userRequest.isTeachingRequest()) {\r\n\t\t\t\tfacade.disapprovedAssistanceRequest(userRequest);\r\n\t\t\t\tfacade.sendEmailDisapproveAssistanceRequest(userRequest\r\n\t\t\t\t\t\t.getPerson().getEmail(), justification);\r\n\t\t\t} else {\r\n\t\t\t\tfacade.disapprovedTeachingRequest(userRequest);\r\n\t\t\t\tfacade.sendEmailDisapproveTeachingRequest(userRequest\r\n\t\t\t\t\t\t.getPerson().getEmail(), justification);\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow e;\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\r\n\t}", "@Test(dependsOnMethods = \"testCreate\")\n\tpublic void testApprove() throws Exception{\n\t\tString url = getProperty(BT_REST_URL)+BOOSTBLOCK_APPROVE+\"/\";\n\t\tlog.info(\"approve boostandblock resturi = \"+url);\n\t\tfor (Integer boostBlockId : getBoostAndBlocksMap().keySet()) {\n\t\t\tHttpEntity<Integer> entity = new HttpEntity<Integer>(getHeaders());\n\t\t\tResponseEntity<String> response = getRestTemplate().exchange(url+boostBlockId, HttpMethod.PUT, entity, String.class);\n\t\t\tassertNotNull(response);\n\t\t\tString boostResponseString = response.getBody();\n\t\t\tlog.info(\"approve boost response = \"+boostResponseString);\n\t\t\tJSONObject boostResponse = new JSONObject(boostResponseString);\n\t\t\tassertTrue(boostResponse.has(\"data\"));\n\t\t\tJSONObject data = (JSONObject)boostResponse.get(\"data\");\n\t\t\tassertTrue(data.has(\"status\"));\n\t\t\tString status = (String)data.get(\"status\");\n\t\t\tlog.info(\"approve boost status = \"+boostBlockId+\" status = \"+status);\n\t\t\tassertNotNull(status);\n\t\t\tassertEquals(status,\"Approved\");\n\t\t}\n\t}" ]
[ "0.6553858", "0.6545241", "0.6533095", "0.64934945", "0.64791584", "0.64231783", "0.636274", "0.63428324", "0.6272952", "0.62054795", "0.5936366", "0.59212613", "0.58978117", "0.5897734", "0.5867154", "0.58477616", "0.58436555", "0.5832532", "0.5821864", "0.58171815", "0.581285", "0.57664835", "0.5759831", "0.5750977", "0.5749201", "0.5737431", "0.5728771", "0.5716993", "0.56599295", "0.56540495", "0.5644916", "0.5637646", "0.5613874", "0.5605475", "0.5598359", "0.5594761", "0.5585683", "0.55822057", "0.5578701", "0.55741525", "0.5569561", "0.5541283", "0.5511996", "0.5507835", "0.5491126", "0.54867274", "0.5469787", "0.54693854", "0.54672813", "0.54335266", "0.5404404", "0.5404404", "0.53887486", "0.53872657", "0.5384371", "0.5375887", "0.53678405", "0.5362197", "0.535847", "0.5349934", "0.53497833", "0.5347162", "0.53460824", "0.5294747", "0.52912503", "0.52904946", "0.5273264", "0.5261277", "0.5254471", "0.5252058", "0.52509916", "0.51855814", "0.51839393", "0.51740164", "0.5170049", "0.51596606", "0.51537704", "0.51456076", "0.5144613", "0.5136766", "0.5127452", "0.5125842", "0.51254225", "0.5123766", "0.5119153", "0.51167166", "0.5114156", "0.51072574", "0.5101865", "0.5097184", "0.5095899", "0.50946206", "0.5092578", "0.5091931", "0.50887036", "0.5086487", "0.5079445", "0.50788164", "0.5075438", "0.50689423" ]
0.76055735
0
Approve the loan request and return it to the customer.
public LoanApplicationResponse rejectLoanRequest() { return new LoanApplicationResponse(this, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LoanApplicationResponse approveLoanRequest() {\n return new LoanApplicationResponse(this, true);\n }", "@RequestMapping(\"/agent/enrollment/approve\")\n public String approve(@RequestParam(\"id\") long id, ApprovalDTO dto) {\n String signature = \"EnrollmentController#approve(long id, ApprovalDTO dto)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"id\", \"dto\" }, new Object[] { id, dto });\n StatusDTO statusDTO = new StatusDTO();\n\n try {\n completeReview(id, dto, false, \"\");\n statusDTO.setSuccess(true);\n ControllerHelper.flashInfo(\"Approval request has been sent, you will be notified once it is processed.\");\n } catch (PortalServiceException ex) {\n LogUtil.traceError(getLog(), signature, ex);\n ControllerHelper.flashError(USER_ERROR_MSG);\n }\n return \"redirect:/ops/viewDashboard\";\n }", "public ApproveWithdrawalResponseData approveWithdrawal(ApproveWithdrawalRequestData request) throws TrustlyRequestException {\n return this.sendRequest(request, ApproveWithdrawalResponseData.class, \"ApproveWithdrawal\", null);\n }", "public void employeeServiceApprove() {\n\t\t\n\t\tEmployee employee = new Employee();\n\t\t employee.approve();\n\t}", "HrDocumentRequest approve(HrDocumentRequest hrDocumentRequest);", "@RequestMapping(value = \"/{id}/approve\", method = RequestMethod.POST)\n \tpublic String approve(@PathVariable(\"id\") Long id,\n \t @RequestParam(value = \"approve\", defaultValue = \"true\", required = false) boolean approve,\n \t @RequestParam(value = \"region\", required = false) final String region, ModelMap model) {\n \t\tagentManagerService.approve(id, approve);\n \t\tmodel.addAttribute(\"region\", region);\n \t\tmodel.addAttribute(\"regions\", regionService.getAll().keySet());\n \t\treturn \"agent/list\";\n \t}", "private TransferPointRequest processTransferApproval(TransferPointRequest transferPointRequest) throws InspireNetzException {\n Customer requestor = transferPointRequest.getFromCustomer();\n\n Customer approver = customerService.findByCusCustomerNo(transferPointRequest.getApproverCustomerNo());\n\n //if a new request , send approval request and save request\n if(transferPointRequest.getPtrId() == null || transferPointRequest.getPtrId() == 0){\n\n // Log the information\n log.info(\"transferPoints -> New request for point transfer received(Approval needed)\");\n\n //add a new transfer point request\n transferPointRequest = addTransferPointRequest(transferPointRequest);\n\n log.info(\"transferPoints: Sending approval request to approver\");\n\n //send approval request to approver\n partyApprovalService.sendApproval(requestor,approver,transferPointRequest.getPtrId(),PartyApprovalType.PARTY_APPROVAL_TRANSFER_POINT_REQUEST,transferPointRequest.getToLoyaltyId(),transferPointRequest.getRewardQty()+\"\");\n\n //set transfer allowed to false\n transferPointRequest.setTransferAllowed(false);\n\n } else {\n\n //CHECK whether approver has accepted the request\n boolean isTransferAllowed = isPartyApprovedTransfer(transferPointRequest);\n\n if(isTransferAllowed){\n\n log.info(\"transferPoints : Transfer is approved by the linked account\");\n\n //set redemption allowed to true\n transferPointRequest.setTransferAllowed(true);\n\n } else {\n\n log.info(\"transferPoints : Transfer request rejected by linked account\");\n\n //set redemption allowed to false\n transferPointRequest.setTransferAllowed(false);\n\n\n }\n }\n\n return transferPointRequest;\n }", "org.hyperledger.fabric.protos.token.Transaction.PlainApprove getPlainApprove();", "public String approve() throws Exception\r\n {\r\n try\r\n {\r\n PoInvGrnDnMatchingHolder holder = poInvGrnDnMatchingService.selectByKey(param.getMatchingOid());\r\n \r\n if (\"yes\".equals(this.getSession().get(SESSION_SUPPLIER_DISPUTE)))\r\n {\r\n if (PoInvGrnDnMatchingStatus.PENDING.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"pending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.MATCHED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"matched\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.INSUFFICIENT_INV.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"insufficientInv\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.OUTDATED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"outdated\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingInvStatus.APPROVED.equals(holder.getInvStatus()) || PoInvGrnDnMatchingInvStatus.SYS_APPROVED.equals(holder.getInvStatus()))\r\n {\r\n this.result = \"approved\";\r\n return SUCCESS;\r\n }\r\n if (!holder.getRevised())\r\n {\r\n if (PoInvGrnDnMatchingSupplierStatus.PENDING.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplierpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.ACCEPTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplieraccept\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.REJECTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"buyerpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.REJECTED.equals(holder.getBuyerStatus()))\r\n {\r\n this.result = \"rejected\";\r\n return SUCCESS;\r\n }\r\n }\r\n }\r\n if (null == param.getInvStatusActionRemarks() || param.getInvStatusActionRemarks().length() == 0 || param.getInvStatusActionRemarks().length() > 255)\r\n {\r\n this.result = \"remarks\";\r\n return SUCCESS;\r\n }\r\n this.checkInvFileExist(holder);\r\n poInvGrnDnMatchingService.changeInvDateToFirstGrnDate(holder);\r\n PoInvGrnDnMatchingHolder newHolder = new PoInvGrnDnMatchingHolder();\r\n BeanUtils.copyProperties(holder, newHolder);\r\n newHolder.setInvStatus(PoInvGrnDnMatchingInvStatus.APPROVED);\r\n newHolder.setInvStatusActionDate(new Date());\r\n newHolder.setInvStatusActionRemarks(param.getInvStatusActionRemarks());\r\n newHolder.setInvStatusActionBy(getProfileOfCurrentUser().getLoginId());\r\n poInvGrnDnMatchingService.auditUpdateByPrimaryKeySelective(this.getCommonParameter(), holder, newHolder);\r\n poInvGrnDnMatchingService.moveFile(holder);\r\n this.result = \"1\";\r\n }\r\n catch (Exception e)\r\n {\r\n ErrorHelper.getInstance().logError(log, this, e);\r\n this.result = \"0\";\r\n }\r\n return SUCCESS;\r\n }", "public void autoApprove(int reimburseID, String autoReason, int status);", "public void approveApplication(PersonalLoanApplication application, Applicant applicant, String message) throws SQLException, MessagingException {\r\n\t\tapplicationDao.updateLoanApplicationStatus(\"C\", application.getApplicationId());\r\n\t\tsendApplicationApprovedMail(application, applicant, message);\r\n\t}", "public void clickbtnApprove() {\n\t\twaitForElementClickable(10,btnApprove);\n\t\tclickByJavaScript(btnApprove);\n\t\tsleep(1);\n\t}", "public void processAppointmentRequest(int appointmentId)\n {\n AppointmentListSingleton appointments = AppointmentListSingleton.getInstance();\n appointments.approveRequest(appointmentId);\n }", "public void approveApplication(MortgageApplication application, Applicant applicant, String message) throws SQLException, MessagingException {\r\n\t\tapplicationDao.updateMortgageApplicationStatus(\"C\", application.getApplicationId());\r\n\t\tsendApplicationApprovedMail(application, applicant, message);\r\n\t}", "public boolean approveAppointment() {\n\t\tIHealthCareDAO dao = new HealthCareDAO();\r\n\t\treturn dao.approveAppointment();\r\n\t}", "private boolean isPartyApprovedTransfer(TransferPointRequest transferPointRequest) {\n Customer requestor = transferPointRequest.getFromCustomer();\n\n Customer approver = customerService.findByCusCustomerNo(transferPointRequest.getApproverCustomerNo());\n\n // Check if there is a entry in the LinkingApproval table\n PartyApproval partyApproval = partyApprovalService.getExistingPartyApproval(approver, requestor, PartyApprovalType.PARTY_APPROVAL_TRANSFER_POINT_REQUEST, transferPointRequest.getPtrId());\n\n // If the partyApproval is not found, then return false\n if ( partyApproval == null) {\n\n // Log the information\n log.info(\"isPartyApproved -> Party has not approved linking\");\n\n // return false\n return false;\n\n } else {\n\n return transferPointRequest.isApproved();\n }\n\n }", "@Override\n\tpublic boolean approveIt() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean approvePartner(Partner partner) {\n\t\treturn false;\n\t}", "@Override\n\tpublic void approveForm(Context ctx) {\n\t\t//Authentication\n\t\tUser approver = ctx.sessionAttribute(\"loggedUser\");\n\t\tif (approver == null) {\n\t\t\tctx.status(401);\n\t\t\treturn;\n\t\t}\n\t\tString username = ctx.pathParam(\"username\");\n\t\tif (!approver.getUsername().equals(username)) {\n\t\t\tctx.status(403);\n\t\t\treturn;\n\t\t}\n\t\t// Implementation\n\t\tString id = ctx.pathParam(\"id\");\n\t\tForm form = fs.getForm(UUID.fromString(id));\n\t\tapprover.getAwaitingApproval().remove(form);\n\t\tus.updateUser(approver);\n\t\t// If approver is just the direct supervisor\n\t\tif (!approver.getType().equals(UserType.DEPARTMENT_HEAD) && !approver.getType().equals(UserType.BENCO)) {\n\t\t\tform.setSupervisorApproval(true);\n\t\t\tUser departmentHead = us.getUserByName(approver.getDepartmentHead());\n\t\t\tdepartmentHead.getAwaitingApproval().add(form);\n\t\t\tus.updateUser(departmentHead);\n\t\t}\n\t\t// If the approver is a department head but not a benco\n\t\tif (approver.getType().equals(UserType.DEPARTMENT_HEAD) && !approver.getType().equals(UserType.BENCO)) {\n\t\t\tform.setDepartmentApproval(true);\n\t\t\tUser benco = us.getUser(\"sol\");\n\t\t\tbenco.getAwaitingApproval().add(form);\n\t\t\tus.updateUser(benco);\n\t\t}\n\t\t// if the approver is a BenCo\n\t\tif (approver.getType().equals(UserType.BENCO)) {\n\t\t\tform.setBencoApproval(true);\n\t\t\tUser formSubmitter = us.getUserByName(form.getName());\n\t\t\tif (formSubmitter.getAvailableReimbursement() >= form.getCompensation()) {\n\t\t\t\tformSubmitter.setAvailableReimbursement(formSubmitter.getAvailableReimbursement() - form.getCompensation());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tformSubmitter.setAvailableReimbursement(0.00);\n\t\t\t}\n\t\t\tformSubmitter.getAwaitingApproval().remove(form);\n\t\t\tformSubmitter.getCompletedForms().add(form);\n\t\t\tus.updateUser(formSubmitter);\n\t\t}\n\t\t\n\t\tfs.updateForm(form);\n\t\tctx.json(form);\n\t}", "@RequestMapping(value = \"/approve\", method = RequestMethod.GET)\n\t\tpublic String approveHunterCert(Model model,\n\t\t\t\t@RequestParam(value = \"horseName\", required = true) String name,\n\t\t\t\t@RequestParam(value = \"approve\", required = true) String approve) {\n\n\t\t\t\n\n\t\t\tif (approve.equals(\"approveStage\")) {\n\t\t\t\tmodel.addAttribute(\"horse_name\", name);\n\t\t\t\tmodel.addAttribute(\"approve\", \"approve\");\n\t\t\t\treturn \"huntercert-approveCancel\";\n\n\t\t\t}\n\n\t\t\telse if (approve.equals(\"rejectStage\")) {\n\t\t\t\tmodel.addAttribute(\"horse_name\", name);\n\t\t\t\tmodel.addAttribute(\"reject\", \"reject\");\n\t\t\t\treturn \"huntercert-approveCancel\";\n\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\telse if (approve.equals(\"approve\")) {\n\t\t\t\t\n\t\t\t\thunterCertService.approveHunterCertByHunt(Integer.parseInt(horseService.getHorses(name).get(0).getId()));\n\t\t\t\treturn \"redirect:/huntApproval/\";\n\n\t\t\t}\n\t\t\t\n\t\t\telse if(approve.equals(\"reject\")){\n\t\t\t\thunterCertService.rejectHunterCertByHunt(Integer.parseInt(horseService.getHorses(name).get(0).getId()));\n\t\t\t\treturn \"redirect:/huntApproval/\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn \"redirect:/huntApproval/\";\n\t\t\t}\n\t\t\t\n\n\t\t\n\n\t\t}", "@Override\n\tpublic void acceptRequest(RequestLoanDevices requesLoanDevices) {\n\t\ttry {\n\t\t\tacceptedDao.getNumberLoanByDates(requesLoanDevices.getDateLoan(), requesLoanDevices.getDateClose(),\n\t\t\t\t\trequesLoanDevices.getUsersByUserRequest().getIdUser());\n\t\t} catch (DaoException e) {\n\t\t\tthrow e;\n\t\t}\n\t\trequestDao.update(requesLoanDevices);\n\t\tString mensajeCorreo = \"\";\n\t\tif (requesLoanDevices.getApproved()) {\n\t\t\tAccetedLoanDevices accetedLoanDevices = new AccetedLoanDevices();\n\t\t\taccetedLoanDevices.setDateClose(requesLoanDevices.getDateClose());\n\t\t\taccetedLoanDevices.setDateLoan(requesLoanDevices.getDateLoan());\n\t\t\taccetedLoanDevices.setDevices(requesLoanDevices.getDevice());\n\t\t\taccetedLoanDevices.setRequestLoanDeviceId(requesLoanDevices.getIdrequestLoanDevices());\n\t\t\taccetedLoanDevices.setUser(requesLoanDevices.getUsersByUserRequest());\n\t\t\tacceptedDao.save(accetedLoanDevices);\n\t\t\tmensajeCorreo = \"Solictud aprobada para la fecha \" + requesLoanDevices.getDateLoan();\n\t\t} else {\n\t\t\tmensajeCorreo = \"Solictud rechazada para la fecha \" + requesLoanDevices.getDateLoan();\n\t\t}\n\t\tnew SendEmail().enviar(requesLoanDevices.getUsersByUserApproved().getIdUser(),\n\t\t\t\t\"Notificacion de solicitud de prestamo\", mensajeCorreo);\n\n\t}", "public void calculateLoan(View view){\n Intent intent = new Intent(this, ResultActivity.class);\n\n //TODO: calculate monthly payment and determine\n double carPrice;\n double downPayment;\n double loadPeriod;\n double interestRate;\n\n \n\n //loan application status; approve or reject\n double monthlyPayment;\n String status;\n\n //Passing data using putExtra method\n //putExtra(TAG, value)\n intent.putExtra(MONTHLY_PAYMENT, monthlyPayment);\n intent.putExtra(LOAN_STATUS, status);\n startActivity(intent);\n }", "@FXML\n\tvoid approveActionButton(ActionEvent event) {\n\t\t// change the duration\n\t\tboolean res = false;\n\t\tMessage messageToServer = new Message();\n\t\tmessageToServer.setMsg(req.getEcode() + \" \" + req.getNewDur());\n\t\tmessageToServer.setOperation(\"updateExamDurationTime\");\n\t\tmessageToServer.setControllerName(\"ExamController\");\n\t\tres = (boolean) ClientUI.client.handleMessageFromClientUI(messageToServer);\n\t\tif (!res) {\n\t\t\tUsefulMethods.instance().display(\"error in approval duration!\");\n\t\t} else\n\t\t\tdeleteRequest();\n\t\tUsefulMethods.instance().close(event);\n\t}", "abstract public LoanApplicationResponse handleLoanRequest(LoanApplicationRequest loanRequest);", "public org.hyperledger.fabric.protos.token.Transaction.PlainApprove getPlainApprove() {\n if (dataCase_ == 4) {\n return (org.hyperledger.fabric.protos.token.Transaction.PlainApprove) data_;\n }\n return org.hyperledger.fabric.protos.token.Transaction.PlainApprove.getDefaultInstance();\n }", "public org.hyperledger.fabric.protos.token.Transaction.PlainApprove getPlainApprove() {\n if (plainApproveBuilder_ == null) {\n if (dataCase_ == 4) {\n return (org.hyperledger.fabric.protos.token.Transaction.PlainApprove) data_;\n }\n return org.hyperledger.fabric.protos.token.Transaction.PlainApprove.getDefaultInstance();\n } else {\n if (dataCase_ == 4) {\n return plainApproveBuilder_.getMessage();\n }\n return org.hyperledger.fabric.protos.token.Transaction.PlainApprove.getDefaultInstance();\n }\n }", "public Builder setPlainApprove(org.hyperledger.fabric.protos.token.Transaction.PlainApprove value) {\n if (plainApproveBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n data_ = value;\n onChanged();\n } else {\n plainApproveBuilder_.setMessage(value);\n }\n dataCase_ = 4;\n return this;\n }", "@Override\n\tpublic boolean isApproved();", "@Suspendable\n @Override\n public Void call() throws FlowException {\n // We retrieve the notary identity from the network map.\n final Party notary = getServiceHub().getNetworkMapCache().getNotaryIdentities().get(0);\n QueryCriteria queryCriteria = new QueryCriteria.LinearStateQueryCriteria(null, ImmutableList.of(this.linearId),\n Vault.StateStatus.UNCONSUMED, null);\n List<StateAndRef<NDAState>> ndaStates = getServiceHub().getVaultService().queryBy(NDAState.class, queryCriteria).getStates();\n\n // We create the transaction components.\n NDAState outputState = new NDAState(getOurIdentity(), crmParty, \"APPROVED\");\n StateAndContract outputStateAndContract = new StateAndContract(outputState, LEGAL_CONRACT_ID);\n List<PublicKey> requiredSigners = ImmutableList.of(getOurIdentity().getOwningKey(), crmParty.getOwningKey());\n Command cmd = new Command<>(new LegalContract.Approve(), requiredSigners);\n\n // We create a transaction builder and add the components.\n final TransactionBuilder txBuilder = new TransactionBuilder();\n txBuilder.addInputState(ndaStates.get(0));\n txBuilder.setNotary(notary);\n txBuilder.withItems(outputStateAndContract, cmd);\n\n // Signing the transaction.\n final SignedTransaction signedTx = getServiceHub().signInitialTransaction(txBuilder);\n // Creating a session with the other party.\n FlowSession otherpartySession = initiateFlow(crmParty);\n // Obtaining the counterparty's signature.\n SignedTransaction fullySignedTx = subFlow(new CollectSignaturesFlow(\n signedTx, ImmutableList.of(otherpartySession), CollectSignaturesFlow.tracker()));\n // Finalising the transaction.\n subFlow(new FinalityFlow(fullySignedTx));\n return null;\n }", "public String approveMsg(Long id){\n return messagesParser.approve(id);\n }", "@SystemAPI\n\tboolean needsApproval();", "public RemoteCall<KlayTransactionReceipt.TransactionReceipt> approve(String spender, BigInteger value) {\n final Function function = new Function(\n FUNC_APPROVE,\n Arrays.<Type>asList(new org.web3j.abi.datatypes.Address(spender),\n new org.web3j.abi.datatypes.generated.Uint256(value)),\n Collections.<TypeReference<?>>emptyList());\n return executeRemoteCallTransaction(function);\n }", "@Test\n\tvoid grantScholarshipApproved() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(166);\n\t\tassertEquals(scholarship,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}", "public boolean isApproved()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"APPROVED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\r\n\tpublic String approveSingleTicketService(ApproveTravekBookingPojo pojo) {\n\t\treturn approvetktDao.approveSingleTicketDao(pojo);\r\n\t}", "org.hyperledger.fabric.protos.token.Transaction.PlainApproveOrBuilder getPlainApproveOrBuilder();", "public void setApproveStatus(Byte approveStatus) {\n this.approveStatus = approveStatus;\n }", "public org.hyperledger.fabric.protos.token.Transaction.PlainApproveOrBuilder getPlainApproveOrBuilder() {\n if ((dataCase_ == 4) && (plainApproveBuilder_ != null)) {\n return plainApproveBuilder_.getMessageOrBuilder();\n } else {\n if (dataCase_ == 4) {\n return (org.hyperledger.fabric.protos.token.Transaction.PlainApprove) data_;\n }\n return org.hyperledger.fabric.protos.token.Transaction.PlainApprove.getDefaultInstance();\n }\n }", "void approveStudent(String studentId);", "public boolean approvePotentialDeliveryMan(final Parcel parcel, final String email);", "@POST\n @Path(\"/{leaveId}/approvedeny\")\n @Produces(MediaType.APPLICATION_JSON)\n @Consumes(MediaType.APPLICATION_JSON)\n public final String approveDeny(@PathParam(\"leaveId\") final int leaveId, final ManagerResponse m) {\n LeaveDetails leaveDetails = LeaveDetails.listById(leaveId);\n String s1 = leaveDetails.approveDeny(leaveId, m.getLeaveStatus(), m.getLeaveMgrComment());\n return \"Manager Response:\" + s1 + \" \";\n }", "public org.hyperledger.fabric.protos.token.Transaction.PlainApproveOrBuilder getPlainApproveOrBuilder() {\n if (dataCase_ == 4) {\n return (org.hyperledger.fabric.protos.token.Transaction.PlainApprove) data_;\n }\n return org.hyperledger.fabric.protos.token.Transaction.PlainApprove.getDefaultInstance();\n }", "public void setApproved(boolean approved) {\n this.approved = approved;\n }", "public int approve(String seller, String name, int itemID) {\n //store method to accept purchase of item with itemID and buyer with name\n return itemID;\n }", "@WebMethod(operationName = \"approveMember\")\n public boolean approveMember(@WebParam(name = \"id\") String id) {\n return update(id, \"APPROVED\");\n }", "public boolean ApproveReimbursement(int employeeID, int reimburseID, String reason, int status);", "@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveCreateNewData ( DATA approvedData , String approverUserId ) throws Exception;", "@Override\n\tpublic void approveAcceptedOffer(String matriculation) {\n\t\tofferman.approveAcceptedOffer(matriculation);\n\t\t\n\t}", "public boolean approveAppointment() {\n\t\tSet <String> set=(HealthCareDAO.map).keySet();\r\n\t\tint count=1;\r\n\t\tfor(String s:set)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"You have a center \"+map.get(s).getCenterName() +\"--\"+\"Center and id is \"+s);\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tSystem.out.println(\"Enter Center id :\");\r\n\t\tString str=scan.next();\r\n\t\tDiagnoisticCenter center=HealthCareDAO.map.get(str); //get Diagonistic object of given key \r\n\t\tList<Appointment> l=center.getAppointmentList();\r\n\t\t//System.out.println(l);\r\n\t\tint y=1;\r\n\t\tfor(Appointment a:l)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter Approval or disapproval\");\r\n\t\tboolean decision=scan.nextBoolean()\t;\r\n\t\t\ta.setApproved(decision);\r\n\t\t\tif(a.isApproved()==true)\r\n\t\t\t{\tSystem.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is Approved\");}\r\n\t\t\telse {System.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is not Approved\");}\r\n\t\t\ty++;\r\n\t\t\tif(y>3)\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t}\r\n\t\tcenter.setAppointmentList(l);\r\n\t\tSystem.out.println(\"Appointment List count :\"+l.size());\r\n\t\t\r\n\t\treturn false;\r\n\t}", "private PlainApprove(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private boolean doGetApproval() {\n\t\tcurrentStep = OPERATION_NAME+\": getting approval from BAMS\";\n\t\tif (!_atmssHandler.doDisDisplayUpper(SHOW_PLEASE_WAIT)) {\n\t\t\trecord(\"Dis\");\n\t\t\treturn false;\n\t\t}\n\t\tresult = _atmssHandler.doBAMSUpdatePasswd(newPassword, _session);\n\t\tif (result) {\n\t\t\trecord(\"password changed\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\trecord(\"BAMS\");\n\t\t\tif (!_atmssHandler.doDisDisplayUpper(FAILED_FROM_BAMS_UPDATING_PW)) {\n\t\t\t\trecord(\"Dis\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tpause(3);\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isApproved();", "public boolean isApproved();", "@Override\r\n\tpublic String approveAllTravelBookingDetailsService(\r\n\t\t\tApproveTravekBookingPojo pojo) {\n\t\treturn approvetktDao.approveAllTravelBookingDetailsDao(pojo);\r\n\t}", "@Transactional(readOnly=false , propagation=Propagation.REQUIRED)\r\n\tpublic void approveEditData ( DATA approvedData , String approverUserId ) throws Exception;", "@Override\n\tpublic boolean isApproved() {\n\t\treturn model.isApproved();\n\t}", "boolean hasPlainApprove();", "public String approveRegistration() {\n\t\treturn \"Company approved\";\r\n\t}", "public static void editLoanCost() {\n //We can only edit loan cost on Videos.\n char[] type = {'v'};\n String oldID = getExistingID(\"Video\", type);\n\n //Validate ID\n if (oldID != null) {\n //Run input validation\n String[] choiceOptions = {\"4\", \"6\"};\n int newLoan = Integer.parseInt(receiveStringInput(\"Enter new Loan Fee:\", choiceOptions, true, 1));\n try {\n //Replace the loan fee\n inv.replaceLoan(oldID, newLoan);\n } catch (IncorrectDetailsException e) {\n System.out.println(Utilities.ERROR_MESSAGE + \" Adding failed due to \" + e + \" with error message: \\n\" + e.getMessage());\n }\n } else System.out.println(Utilities.INFORMATION_MESSAGE + \"Incorrect ID, nothing was changed.\");\n }", "@Override\n\tpublic void onResponseReady(PayByTokenResponse response) {\n\t\tUtils.stopProcessingDialog(_context);\n\t\t// record last used credit card for next payment default\n\t\tUserConfig.setLastCreditCard(_context, cCard.getId());\n\n\t\t\tString msg = _context.getString(R.string.payment_approve_line_1_1) + totalAmount + \" \" + _context.getString(R.string.payment_approve_line_1_2) + \"\\n\"\n\t\t\t\t\t+ _context.getString(R.string.payment_cc_approve_line_2_card_num) + \"\\n\" + \"*\" + cCard.getLast4CardNum() + \"\\n\"\n\t\t\t\t\t+ _context.getString(R.string.payment_cc_approve_line_3_auth_code) + \" \" + response.GetAuthorizationCode();\n\n\t\t\tif (response.GetEmailSent()) {\n\t\t\t\tmsg += \"\\n\" + _context.getString(R.string.payment_cc_approve_email_sent) + \"\\n\" + response.GetEmail();\n\t\t\t}\n\t\t\tDaoManager daoManager = DaoManager.getInstance(_context);\n\t\t\tDBBookingDao bookingDao = daoManager.getDBBookingDao(DaoManager.TYPE_READ);\n\t\t\tdbBook.setAlready_paid(true);\n\t\t\tdbBook.setPaidAmount(totalAmount);\n\t\t\tdbBook.setAuthCode(response.GetAuthorizationCode());\n\t\t\tbookingDao.update(dbBook);\n\t\t\t((PayActivity)_context).showPaySuccessDialog(msg); \n\t}", "@Override\r\n\t\tpublic void action() {\n MessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.ACCEPT_PROPOSAL);\r\n MessageTemplate mt2 = MessageTemplate.MatchPerformative(ACLMessage.PROPOSE);\r\n ACLMessage msg = myAgent.receive(mt);\r\n //If it is a ACCEPT_PROPOSAL, the seller sell the book to the buyer (execpt if the book if not here anymore)\r\n if (msg != null) {\r\n // ACCEPT_PROPOSAL Message received. Process it\r\n title = msg.getContent();\r\n ACLMessage reply = msg.createReply();\r\n\r\n Integer price = (Integer) catalogue.remove(title);\r\n if (price != null) {\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(String.valueOf(price));\r\n System.out.println(title+\" sold to agent \"+msg.getSender().getName());\r\n }\r\n else {\r\n // The requested book has been sold to another buyer in the meanwhile .\r\n reply.setPerformative(ACLMessage.FAILURE);\r\n reply.setContent(\"not-available\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n //If it is a new PROPOSE, the buyer is trying to negociate.\r\n else {\r\n ACLMessage msg2 = myAgent.receive(mt2);\r\n if(msg2 != null){\r\n ACLMessage reply = msg2.createReply();\r\n //If the price of the buyer is OK for the seller according to his tolerance, the transaction is made\r\n if(((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) <= tolerance){\r\n System.out.println(myAgent.getLocalName() + \" say : OK, let's make a deal\");\r\n updateCatalogue(title, Integer.parseInt(msg2.getContent()));\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(msg2.getContent());\r\n }\r\n //Else, the seller accept to negociate, he up his tolerance and ask the buyer to up his real price\r\n else{\r\n //Send a REQUEST Message to negociate with the buyer\r\n reply.setPerformative(ACLMessage.REQUEST);\r\n //Up the tolerance by *change*\r\n tolerance += change;\r\n reply.setContent(String.valueOf(change));\r\n System.out.println(myAgent.getLocalName() + \" say : Let's up your real price while I up my tolerance (\" + ((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) + \" < \" + tolerance + \")\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n else{\r\n block();\r\n }\r\n }\r\n\t\t}", "public String approveMarriageNotice() {\n if (logger.isDebugEnabled()) {\n logger.debug(\"approving marriage notice idUKey : \" + idUKey + \" and notice type : \" + noticeType +\n \" and with ignore warnings : \" + ignoreWarnings);\n }\n //todo remove\n //follow use to display serial number in action message ans action errors\n marriage = marriageRegistrationService.getByIdUKey(idUKey, user);\n String[] actionMassageArray = new String[]{(noticeType == MarriageNotice.Type.FEMALE_NOTICE) ?\n Long.toString(marriage.getSerialOfFemaleNotice()) : Long.toString(marriage.getSerialOfMaleNotice())};\n try {\n warnings = marriageRegistrationService.\n approveMarriageNotice(idUKey, noticeType, ignoreWarnings, user);\n if (warnings.size() > 0) {\n //if warning size is more than 0 we forward in to approval warning page\n warningsAtApproval = true;\n return \"warning\";\n }\n addActionMessage(getText(\"message.approve.success\", actionMassageArray));\n logger.debug(\"successfully approved marriage notice idUKey : {} and notice type :{ }\", idUKey, noticeType);\n } catch (CRSRuntimeException e) {\n //error happens when approving marriage notice\n switch (e.getErrorCode()) {\n case ErrorCodes.OTHER_PARTY_MUST_APPROVE_FIRST:\n addActionError(getText(\"error.other.party.approve.first\",\n new String[]{(noticeType == MarriageNotice.Type.FEMALE_NOTICE) ?\n (marriage.getSerialOfMaleNotice() != null) ?\n Long.toString(marriage.getSerialOfMaleNotice()) : getText(\"message.not.yet.add\") :\n (marriage.getSerialOfFemaleNotice() != null) ?\n Long.toString(marriage.getSerialOfFemaleNotice()) : getText(\"message.not.yet.add\")}));\n break;\n case ErrorCodes.UNABLE_APPROVE_MARRIAGE_NOTICE_PROHIBITED_RELATIONSHIP:\n addActionError(getText(\"error.approval.failed\", actionMassageArray) + \" , \" + e.getMessage());\n break;\n case ErrorCodes.BRIDES_FATHER_IN_PRS_IS_MISMATCHED_WITH_GIVEN_FATHER:\n addActionError(getText(\"error.given.brides.father.details.are.mismatched.with.prs\"));\n break;\n case ErrorCodes.GROOMS_FATHER_IN_PRS_IS_MISMATCHED_WITH_GIVEN_FATHER:\n addActionError(getText(\"error.given.grooms.father.details.are.mismatched.with.prs\"));\n break;\n case ErrorCodes.MORE_THAN_ONE_ACTIVE_LICENSE:\n addActionError(getText(\"error.unable.to.approve.already.issued.license\"));\n break;\n default:\n addActionError(getText(\"error.approval.failed\", actionMassageArray));\n }\n commonUtil.populateDynamicLists(districtList, dsDivisionList, mrDivisionList, districtId,\n dsDivisionId, mrDivisionId, AppConstants.MARRIAGE, user, language);\n getApprovalPendingNotices();\n return \"failed\";\n } catch (Exception e) {\n logger.debug(\"exception while approving marriage notice :idUKey \");\n return ERROR;\n }\n commonUtil.populateDynamicLists(districtList, dsDivisionList, mrDivisionList, districtId, dsDivisionId,\n mrDivisionId, AppConstants.MARRIAGE, user, language);\n getApprovalPendingNotices();\n return SUCCESS;\n }", "public void approveOrderBySystemUser(String orderId) {\n String approvePath = mgmtOrdersPath + orderId + \"/approve\";\n sendRequest(putResponseType, systemUserAuthToken(), approvePath, allResult, statusCode200);\n }", "private void completeReview(long ticketId, ApprovalDTO dto, boolean reject, String reason)\n throws PortalServiceException {\n CMSUser user = ControllerHelper.getCurrentUser();\n Enrollment ticketDetails = enrollmentService.getTicketDetails(user, ticketId);\n \n long processInstanceId = ticketDetails.getProcessInstanceId();\n if (processInstanceId <= 0) {\n throw new PortalServiceException(\"Requested profile is not available for approval.\");\n }\n try {\n List<TaskSummary> availableTasks = businessProcessService.getAvailableTasks(user.getUsername(),\n Arrays.asList(user.getRole().getDescription()));\n boolean found = false;\n for (TaskSummary taskSummary : availableTasks) {\n if (taskSummary.getName().equals(APPROVAL_TASK_NAME)\n && taskSummary.getProcessInstanceId() == processInstanceId) {\n found = true;\n long taskId = taskSummary.getId();\n\n if (!reject) {\n // apply approver changes\n ProviderInformationType provider = applyChanges(dto, taskId);\n businessProcessService.completeReview(taskId, user.getUsername(),\n Arrays.asList(user.getRole().getDescription()), provider, false, reason);\n } else {\n businessProcessService.completeReview(taskId, user.getUsername(),\n Arrays.asList(user.getRole().getDescription()), null, true, reason);\n }\n }\n }\n if (!found) {\n throw new PortalServiceException(\"You do not have access to the requested operation.\");\n }\n } catch (Exception ex) {\n throw new PortalServiceException(\"Error while invoking process server.\", ex);\n }\n }", "@Test\n public void testLoanForeclosure() {\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n final Integer loanProductID = createLoanProduct(false, NONE);\n\n List<HashMap> charges = new ArrayList<>();\n\n Integer flatAmountChargeOne = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_FLAT, \"50\", false));\n addCharges(charges, flatAmountChargeOne, \"50\", \"01 October 2011\");\n Integer flatAmountChargeTwo = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_FLAT, \"100\", true));\n addCharges(charges, flatAmountChargeTwo, \"100\", \"15 December 2011\");\n\n List<HashMap> collaterals = new ArrayList<>();\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n Assertions.assertNotNull(collateralId);\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n String.valueOf(clientID), collateralId);\n Assertions.assertNotNull(clientCollateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanID = applyForLoanApplication(clientID, loanProductID, charges, null, \"10,000.00\", collaterals);\n Assertions.assertNotNull(loanID);\n\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n LOG.info(\"----------------------------------- APPROVE LOAN -----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(\"20 September 2011\", loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"----------------------------------- DISBURSE LOAN ----------------------------------------\");\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(\"20 September 2011\", loanID, \"10,000.00\",\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LOG.info(\"DISBURSE {}\", loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n LOG.info(\"---------------------------------- Make repayment 1 --------------------------------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 October 2011\", Float.parseFloat(\"2676.24\"), loanID);\n\n LOG.info(\"---------------------------------- FORECLOSE LOAN ----------------------------------------\");\n LOAN_TRANSACTION_HELPER.forecloseLoan(\"08 November 2011\", loanID);\n\n // retrieving the loan status\n loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n // verifying the loan status is closed\n LoanStatusChecker.verifyLoanAccountIsClosed(loanStatusHashMap);\n // retrieving the loan sub-status\n loanStatusHashMap = LoanStatusChecker.getSubStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n // verifying the loan sub-status is foreclosed\n LoanStatusChecker.verifyLoanAccountForeclosed(loanStatusHashMap);\n\n }", "public void approveTeacherAccount(TeacherUser teacher) {\n\t\tteacher.setIsApproved(true);\n\t}", "public Byte getApproveStatus() {\n return approveStatus;\n }", "public Action<PaymentState, PaymentEvent> authAction(){\n return context -> {\n System.out.println(\"preAuth was called !!\");\n\n if(new Random().nextInt(10) < 5){\n System.out.println(\"Approved\");\n\n // Send an event to the state machine to APPROVED the auth request\n context.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.AUTH_APPROVED)\n .setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, context.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER))\n .build());\n } else {\n System.out.println(\"Declined No Credit !!\");\n\n // Send an event to the state machine to DECLINED the auth request, and add the\n context.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.AUTH_DECLINED)\n .setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, context.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER))\n .build());\n }\n };\n }", "public boolean isActiveLoan();", "public void approveQuestion(Question question) throws Exception {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n question.setApproved(true);\n dbb.overwriteQuestion(question);\n dbb.commit();\n dbb.closeConnection();\n }", "@RequestMapping(value = \"/apply\", method = RequestMethod.POST)\n @Transactional\n public Applicant postLoan(@RequestBody CreateLoanRequest request){\n\n\n Applicant applicant= new Applicant();\n\n applicant.setSSNNumber(request.getApplicantSSN());\n applicant.setFirstName(request.getApplicantfirstName());\n applicant.setMiddleName(request.getApplicantmiddleName());\n applicant.setLastName(request.getApplicantlastName());\n applicant.setDateofBirth(Date.valueOf(request.getApplicantdob()));\n applicant.setDateSubmitted(Date.valueOf(LocalDate.now()));\n applicant.setMaritalStatus(request.getApplicantmaritalStatus());\n applicant.setAddressLine1(request.getApplicantaddrLine1());\n applicant.setAddressLine2(request.getApplicantaddrLine2());\n applicant.setCity(request.getApplicantcity());\n applicant.setState(request.getApplicantstate());\n applicant.setPostalCode(request.getApplicantpostalCode());\n applicant.setDescription(request.getApplicantdescription());\n applicant.setLoanAmount(request.getApplicantloanAmount());\n applicant.setLoanPurpose(request.getApplicantloanPurpose());\n applicant.setAnnualSalary(request.getApplicantAnnualSalary());\n applicant.setEmployername(request.getApplicantEmployerName());\n applicant.setEmployerAddress1(request.getApplicantEmployerAddr1());\n applicant.setEmployerAddress2(request.getApplicantEmployerAddr2());\n applicant.setEmployerCity(request.getApplicantEmployerCity());\n applicant.setEmployerState(request.getApplicantEmployerState());\n applicant.setEmployerPostalCode(request.getApplicantEmployerPostalCode());\n applicant.setDesignation(request.getApplicantdesignation());\n applicant.setHomePhone(request.getApplicanthomePhone());\n applicant.setOfficePhone(request.getApplicantofficePhone());\n applicant.setMobile(request.getApplicantmobile());\n applicant.setEmailAddress(request.getApplicantemail());\n applicant.setWorkExperienceMonth(request.getApplicantWorkExperienceMonth());\n applicant.setWorkExperienceYears(request.getApplicantWorkExperienceYears());\n\n applicant.setApplicationStatus(\"In Progress\");\n applicant.setScore(\"-\");\n applicant.setDeclineReason(\"In Progress\");\n\n Applicant applicant1=applicantService.createApplicant(applicant);\n\n boolean valid=TRUE;\n\n LocalDate l = applicant.getDateofBirth().toLocalDate(); //specify year, month, date directly\n LocalDate now = LocalDate.now(); //gets localDate Period\n Period diff = Period.between(l, now); //difference between the dates is calculated\n\n if(applicant.getAnnualSalary()<10000){\n valid=FALSE;\n applicant.setDeclineReason(\"Declined at FrontEnd - Salary is less than $10000\");\n }\n else if(diff.getYears()<18||diff.getYears()>65) {\n valid=FALSE;\n applicant.setDeclineReason(\"Declined at FrontEnd - Age not Age Group in 18-65\");\n }\n else if(applicant.getWorkExperienceYears()<1&&applicant.getWorkExperienceMonth()<6){\n valid=FALSE;\n applicant.setDeclineReason(\"Declined at FrontEnd - Work Experience is less than 6 months\");\n }\n\n int score=0;\n\n if(valid){\n score=applicantService.calculateScore(applicant);\n applicant.setScore(String.valueOf(score));\n if(score>10){ //threshold is 10 randomly, to be calculated by prasanna\n applicant.setApplicationStatus(\"Approved\");\n applicant.setDeclineReason(\"-\");\n }\n else{\n applicant.setApplicationStatus(\"Declined\");\n\n applicant.setDeclineReason(\" \"); //prassanna take\n }\n }\n else{\n applicant.setScore(\"0\");\n applicant.setApplicationStatus(\"Declined\");\n applicant.setDeclineReason(\"Validations Failed\");\n }\n\n applicantService.updateApplicant(applicant1);\n\n return null;\n }", "@Override\n\tpublic Boolean approveRejectLista(int statoApprovazione, String nomeLista) {\n\t\t\n\t\tLista listaElettorale = listaElettoraleDaNome(nomeLista);\n\t\t\n\t\tlistaElettorale.setStatoApprovazione(statoApprovazione);\n\t\t\n\t\t//modifica la lista elettorale dato lo stato di approvazione\n\t\tmodificaListaElettorale(listaElettorale);\n\n\t\treturn true;\n\t}", "@Test\n public void acceptRevoked() {\n /*\n * Given\n */\n var uid = UID.apply();\n var user = UserAuthorization.random();\n var granted = Instant.now();\n var privilege = DatasetPrivilege.CONSUMER;\n var executor = UserId.random();\n\n var grant = DatasetGrant.createApproved(\n uid, user, privilege,\n executor, granted, Markdown.lorem());\n\n var revoked = grant.revoke(UserId.random(), Instant.now(), Markdown.lorem());\n\n /*\n * When\n */\n var approved = revoked.approve(executor, Instant.now(), Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(approved)\n .as(\"The approval should not be successful\")\n .satisfies(a -> {\n assertThat(a.isFailure()).isTrue();\n });\n }", "void approveSelf() throws IllegalAccessException {\n\t\tif (this.secOpFlag)\n\t\t\tthrow new IllegalAccessException(\"Diagnose requires second opinion and can't be self approved.\");\n\t\tthis.approved = true;\n\t\tthis.secOpFlag = false;\n\t}", "public boolean isApproved() {\n return approved;\n }", "ApproveRequestsTask(final String requestId, final ProxyConnector conn, final OperationRequestListener listener) {\n\t\tthis.requestIds = new String[] { requestId };\n\t\tthis.conn = conn;\n\t\tthis.listener = listener;\n\t\tthis.t = null;\n\t}", "@RequestMapping(value = \"/revokeCustomer\", method = RequestMethod.GET)\n\tpublic ModelAndView suspendCustomerApprove(Long id, ModelMap model, RedirectAttributes attributes)\n\t\t\tthrows CustomException {\n\t\tEndUser endUser = endUserDAOImpl.findUserByCustomerId(id);\n\t\tendUserForm.setUserName(endUser.getUserName());\n\t\tendUserForm.setEmail(endUser.getEmail());\n\t\tendUserForm.setContactNo(endUser.getContactNo());\n\t\tendUserForm.setId(endUser.getCustomerId());\n\t\tmodel.put(\"endUserForm\", endUserForm);\n\n\t\treturn new ModelAndView(\"suspendCustomerApproveFromAdmin\", \"model\", model);\n\t}", "public static void log(LoanResponse loanResponse) {\n }", "private Mono<String> forceApprove(\n String baseUrl,\n String authHeader,\n BitbucketServerPullRequest pullRequest,\n String action\n ) {\n return getVersion(authHeader, baseUrl, pullRequest)\n .flatMap(version -> callApprove(baseUrl, authHeader, pullRequest, action, version));\n }", "public Builder mergePlainApprove(org.hyperledger.fabric.protos.token.Transaction.PlainApprove value) {\n if (plainApproveBuilder_ == null) {\n if (dataCase_ == 4 &&\n data_ != org.hyperledger.fabric.protos.token.Transaction.PlainApprove.getDefaultInstance()) {\n data_ = org.hyperledger.fabric.protos.token.Transaction.PlainApprove.newBuilder((org.hyperledger.fabric.protos.token.Transaction.PlainApprove) data_)\n .mergeFrom(value).buildPartial();\n } else {\n data_ = value;\n }\n onChanged();\n } else {\n if (dataCase_ == 4) {\n plainApproveBuilder_.mergeFrom(value);\n }\n plainApproveBuilder_.setMessage(value);\n }\n dataCase_ = 4;\n return this;\n }", "private TransferPointRequest checkTransferRequestEligibility(TransferPointRequest transferPointRequest) {\n Customer fromAccount = transferPointRequest.getFromCustomer();\n\n //get destination account\n Customer toAccount = transferPointRequest.getToCustomer();\n\n //check if account is linked\n transferPointRequest = isAccountLinked(transferPointRequest);\n\n //set request customer no as from account customer no\n transferPointRequest.setRequestorCustomerNo(fromAccount.getCusCustomerNo());\n\n //if accounts are not linked , requestor is eligible for transfer\n if(!transferPointRequest.isAccountLinked()){\n\n //set transfer eligibility to ELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n } else {\n\n //if linked , get the transfer point settings\n TransferPointSetting transferPointSetting = transferPointRequest.getTransferPointSetting();\n\n //check redemption settings\n switch(transferPointSetting.getTpsLinkedEligibilty()){\n\n case TransferPointSettingLinkedEligibity.NO_AUTHORIZATION:\n\n //if authorization is not needed set eligibity to ELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.PRIMARY_ONLY:\n\n //check the requestor is primary\n if(!transferPointRequest.isCustomerPrimary()){\n\n //if not primary , then set eligibility to INELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.INELIGIBLE);\n\n } else {\n\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n }\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.SECONDARY_WITH_AUTHORIZATION:\n\n //if customer is secondary , set eligibility to APRROVAL_NEEDED and set approver\n //and requestor customer no's\n if(!transferPointRequest.isCustomerPrimary()){\n\n //set eligibility status as approval needed\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.APPROVAL_NEEDED);\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getParentCustomerNo());\n\n } else {\n\n //set eligibility to eligible\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n }\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.ANY_ACCOUNT_WITH_AUTHORIZATION:\n\n //set eligibility to approval needed\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.APPROVAL_NEEDED);\n\n if(transferPointRequest.isCustomerPrimary()){\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getChildCustomerNo());\n\n } else {\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getParentCustomerNo());\n\n }\n\n return transferPointRequest;\n\n }\n }\n\n return transferPointRequest;\n\n }", "@Test\n public void approveGrant() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n var approvedBy = UserId.random();\n var approvedAt = Instant.now();\n var justification = Markdown.lorem();\n\n var grantedAuth = GrantedAuthorization.apply(approvedBy, approvedAt, grantFor);\n var member = DatasetMember.apply(grantedAuth, privilege);\n\n /*\n * When\n */\n grant = grant\n .approve(approvedBy, approvedAt, justification)\n .map(g -> g, e -> null);\n\n /*\n * Then\n */\n assertThat(grant.getRequest())\n .as(\"The request should be available in the grant.\")\n .isPresent()\n .satisfies(ro -> ro.ifPresent(r -> {\n assertThat(r).isEqualTo(request);\n }));\n\n assertThat(grant.getRequestResponse())\n .as(\"The request response should be set and it should be approved\")\n .isPresent()\n .satisfies(ro -> ro.ifPresent(r -> {\n assertThat(r)\n .extracting(\n o -> o.getExecuted().getBy(),\n o -> o.getExecuted().getAt(),\n AccessRequestResponse::isApproved)\n .containsExactly(approvedBy, approvedAt, true);\n }));\n\n assertThat(grant)\n .as(\"Since the request is approved, the grant should be active\")\n .satisfies(g -> {\n assertThat(g.asDatasetMember())\n .isPresent()\n .get()\n .isEqualTo(member);\n\n assertThat(g.isOpen()).isFalse();\n assertThat(g.isActive()).isTrue();\n assertThat(g.isClosed()).isFalse();\n });\n }", "public boolean hasPlainApprove() {\n return dataCase_ == 4;\n }", "public void transact() {\n\t\truPay.transact();\n\n\t}", "public appaporve(String id,String approve) {\n this.id = id;\n this.approve = approve;\n }", "public void addTaxManagerToPR(ApprovalRequest ar, Approvable lic) {\r\n\t\tLog.customer.debug(\"%s ::: addTaxManagerToPR - %s\", className, lic);\r\n\t\tProcureLineItemCollection plic = (ProcureLineItemCollection) lic;\r\n\r\n\t\tString TaxRole = \"Tax Manager\";\r\n\t\tString TaxReason = \"Tax Reason\";\r\n\t\tboolean flag1 = true;\r\n\t\tObject obj = Role.getRole(TaxRole);\r\n\t\t// plic.setFieldValue(\"ProjectID\",\"F\");\r\n\t\tLog.customer.debug(\r\n\t\t\t\t\"%s ::: isTaxManagerRequired - plic bfore create %s\",\r\n\t\t\t\tclassName, plic.toString());\r\n\t\tApprovalRequest approvalrequest1 = ApprovalRequest.create(plic,\r\n\t\t\t\t((ariba.user.core.Approver) (obj)), flag1, \"RuleReasons\",\r\n\t\t\t\tTaxReason);\r\n\t\tLog.customer.debug(\"%s ::: approvalrequest1 got activated- %s\",\r\n\t\t\t\tclassName);\r\n\r\n\t\tBaseVector basevector1 = plic.getApprovalRequests();\r\n\t\tLog.customer.debug(\"%s ::: basevector1 got activated- %s\", className);\r\n\r\n\t\tBaseVector basevector2 = approvalrequest1.getDependencies();\r\n\t\tLog.customer.debug(\"%s ::: basevector2 got activated- %s\", className);\r\n\r\n\t\tbasevector2.add(0, ar);\r\n\t\tLog.customer.debug(\"%s ::: ar added to basevector2 %s\", className);\r\n\r\n\t\tapprovalrequest1.setFieldValue(\"Dependencies\", basevector2);\r\n\t\tar.setState(2);\r\n\t\tLog.customer.debug(\"%s ::: ar.setState- %s\", className);\r\n\r\n\t\tar.updateLastModified();\r\n\t\tLog.customer.debug(\"%s ::: ar.updatelastmodified- %s\", className);\r\n\r\n\t\tbasevector1.removeAll(ar);\r\n\t\tLog.customer.debug(\"%s ::: basevecotr1 .removeall %s\", className);\r\n\r\n\t\tbasevector1.add(0, approvalrequest1);\r\n\t\tLog.customer.debug(\"%s ::: basevector1 .add- %s\", className);\r\n\r\n\t\tplic.setApprovalRequests(basevector1);\r\n\t\tLog.customer.debug(\"%s ::: ir .setApprovalRequests got activated- %s\",\r\n\t\t\t\tclassName);\r\n\r\n\t\tjava.util.List list = ListUtil.list();\r\n\t\tjava.util.Map map = MapUtil.map();\r\n\t\tboolean flag6 = approvalrequest1.activate(list, map);\r\n\r\n\t\tLog.customer.debug(\"%s ::: New TaxAR Activated - %s\", className);\r\n\t\tLog.customer.debug(\"%s ::: State (AFTER): %s\", className);\r\n\t\tLog.customer.debug(\"%s ::: Approved By: %s\", className);\r\n\r\n\t}", "@Test\n public void respondApproved() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n var approvedBy = UserId.random();\n var approvedAt = Instant.now();\n var justification = Markdown.lorem();\n\n var firstReject = grant\n .approve(approvedBy, approvedAt, justification)\n .map(g -> g, e -> null);\n\n /*\n * When\n */\n Result<DatasetGrant> approve = firstReject.approve(approvedBy, approvedAt, Markdown.lorem());\n Result<DatasetGrant> reject = firstReject.reject(UserId.random(), approvedAt, Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(reject.isFailure())\n .as(\"The 2nd call as reject cannot be successful\")\n .isTrue();\n\n assertThat(approve)\n .as(\"The 2nd call as approve is also successful with the same result\")\n .satisfies(r -> {\n var secondReject = r.map(g -> g, g -> null);\n assertThat(r.isSuccess()).isTrue();\n assertThat(secondReject).isEqualTo(firstReject);\n });\n }", "public static void calculateLoanPayment() {\n\t\t//get values from text fields\n\t\tdouble interest = \n\t\t\t\tDouble.parseDouble(tfAnnualInterestRate.getText());\n\t\tint year = Integer.parseInt(tfNumberOfYears.getText());\n\t\tdouble loanAmount =\n\t\t\t\tDouble.parseDouble(tfLoanAmount.getText());\n\t\t\n\t\t//crate a loan object\n\t\t Loan loan = new Loan(interest, year, loanAmount);\n\t\t \n\t\t //Display monthly payment and total payment\n\t\t tfMonthlyPayment.setText(String.format(\"$%.2f\", loan.getMonthlyPayment()));\n\t\t tfTotalPayment.setText(String.format(\"$%.2f\", loan.getTotalPayment()));\n\t}", "public Builder setPlainApprove(\n org.hyperledger.fabric.protos.token.Transaction.PlainApprove.Builder builderForValue) {\n if (plainApproveBuilder_ == null) {\n data_ = builderForValue.build();\n onChanged();\n } else {\n plainApproveBuilder_.setMessage(builderForValue.build());\n }\n dataCase_ = 4;\n return this;\n }", "public String addinit() throws Exception{\n\t\t\r\n\t\tApprove approve = approveServ.getApproveById(id);\r\n\t\t\r\n\t\trequest.setAttribute(\"approve\", approve);\r\n\t\t\r\n\t\t\r\n\t\treturn SUCCESS;\r\n\t}", "boolean approveDeny(String choice, int id, int resolverId);", "public int approve_reject_Request(int approval_status, String approvedBy, String approverComment, Timestamp time_approved,String social_Email)\r\n\t{\r\n\t\tConnection conn=getConnection();\r\n\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result=0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"update SOCIAL_EAI_APPROVAL set (APPROVAL_STATUS,APPROVED_BY,APPROVER_COMMENT,TIME_APPROVED)=(?,?,?,?) where REQ_SOCIAL_EMAIL=?\";\r\n\t\t\tpstmt = conn.prepareStatement(query); \r\n\t\t\tpstmt.setInt(1,approval_status); \r\n\t\t\tpstmt.setString(2,approvedBy); \r\n\t\t\tpstmt.setString(3,approverComment);\r\n\t\t\tpstmt.setTimestamp(4,time_approved);\r\n\t\t\tpstmt.setString(5,social_Email);\r\n\r\n\t\t\tresult=pstmt.executeUpdate(); \r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\r\n\t\t\tSystem.out.println(\"EXception:\");\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\r\n\t\treturn result;\r\n\t}", "RequestResult[] approveRequests(String[] requestIds) throws SAXException, IOException;", "public void saveLoan (Loan loan) throws SQLException{\n\t\tConnection conn = DataSource.getConnection();\n\t\t\n\t\ttry{\n\t\t\tString query = \"INSERT INTO loan (client_id, principal_amount, interest_rate, no_years, no_payments_yearly, start_date)\"\n\t\t\t\t\t\t+ \" VALUES ('\"+this.client_id+\"', \"+this.principal_amount+\", \"+this.interest_rate+\", \"+this.no_years+\", \"\n\t\t\t\t\t\t\t\t+ \"\"+this.no_payments_yearly+\", '\"+this.start_date+\"')\";\n\t\t\tStatement stat = conn.createStatement();\n\t\t\tstat.execute(query);\n\t\t\t\n\t\t\t// Deposit the money in the client's account\n\t\t\tClient client = Client.getClient(client_id);\n\t\t\tClient.deposit(client, principal_amount);\n\t\t}finally{\n\t\t\tconn.close();\n\t\t}\n\t}", "public void requestToken(View pView){\n mAttestation.fetchApproovToken();\n }", "@Override\n\tpublic boolean isAutoApprove(String arg0) {\n\t\treturn false;\n\t}", "@Override\n\tpublic void msgPaymentAccepted(Lord l,double amount) {\n\t\t\n\t}", "@Override\n\t\tpublic void action() {\n\t\t\tMessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.REQUEST); \n\t\t\tACLMessage msg = receive(mt);\n\t\t\tif(msg != null){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tContentElement ce = null;\n\t\t\t\t\tSystem.out.println(msg.getContent()); //print out the message content in SL\n\n\t\t\t\t\t// Let JADE convert from String to Java objects\n\t\t\t\t\t// Output will be a ContentElement\n\t\t\t\t\tce = getContentManager().extractContent(msg);\n\t\t\t\t\tSystem.out.println(ce);\n\t\t\t\t\tif(ce instanceof Action) {\n\t\t\t\t\t\tConcept action = ((Action)ce).getAction();\n\t\t\t\t\t\tif (action instanceof SupplierOrder) {\n\t\t\t\t\t\t\tSupplierOrder order = (SupplierOrder)action;\n\t\t\t\t\t\t\t//CustomerOrder cust = order.getItem();\n\t\t\t\t\t\t\t//OrderQuantity = order.getQuantity();\n\t\t\t\t\t\t\tif(!order.isFinishOrder()) {\n\t\t\t\t\t\t\tSystem.out.println(\"exp test: \" + order.getQuantity());\n\t\t\t\t\t\t\trecievedOrders.add(order);}\n\t\t\t\t\t\t\telse {orderReciever = true;}\n\t\t\t\t\t\t\t//Item it = order.getItem();\n\t\t\t\t\t\t\t// Extract the CD name and print it to demonstrate use of the ontology\n\t\t\t\t\t\t\t//if(it instanceof CD){\n\t\t\t\t\t\t\t\t//CD cd = (CD)it;\n\t\t\t\t\t\t\t\t//check if seller has it in stock\n\t\t\t\t\t\t\t\t//if(itemsForSale.containsKey(cd.getSerialNumber())) {\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Selling CD \" + cd.getName());\n\t\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t\t\t//else {\n\t\t\t\t\t\t\t\t\t//System.out.println(\"You tried to order something out of stock!!!! Check first!\");\n\t\t\t\t\t\t\t\t//}\n\n\t\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\t\n\n\t\t\t\t\t}\n\t\t\t\t\t//deal with bool set here\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcatch (CodecException ce) {\n\t\t\t\t\tce.printStackTrace();\n\t\t\t\t}\n\t\t\t\tcatch (OntologyException oe) {\n\t\t\t\t\toe.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tblock();\n\t\t\t}\n\t\t}", "RequestSender onAgree(Consumer<Message> consumer);", "public ActionForward disapprovedTeachingRequest(ActionMapping mapping,\r\n\t\t\tActionForm form, HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) throws Exception {\n\t\tString justification = (String) request.getParameter(\"justification\");\r\n\t\tif (justification == null || justification.trim().length() == 0) {\r\n\r\n\t\t\tActionMessages messages = new ActionMessages();\r\n\r\n\t\t\tmessages.add(\"justification\", new ActionMessage(\r\n\t\t\t\"errors.missingJustification\"));\r\n\t\t\tsaveErrors(request, messages);\r\n\r\n\t\t\treturn mapping.getInputForward();\r\n\r\n\t\t}\r\n\r\n\t\tint userRequestId = Integer.parseInt(request\r\n\t\t\t\t.getParameter(\"userRequestId\"));\r\n\r\n\t\ttry {\r\n\r\n\t\t\tUserRequest userRequest = facade\r\n\t\t\t.searchUserRequestById(userRequestId);\r\n\t\t\tif (!userRequest.isTeachingRequest()) {\r\n\t\t\t\tfacade.disapprovedAssistanceRequest(userRequest);\r\n\t\t\t\tfacade.sendEmailDisapproveAssistanceRequest(userRequest\r\n\t\t\t\t\t\t.getPerson().getEmail(), justification);\r\n\t\t\t} else {\r\n\t\t\t\tfacade.disapprovedTeachingRequest(userRequest);\r\n\t\t\t\tfacade.sendEmailDisapproveTeachingRequest(userRequest\r\n\t\t\t\t\t\t.getPerson().getEmail(), justification);\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow e;\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\r\n\t}", "@Test(dependsOnMethods = \"testCreate\")\n\tpublic void testApprove() throws Exception{\n\t\tString url = getProperty(BT_REST_URL)+BOOSTBLOCK_APPROVE+\"/\";\n\t\tlog.info(\"approve boostandblock resturi = \"+url);\n\t\tfor (Integer boostBlockId : getBoostAndBlocksMap().keySet()) {\n\t\t\tHttpEntity<Integer> entity = new HttpEntity<Integer>(getHeaders());\n\t\t\tResponseEntity<String> response = getRestTemplate().exchange(url+boostBlockId, HttpMethod.PUT, entity, String.class);\n\t\t\tassertNotNull(response);\n\t\t\tString boostResponseString = response.getBody();\n\t\t\tlog.info(\"approve boost response = \"+boostResponseString);\n\t\t\tJSONObject boostResponse = new JSONObject(boostResponseString);\n\t\t\tassertTrue(boostResponse.has(\"data\"));\n\t\t\tJSONObject data = (JSONObject)boostResponse.get(\"data\");\n\t\t\tassertTrue(data.has(\"status\"));\n\t\t\tString status = (String)data.get(\"status\");\n\t\t\tlog.info(\"approve boost status = \"+boostBlockId+\" status = \"+status);\n\t\t\tassertNotNull(status);\n\t\t\tassertEquals(status,\"Approved\");\n\t\t}\n\t}" ]
[ "0.76055735", "0.6553858", "0.6545241", "0.6533095", "0.64934945", "0.64791584", "0.64231783", "0.636274", "0.63428324", "0.6272952", "0.62054795", "0.5936366", "0.59212613", "0.58978117", "0.5897734", "0.5867154", "0.58477616", "0.58436555", "0.5832532", "0.5821864", "0.58171815", "0.581285", "0.57664835", "0.5759831", "0.5750977", "0.5749201", "0.5737431", "0.5728771", "0.5716993", "0.56599295", "0.56540495", "0.5644916", "0.5637646", "0.5613874", "0.5605475", "0.5598359", "0.5594761", "0.5585683", "0.55822057", "0.5578701", "0.55741525", "0.5569561", "0.5541283", "0.5511996", "0.5507835", "0.5491126", "0.54867274", "0.5469787", "0.54693854", "0.54672813", "0.54335266", "0.5404404", "0.5404404", "0.53887486", "0.53872657", "0.5384371", "0.5375887", "0.53678405", "0.5362197", "0.535847", "0.5349934", "0.53497833", "0.5347162", "0.53460824", "0.5294747", "0.52912503", "0.52904946", "0.5273264", "0.5261277", "0.5254471", "0.5252058", "0.52509916", "0.51855814", "0.51839393", "0.51740164", "0.5170049", "0.51596606", "0.51537704", "0.51456076", "0.5144613", "0.5136766", "0.5127452", "0.5125842", "0.51254225", "0.5123766", "0.5119153", "0.51167166", "0.5114156", "0.51072574", "0.5101865", "0.5097184", "0.5095899", "0.50946206", "0.5092578", "0.5091931", "0.50887036", "0.5086487", "0.5079445", "0.50788164", "0.5075438", "0.50689423" ]
0.0
-1
fails the double checking , assuming sorted
static boolean checkInFlightPossibility(int[] movies, int movieLen) { ArrayList<Integer> possibleMatches = new ArrayList<>(); HashSet originalPossibleMovies = new HashSet(); for (int movie : movies) { if (movie >= movieLen) break; possibleMatches.add(movieLen - movie); originalPossibleMovies.add(movie); } System.out.println(Arrays.toString(Arrays.copyOf(movies, possibleMatches.size()))); System.out.println(Arrays.toString(possibleMatches.toArray())); for (int elem : possibleMatches) { if (originalPossibleMovies.contains(elem)) return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void validateSortedData() {\n Preconditions.checkArgument(\n indices.length == values.length,\n \"Indices size and values size should be the same.\");\n if (this.indices.length > 0) {\n Preconditions.checkArgument(\n this.indices[0] >= 0 && this.indices[this.indices.length - 1] < this.n,\n \"Index out of bound.\");\n }\n for (int i = 1; i < this.indices.length; i++) {\n Preconditions.checkArgument(\n this.indices[i] > this.indices[i - 1], \"Indices duplicated.\");\n }\n }", "private static <T extends Comparable <? super T>> boolean isSorted (List <T> list){\r\n\t\tT prev = list.get(0); // 1\r\n\t\tfor (T item : list){ //n\r\n\t\t\tif (item.compareTo(prev) < 0) return false;\r\n\t\t\tprev = item;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isSorted(){\n\tfor (int i = 0; i < (_size - 2); i++){\n\t if (_data[i].compareTo(_data[i + 1]) > 0){\n\t\treturn false;\n\t }\n\t}\n\treturn true;\n }", "static boolean isSorted(int arr[]) {\n\t\tif(arr.length==1) {\n\t\t\treturn true;\n\t\t}\n\t\tif(arr[0]>arr[1]) {\n\t\t\treturn false;\n\t\t}\n\t\tint paritialArray [] = new int[arr.length-1];\n\t\tfor(int i=0; i<paritialArray.length; i++) {\n\t\t\tparitialArray[i] = arr[i+1];\n\t\t}\n\t\tboolean result = isSorted(paritialArray);\n\t\treturn result;\n\t\t\n\t\t\n\t}", "public void testSortAndDedup() {\n assertDeduped(List.<String>of(), Comparator.naturalOrder(), 0);\n // test no elements in an integer array\n assertDeduped(List.<Integer>of(), Comparator.naturalOrder(), 0);\n // test unsorted array\n assertDeduped(List.of(-1, 0, 2, 1, -1, 19, -1), Comparator.naturalOrder(), 5);\n // test sorted array\n assertDeduped(List.of(-1, 0, 1, 2, 19, 19), Comparator.naturalOrder(), 5);\n // test sorted\n }", "private void assertStablySorted(final IntPlus[] origArr,\n final IntPlus[] testArr,\n Comparator<IntPlus> cmp) {\n //Create copy of original array and sort it\n IntPlus[] stablySortedArr = cloneArr(origArr);\n Arrays.parallelSort(stablySortedArr, cmp); //guaranteed to be stable\n\n //Works since stable sorts are unique - there is 1 right answer.\n for (int i = 0; i < origArr.length; i++) {\n assertEquals(\"Array was not stably sorted: element \" + i + \" was \"\n + \"out of order. Expected:\\n\"\n + Arrays.deepToString(stablySortedArr) + \"\\nYours:\"\n + \"\\n\" + Arrays.deepToString(testArr),\n stablySortedArr[i], testArr[i]);\n }\n }", "private void assertSorted(final IntPlus[] testArr,\n Comparator<IntPlus> cmp) {\n for (int i = 0; i < testArr.length - 1; i++) {\n assertTrue(\"Array was not sorted: element \" + i + \" was out \"\n + \"of order: \\n\" + Arrays.deepToString(testArr),\n cmp.compare(testArr[i], testArr[i + 1]) <= 0);\n\n }\n }", "private static <T> boolean isSorted(Comparable<T>[] a) {\n\t\tfor(int i=1; i<a.length; i++) {\r\n\t\t\tif(less(a[i],a[i-1]))\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private static boolean checkSorted(int[] arr, int from, int to) {\n\t\t\n\t\tboolean result = true;\n\t\tif (to<arr.length) {\n\t\t\tif (arr[from]>arr[to]) return result = false;\n\t\t\t// Calling same method to check next elements\n\t\t\tif (!checkSorted(arr, from+1, to+1)) return result = false;\n\t\t}\n\t\treturn result;\n\t}", "@Test\n\tpublic void testSortRepeatableNumbers() {\n\t\tint[] arrayBeforeSort = { 104, 104, 0, 9, 56, 0, 9, 77, 88 };\n\t\tint[] arrayAfterSort = { 104, 104, 0, 9, 56, 0, 9, 77, 88 };\n\t\tArrayQuickSort.sort(arrayAfterSort);\n\t\tif (!isSorted(arrayBeforeSort, arrayAfterSort)) {\n\t\t\tAssert.fail(\"The array is not sorted!\");\n\t\t}\n\t}", "private static boolean isSorted(Comparable[] a) {\n for (int i = 1; i < a.length; i++)\n if (less(a[i], a[i-1])) return false;\n return true;\n }", "@Test\r\n public void repeatedValuesTest() {\r\n int[] unsorted = new int[]{1,33,1,0,33,-23,1,-23,1,0,-23};\r\n int[] expResult = new int[]{-23,-23,-23,0,0,1,1,1,1,33,33};\r\n int[] result = arraySorter.sort(unsorted);\r\n assertArrayEquals(expResult, result);\r\n }", "@Test\n public void case3SortTwoElements(){\n //Already sorted array\n SortDemoData data2 = new SortDemoData() ;\n\n int[] testArray = {1,2};\n data2.initializeArray(\"2 1\");\n assertTrue(map.get(algoUnderTest)+\" Before Sort ...First Element\",data2.myArray[1].key == testArray[0]);\n assertTrue(map.get(algoUnderTest)+\" Before Sort ...Second Element\",data2.myArray[0].key == testArray[1]);\n\n data2.runAlgo(algoUnderTest);\n \n if(algoUnderTest != 0)\n {\n assertTrue(map.get(algoUnderTest)+\" After Sort ...First Element\",data2.myArray[0].key == testArray[0]);\n assertTrue(map.get(algoUnderTest)+\" After Sort ...Second Element\",data2.myArray[1].key == testArray[1]);\n }\n \n else {\n \t assertFalse(map.get(algoUnderTest)+\" After Sort ...First Element\",data2.myArray[0].key == testArray[0]);\n assertFalse(map.get(algoUnderTest)+\" After Sort ...Second Element\",data2.myArray[1].key == testArray[1]);\n }\n\n\n }", "boolean areSorted();", "private static void sortingMemo() {\n\t\t\n\t}", "public static boolean checkValid(List<Integer> data) {\n for (int i = 1; i != data.size(); ++i) {\n int previous = data.get(i - 1);\n int current = data.get(i);\n if (previous > current)\n // invalid sort\n return false;\n }\n return true;\n }", "@Test\n\tpublic void testSortNormalElements() {\n\t\tint[] arrayBeforeSort = { 565, 78, 34, 2, 23, 2222, 34 };\n\t\tint[] arrayAfterSort = { 565, 78, 34, 2, 23, 2222, 34 };\n\t\tArrayQuickSort.sort(arrayAfterSort);\n\t\tif (!isSorted(arrayBeforeSort, arrayAfterSort)) {\n\t\t\tAssert.fail(\"The array is not sorted!\");\n\t\t}\n\t}", "private static boolean isSorted(Comparable[] a, int lo, int hi) {\n for (int i = lo; i < hi; i++)\n if (less(a[i+1], a[i])) return false;\n return true;\n }", "public static <T extends Comparable<? super T>> void sortTest(T[] a) {\n int N = a.length;\n int q = 0;\n for (int i = 1; i < N; i++) { \n // Insert a[i] among a[i-1], a[i-2], a[i-3]... ..\n for (int j = i; j > 0 && less(a[j], a[j-1]); j--) {\n exch(a, j, j-1); q = j;\n }\n }\n System.out.println(\"q==j==\"+q);\n }", "public static void vulnerability_1(SortDouble instance) {\n\t\tinstance.compare(0, 0);//NullPointerException\n\t\tinstance.probe(0);//NullPonterException\n\t\tinstance.swap(0, 1);//NullPouterException\n\t\tinstance.doSort();//NullPointerException\n\t}", "@Test\n\tpublic void testSortOneElementInArray() {\n\t\tint[] arrayBeforeSort = { 565 };\n\t\tint[] arrayAfterSort = { 565 };\n\t\tArrayQuickSort.sort(arrayAfterSort);\n\t\tif (!isSorted(arrayBeforeSort, arrayAfterSort)) {\n\t\t\tAssert.fail(\"The array is not sorted!\");\n\t\t}\n\t}", "public static boolean dIsSorted(double [] a) {\n\n for(int i = 0; i < a.length-1; i ++) { \n if (a[i] >= a[i+1]) {\n return false; \n }\n }\n return true;\n }", "public static <T extends Comparable<? super T>> void sortTest2(T[] a) {\n int N = a.length;\n for (int i = 1; i < N; i++) { \n // Insert a[i] among a[i-1], a[i-2], a[i-3]... ..\n for (int j = i; j > 0 && lessTest(a[j], a[j-1]); j--) {\n exch(a, j, j-1);\n }\n }\n }", "private static void sort(int[] arr) {\n\t\tint lesserIndex=-1;\n\t\tint arrLen = arr.length ; \n\t\tfor(int i=0; i<arrLen; i++){\n\t\t\tif(arr[i]<0){\n\t\t\t\tlesserIndex++; \n\t\t\t\tint tmp = arr[lesserIndex]; \n\t\t\t\tarr[lesserIndex] = arr[i];\n\t\t\t\tarr[i] = tmp; \n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tint negBound = lesserIndex+1;\n\t\tint posIndex = negBound;\n\t\t\n\t\tfor(int negIngex = 0;negIngex<negBound && posIndex<arr.length; negIngex+=2, posIndex+=1){\n\t\t\tint tmp = arr[posIndex]; \n\t\t\tarr[posIndex] = arr[negIngex] ; \n\t\t\tarr[negIngex] = tmp ;\n\t\t\tnegBound++;\n\t\t}\n\t\t\n\t\t\n\t\tfor(int a : arr) {\n\t\t\tSystem.out.print(a);\n\t\t}\n\t\t\n\t}", "static boolean isSorted2(int arr[], int startIndex) {\n\t\tif(startIndex>=arr.length-1) {\n\t\t\treturn true;\n\t\t}\n\t\tif(arr[startIndex]>arr[startIndex+1]) {\n\t\t\treturn false;\n\t\t}\n\t\tstartIndex++;\n\t\tboolean result = isSorted2(arr, startIndex);\n\t\treturn result;\n\t\t\n\t\t\n\t}", "private PerfectMergeSort() {}", "private static void findDuplicatesBySorting(int[] arr) {\n\t\t\n\t\tint[] givenArray = arr;\n\t\tArrays.sort(givenArray);\n\t\t\n\t\tfor ( int i=0; i<givenArray.length - 1 ; i++)\n\t\t{\n\t\t\tif( givenArray[i] == givenArray[i+1])\n\t\t\t{\n\t\t\t\tSystem.out.println(givenArray[i] + \" is the duplicate by sort method \");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t\n\t}", "boolean hasSortNo();", "static boolean doubleArraySorted(double[] darray) {\n\t\tfor (int i = 0; i + 1 < darray.length; i++) {\n\t\t\t if (darray[i] > darray[i + 1]) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static boolean isSorted(double[] list){\n\t\tif (list.length==1) \n\t\t\treturn true;\n\t\telse\n\t\t{\n\t\t\tfor( int i = 0; i <list.length-1; i++){\n\t\t\t\tif(list[i] >list[i+1]){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn true; // return true after you search a\n\t\t\n\t}", "@Test\n\tpublic void testSortTwoElements() {\n\t\tint[] arrayBeforeSort = { 565, 45 };\n\t\tint[] arrayAfterSort = { 565, 45 };\n\t\tArrayQuickSort.sort(arrayAfterSort);\n\t\tif (!isSorted(arrayBeforeSort, arrayAfterSort)) {\n\t\t\tAssert.fail(\"The array is not sorted!\");\n\t\t}\n\t}", "private void discretization(int[] nums) {\n\t\tint[] sorted = nums.clone();\n\t\tArrays.sort(sorted);\n\t\tfor (int i = 0; i < nums.length; i++) {\n\t\t\tnums[i] = Arrays.binarySearch(sorted, nums[i]);\n\t\t}\n\t}", "@Override\n public void sort() {\n for (int i = 0; i < size; i++) {\n for (int j = i + 1; j < size; j++) {\n if (((Comparable) data[i]).compareTo(data[j]) > 0) {\n E c = data[i];\n data[i] = data[j];\n data[j] = c;\n\n }\n }\n }\n }", "private static boolean isSorted(String[] a) {\n for (int i = 1; i < a.length; i++) {\n if (a[i].compareTo(a[i-1]) < 0) {\n \treturn false;\n }\n }\n return true;\n }", "@Override\r\n\tpublic void sort() {\r\n\t\tint minpos;\r\n\t\tfor (int i = 0; i < elements.length-1; i++) {\r\n\t\t\tminpos=AuxMethods.minPos(elements, i);\r\n\t\t\telements=AuxMethods.swapElements(elements, i, minpos);\r\n\t\t\t\r\n\t\t}\r\n\t}", "@Test\n public void case5SortReversedSequence(){\n //Completely reverse sorted array\n int[] testArray = {1,2,3};\n SortDemoData data3 = new SortDemoData() ;\n data3.initializeArray(\"3 2 1\");\n assertTrue(map.get(algoUnderTest)+\" Before Sort ...First Element\",data3.myArray[2].key == testArray[0]);\n assertTrue(map.get(algoUnderTest)+\" Before Sort ...Second Element\",data3.myArray[1].key == testArray[1]);\n assertTrue(map.get(algoUnderTest)+\" Before Sort ...Third Element\",data3.myArray[0].key == testArray[2]);\n\n data3.runAlgo(algoUnderTest);\n\n if(algoUnderTest != 0)\n {\n assertTrue(map.get(algoUnderTest)+\" After Sort ...First Element\",data3.myArray[0].key == testArray[0]);\n assertTrue(map.get(algoUnderTest)+\" After Sort ...Second Element\",data3.myArray[1].key == testArray[1]);\n assertTrue(map.get(algoUnderTest)+\" After Sort ...Third Element\",data3.myArray[2].key == testArray[2]);\n }\n else {\n \t assertFalse(map.get(algoUnderTest)+\" After Sort ...First Element\",data3.myArray[0].key == testArray[0]);\n assertFalse(map.get(algoUnderTest)+\" After Sort ...Second Element\",data3.myArray[1].key == testArray[1]);\n assertFalse(map.get(algoUnderTest)+\" After Sort ...Third Element\",data3.myArray[2].key == testArray[2]);\n }\n \n }", "public static void sort(Comparable[] a) {\n for (int i = 0 ; i < a.length ; i++) { // each position scan\n int min = i;\n for (int j = i+1; j < a.length; j++) { // each time we have to scan through remaining entry\n if (HelperFunctions.less(a[j], a[min])) {\n min = j ;\n }\n HelperFunctions.exch(a, i, min);\n }\n }\n }", "@Test\n public void testSort_intArr_IntComparator_Desc_half() {\n IntComparator comparator = IntComparatorDesc.getInstance();\n int[] expResult = DESC_CHECK_HALF_CHECK_ARRAY;\n sorter.sort(data, 0, 8, comparator);\n assertArrayEquals(\"Error testing class: \" + className, expResult, data);\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int noOfElements = sc.nextInt();\n int[] arr = new int[noOfElements];\n int[] arr1 = new int[noOfElements];\n int diff = Integer.MAX_VALUE;\n int sIndex = 0;\n int j = 0;\n for (int i = 0; i < noOfElements; i++) {\n arr[i] = sc.nextInt();\n }\n for (int j1 = 1; j1 < noOfElements; j1++) {\n int i = j1 - 1;\n int key = arr[j1];\n while (i >= 0 && key < arr[i]) { // 1 2 3\n arr[i + 1] = arr[i];\n i--;\n }\n arr[i + 1] = key;\n }\n //Arrays.sort(arr);\n for (int i = 0; i < noOfElements - 1; i++) {\n int temp = Math.abs(arr[i] - arr[i + 1]);\n if (temp <= diff) {\n diff=temp;\n }\n\n }\n\n for (int i = 0; i < noOfElements - 1; i++) {\n if (Math.abs(arr[i] - arr[i+1]) == diff) {\n System.out.print(arr[i] + \" \" + arr[i+1] + \" \");\n }\n }\n// for (int a = 0; a < j; a++) {\n//\n// System.out.print(arr[arr1[a]] + \" \" + arr[arr1[a]+1] + \" \");\n// }\n\n }", "private static void sort1(int[] x, IntComparator comp, int off, int len) {\n\t\tif (len < 7) {\n\t\t\tfor (int i=off; i<len+off; i++)\n\t\t\t\tfor (int j=i; j>off && comp.compare(x[j-1],x[j])>0; j--)\n\t\t\t\t\tswap(x, j, j-1);\n\t\t}\n\t\n\t\t// Choose a partition element, v\n\t\tint m = off + (len >> 1); // Small arrays, middle element\n\t\tif (len > 7) {\n\t\t\tint l = off;\n\t\t\tint n = off + len - 1;\n\t\t\tif (len > 40) { // Big arrays, pseudomedian of 9\n\t\t\t\tint s = len/8;\n\t\t\t\tl = med3(x,comp, l, l+s, l+2*s);\n\t\t\t\tm = med3(x,comp, m-s, m, m+s);\n\t\t\t\tn = med3(x,comp, n-2*s, n-s, n);\n\t\t\t}\n\t\t\tm = med3(x,comp, l, m, n); // Mid-size, med of 3\n\t\t}\n\t\tint v = x[m];\n\t\n\t\t// Establish Invariant: v* (<v)* (>v)* v*\n\t\tint a = off, b = a, c = off + len - 1, d = c;\n\t\twhile(true) {\n\t\t\twhile (b <= c && comp.compare(x[b],v)<=0) {\n\t\t\t\tif (x[b] == v)\n\t\t\t\t\tswap(x, a++, b);\n\t\t\t\tb++;\n\t\t\t}\n\t\t\twhile (c >= b && comp.compare(x[c],v)>=0) {\n\t\t\t\tif (x[c] == v)\n\t\t\t\t\tswap(x, c, d--);\n\t\t\t\tc--;\n\t\t\t}\n\t\t\tif (b > c)\n\t\t\t\tbreak;\n\t\t\tswap(x, b++, c--);\n\t\t}\n\t\n\t\t// Swap partition elements back to middle\n\t\tint s, n = off + len;\n\t\ts = Math.min(a-off, b-a ); vecswap(x,off, b-s, s);\n\t\ts = Math.min(d-c, n-d-1); vecswap(x,b, n-s, s);\n\t\n\t\t// Recursively sort non-partition-elements\n\t\tif ((s = b-a) > 1)\n\t\t\tsort1(x,comp, off, s);\n\t\tif ((s = d-c) > 1)\n\t\t\tsort1(x,comp, n-s, s);\n\t}", "private void somethingIsWrongWithMergeSort() {\n try {\n Sorting.mergesort(\n null, (new Zombie(null, 0, 0).getNameComparator()));\n fail(\"You didn't even throw the exception for the array.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n try {\n Sorting.mergesort(horde, null);\n fail(\"You didn't even throw the exception for the comparator.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n }", "public static void main(String[] args) throws Exception {\n int arr[]= {7,9,88,-33,2,12,6,1};\n Arrays.sort(arr);\n /*for(int i=0; i<arr.length; i++)\n \t System.out.print(arr[i]+\", \");\n System.out.println(\"\\n DESC\");\n System.out.print(\"{ \");\n for(int i=arr.length-1; i>=0; i--) {\n \t if(arr[i]==arr[0])\n \t System.out.print(arr[i]);\n \t else \n \t\t System.out.print(arr[i]+\", \");\n }*/\n // System.out.print(\" }\");\n \n int[] ar= {6,2,2,5,2,2,1};\n int startIndex=0;\n int lastIndex=ar.length-1;\n //a is sumRight,b = sumLeft\n int a=0,b=0;\n /* while(true) {\n \t \n \t if(b>a) \n \t\t //1+2+2=+5\n \t\t a+=ar[lastIndex--];\n \t else \n \t\t //6+2+2\n \t\t\t b+=ar[startIndex++];\n \t\tif(startIndex>lastIndex) {\n \t\t\tSystem.out.println(startIndex);\n \t\t\tif(a==b)\n \t\t\t\tbreak;\n \t\t\t else\n \t\t\t throw new Exception(\"not a valid array\");\n \t\t\t\n \t\t}\n \t\t\t \n \t\t\n }\n System.out.println(lastIndex);\n */\n \n \n while(true) {\n \t \n \t if(b>a)\n \t\t a+= ar[lastIndex--];\n \t else\n b+=ar[startIndex++];\n \t if(startIndex>lastIndex) {\n \t\t if(a==b)\n \t\t\t break;\n \t }\n }\n System.out.println(lastIndex);\n\t}", "@Test\r\n public void testSort() {\r\n System.out.println(\"sort\");\r\n int[] array = {6, 3, 7, 9, 4, 1, 3, 7, 0};\r\n int[] expResult = {0, 1, 3, 3, 4, 6, 7, 7, 9};\r\n\r\n int[] result = new InsertionSort().sort(array);\r\n\r\n assertArrayEquals(expResult, result);\r\n \r\n array = new int[10000];\r\n for (int i = 0; i < array.length; i++) {\r\n array[i] = new Random().nextInt(Integer.MAX_VALUE);\r\n }\r\n expResult = Arrays.copyOf(array, array.length);\r\n Arrays.sort(expResult);\r\n \r\n result = new InsertionSort().sort(array);\r\n\r\n assertArrayEquals(expResult, result);\r\n }", "@Test(timeout = SHORT_TIMEOUT)\n public void testAdaptiveInsertionSort() {\n //Test adaptiveness of completely ordered sort\n\n //Generate sorted array\n toSort = randArrDuplicates(MAX_ARR_SIZE, new Random(2110));\n Arrays.parallelSort(toSort, comp);\n sortedInts = cloneArr(toSort);\n\n comp.resetCount();\n Sorting.insertionSort(sortedInts, comp);\n int numComparisons = comp.getCount();\n\n assertSorted(sortedInts, comp);\n\n //Should require only 1 pass through array, for n-1 comparisons\n assertTrue(\"Too many comparisons: \" + numComparisons,\n numComparisons <= MAX_ARR_SIZE - 1);\n\n //Check adaptiveness with 1 item out-of-order\n\n //Set up list\n toSort = new IntPlus[6];\n for (int i = 0; i < toSort.length; i++) {\n toSort[i] = new IntPlus(2 * i);\n }\n toSort[3] = new IntPlus(-1);\n\n sortedInts = cloneArr(toSort);\n\n /*\n Initial Array: [0, 2, 4, -1, 8, 10]\n Should require 7 comparisons to sort\n */\n comp.resetCount();\n Sorting.insertionSort(sortedInts, comp);\n numComparisons = comp.getCount();\n\n assertSorted(sortedInts, comp);\n\n assertTrue(\"Too many comparisons: \" + numComparisons,\n numComparisons <= 7);\n }", "private static boolean less(Comparable[] pq, int i, int j) {\n return pq[i-1].compareTo(pq[j-1]) < 0;\n }", "public void oldSort()\n\t{\n\t\tfor (int index = 0; index < arraySize; index++) {\n\t\t\tfor (int secondIndex = index + 1; secondIndex < arraySize; secondIndex++) {\n\t\t\t\tint temp = 0;\n\t\t\t\tif (array[index] > array[secondIndex]) {\n\t\t\t\t\ttemp = array[index];\n\t\t\t\t\tarray[index] = array[secondIndex];\n\t\t\t\t\tarray[secondIndex] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Test\r\n public void trivialTest() {\r\n int[] unsorted = new int[0];\r\n int[] expResult = new int[0];\r\n int[] result = arraySorter.sort(unsorted);\r\n assertArrayEquals(expResult, result);\r\n }", "@Test\n\tpublic void givenAnArrayWithTwoElements_ThenItIsSorted() {\n\t\tList<Integer> unsorted = new ArrayList<>();\n\t\tunsorted.add(2);\n\t\tunsorted.add(1);\n\t\t\n\t\t// Execute the code\n\t\tList<Integer> sorted = QuickSort.getInstance().sort(unsorted);\n\t\t\t\n\t\t// Verify the test result(s)\n\t\tassertThat(sorted.get(0), is(1));\n\t\tassertThat(sorted.get(1), is(2));\n\t}", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in); \n int n = sc.nextInt();\n int[] array = new int[n];\n for(int i = 0;i < n; i++) {\n array[i] = sc.nextInt();\n }\n sc.close();\n \n int start = -1, end = -1;\n int misplaced = 0;\n \n for(int i = 0; i < n - 1; i++) {\n if(array[i] > array[i + 1]) {\n misplaced++;\n if(start < 0) {\n start = i;\n }\n }\n }\n \n for(int i = n - 1; i > 0; i--) {\n if(array[i] < array[i-1]) {\n end = i;\n break;\n }\n }\n \n if(misplaced < 1) {\n System.out.println(\"no\");\n return;\n }\n else if(misplaced == 1 || misplaced == 2) {\n if(misplaced == 1) //case where two neighbors swap themselves\n end = start + 1;\n boolean leftValidator = (start == 0 || array[end] >= array[start - 1]) && array[end] <= array[start + 1];\n boolean rightValidator = \n (end == n - 1 || array[start] <= array[end + 1]) && array[start] >= array[end -1];\n if(leftValidator && rightValidator) {\n System.out.println(\"yes\");\n System.out.println(\"swap \"+(start+1)+\" \"+(end+1));\n }\n else{\n System.out.println(\"no\");\n }\n return;\n }\n else{\n boolean leftValidator = start == 0 || array[end] >= array[start - 1];\n boolean rightValidator = end == n -1 || array[start] <= array[end + 1];\n if(!leftValidator || !rightValidator){\n System.out.println(\"no\");\n return;\n }\n int pre = array[end];\n for(int i = end - 1; i >= start; i--) {\n if(array[i] < pre) {\n System.out.println(\"no\");\n return;\n }\n pre = array[i];\n }\n \n System.out.println(\"yes\");\n System.out.println(\"reverse \"+(start+1)+\" \"+(end+1));\n }\n \n /**\n //I am such an idot cause I first understood the question wrongly\n //If the array was supposed to be consecutively ascending order, then the code below would've worked\n \n int min = Integer.MAX_VALUE;\n int start = -1, end = -1;\n int left = 0, right = n - 1;\n int misplaced = 0;\n \n for(int i : array) { //find the min value\n min = Math.min(min, i);\n }\n \n while(left <= right) { //find how many elements are misplaced and the index of first misplaced element\n if(array[left] != min + left) { //and the index of the last misplaced element\n misplaced++;\n if(start < 0) {\n start = left;\n }\n }\n left++;\n if(left <= right && array[right] != min + right) { //left != right for the case where the array is odd\n misplaced++;\n if(end < 0) {\n end = right;\n }\n }\n right--;\n }\n \n if(misplaced < 2) {\n System.out.println(\"no\");\n return;\n }\n else if(misplaced == 2) {\n if(min + start == array[end] && min + end == array[start]) {\n System.out.println(\"yes\");\n System.out.println(\"swap \"+(start+1)+\" \"+(end+1));\n }\n else{\n System.out.println(\"no\");\n }\n return;\n }\n else{\n for(int i = start, j = 0; i <= end; i++, j++) {\n if(array[i] != min + end - j) {\n System.out.println(\"no\");\n return;\n }\n }\n \n System.out.println(\"yes\");\n System.out.println(\"reverse \"+(start+1)+\" \"+(end+1));\n }\n **/\n \n }", "private void improperArgumentCheck(Point[] points) {\n int N = points.length;\n for (int i = 0; i < N; i++) {\n if (null == points[i])\n throw new NullPointerException();\n }\n\n Arrays.sort(points);\n for (int i = 1; i < N; i++) {\n if (points[i-1].equals(points[i]))\n throw new IllegalArgumentException();\n }\n }", "@Test\n public void testRecoverRotatedSortedArray() {\n System.out.println(\"recoverRotatedSortedArray\");\n ArrayList<Integer> nums = null;\n RecoverRotatedSortedArray instance = new RecoverRotatedSortedArray();\n instance.recoverRotatedSortedArray(nums);\n \n ArrayList<Integer> nums2 = new ArrayList<Integer>();\n nums2.add(4);\n nums2.add(5);\n nums2.add(1);\n nums2.add(2);\n nums2.add(3);\n instance.recoverRotatedSortedArray(nums2);\n assertEquals(1, (long)nums2.get(0));\n assertEquals(2, (long)nums2.get(1));\n assertEquals(3, (long)nums2.get(2));\n assertEquals(4, (long)nums2.get(3));\n assertEquals(5, (long)nums2.get(4));\n \n ArrayList<Integer> nums3 = new ArrayList<Integer>();\n for (int i = 0; i < 9; i++) {\n nums3.add(1);\n }\n nums3.add(-1);\n for (int i = 0; i < 11; i++) {\n nums3.add(1);\n }\n instance.recoverRotatedSortedArray(nums3);\n assertEquals(-1, (long)nums3.get(0));\n assertEquals(1, (long)nums3.get(1));\n assertEquals(1, (long)nums3.get(2));\n assertEquals(1, (long)nums3.get(9));\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static <E extends Comparable<? super E>> void secret(\r\n\t\t\tComparable<E>[] data) {\r\n\r\n\t\tboolean swapPerformed = true;\r\n\t\twhile (swapPerformed) {\r\n\t\t\tswapPerformed = false;\r\n\t\t\tfor (int i = 0; i < data.length - 1; i++) {\r\n\t\t\t\tif (data[i + 1].compareTo((E) data[i]) < 0) {\r\n\t\t\t\t\tswap(data, i, i + 1);\r\n\t\t\t\t\tswapPerformed = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean canReorderDoubled(int[] A) {\n Arrays.sort(A);\n\n HashMap<Integer, Integer> map = new HashMap();\n for (Integer num : A) map.put(num, map.getOrDefault(num, 0) + 1);\n\n for (int i = 0; i < A.length; i++) {\n if (!map.containsKey(A[i])) continue;\n Integer counter1 = map.get(A[i]);\n Integer lookup = A[i] > 0 ? 2 * A[i] : A[i] / 2;\n Integer counter2 = map.get(lookup);\n if (counter1 != null && counter2 != null && counter1 > 0 && counter2 > 0) {\n if (counter1 == 1) {\n map.remove(A[i]);\n } else {\n map.put(A[i], counter1 - 1);\n }\n\n if (counter2 == 1) {\n map.remove(lookup);\n } else {\n map.put(lookup, counter2 - 1);\n }\n\n } else {\n return false;\n }\n }\n return map.size() == 0;\n }", "@Test\n public void testSort_intArr_IntegerComparator_Desc_half() {\n IntComparator comparator = IntComparatorDesc.getInstance();\n int[] expResult = DESC_CHECK_HALF_CHECK_ARRAY;\n sorter.sort(data, 0, 8, (Comparator<Integer>) comparator);\n assertArrayEquals(\"Error testing class: \" + className, expResult, data);\n }", "private static boolean isSorted() {\n for (int i=0; i<stack.size()-1; i++)\n if (stack.get(i)<stack.get(i+1)) return false;\n\n return true;\n }", "@Test\n\tpublic void testSortSortedNumbers() {\n\t\tint[] arrayBeforeSort = { 104, 103, 102, 101, 100, 99, 98 };\n\t\tint[] arrayAfterSort = { 104, 103, 102, 101, 100, 99, 98 };\n\t\tArrayQuickSort.sort(arrayAfterSort);\n\t\tif (!isSorted(arrayBeforeSort, arrayAfterSort)) {\n\t\t\tAssert.fail(\"The array is not sorted!\");\n\t\t}\n\t}", "public boolean canReorderDoubled2(int[] A) {\n Map<Integer, Integer> count = new HashMap<>();\n for (int a : A) {\n count.put(a, count.getOrDefault(a, 0) + 1);\n }\n Integer[] B = new Integer[A.length];\n for (int i = 0; i < A.length; i++) {\n B[i] = A[i];\n }\n Arrays.sort(B, Comparator.comparingInt(Math::abs));\n for (int b : B) {\n if (count.get(b) == 0) { continue; }\n if (count.getOrDefault(2 * b, 0) <= 0) { return false; }\n\n count.put(b, count.get(b) - 1);\n count.put(2 * b, count.get(2 * b) - 1);\n }\n return true;\n }", "private boolean checkTuple(int i, int[] tuple)\n {\n if (i == x.length-1) return true;\n int index = n*i;\n for (int j=0; j < n; j++, index++) {\n if(tuple[index] > tuple[index+n])\n return false;\n if(tuple[index] < tuple[index+n])\n return checkTuple(i+1,tuple);\n }\n return (!strict) && checkTuple(i + 1, tuple);\n }", "private static <T,P> void sort1(List<T> x, List<P> a2, Comparator<T> comp, int off, int len) {\n\t\t// Insertion sort on smallest arrays\n\t\tif (len < 7) {\n\t\t\tfor (int i=off; i<len+off; i++)\n\t\t\t\tfor (int j=i; j>off && comp.compare(x.get(j-1),x.get(j))>0; j--)\n\t\t\t\t\tswap(x, a2, j, j-1);\n\t\t\treturn;\n\t\t}\n\n\t\t// Choose a partition element, v\n\t\tint m = off + (len >> 1); // Small arrays, middle element\n\t\tif (len > 7) {\n\t\t\tint l = off;\n\t\t\tint n = off + len - 1;\n\t\t\tif (len > 40) { // Big arrays, pseudomedian of 9\n\t\t\t\tint s = len/8;\n\t\t\t\tl = med3(x,comp, l, l+s, l+2*s);\n\t\t\t\tm = med3(x,comp, m-s, m, m+s);\n\t\t\t\tn = med3(x,comp, n-2*s, n-s, n);\n\t\t\t}\n\t\t\tm = med3(x,comp, l, m, n); // Mid-size, med of 3\n\t\t}\n\t\tT v = x.get(m);\n\n\t\t// Establish Invariant: v* (<v)* (>v)* v*\n\t\tint a = off, b = a, c = off + len - 1, d = c;\n\t\twhile(true) {\n\t\t\twhile (b <= c && comp.compare(x.get(b),v)<=0) {\n\t\t\t\tif (x.get(b) == v)\n\t\t\t\t\tswap(x,a2, a++, b);\n\t\t\t\tb++;\n\t\t\t}\n\t\t\twhile (c >= b && comp.compare(x.get(c),v)>=0) {\n\t\t\t\tif (x.get(c) == v)\n\t\t\t\t\tswap(x,a2, c, d--);\n\t\t\t\tc--;\n\t\t\t}\n\t\t\tif (b > c)\n\t\t\t\tbreak;\n\t\t\tswap(x,a2, b++, c--);\n\t\t}\n\n\t\t// Swap partition elements back to middle\n\t\tint s, n = off + len;\n\t\ts = Math.min(a-off, b-a ); vecswap(x,a2, off, b-s, s);\n\t\ts = Math.min(d-c, n-d-1); vecswap(x,a2, b, n-s, s);\n\n\t\t// Recursively sort non-partition-elements\n\t\tif ((s = b-a) > 1)\n\t\t\tsort1(x,a2,comp, off, s);\n\t\tif ((s = d-c) > 1)\n\t\t\tsort1(x,a2,comp, n-s, s);\n\t}", "private void somethingIsWrongWithRadixSort() {\n try {\n Sorting.radixsort(null);\n fail(\"You didn't even throw the exception for the array.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n }", "private boolean insetrionSort(E[] aList, int left, int right) {\n\t\t\n\t\tfor(int i=(right-1); i >= left; i--) {\n\t\t\tE insertedElement = aList[i];\n\t\t\tint j = i + 1;\n\t\t\twhile(this.compare(aList[j], insertedElement) < 0) {\n\t\t\t\taList[j-1] = aList[j];\n\t\t\t\tj++;\n\t\t\t}\n\t\t\taList[j-1] = insertedElement;\n\t\t}\n\t\treturn true;\n\t}", "private static void sort1(double x[], int[] a2, int off, int len) {\n\t\t// Insertion sort on smallest arrays\n\t\tif (len < 7) {\n\t\t\tfor (int i=off; i<len+off; i++)\n\t\t\t\tfor (int j=i; j>off && x[j-1]>x[j]; j--)\n\t\t\t\t\tswap(x,a2, j, j-1);\n\t\t\treturn;\n\t\t}\n\n\t\t// Choose a partition element, v\n\t\tint m = off + (len >> 1); // Small arrays, middle element\n\t\tif (len > 7) {\n\t\t\tint l = off;\n\t\t\tint n = off + len - 1;\n\t\t\tif (len > 40) { // Big arrays, pseudomedian of 9\n\t\t\t\tint s = len/8;\n\t\t\t\tl = med3(x, l, l+s, l+2*s);\n\t\t\t\tm = med3(x, m-s, m, m+s);\n\t\t\t\tn = med3(x, n-2*s, n-s, n);\n\t\t\t}\n\t\t\tm = med3(x, l, m, n); // Mid-size, med of 3\n\t\t}\n\t\tdouble v = x[m];\n\n\t\t// Establish Invariant: v* (<v)* (>v)* v*\n\t\tint a = off, b = a, c = off + len - 1, d = c;\n\t\twhile(true) {\n\t\t\twhile (b <= c && x[b] <= v) {\n\t\t\t\tif (x[b] == v)\n\t\t\t\t\tswap(x,a2, a++, b);\n\t\t\t\tb++;\n\t\t\t}\n\t\t\twhile (c >= b && x[c] >= v) {\n\t\t\t\tif (x[c] == v)\n\t\t\t\t\tswap(x,a2, c, d--);\n\t\t\t\tc--;\n\t\t\t}\n\t\t\tif (b > c)\n\t\t\t\tbreak;\n\t\t\tswap(x,a2, b++, c--);\n\t\t}\n\n\t\t// Swap partition elements back to middle\n\t\tint s, n = off + len;\n\t\ts = Math.min(a-off, b-a ); vecswap(x, a2,off, b-s, s);\n\t\ts = Math.min(d-c, n-d-1); vecswap(x, a2,b, n-s, s);\n\n\t\t// Recursively sort non-partition-elements\n\t\tif ((s = b-a) > 1)\n\t\t\tsort1(x,a2, off, s);\n\t\tif ((s = d-c) > 1)\n\t\t\tsort1(x,a2, n-s, s);\n\t}", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }" ]
[ "0.6531668", "0.6461373", "0.64534956", "0.6329047", "0.63270503", "0.62967074", "0.62743413", "0.62350863", "0.6197997", "0.6186083", "0.61810124", "0.61614823", "0.6148205", "0.6134124", "0.6127778", "0.60578", "0.6043199", "0.60256", "0.6013329", "0.6011225", "0.6009387", "0.5995109", "0.59946847", "0.5988964", "0.5988066", "0.5972621", "0.5956154", "0.5935143", "0.5924809", "0.5919258", "0.5902347", "0.58949983", "0.5894915", "0.58937794", "0.58914006", "0.5889241", "0.58673805", "0.5864993", "0.5855445", "0.58480054", "0.58366597", "0.5832334", "0.5817334", "0.58165145", "0.5793461", "0.57904", "0.5789489", "0.5780394", "0.5778299", "0.5777041", "0.5776639", "0.5762538", "0.57605726", "0.5758711", "0.5752951", "0.5751604", "0.5744494", "0.573915", "0.5739082", "0.5738977", "0.5736938", "0.5734783", "0.57335", "0.57335", "0.57335", "0.57335", "0.57335", "0.57335", "0.57335", "0.57335", "0.57335", "0.57335", "0.57335", "0.57335", "0.57335", "0.57335", "0.57335", "0.57335", "0.57335", "0.57335", "0.57335", "0.57335", "0.57335", "0.57335", "0.57335", "0.57335", "0.57335", "0.57325476", "0.57325476", "0.57325476", "0.57325476", "0.57325476", "0.57325476", "0.57325476", "0.57325476", "0.57325476", "0.57325476", "0.57325476", "0.57325476", "0.57325476", "0.57325476" ]
0.0
-1
official we are checking the solution
static boolean checkInFlightPossibilityHashSet(int[] movies, int movieLen) { HashSet<Integer> mostWanted = new HashSet<>(); for (int movie : movies) { if (movie >= movieLen) continue; if (mostWanted.contains(movie)) return true; mostWanted.add((movieLen - movie)); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean solutionChecker() {\n\t\t// TODO\n\t\treturn false;\n\n\t}", "public void findSolution() {\n\n\t\t// TODO\n\t}", "@Override\n\t\tpublic boolean isValidSolution() {\n\t\t\treturn super.isValidSolution();\n\t\t}", "public void solution() {\n\t\t\n\t}", "private void checkIsBetterSolution() {\n if (solution == null) {\n solution = generateSolution();\n //Si la solucion que propone esta iteracion es mejor que las anteriores la guardamos como mejor solucion\n } else if (getHealthFromAvailableWorkers(availableWorkersHours, errorPoints.size()) < solution.getHealth()) {\n solution = generateSolution();\n }\n }", "private void generateSolution() {\n\t\t// TODO\n\n\t}", "public void verify() {\n lblSourcePackageFolder();\n lblClasspath();\n btAddJARFolder();\n btRemove();\n lblOutputFolderOrJAR();\n txtOutputFolder();\n btBrowse();\n lstClasspath();\n cboSourcePackageFolder();\n btMoveUp();\n btMoveDown();\n lblOnlineError();\n }", "boolean isNewSolution();", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\r\n\tpublic void solve() {\n\t\t\r\n\t}", "@Override\n public void handleSolution(String solution,long time) {\n \n }", "public void doChecking() {\n \tdoCheckingDump();\n \tdoCheckingMatl();\n }", "public static String solution() {\r\n\t\treturn \"73162890\";\r\n\t}", "public void check() throws XMLBuildException {\r\n\r\n\t}", "public void check() throws XMLBuildException {\r\n\r\n\t}", "public void verliesLeven() {\r\n\t\t\r\n\t}", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkAbout() {\n\t\tboolean flag = oTest.checkAbout();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "@Override\n public void computeSatisfaction() {\n\n }", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please set the path to the Rhapsody Project !\");\n else\n if(value.length()<4)\n warning(\"isn't the path too short?\");\n else {\n \tFile file = new File(value);\n \tif (file.isDirectory()) {\n \t\terror(\"you entered a directory please select the *.rpy file !\");\n \t} else \n \t\t//TODO add more checks\n \t\tok();\n }\n\n }", "@Override\n protected Result check()\n {\n return this.gitLabModeInfos.isEmpty() ? Result.unhealthy(\"No GitLab modes available\") : Result.healthy();\n }", "protected void checkCanRun() throws BuildException {\n \n }", "@Test\r\n public void testForCNSHIsFull() {\r\n createCNSHIsFull();\r\n this.sol = new Solution(this.studentList, this.schoolList, this.studentPreferences, this.schoolPreferences);\r\n assertEquals(solutionForCNSHIsFull(), sol.getSolution());\r\n }", "void check();", "void check();", "public void checkSolution() {\r\n\t\tArrayList<Point> current = new ArrayList<>();\r\n\r\n for (JComponent btn : buttons) {\r\n current.add((Point) btn.getClientProperty(\"position\"));\r\n }\r\n\r\n if (compareList(solutions, current)) {\r\n \tJOptionPane.showMessageDialog(jf,\"You win!!!.\");\r\n \tSystem.exit(0);\r\n }\r\n\t}", "public int verify(String candidateSolution) {\n\t\treturn 0;\n\t\t\n\t\t//check\n\t}", "public int verify(String candidateSolution) {\n\t\treturn 0;\n\t\t\n\t\t//check\n\t}", "public static void main(String[] args) throws Exception {\n\t\tString folderURL = \"C:\\\\Users\\\\Administrator\\\\Google ÔÆ¶ËÓ²ÅÌ\\\\Slides\\\\CS686\\\\A2\\\\SodukoProblem\\\\problems\\\\\";\n\t\tList<String> nameList = Loader.getAllSdURLFromFolder(folderURL);\n\t\tList<Solution> record = new ArrayList<Solution>();\n\t\tfor (String name:nameList)\n\t\t{\n\t\t\t//System.out.println(name);\n\t\t\tBoard board = Loader.loadInitialBoard(name);\n\t\t\tSudokuSolver solver = SudokuSolver.getInstance();\n\t\t\tSolution solution = solver.solve(board);\n\t\t\trecord.add(solution);\n\t\t\tSystem.out.print(solution.initNum+\" \");\n\t\t\tSystem.out.print(solution.cntState+\" \");\n\t\t\t//System.out.println(solution.board);\n\t\t\tSystem.out.println(solution.isFinished?\"Finished\":\"Failed\");\n\t\t\tif (solution.cntState>0)\n\t\t\t{\n\t\t\t\tSystem.out.println(board);\n\t\t\t\tSystem.out.println(solution.board);\n\t\t\t}\n\t\t\t//if (!solution.isFinished) break;\n\t\t}\n\t\t//printStatistics(record);\n\t\t\n\t}", "final void checkForComodification() {\n\t}", "public boolean needsProblem();", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please specify the path to the RhapsodyCL.exe file\");\n else if(!value.contains(\"RhapsodyCL.exe\")) {\n \terror(\"didn't find RhapsodyCL.exe in the path !\");\n }else{\n \tok(); \t\n }\n }", "@Test\r\n public void testForCNSHIsFullCNCHHasOnlyOnePlace() {\r\n createCNSHIsFullCNCHHasOnlyOnePlace();\r\n this.sol = new Solution(this.studentList, this.schoolList, this.studentPreferences, this.schoolPreferences);\r\n assertEquals(solutionForCNSHIsFullCNCHHasOnlyOnePlace(), sol.getSolution(), \"Should work\");\r\n }", "public boolean solucionar() {\n\t\treturn false;\n\t}", "public void checkData2019() {\n\n }", "public void working()\n {\n \n \n }", "SolutionRef getCurrentSolution();", "boolean hasBuild();", "public boolean librarianTested() \n {\n return false; \n }", "protected void thoroughInspection() {}", "@Override\n\tpublic void checkeoDeBateria() {\n\n\t}", "public void affichageSolution() {\n\t\t//On commence par retirer toutes les traces pré-existantes du labyrinthe\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Trace) {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j] = new Case();\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//On parcourt toutes les cases du labyrinthe. Si on trouve un filon non extrait dont le chemin qui le sépare au mineur est plus petit que shortestPath, on enregistre la longueur du chemin ainsi que les coordonnees de ledit filon\n\t\tint shortestPath = Integer.MAX_VALUE;\n\t\tint[] coordsNearestFilon = {-1,-1};\n\t\tfor (int i=0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j=0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Filon && ((Filon)this.laby.getLabyrinthe()[i][j]).getExtrait() == false) {\n\t\t\t\t\tif (this.laby.solve(j,i) != null) {\n\t\t\t\t\t\tint pathSize = this.laby.solve(j,i).size();\n\t\t\t\t\t\tif (pathSize < shortestPath) {\n\t\t\t\t\t\t\tshortestPath = pathSize;\n\t\t\t\t\t\t\tcoordsNearestFilon[0] = j;\n\t\t\t\t\t\t\tcoordsNearestFilon[1] = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Si il n'y a plus de filon non extrait atteignable, on cherche les coordonnes de la clef\n\t\tif (coordsNearestFilon[0] == -1) {\n\t\t\tcoordsNearestFilon = this.laby.getCoordsClef();\n\t\t\t//Si il n'y a plus de filon non extrait atteignable et que la clef a deja ouvert la porte, on cherche les coordonnes de la sortie\n\t\t\tif (coordsNearestFilon == null)\tcoordsNearestFilon = this.laby.getCoordsSortie();\n\t\t}\n\n\t\t//On cree une pile qui contient des couples de coordonnees qui correspondent a la solution, puis on depile car le dernier element est l'objectif vise\n\t\tStack<Integer[]> solution = this.laby.solve(coordsNearestFilon[0], coordsNearestFilon[1]);\n\t\tsolution.pop();\n\n\t\t//Tant que l'on n'arrive pas au premier element de la pile (cad la case ou se trouve le mineur), on depile tout en gardant l'element depile, qui contient les coordonnees d'une trace que l'on dessine en suivant dans la fenetre\n\t\twhile (solution.size() != 1) {\n\t\t\tInteger[] coordsTmp = solution.pop();\n\t\t\tTrace traceTmp = new Trace();\n\t\t\tthis.laby.getLabyrinthe()[coordsTmp[1]][coordsTmp[0]] = new Trace();\n\t\t\t((JLabel)grille.getComponents()[coordsTmp[1]*this.laby.getLargeur()+coordsTmp[0]]).setIcon(traceTmp.imageCase());\n\t\t}\n\t\tSystem.out.println(\"\\n========================================== SOLUTION =====================================\\n\");\n\t\tthis.affichageLabyrinthe();\n\t}", "private boolean Verific() {\n\r\n\treturn true;\r\n\t}", "@Test\n public void testSolution() {\n assertSolution(\"425\", \"input-day01-2018.txt\");\n }", "@Override\n public void checkVersion() {\n }", "protected boolean checkLicense() {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "@Override\n\tpublic void work() {\n\t\t// TODO Auto-generated method stub\n\t\tSystem.out.println(\"We work in TestYantra software solution\");\n\t\t\n\t}", "private boolean checkSolutions() {\n\t\tfor (int i = 0; i < population; ++i) {\n\t\t\tif (populationArray.get(i).getFitness() == 0) {\n\t\t\t\tsolution = populationArray.get(i);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void check() throws Exception {\n\t}", "@Override\r\n\tpublic boolean CheckConditions() {\n\t\treturn true;\r\n\t}", "@Test\n public void testExample3() {\n assertSolution(\"-6\", \"example-day01-2018-3.txt\");\n }", "public static void hvitetest1w(){\r\n\t}", "public void checkIn() {\n\t}", "@Test\n\tvoid test() {\n\t\tassertEquals(0, solution1.solution(2147483647));\n\t\tassertEquals(1, solution1.solution(5));\n\t}", "public Superfluous() {\n\t\t//Give the checkFolder() files to work with\n\t\tfor (File toDo : myFile) {\n\t\t\tcheckFolder(toDo);\n\t\t}\n\t\t/*Print out the defective files*/\n\t\tSystem.out.println(\"**********************************\");\n\t\tfor (File guilty : guiltyFiles) {\n\t\t\t//System.out.println(guilty.getAbsolutePath());\n\t\t\tdesignFile(guilty);\n\t\t}\n\t\tSystem.out.println(\"The Number of files are: \" + guiltyFiles.size());\n\t}", "@Test\r\n public void testForCNAEIsNotFull() {\r\n createCNAEIsNotFull();\r\n this.sol = new Solution(this.studentList, this.schoolList, this.studentPreferences, this.schoolPreferences);\r\n assertEquals(solutionForCNAEIsNotFull(), sol.getSolution(),\r\n \"Should work\");\r\n }", "public void test_61843() {\n \t\t// create the project and manually give it a settings file\n \t\tfinal String qualifier = getUniqueString();\n \t\tfinal IProject project = getProject(getUniqueString());\n \t\tensureExistsInWorkspace(project, true);\n \t\tIFile settingsFile = getFileInWorkspace(project, qualifier);\n \n \t\t// write some property values in the settings file\n \t\tProperties properties = new Properties();\n \t\tproperties.put(\"key\", \"value\");\n \t\tOutputStream output = null;\n \t\ttry {\n \t\t\tFile file = settingsFile.getLocation().toFile();\n \t\t\tfile.getParentFile().mkdirs();\n \t\t\toutput = new BufferedOutputStream(new FileOutputStream(file));\n \t\t\tproperties.store(output, null);\n \t\t} catch (FileNotFoundException e) {\n \t\t\tfail(\"1.0\", e);\n \t\t} catch (IOException e) {\n \t\t\tfail(\"1.1\", e);\n \t\t} finally {\n \t\t\ttry {\n \t\t\t\tif (output != null)\n \t\t\t\t\toutput.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\t// ignore\n \t\t\t}\n \t\t}\n \n \t\t// add a log listener to ensure that no errors are reported silently\n \t\tILogListener logListener = new ILogListener() {\n \t\t\tpublic void logging(IStatus status, String plugin) {\n \t\t\t\tThrowable exception = status.getException();\n \t\t\t\tif (exception == null || !(exception instanceof CoreException))\n \t\t\t\t\treturn;\n \t\t\t\tif (IResourceStatus.WORKSPACE_LOCKED == ((CoreException) exception).getStatus().getCode())\n \t\t\t\t\tfail(\"3.0\");\n \t\t\t}\n \t\t};\n \n \t\t// listener to react to changes in the workspace\n \t\tIResourceChangeListener rclistener = new IResourceChangeListener() {\n \t\t\tpublic void resourceChanged(IResourceChangeEvent event) {\n \t\t\t\tnew ProjectScope(project).getNode(qualifier);\n \t\t\t}\n \t\t};\n \n \t\t// add the listeners\n \t\tPlatform.addLogListener(logListener);\n \t\tgetWorkspace().addResourceChangeListener(rclistener, IResourceChangeEvent.POST_CHANGE);\n \n \t\ttry {\n \t\t\tproject.refreshLocal(IResource.DEPTH_INFINITE, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"4.0\", e);\n \t\t} finally {\n \t\t\tPlatform.removeLogListener(logListener);\n \t\t\tgetWorkspace().removeResourceChangeListener(rclistener);\n \t\t}\n \t}", "boolean hasProject();", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkResolution() {\n\t\tboolean flag = oTest.checkResolution();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "public static long solve(/* change signature to provide required inputs */) {\n throw new UnsupportedOperationException(\"Problem141 hasn't been solved yet.\");\n }", "@Test\n\tpublic void testVersionCheck() throws Exception{\n\t}", "public boolean isHasSolution() {\n return hasSolution;\n }", "public boolean checkSetup(){\n return checkSetup(folderName);\n }", "private void checkStories(){\n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "protected OpinionFinding() {/* intentionally empty block */}", "@Test\n public void testExample() {\n assertSolution(\"16\", \"example-day06-2018.txt\");\n }", "boolean evaluateSolution( LockScreen problem ) {\n\t\tfor (LockDisk disk : problem._disks) {\n\t\t\tfor (LaserSrc laser : disk._lasers) {\n\t\t\t\tlaser._distBeam = -1.0f;\n\t\t\t\tif( disk._nextDisk != null ) {\n\t\t\t\t\tlaser._distBeam = disk._nextDisk.isBlocking(\n\t\t\t\t\t\t\tdisk.normalizeAngleRad( laser._angLaser + disk._rotAngle - disk._nextDisk._rotAngle));\n\t\t\t\t}\n\t\t\t\tif (laser._distBeam < 0.0f ) {\n\t\t\t\t\tlaser._distBeam = LockDisk.MAXDISTLASER;\n\t\t\t\t}\n\t\t\t\tif (_verb) {\n\t\t\t\t\tSystem.out.println( \"Update Laser \"+laser._id+ \" / \" + disk._id \n\t\t\t\t\t\t\t+ \" with d=\"+ laser._distBeam \n\t\t\t\t\t\t\t+ \" at angle=\" + (MathUtils.radDeg * (disk._rotAngle+laser._angLaser)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Then the status of every Sensor\n\t\tboolean _fgOpen = true;\n\t\tboolean _fgClosed = false;\n\n\t\tfor (Sensor sensor : problem._sensors) {\n\t\t\tsensor._fgActivated = false;\n\t\t\tSystem.out.println( \"Sensor [\"+sensor._id+\"]\");\n\t\t\tfor (LockDisk disk : problem._disks) {\n\t\t\t\tfor (LockDisk.LaserSrc laser : disk._lasers) {\n\t\t\t\t\tif (laser._distBeam > 180f ) {\n\t\t\t\t\t\tSystem.out.println(\" laser_\"+disk._id+\"/\"+laser._id +\" at angle \" + (MathUtils.radDeg * (laser._angLaser + disk._rotAngle)));\n\t\t\t\t\t\tsensor.updateWithBeam(laser._angLaser + disk._rotAngle);\n\n\t\t\t\t\t\t//Adapt _fgOpen according to fgActivated and type of Sensor\n\t\t\t\t\t\t// If any \"open\" is not activated => NOT open\n\t\t\t\t\t\tif (sensor._type.compareTo(\"open\") == 0) {\n\t\t\t\t\t\t\tif (sensor._fgActivated == false)\n\t\t\t\t\t\t\t\t_fgOpen = false; \t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// if any other activated => IS closed\n\t\t\t\t\t\telse if (sensor._fgActivated) {\n\t\t\t\t\t\t\t_fgClosed = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (_fgOpen && !_fgClosed) {\n\t\t\tSystem.out.println(\">>>>>> Sol VALID\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\">>>>>> Sol NOT valid\");\n\t\t}\n\t\treturn (_fgOpen && !_fgClosed);\n\t\t\n\t}", "private void check(final VProgram program) {\n\t}", "@Test(groups = \"noDevBuild\")\n public void checkFeatureCode() {\n browser.reportLinkLog(\"checkFeatureCode\");\n featurePages\n .setNewFeatureBtn(\"publishable\")\n .setNewFeatureName(groupName)\n .setNewFeatureCode(groupName)\n .setNewFeatureDescription(\"Test 1\")\n .setNewFeatureSavebtn();\n portalPages\n .setTopNavLink(topnav);\n featurePages\n .setNewFeatureBtn(\"publishable\")\n .setNewFeatureName(groupName)\n .setNewFeatureCode(groupName)\n .setNewFeatureDescription(\"Test 1\")\n .setNewFeatureSavebtn();\n browser.waitForId(\"helpText_duplicate_featureCode\");\n }", "public void checkGame() {\n\n\t}", "@Test\r\n \tpublic void testGetBaseVersion() {\n \t\tESPrimaryVersionSpec version = localProject.getBaseVersion();\r\n \t\tassertNull(version);\r\n \t}", "public void mo21792Q() {\n }", "boolean checkVerification();", "private boolean checkFirstRun(Context context) {\n\n final String PREFS_NAME = \"com.zgsoft.prefs\";\n final String PREF_VERSION_CODE_KEY = \"version_code\";\n final int DOESNT_EXIST = -1;\n // String packageName=null;\n\n\n // Get current version code\n int currentVersionCode = 0;\n try {\n PackageInfo packageInfo =context.getPackageManager().getPackageInfo(context.getPackageName(), 0);\n currentVersionCode =packageInfo.versionCode;\n //packageName = packageInfo.packageName;\n\n } catch (android.content.pm.PackageManager.NameNotFoundException e) {\n // handle exception\n e.printStackTrace();\n return false;\n }\n\n\n // Get saved version code\n SharedPreferences prefs = context.getSharedPreferences(PREFS_NAME, android.content.Context.MODE_PRIVATE);\n int savedVersionCode = prefs.getInt(PREF_VERSION_CODE_KEY, DOESNT_EXIST);\n\n // Check for first run or upgrade\n if (currentVersionCode == savedVersionCode) {\n\n // This is just a normal run\n return false;\n\n } else {\n // Update the shared preferences with the current version code\n prefs.edit().putInt(PREF_VERSION_CODE_KEY, currentVersionCode).commit();\n return true;\n }\n\n }", "@Test\n public void testExample2() {\n assertSolution(\"0\", \"example-day01-2018-2.txt\");\n }", "boolean check() {\n return check(Env.empty);\n }", "private static void runTestCWE7() {\n}", "private static void runTestCWE7() {\n}", "public boolean whiteCheckmate() {\n\t\treturn false;\n\t}", "public boolean solve(){\n\t\treturn solve(0,0);\n\t}", "@Test\n public void checkSiteVersion() {\n actions.goToMainPage();\n Assert.assertEquals(isMobileTesting, actions.isMobileSite(), \"Inappropriate site version is open\");\n System.out.println(DriverFactory.class.getResource(\"/IEDriverServer.exe\").getPath());\n }", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please type in the License Server\");\n else {\n \t//TODO add more checks\n \tok();\n }\n }", "public boolean performOk() {\n\t\ttry {\n\t\t\tProjectAdapter projectAdapter = getProjectAdapter();\n\t\t\tif (projectAdapter != null) {\n\t\t\t\tBuildProperties buildProperties = getBuildProperties();\n\t\t\t\tbuildProperties.setCustomInfoPListContent(_customInfoPListText.getText());\n\t\t\t\tbuildProperties.setServletDeployment(_servletDeploymentCheck.getSelection());\n\t\t\t\tbuildProperties.setWebXML(_generateWebXMLCheck.getSelection());\n\t\t\t\tbuildProperties.setWebXML_CustomContent(_customWebXMLText.getText());\n\n\t\t\t\tProjectFrameworkAdapter projectFrameworkAdapter = getProjectFrameworkAdapter();\n\t\t\t\tif (buildProperties.isServletDeployment()) {\n\t\t\t\t\tprojectFrameworkAdapter.addFrameworkNamed(\"JavaWOJSPServlet\");\n\t\t\t\t} else {\n\t\t\t\t\tprojectFrameworkAdapter.removeFrameworkNamed(\"JavaWOJSPServlet\");\n\t\t\t\t}\n\n\t\t\t\tfor (Root root : _embedButtons.keySet()) {\n\t\t\t\t\tButton embedButton = _embedButtons.get(root);\n\t\t\t\t\tboolean embed = buildProperties.isServletDeployment() || (embedButton.isEnabled() && embedButton.getSelection());\n\t\t\t\t\tbuildProperties.setEmbed(root, embed);\n\t\t\t\t}\n\n\t\t\t\tbuildProperties.setJavaClient(_javaClientButton.getSelection());\n\t\t\t\tbuildProperties.setJavaWebStart(_javaClientButton.getSelection() && _javaWebStartButton.getSelection());\n\t\t\t\tbuildProperties.save();\n\t\t\t}\n\t\t} catch (Exception up) {\n\t\t\tUIPlugin.getDefault().log(up);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public abstract boolean mo2163j();", "@Override\n\tpublic final void checkLicense() {\n\t}", "boolean internal();", "private Solution() { }", "private Solution() { }", "public boolean isSolvable() {\r\n return solution() != null;\r\n }", "boolean checkGoal(Node solution);", "@Test\n public void solve1() {\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkPlatform() {\n\t\tboolean flag = oTest.checkPlatform();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "public static void main(String[] args) {\n\n Solution2.solution();\n }", "@Test\n public void testExample0() {\n assertSolution(\"3\", \"example-day01-2018-0.txt\");\n }", "public abstract SolutionPartielle solutionInitiale();", "public boolean isInCheck() {\n\t\treturn false;\n\t}", "public static long solve(/* change signature to provide required inputs */) {\n throw new UnsupportedOperationException(\"Problem085 hasn't been solved yet.\");\n }", "public boolean solve(){\n\t\t//Solve the puzzle using backtrack method\n\t\treturn solve(0,0);\n\t}" ]
[ "0.782319", "0.6830437", "0.6713884", "0.6653544", "0.6447354", "0.6368534", "0.6180988", "0.61724263", "0.6138638", "0.6096519", "0.6096519", "0.602338", "0.5993505", "0.59757316", "0.59573793", "0.59250647", "0.59250647", "0.58899057", "0.5851824", "0.5820212", "0.5809776", "0.5781764", "0.5764138", "0.57456726", "0.57407814", "0.57407814", "0.5740451", "0.57402", "0.57402", "0.5738472", "0.5729722", "0.5727665", "0.57259315", "0.5699535", "0.5681709", "0.56739", "0.5663105", "0.5656797", "0.56505114", "0.5642191", "0.5638816", "0.56361026", "0.5633164", "0.5630485", "0.5627746", "0.5626894", "0.5614196", "0.55845666", "0.5561267", "0.55598456", "0.5559268", "0.5558658", "0.55486476", "0.55423504", "0.55395645", "0.55305666", "0.55238485", "0.55074733", "0.55049014", "0.5503777", "0.5497417", "0.5494395", "0.54903466", "0.5454777", "0.5450896", "0.5450869", "0.5450619", "0.54463124", "0.5435221", "0.5430732", "0.542787", "0.5427615", "0.5423491", "0.5421769", "0.5421511", "0.5418248", "0.54181737", "0.53955853", "0.5394197", "0.5391262", "0.5391262", "0.5389392", "0.53847575", "0.5382726", "0.53822654", "0.5378326", "0.5375942", "0.5375659", "0.5374251", "0.5372933", "0.5372933", "0.53705233", "0.5370128", "0.5367092", "0.53611356", "0.5352655", "0.5350408", "0.5348012", "0.53422344", "0.5341933", "0.53411674" ]
0.0
-1
Runs the climber ladder motors at the given speed
public void runLadder(final double speed) { if (speed < -1 || speed > 1) { throw new IllegalArgumentException("To High/Low a value passed in runLadder(double)"); } climberMotors.set(speed); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ldrive(double speed){\n left1.set(ControlMode.PercentOutput, speedRamp(speed));\n left2.set(ControlMode.PercentOutput, speedRamp(speed));\n }", "@Override\n public void execute() {\n climber.moveShoulder(climb.getAsDouble()); // set speed of soulder motors based on climb speed\n }", "private void run() {\n\n //if no time has elapsed, do not do anything\n if (Harness.getTime().equals(lastRunTime)) {\n return;\n }\n\n //double deltaV, deltaX;\n double newSpeed;\n double newPosition;\n double targetSpeed = 0;\n double currentSpeed = 0;\n double acceleration = 0;\n\n switch (driveOrderedState.speed()) {\n case STOP:\n targetSpeed = 0.0;\n break;\n case LEVEL:\n targetSpeed = LevelingSpeed;\n break;\n case SLOW:\n targetSpeed = SlowSpeed;\n break;\n case FAST:\n targetSpeed = FastSpeed;\n break;\n default:\n throw new RuntimeException(\"Unknown speed\");\n }\n /*\n * JDR Bug fix to make the speed stop in the case where the command is\n * Direction=STOP but speed is something other than STOP.\n */\n if (driveOrderedState.direction() == Direction.STOP) {\n targetSpeed = 0.0;\n }\n if (driveOrderedState.direction() == Direction.DOWN) {\n targetSpeed *= -1;\n }\n\n currentSpeed = driveSpeedState.speed();\n if (driveSpeedState.direction() == Direction.DOWN) {\n currentSpeed *= -1;\n }\n\n if (Math.abs(targetSpeed) > Math.abs(currentSpeed)) {\n //need to accelerate\n acceleration = Acceleration;\n } else if (Math.abs(targetSpeed) < Math.abs(currentSpeed)) {\n //need to decelerate\n acceleration = -1 * Deceleration;\n } else {\n acceleration = 0;\n }\n if (currentSpeed < 0) {\n //reverse everything for negative motion (going down)\n acceleration *= -1;\n }\n\n //get the time offset in seconds since the last update\n double timeOffset = SimTime.subtract(Harness.getTime(), lastRunTime).getFracSeconds();\n //remember this time as the last update\n lastRunTime = Harness.getTime();\n\n //now update speed\n //deltav = at\n newSpeed = currentSpeed + (acceleration * timeOffset);\n\n //deltax= vt+ 1/2 at^2\n newPosition = carPositionState.position() +\n (currentSpeed * timeOffset) + \n (0.5 * acceleration * timeOffset * timeOffset);\n if ((currentSpeed < targetSpeed &&\n newSpeed > targetSpeed) ||\n (currentSpeed > targetSpeed &&\n newSpeed < targetSpeed)) {\n //if deltaV causes us to exceed the target speed, set the speed to the target speed\n driveSpeedState.setSpeed(Math.abs(targetSpeed));\n } else {\n driveSpeedState.setSpeed(Math.abs(newSpeed));\n }\n //determine the direction\n if (driveSpeedState.speed() == 0) {\n driveSpeedState.setDirection(Direction.STOP);\n } else if (targetSpeed > 0) {\n driveSpeedState.setDirection(Direction.UP);\n } else if (targetSpeed < 0) {\n driveSpeedState.setDirection(Direction.DOWN);\n }\n carPositionState.set(newPosition);\n\n physicalConnection.sendOnce(carPositionState);\n physicalConnection.sendOnce(driveSpeedState);\n\n log(\" Ordered State=\", driveOrderedState,\n \" Speed State=\", driveSpeedState,\n \" Car Position=\", carPositionState.position(), \" meters\");\n }", "public void drive(double direction, double speed) {\n if (mode != SwerveMode.Disabled) {\n for (SwerveModule mod: modules) {\n mod.setSetpoint(direction);\n }\n \t\tmodules.get(0).setSpeed(speed * -1);\n \t\tmodules.get(1).setSpeed(speed);\n \t\tmodules.get(2).setSpeed(speed * -1);\n \t\tmodules.get(3).setSpeed(speed);\n\n\n }\n\n}", "public void SpeedControl(long iDasherX, long iDasherY, double dFrameRate) {}", "public void driveRaw (double speed) {\n leftBackMotor.set(speed);\n leftMiddleMotor.set(speed);\n leftFrontMotor.set(speed);\n rightBackMotor.set(speed);\n rightMiddleMotor.set(speed);\n rightFrontMotor.set(speed);\n }", "public void SetSpeedRaw(double speed)\n {\n Motors.Set(speed);\n }", "@Override\n public void run() {\n while (!stop) {\n /**change the variable that controls the speed of the chassis using the bumpers*/\n if (gamepad1.right_bumper) {\n v = 1;\n } else if (gamepad1.left_bumper) {\n v = 2;\n }\n /**getting the gamepad joystick values*/\n forward = gamepad1.left_stick_y;\n right = -gamepad1.left_stick_x;\n clockwise = gamepad1.right_stick_x;\n\n /**calculating the power for motors */\n df = forward + clockwise - right;\n ss = -forward + clockwise + right;\n sf = -forward + clockwise - right;\n ds = forward + clockwise + right;\n\n /**normalising the power values*/\n max = abs(sf);\n if (abs(df) > max) {\n max = abs(df);\n }\n if (abs(ss) > max) {\n max = abs(ss);\n }\n if (abs(ds) > max) {\n max = abs(ds);\n }\n if (max > 1) {\n sf /= max;\n df /= max;\n ss /= max;\n ds /= max;\n }\n /** setting the speed of the chassis*/\n if (v == 1) {\n POWER(df / 5, sf / 5, ds / 5, ss / 5);\n } else if (v == 2) {\n POWER(df, sf, ds, ss);\n }\n }\n }", "void adelante(int speed){\n\t\tMotorA.setSpeed(speed);\n\t\tMotorB.setSpeed(speed);\n\t\tMotorC.setSpeed(speed);\n\t\t\n\t\tMotorA.backward();\n\t\tMotorB.forward();\n\t\tMotorC.forward();\n\t}", "public void startTurning(double speed) {\n wheelTurner.set(speed);\n }", "public ConstantSpeedMessageGenerator setSpeed(final double speed) {\n this.speed = speed;\n\n if (speed > 0) { // -1 = unlimited speed\n buffer = new long[(int) Math.round(Math.ceil(speed))];\n pointer = 0;\n\n for (int i = 0; i < (int) Math.round(Math.ceil(speed)); i++) {\n buffer[i] = 0;\n }\n\n breakDuration = (int) Math.round(1000 / speed); // will be 0 for speed > 1000\n }\n\n return this;\n }", "public static void move()\n\t{\n\t\tswitch(step)\n\t\t{\n\t\t\tcase 0:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 1;\n\t\t\tbreak;\n\t\t\t// 1. Right wheels forward\n\t\t\tcase 1:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(0, .5);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 2;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 3;\n\t\t\tbreak;\n\t\t\t// 2. Right wheels back\n\t\t\tcase 3:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(0, -.5);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 4;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 5;\n\t\t\tbreak;\n\t\t\t// 3. Left wheels forward\n\t\t\tcase 5:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(.5, 0);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 6;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 7;\n\t\t\tbreak;\n\t\t\t// 4. Left wheels back\n\t\t\tcase 7:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(-.5, 0);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 8;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 9;\n\t\t\tbreak;\n\t\t\t// 5. Intake pick up\n\t\t\tcase 9:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(0, 0);\n\t\t\t\t\tshoot(.5);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 10;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 11;\n\t\t\tbreak;\n\t\t\t// 6. Intake shoot\n\t\t\tcase 11:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(0, 0);\n\t\t\t\t\tpickUp(.5);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 12;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\t// Stop and reset everything\n\t\t\tcase 12:\n\t\t\t\tsetSpeed(0, 0);\n\t\t\t\tpickUp(0);\n\t\t\t\tshoot(0);\n\t\t\t\ttimer.reset();\n\t\t\tbreak;\n\t\t}\n\t}", "void atras(){\n\t\tMotorA.stop();\n\t\tMotorB.setSpeed(700);\n\t\tMotorC.setSpeed(700);\n\t\t\n\t\tMotorB.backward();\n\t\tMotorC.backward();\n\t}", "public void liftDrive(double speed,\n double timeoutS) {\n if (opModeIsActive()) {\n\n if(robot.touchSensor.isPressed() && speed>0)\n return;\n // reset the timeout time and start motion.\n runtime.reset();\n robot.liftDrive.setPower(speed); // start the motor\n while (opModeIsActive()\n && (runtime.seconds() < timeoutS)\n ){\n if(robot.touchSensor.isPressed() && speed>0) break;\n }\n // Stop all motion;\n robot.liftDrive.setPower(0);\n\n }\n }", "public void go()\n {\n for( int i = 0; i<3; i++)m[i].setSpeed(720);\n step();\n for( int i = 0; i<3; i++)m[i].regulateSpeed(false);\n step();\n }", "@Override\npublic int run(int speed) {\n\t\n\treturn getSpeed();\n}", "@Override\n public void start() {\n\n\n // IF YOU ARE NOT USING THE AUTO MODE\n\n /*\n\n runtime.reset();\n\n ElapsedTime time = new ElapsedTime();\n\n time.reset();\n\n while (time.time() < 1) {\n\n armMotor.setPower(0.5);\n\n }\n\n armMotor.setPower(0);\n\n // get the grabbers ready to grip the blocks\n leftGrab.setPosition(0.9);\n rightGrab.setPosition(0.1);\n\n /*\n time.reset();\n\n while(time.time() < 0.6) {\n\n armMotor.setPower(-0.5);\n\n }\n\n */\n\n\n }", "public static void setMotorSpeed(double speed){\n setLeftMotorSpeed(speed);\n setRightMotorSpeed(speed);\n }", "public void setSpeed() {\r\n\t\tint delay = 0;\r\n\t\tint value = h.getS(\"speed\").getValue();\r\n\t\t\r\n\t\tif(value == 0) {\r\n\t\t\ttimer.stop();\r\n\t\t} else if(value >= 1 && value < 50) {\r\n\t\t\tif(!timer.isRunning()) {\r\n\t\t\t\ttimer.start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//exponential function. value (1) == delay (5000). value (50) == delay (25)\r\n\t\t\tdelay = (int)(a1 * (Math.pow(25/5000.0000, value / 49.0000)));\r\n\t\t} else if(value >= 50 && value <= 100) {\r\n\t\t\tif(!timer.isRunning()) {\r\n\t\t\t\ttimer.start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//exponential function. value (50) == delay(25). value (100) == delay (1)\r\n\t\t\tdelay = (int)(a2 * (Math.pow(1/25.0000, value/50.0000)));\r\n\t\t}\r\n\t\ttimer.setDelay(delay);\r\n\t}", "public abstract void decelerateMotorSpeeds(double[] motorSpeeds, double distanceToTarget, double lastDistanceToTarget, long timeSinceLastCallNano, double configuredMovementSpeed, double configuredTurnSpeed);", "public void accelerate(){\n speed += 5;\n }", "public static void moveArm(double speed) {\n\t\tSmartDashboard.putNumber(\"Arm Max value\",maxPos);\n\t\tSmartDashboard.putNumber(\"Arm Min value\",minPos);\n\t\tActuators.getArmAngleMotor().changeControlMode(TalonControlMode.PercentVbus);\t//CHECK THIS SCOTT\n\t\tSmartDashboard.putNumber(\"Percent of Arm Angle\", unMapPosition(Actuators.getArmAngleMotor().getPosition()));\t//CHECK THIS SCOTT\n\t\tSmartDashboard.putNumber(\"Arm Position\", Actuators.getArmAngleMotor().getPosition());\n\t\tSmartDashboard.putNumber(\"THeoreticalPID position\", mapPosition(unMapPosition(Actuators.getArmAngleMotor().getPosition())));\n\t\tif (Gamepad.secondary.getBack()) {\n\t\t\tActuators.getArmAngleMotor().set(speed);\n\t\t} else {\n\t\t\tif ((Actuators.getArmAngleMotor().getPosition() < MAX_ARM_POSITION && Sensors.getArmMinLimitSwitch().get())\n\t\t\t\t\t&& speed > 0) {\n\t\t\t\tActuators.getArmAngleMotor().set(speed / 2);\n\t\t\t} else if ((Actuators.getArmAngleMotor().getPosition() > MIN_ARM_POSITION\n\t\t\t\t\t&& Sensors.getArmMaxLimitSwitch().get()) && speed < 0) {\n\t\t\t\tActuators.getArmAngleMotor().set(speed);\n\t\t\t} else if (!Sensors.getArmMaxLimitSwitch().get()){\n\t\t\t\tActuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\t\t\t\t//CHECK THIS SCOTT\n\t\t\t\tmaxPos = Actuators.getArmAngleMotor().getPosition();\t\t//CHECK THIS SCOTT\n\t\t\t} else if (!Sensors.getArmMinLimitSwitch().get()){\t\t\t\t\t\t//CHECK THIS SCOTT\n\t\t\t\tActuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\t\t\t\t//CHECK THIS SCOTT\n\t\t\t\tminPos = Actuators.getArmAngleMotor().getPosition();\t\t//CHECK THIS SCOTT\n\t\t\t}\n\t\t\telse {\n\t\t\t\tActuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\n\t\t\t}\n\n\t\t\t// speed = -speed;\n\t\t\tSmartDashboard.putNumber(\"Arm Position\", Actuators.getArmAngleMotor().getPosition());\n\t\t\tif (Gamepad.secondary.getBack()) {\n\t\t\t\tActuators.getArmAngleMotor().set(speed);\n\t\t\t} else {\n\t\t\t\tif ((Sensors.getArmMaxLimitSwitch().get()) && speed < 0) {\n\t\t\t\t\tActuators.getArmAngleMotor().set(speed);\n\t\t\t\t} else if ((Sensors.getArmMinLimitSwitch().get()) && speed > 0) {\n\t\t\t\t\tActuators.getArmAngleMotor().set(speed);\n\t\t\t\t} else if (!Sensors.getArmMaxLimitSwitch().get()){\n\t\t\t\t\tActuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\t\t\t\t//CHECK THIS SCOTT\n\t\t\t\t\tmaxPos = Actuators.getArmAngleMotor().getPosition();\t\t//CHECK THIS SCOTT\n\t\t\t\t} else if (!Sensors.getArmMinLimitSwitch().get()){\t\t\t\t\t\t//CHECK THIS SCOTT\n\t\t\t\t\tActuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\t\t\t\t//CHECK THIS SCOTT\n\t\t\t\t\tminPos = Actuators.getArmAngleMotor().getPosition();\t\t//CHECK THIS SCOTT\n\t\t\t\t} else {\n\t\t\t\t\tActuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\t// if (!(/*\n\t\t\t\t// * Actuators.getArmAngleMotor().getPosition() >\n\t\t\t\t// * MAX_ARM_POSITION &&\n\t\t\t\t// */\n\t\t\t\t// Sensors.getArmMaxLimitSwitch().get()) && speed > 0) {\n\t\t\t\t// Actuators.getArmAngleMotor().set(speed);\n\t\t\t\t// } else if (!(/*\n\t\t\t\t// * Actuators.getArmAngleMotor().getPosition() <\n\t\t\t\t// * MIN_ARM_POSITION &&\n\t\t\t\t// */\n\t\t\t\t// Sensors.getArmMinLimitSwitch().get()) && speed < 0) {\n\t\t\t\t// Actuators.getArmAngleMotor().set(speed);\n\t\t\t\t// } else {\n\t\t\t\t// Actuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\n\t\t\t\t//\n\t\t\t\t// }\n\t\t\t}\n\t\t}\n\t}", "private void changeSpeed() {\n\t\tint t = ((JSlider)components.get(\"speedSlider\")).getValue();\n\t\tsim.setRunSpeed(t);\n\t}", "public void setSpeed(int speed) {\n thread.setSpeed(speed);\n }", "public void rdrive(double speed){\n right1.set(ControlMode.PercentOutput, -speedRamp(speed));\n right2.set(ControlMode.PercentOutput, -speedRamp(speed));\n }", "public void drive(double speed){\n \t\tsetRight(speed);\n \t\tsetLeft(speed);\n \t}", "public void init() {\n delayingTimer = new ElapsedTime();\n\n // Define and Initialize Motors and Servos: //\n tailMover = hwMap.dcMotor.get(\"tail_lift\");\n grabberServo = hwMap.servo.get(\"grabber_servo\");\n openGrabber();\n\n // Set Motor and Servo Directions: //\n tailMover.setDirection(DcMotorSimple.Direction.FORWARD);\n\n tailMover.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n tailMover.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n int prevEncoder = tailMover.getCurrentPosition();\n tailMover.setPower(-0.15);\n mainHW.opMode.sleep (300);\n Log.d(\"catbot\", String.format(\"tail lift power %.2f current position %2d prev %2d\", tailMover.getPower(), tailMover.getCurrentPosition(),prevEncoder));\n runtime.reset();\n while((Math.abs(prevEncoder - tailMover.getCurrentPosition()) > 10)&& (runtime.seconds()<3.0)){\n prevEncoder = tailMover.getCurrentPosition();\n mainHW.opMode.sleep(300);\n Log.d(\"catbot\", String.format(\"tail lift power %.2f current position %2d prev %2d\", tailMover.getPower(), tailMover.getCurrentPosition(),prevEncoder));\n }\n tailMover.setPower(0.0);\n // Set Motor and Servo Modes: //\n tailMover.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n tailMover.setTargetPosition(0);\n tailMover.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n closeGrabber();\n }", "@Override\n public void loop() {\n\n if (gamepad1.a && pow >= .01){\n pow -= .01;\n }\n\n if (gamepad1.b && pow <= .99){\n pow += .01;\n }\n robot.shooter.setPower(pow);\n\n telemetry.addData(\"Current Shooter Speed: \", pow);\n telemetry.update();\n\n //The following code should be for a normal drivetrain.\n\n robot.drive360(gamepad1.left_stick_x, -gamepad1.left_stick_y, gamepad1.right_stick_x);\n\n if (gamepad1.dpad_down && pow2 >= .01){\n pow2 -= .01;\n }\n\n if (gamepad1.dpad_up && pow2 <= .99){\n pow2 += .01;\n }\n\n //End normal drivetrain, the rest of this code is for varying the intake speed.\n\n if (gamepad1.right_bumper){\n robot.intake.setPower(pow2);\n }\n else if (gamepad1.left_bumper) {\n robot.intake.setPower(pow2 * -1);\n }\n else {\n robot.intake.setPower(0);\n }\n\n telemetry.addData(\"Current Intake Speed: \", pow2);\n telemetry.update();\n\n }", "public void run() {\n R.autonomousCounter = 0;\n while ((Math.floor(R.autonomousCounter / loopsPerSecond)) <= DriveClass.seconds) {\n if (forward) {\n theRobot.drive(-robotDriveSpeed, gyro.getAngle() * gyroModifierSpeed);\n }else if (!forward) {\n theRobot.drive(robotDriveSpeed, gyro.getAngle() * gyroModifierSpeed);\n }\n Timer.delay(timerDelay);\t\n }\n theRobot.drive(0.0, 0.0);\n }", "public void setArmSpeed(double speed) {\n if (frontSwitch.get()) {\n encoder.reset();\n }\n if (armIsOnLimitSwitchOrHardstop(speed)) {\n OI.secondaryController.setRumble(GenericHID.RumbleType.kLeftRumble, 0.2);\n speed = 0;\n } else {\n OI.secondaryController.setRumble(GenericHID.RumbleType.kLeftRumble, 0);\n }\n double feedforward = 0.06 * Math.cos(getArmRadians());\n speed = speed + feedforward;\n //speed = predictiveCurrentLimiting.getVoltage(speed * 12, getRPM()) / 12;\n armMotorOne.set(speed);\n\n armSpeed.setDouble(speed);\n }", "public void setSpeed(double speed)\r\n {\r\n this.speed = speed;\r\n }", "public void run() {\n setSpeed(MAX_SPEED, MAX_SPEED);\n while (step(TIME_STEP) != 16) {\n String name = \"\";\n if (behaviourList.get(2).takeControl()){\n name = \"inFrontOfWall\";\n behaviourList.get(2).action();\n } else if (behaviourList.get(1).takeControl()){\n name = \"isBallanceBall\";\n behaviourList.get(1).action();\n } else if (behaviourList.get(0).takeControl()){\n name = \"searchBall\";\n behaviourList.get(0).action();\n }\n printDistanceInfo(name);\n }\n }", "private void turn(double speed, int time, DcMotorSimple.Direction direction) {\n leftDrive.setDirection(direction.inverted());\n rightDrive.setDirection(direction.inverted());\n leftDrive.setPower(speed);\n rightDrive.setPower(speed);\n sleep(time);\n leftDrive.setPower(0.0);\n rightDrive.setPower(0.0);\n }", "public void setLeftMotors(double speed){\n motorLeft1.set(speed);\n // motorLeft2.set(-speed);\n }", "public void setSpeed(double speed) {\n this.speed = speed;\n }", "public void setSpeed(double speed) {\n this.speed = speed;\n }", "void drive(double power, double leftInches, double rightInches, double seconds) {\n\n //Make new integer to set left and right motor targets\n int leftTarget;\n int rightTarget;\n\n if (opModeIsActive()) {\n\n //Determine left and right target to move to\n leftTarget = robot.leftMotor.getCurrentPosition() + (int) (leftInches * COUNTS_PER_INCH);\n rightTarget = robot.rightMotor.getCurrentPosition() + (int) (rightInches * COUNTS_PER_INCH);\n\n //Set target and move to position\n robot.leftMotor.setTargetPosition(leftTarget);\n robot.rightMotor.setTargetPosition(rightTarget);\n robot.leftMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rightMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n //Reset runtime and start motion\n robot.leftMotor.setPower(Math.abs(power));\n robot.rightMotor.setPower(Math.abs(power));\n\n //Test if motors are busy, runtime is less than timeout and motors are busy and then run code\n while (opModeIsActive() && (runtime.seconds() < seconds) && (robot.leftMotor.isBusy() && robot.rightMotor.isBusy())) {\n\n //Tell path to driver\n telemetry.addData(\"Path1\", \"Running to: \", leftTarget, rightTarget);\n telemetry.addData(\"Path2\", \"Running at: \", robot.leftMotor.getCurrentPosition(), robot.rightMotor.getCurrentPosition());\n telemetry.update();\n }\n\n //Stop motors after moved to position\n robot.leftMotor.setPower(0);\n robot.rightMotor.setPower(0);\n\n //Set motors back to using run using encoder\n robot.leftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.rightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }\n }", "private void speedBulletFire() {\n\n\t\tbulletArrayList.add(\n\t\t\t\tnew Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition, bulletWidth, bulletHeight, \"Yellow\"));\n\n\t\tfor (int i = 0; i < bulletArrayList.size(); i++) {\n\t\t\tbulletArrayList.get(i).setSpeed(5);\n\t\t}\n\t}", "@Override\r\n\tpublic void speed() {\n\t}", "public void strafe(double speed, boolean angle, double inches, double timeout){\n int newLeftTarget;\n int newRightTarget;\n int newLeftBottomTarget;\n int newRightBottomTarget;\n if (opModeIsActive()) {\n if (angle) {\n //strafe right\n // Determine new target position, and pass to motor controller\n newLeftTarget = robot.leftFrontMotor.getCurrentPosition() + (int)(Math.abs(inches) * COUNTS_PER_INCH);\n newLeftBottomTarget = robot.leftBackMotor.getCurrentPosition() + (int)(-Math.abs(inches) * COUNTS_PER_INCH);\n newRightTarget = robot.rightFrontMotor.getCurrentPosition() + (int)(-Math.abs(inches) * COUNTS_PER_INCH);\n newRightBottomTarget = robot.rightBackMotor.getCurrentPosition() + (int)(Math.abs(inches) * COUNTS_PER_INCH);\n robot.leftFrontMotor.setTargetPosition(newLeftTarget);\n robot.leftBackMotor.setTargetPosition(newLeftBottomTarget);\n robot.rightFrontMotor.setTargetPosition(newRightTarget);\n robot.rightBackMotor.setTargetPosition(newRightBottomTarget);\n\n // Turn On RUN_TO_POSITION\n robot.leftFrontMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.leftBackMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rightFrontMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rightBackMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // reset the timeout time and start motion.\n runtime.reset();\n robot.leftFrontMotor.setPower(Math.abs(speed));\n robot.rightFrontMotor.setPower(Math.abs(speed));\n robot.leftBackMotor.setPower(Math.abs(speed));\n robot.rightBackMotor.setPower(Math.abs(speed));\n\n // keep looping while we are still active, and there is time left, and both motors are running.\n // Note: We use (isBusy() && isBusy()) in the loop test, which means that when EITHER motor hits\n // its target position, the motion will stop. This is \"safer\" in the event that the robot will\n // always end the motion as soon as possible.\n // However, if you require that BOTH motors have finished their moves before the robot continues\n // onto the next step, use (isBusy() || isBusy()) in the loop test.\n\n while (opModeIsActive() &&\n (runtime.seconds() < timeout) &&\n (robot.leftFrontMotor.isBusy() && robot.rightFrontMotor.isBusy())) {\n\n // Display it for the driver.\n telemetry.addData(\"Path1\", \"Running to %7d :%7d\", newLeftTarget, newRightTarget);\n telemetry.addData(\"Path2\", \"Running at %7d :%7d\",\n robot.leftFrontMotor.getCurrentPosition(),\n robot.rightFrontMotor.getCurrentPosition(), robot.leftBackMotor.getCurrentPosition(), robot.rightBackMotor.getCurrentPosition());\n telemetry.update();\n }\n // Stop all motion;\n robot.rightFrontMotor.setPower(0);\n robot.rightBackMotor.setPower(0);\n robot.leftFrontMotor.setPower(0);\n robot.leftBackMotor.setPower(0);\n\n // Turn off RUN_TO_POSITION\n robot.rightFrontMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.rightBackMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.leftFrontMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.leftBackMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n } else if (!angle) {\n //strafe left\n // Determine new target position, and pass to motor controller\n newLeftTarget = robot.leftFrontMotor.getCurrentPosition() + (int)(-Math.abs(inches) * COUNTS_PER_INCH);\n newLeftBottomTarget = robot.leftBackMotor.getCurrentPosition() + (int)(Math.abs(inches) * COUNTS_PER_INCH);\n newRightTarget = robot.rightFrontMotor.getCurrentPosition() + (int)(Math.abs(inches) * COUNTS_PER_INCH);\n newRightBottomTarget = robot.rightBackMotor.getCurrentPosition() + (int)(-Math.abs(inches) * COUNTS_PER_INCH);\n robot.leftFrontMotor.setTargetPosition(newLeftTarget);\n robot.leftBackMotor.setTargetPosition(newLeftBottomTarget);\n robot.rightFrontMotor.setTargetPosition(newRightTarget);\n robot.rightBackMotor.setTargetPosition(newRightBottomTarget);\n\n // Turn On RUN_TO_POSITION\n robot.leftFrontMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.leftBackMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rightFrontMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rightBackMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // reset the timeout time and start motion.\n runtime.reset();\n robot.leftFrontMotor.setPower(Math.abs(speed));\n robot.rightFrontMotor.setPower(Math.abs(speed));\n robot.leftBackMotor.setPower(Math.abs(speed));\n robot.rightBackMotor.setPower(Math.abs(speed));\n\n // keep looping while we are still active, and there is time left, and both motors are running.\n // Note: We use (isBusy() && isBusy()) in the loop test, which means that when EITHER motor hits\n // its target position, the motion will stop. This is \"safer\" in the event that the robot will\n // always end the motion as soon as possible.\n // However, if you require that BOTH motors have finished their moves before the robot continues\n // onto the next step, use (isBusy() || isBusy()) in the loop test.\n\n while (opModeIsActive() &&\n (runtime.seconds() < timeout) &&\n (robot.leftFrontMotor.isBusy() && robot.rightFrontMotor.isBusy())) {\n\n // Display it for the driver.\n telemetry.addData(\"Path1\", \"Running to %7d :%7d\", newLeftTarget, newRightTarget);\n telemetry.addData(\"Path2\", \"Running at %7d :%7d\",\n robot.leftFrontMotor.getCurrentPosition(),\n robot.rightFrontMotor.getCurrentPosition(), robot.leftBackMotor.getCurrentPosition(), robot.rightBackMotor.getCurrentPosition());\n telemetry.update();\n }\n // Stop all motion;\n robot.rightFrontMotor.setPower(0);\n robot.rightBackMotor.setPower(0);\n robot.leftFrontMotor.setPower(0);\n robot.leftBackMotor.setPower(0);\n\n // Turn off RUN_TO_POSITION\n robot.rightFrontMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.rightBackMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.leftFrontMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.leftBackMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }\n }\n }", "public void changeSpeed(int speed);", "public void setSpeed(int speed) {\n this.speed = speed;\n }", "@Override\n public void loop() {\n double left;\n double right;\n\n // // Run wheels in tank mode (note: The joystick goes negative when pushed forwards, so negate it)\n left = -gamepad1.left_stick_y;\n right = -gamepad1.right_stick_y;\n \n // double Target = 0;\n // robot.rightBack.setTargetPosition((int)Target);\n // robot.rightBack.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n rightFront.setPower(left);\n rightBack.setPower(right);\n // robot.rightDrive.setPower(right);\n\n // // Use gamepad left & right Bumpers to open and close the claw\n // if (gamepad1.right_bumper)\n // clawOffset += CLAW_SPEED;\n // else if (gamepad1.left_bumper)\n // clawOffset -= CLAW_SPEED;\n\n // // Move both servos to new position. Assume servos are mirror image of each other.\n // clawOffset = Range.clip(clawOffset, -0.5, 0.5);\n // robot.leftClaw.setPosition(robot.MID_SERVO + clawOffset);\n // robot.rightClaw.setPosition(robot.MID_SERVO - clawOffset);\n\n // Use gamepad buttons to move the arm up (Y) and down (A)\n // if (gamepad1.y)\n // armPosition += ARM_SPEED;\n \n // if (gamepad1.a)\n // armPosition -= ARM_SPEED;\n \n // armPosition = Range.clip(armPosition, robot.ARM_MIN_RANGE, robot.ARM_MAX_RANGE); \n \n\n // // Send telemetry message to signify robot running;\n // telemetry.addData(\"arm\", \"%.2f\", armPosition);\n // telemetry.addData(\"left\", \"%.2f\", left);\n // telemetry.addData(\"right\", \"%.2f\", right);\n }", "public void setSpeed(double speed) {\n \tthis.speed = speed;\n }", "public void mecanumDrive(double forward, double turn, double strafe, double multiplier) {\n double vd = Math.hypot(forward, strafe);\n double theta = Math.atan2(forward, strafe) - (Math.PI / 4);\n turnPower = turn;\n\n// if(forward == 0 && strafe == 0 && turn == 0) {\n// Time.reset();\n// }\n//\n// double accLim = (Time.time()/1.07)*((0.62*Math.pow(Time.time(), 2))+0.45);\n//\n// if(forward < 0 || turn < 0 || strafe < 0) {\n//\n// }\n//\n// if(turn == 0) {\n// targetAngle = getImuAngle();\n// turnPower = pid.run(0.001, 0, 0, 10, targetAngle);\n// } else {\n// targetAngle = getImuAngle();\n// }\n\n double[] v = {\n vd * Math.sin(theta) - turnPower,\n vd * Math.cos(theta) + turnPower,\n vd * Math.cos(theta) - turnPower,\n vd * Math.sin(theta) + turnPower\n };\n\n double[] motorOut = {\n multiplier * (v[0] / 1.07) * ((0.62 * Math.pow(v[0], 2)) + 0.45),\n multiplier * (v[1] / 1.07) * ((0.62 * Math.pow(v[1], 2)) + 0.45),\n multiplier * (v[2] / 1.07) * ((0.62 * Math.pow(v[2], 2)) + 0.45),\n multiplier * (v[3] / 1.07) * ((0.62 * Math.pow(v[3], 2)) + 0.45)\n };\n\n fr.setPower(motorOut[0]);\n fl.setPower(motorOut[1]);\n br.setPower(motorOut[2]);\n bl.setPower(motorOut[3]);\n }", "@Override\n public void loop() {\n double left;\n double right;\n\n // Run wheels in tank mode (note: The joystick goes negative when pushed forwards, so negate it)\n if(!reverseMode)\n {\n left = -gamepad1.left_stick_y;\n right = -gamepad1.right_stick_y;\n }\n else\n {\n left = gamepad1.right_stick_y;\n right = gamepad1.left_stick_y;\n }\n\n targetSpeedLeft = left * driveSpeed;\n targetSpeedRight = right * driveSpeed;\n\n currentLiftSpeed = 0.0;\n if(gamepad1.left_trigger >= 0.1) {\n currentLiftSpeed = -LIFT_MAX_DOWN_SPEED;\n }\n if(gamepad1.right_trigger >= 0.1) {\n currentLiftSpeed = LIFT_MAX_DOWN_SPEED;\n }\n //if(gamepad2.left_trigger) {\n // currentLiftSpeed = -gamepad2.left_bumper * LIFT_MAX_DOWN_SPEED;\n //}\n //if(gamepad2.right_trigger) {\n // currentLiftSpeed = gamepad2.right_bumper * LIFT_MAX_UP_SPEED;\n //}\n/*\n currentSpeedArm = 0.0;\n if(gamepad1.left_trigger) {\n currentSpeedArm = -gamepad1.left_bumper * ARM_MAX_DOWN_SPEED;\n }\n if(gamepad1.right_trigger) {\n currentSpeedArm = gamepad1.right_bumper * ARM_MAX_UP_SPEED;\n }\n\n /*\n // limit acceleration by only allowing MAX_ACCEL power change per UPDATE_TIME\n if(runtime.seconds() > UPDATE_TIME)\n {\n runtime.reset();\n \n if( ((currentSpeedLeft >= 0.0) && (targetSpeedLeft >= 0.0)) ||\n ((currentSpeedLeft <= 0.0) && (targetSpeedLeft <= 0.0)))\n {\n if(Math.abs(currentSpeedLeft) > Math.abs(targetSpeedLeft)) \n {\n currentSpeedLeft = targetSpeedLeft;\n }\n else \n {\n if (currentSpeedLeft != targetSpeedLeft) {\n if (Math.abs(targetSpeedLeft - currentSpeedLeft) <= MAX_ACCEL)\n currentSpeedLeft = targetSpeedLeft;\n else {\n if (currentSpeedLeft < targetSpeedLeft)\n currentSpeedLeft += MAX_ACCEL;\n else\n currentSpeedLeft -= MAX_ACCEL;\n }\n }\n }\n\n }\n else \n {\n currentSpeedLeft = 0.0;\n }\n\n if( ((currentSpeedRight >= 0.0) && (targetSpeedRight >= 0.0)) ||\n ((currentSpeedRight <= 0.0) && (targetSpeedRight <= 0.0)))\n {\n if(Math.abs(currentSpeedRight) > Math.abs(targetSpeedRight))\n {\n currentSpeedRight = targetSpeedRight;\n }\n else\n {\n if (currentSpeedRight != targetSpeedRight) {\n if (Math.abs(targetSpeedRight - currentSpeedRight) <= MAX_ACCEL)\n currentSpeedRight = targetSpeedRight;\n else {\n if (currentSpeedRight < targetSpeedRight)\n currentSpeedRight += MAX_ACCEL;\n else\n currentSpeedRight -= MAX_ACCEL;\n }\n }\n }\n\n }\n else\n {\n currentSpeedRight = 0.0;\n }\n\n }\n */\n\n // replace acceleration limit because no longer needed\n currentSpeedLeft = targetSpeedLeft;\n currentSpeedRight = targetSpeedRight;\n\n robot.leftDriveMotor.setPower(currentSpeedLeft);\n robot.rightDriveMotor.setPower(currentSpeedRight);\n // robot.armMotor.setPower(currentSpeedArm);\n robot.liftMotor.setPower(currentLiftSpeed);\n\n\n if(gamepad1.a)\n {\n if (!aButtonHeld)\n {\n aButtonHeld = true;\n if (servoOpen) {\n servoOpen = false;\n robot.leftGrabServo.setPosition(LEFT_SERVO_CLOSED);\n robot.rightGrabServo.setPosition(RIGHT_SERVO_CLOSED);\n }\n else {\n servoOpen = true;\n robot.leftGrabServo.setPosition(LEFT_SERVO_OPEN);\n robot.rightGrabServo.setPosition(RIGHT_SERVO_OPEN);\n }\n }\n }\n else {\n aButtonHeld = false;\n }\n/*\n if(gamepad1.b)\n {\n if (!bButtonHeld)\n {\n bButtonHeld = true;\n reverseMode = !reverseMode;\n }\n }\n else\n {\n bButtonHeld = false;\n }\n\n*/\n if(gamepad1.y)\n {\n if (!yButtonHeld)\n {\n yButtonHeld = true;\n\n if(driveSpeed == MAX_SPEED) {\n driveSpeed = 0.3 * MAX_SPEED;\n slowMode = true;\n }\n else\n {\n driveSpeed = MAX_SPEED;\n slowMode = false;\n }\n }\n }\n else\n {\n yButtonHeld = false;\n }\n\n\n if(gamepad1.x)\n {\n if(!xButtonHeld)\n {\n xButtonHeld = true;\n\n if(servoUp){\n servoUp=false;\n robot.leftDragServo.setPosition(LEFT_DOWN);\n }\n else\n {\n servoUp=true;\n robot.leftDragServo.setPosition(LEFT_UP);\n }\n }\n }\n else\n {\n xButtonHeld = false;\n }\n\n telemetry.addData(\"reverse\", reverseMode);\n\n // telemetry.addData(\"currentLeft\", currentSpeedLeft);\n // telemetry.addData(\"currentRight\", currentSpeedRight);\n // telemetry.addData(\"currentArm\", currentSpeedArm);\n // telemetry.addData(\"currentLift\", currentLiftSpeed);\n telemetry.addData(\"encoderLeft\", robot.leftDriveMotor.getCurrentPosition());\n telemetry.addData(\"encoderRight\", robot.rightDriveMotor.getCurrentPosition());\n // telemetry.addData(\"reverseMode\", reverseMode);\n telemetry.addData(\"slowMode\", slowMode);\n telemetry.addData(\"Drag Servo\", robot.leftDragServo.getPosition());\n telemetry.addData(\"Touch Sensor\", robot.rearTouch.getState());\n }", "public void arm_analog(double speed) {\n if (!get_enabled()) {\n return;\n }\n spark_left_arm.set(RobotMap.Arm.arm_speed_multiplier*speed);\n spark_right_arm.set(RobotMap.Arm.arm_speed_multiplier*speed);\n }", "void derecha(int speed, int grados){\n\t\tMotorA.stop();\n\t\tMotorB.setSpeed(speed);\n\t\tMotorC.setSpeed(speed);\n\t\t\n\t\tMotorC.rotate(grados,true);\n\t\tMotorB.rotate(-grados);\n\t}", "public static void setSpeed(int speed) {\n leftMotor.setSpeed(speed);\n rightMotor.setSpeed(speed);\n }", "public void set(double speed) {\n climb_spark_max.set(speed);\n }", "@Override\n public void periodic() {\n SmartDashboard.putBoolean(\"Climber Safety Mode: \", Robot.m_oi.getSafety());\n\n if (Robot.m_oi.getSafety()) {\n \t\tif (Robot.m_oi.getClimbUp()) {\n // if (printDebug) {\n // System.out.println(\"Climb: up speed = \" + speed);\n // }\n // talonMotor.setInverted(false); // do not reverse motor\n talonMotor.set(-speed); // activate motor\n\n \t\t} else if (Robot.m_oi.getClimbDown()) {\n // if (printDebug) {\n // System.out.println(\"IntakeArm: retract speed = \" + speed);\n // }\n // talonMotor.setInverted(true); // reverse motor\n talonMotor.set(speed);\n \n \t\t} else { // else no hand button pressed, so stop motor\n talonMotor.set(0);\n }\n\n if (climbState == 0 && Robot.m_oi.getClimbUp()) {\n climbState = 1;\n }\n\n if (climbState == 1 && Robot.m_oi.getClimbDown()) {\n climbState = 2;\n }\n\n if (climbState == 2 && talonMotor.getSensorCollection().isFwdLimitSwitchClosed()) {\n // Activiate the solenoid\n RobotMap.solenoid.extendSolenoid(true);\n }\n }\n }", "public void arcadeDrive(double motorSpeed) {\n\t\tarcadeDrive(motorSpeed, 0);\r\n\t}", "public Morse() {\n Set_Flag(ADAPT_SPEED);\n\n // ?\n Thread thread = new Thread(this);\n thread.start();\n }", "public void setSpeedStrumMotor(int speed) {\r\n\t\tif (speed == 0)\r\n\t\t\tstrumMotor.stop();\r\n\t\telse\r\n\t\t\tstrumMotor.rotate(speed);\r\n\t}", "public int drive(int speedL, int speedR, int distanceL, int distanceR);", "void setSpeed(RobotSpeedValue newSpeed);", "@Override\n public void run() {\n ElapsedTime time = new ElapsedTime();\n time.reset();\n sleep(3000);\n sh.hitRing();\n sleep(600);\n sh.hitRing();\n sleep(600);\n sh.hitRing();\n sleep(600);\n //sh.pivotStop.setPosition(.55);\n sh.hitRing();\n sleep(500);\n //sh.pivotDown();\n sh.hitRing();\n sleep(500);\n sh.withdraw();\n sh.lift.setPower(0);\n sh.lift.setPower(0);\n wobble.wobbleUp();\n sh.pivotStop.setPosition(1);\n loop.end();\n\n\n }", "public void setSpeed(int value) {\n this.speed = value;\n }", "public void startEngine(){\n currentSpeed = 0.1;\n }", "@Override\n protected void initialize() {\n Robot.SCISSOR.extendLift(speed);\n }", "@Override\n public void loop() {\n\n //double armRot = robot.Pivot.getPosition();\n\n double deadzone = 0.2;\n\n double trnSpdMod = 0.5;\n\n float xValueRight = gamepad1.right_stick_x;\n float yValueLeft = -gamepad1.left_stick_y;\n\n xValueRight = Range.clip(xValueRight, -1, 1);\n yValueLeft = Range.clip(yValueLeft, -1, 1);\n\n // Pressing \"A\" opens and closes the claw\n if (gamepad1.a) {\n\n if (robot.Claw.getPosition() < 0.7)\n while(gamepad1.a){\n robot.Claw.setPosition(1);}\n else if (robot.Claw.getPosition() > 0.7)\n while(gamepad1.a){\n robot.Claw.setPosition(0.4);}\n else\n while(gamepad1.a)\n robot.Claw.setPosition(1);\n }\n\n // Pressing \"B\" changes the wrist position\n if (gamepad1.b) {\n\n if (robot.Wrist.getPosition() == 1)\n while(gamepad1.b)\n robot.Wrist.setPosition(0.5);\n else if (robot.Wrist.getPosition() == 0.5)\n while(gamepad1.b)\n robot.Wrist.setPosition(1);\n else\n while(gamepad1.b)\n robot.Wrist.setPosition(1);\n }\n\n // Turn left/right, overrides forward/back\n if (Math.abs(xValueRight) > deadzone) {\n\n robot.FL.setPower(xValueRight * trnSpdMod);\n robot.FR.setPower(-xValueRight * trnSpdMod);\n robot.BL.setPower(xValueRight * trnSpdMod);\n robot.BR.setPower(-xValueRight * trnSpdMod);\n\n\n } else {//Forward/Back On Solely Left Stick\n if (Math.abs(yValueLeft) > deadzone) {\n robot.FL.setPower(yValueLeft);\n robot.FR.setPower(yValueLeft);\n robot.BL.setPower(yValueLeft);\n robot.BR.setPower(yValueLeft);\n }\n robot.FL.setPower(0);\n robot.FR.setPower(0);\n robot.BL.setPower(0);\n robot.BR.setPower(0);\n }\n\n\n telemetry.addData(\"Drive Encoder Ticks\", robot.FL.getCurrentPosition());\n telemetry.addData(\"Winch Encoder Ticks\", robot.Winch.getCurrentPosition());\n telemetry.addData(\"ColorArm Position\", robot.ColorArm.getPosition());\n telemetry.addData(\"Wrist Position\", robot.Wrist.getPosition());\n telemetry.addData(\"Claw Position\", robot.Claw.getPosition());\n telemetry.addData(\"Grip Position\", robot.Grip.getPosition());\n telemetry.addData(\"Color Sensor Data Red\", robot.Color.red());\n telemetry.addData(\"Color Sensor Data Blue\", robot.Color.blue());\n\n /*\n\n // This is used for an Omniwheel base\n\n // Group a is Front Left and Rear Right, Group b is Front Right and Rear Left\n float a;\n float b;\n float turnPower;\n if(!gamepad1.x) {\n if (Math.abs(xValueRight) <= deadzone && Math.abs(yValueRight) <= deadzone) {\n // And is used here because both the y and x values of the right stick should be less than the deadzone\n\n a = Range.clip(yValueLeft + xValueLeft, -1, 1);\n b = Range.clip(yValueLeft - xValueLeft, -1, 1);\n\n\n robot.FL.setPower(a);\n robot.FR.setPower(b);\n robot.BL.setPower(b);\n robot.BR.setPower(a);\n\n telemetry.addData(\"a\", \"%.2f\", a);\n telemetry.addData(\"b\", \"%.2f\", b);\n\n } else if (Math.abs(xValueRight) > deadzone || Math.abs(yValueRight) > deadzone) {\n\n // Or is used here because only one of the y and x values of the right stick needs to be greater than the deadzone\n turnPower = Range.clip(xValueRight, -1, 1);\n\n robot.FL.setPower(-turnPower);\n robot.FR.setPower(turnPower);\n robot.BL.setPower(-turnPower);\n robot.BR.setPower(turnPower);\n\n } else {\n\n robot.FL.setPower(0);\n robot.FR.setPower(0);\n robot.BL.setPower(0);\n robot.BR.setPower(0);\n }\n\n } else {\n\n if (Math.abs(xValueRight) <= deadzone && Math.abs(yValueRight) <= deadzone) {\n\n // And is used here because both the y and x values of the right stick should be less than the deadzone\n a = Range.clip(yValueLeft + xValueLeft, -0.6f, 0.6f);\n b = Range.clip(yValueLeft - xValueLeft, -0.6f, 0.6f);\n\n\n robot.FL.setPower(a);\n robot.FR.setPower(b);\n robot.BL.setPower(b);\n robot.BR.setPower(a);\n\n telemetry.addData(\"a\", \"%.2f\", a);\n telemetry.addData(\"b\", \"%.2f\", b);\n\n } else if (Math.abs(xValueRight) > deadzone || Math.abs(yValueRight) > deadzone) {\n\n // Or is used here because only one of the y and x values of the right stick needs to be greater than the deadzone\n turnPower = Range.clip(xValueRight, -1, 1);\n\n robot.FL.setPower(-turnPower);\n robot.FR.setPower(turnPower);\n robot.BL.setPower(-turnPower);\n robot.BR.setPower(turnPower);\n\n } else {\n\n robot.FL.setPower(0);\n robot.FR.setPower(0);\n robot.BL.setPower(0);\n robot.BR.setPower(0);\n }\n }\n\n\n if (gamepad1.dpad_up) {\n\n robot.Swing.setPower(.6);\n\n } else if (gamepad1.dpad_down) {\n\n robot.Swing.setPower(-.6);\n\n } else {\n\n robot.Swing.setPower(0);\n }\n\n if(gamepad1.a){\n\n robot.Claw.setPosition(.4);\n\n } else if(gamepad1.b){\n\n robot.Claw.setPosition(0);\n }\n\n if(gamepad1.left_bumper) {\n\n robot.Pivot.setPosition(armRot+0.0005);\n\n } else if(gamepad1.right_bumper) {\n\n robot.Pivot.setPosition(armRot-0.0005);\n\n } else{\n\n robot.Pivot.setPosition(armRot);\n }\n\n telemetry.addData(\"position\", position);\n\n */\n\n /*\n * Code to run ONCE after the driver hits STOP\n */\n }", "public void lowerLift(double timeout) {\n {\n\n robot.liftleft.setTargetPosition(0);\n robot.liftright.setTargetPosition(0);\n // Turn On RUN_TO_POSITION\n robot.liftleft.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.liftright.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n // reset the timeout time and start motion.\n runtime.reset();\n robot.liftleft.setPower(0.25);\n robot.liftright.setPower(0.25);\n // keep looping while we are still active, and there is time left, and both motors are running.\n // Note: We use (isBusy() && isBusy()) in the loop test, which means that when EITHER motor hits\n // its target position, the motion will stop. This is \"safer\" in the event that the robot will\n // always end the motion as soon as possible.\n // However, if you require that BOTH motors have finished their moves before the robot continues\n // onto the next step, use (isBusy() || isBusy()) in the loop test.\n while (\n (runtime.seconds() < timeout) &&\n (robot.liftleft.isBusy()) && robot.liftright.isBusy())\n // Display it for the driver.\n\n telemetry.addData(\"Path2\", \"lift left position: %7d lift left position: %7d target position: %7d\",\n robot.liftleft.getCurrentPosition(), robot.liftright.getCurrentPosition(),\n 0);\n telemetry.update();\n }\n\n // Stop all motion;\n robot.liftright.setPower(0);\n robot.liftleft.setPower(0);\n\n\n robot.liftleft.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.liftright.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }", "@Override\n\tprotected void initialize() {\n\t\t//hookMotor1.configPeakCurrentDuration(9000, 10000);\n\t\t//hookMotor1.configPeakCurrentLimit(40, 10000);\n\t\t//hookMotor2.configPeakCurrentDuration(9000, 10000);\n\t\t//hookMotor2.configPeakCurrentLimit(40, 10000);\n\t\thookMotor1.enableCurrentLimit(false);\n\t\thookMotor2.enableCurrentLimit(false);\n\n\t\t//first move joint2 forward to release hook\n//\t\tRobot.joint2Cmd = new Joint2Cmd(RobotMap.jointEncoder2.getRaw(), -1647, 1000);\n//\t\tRobot.joint2Cmd.start();\n\t\t\n\t\thookMotor1.set(ControlMode.PercentOutput, -1.0);\n\t\thookMotor2.set(ControlMode.PercentOutput, -1.0);\n\t\tstepCnt = 0;\n\t\tSystem.out.println(\"start climbing\");\n\t}", "public synchronized void set (double speed){\n m_liftSpeed = speed;\n if (m_liftSpeed < 0 && isLowerLimit() == false) {\n m_liftMotor.set(m_liftSpeed);\n } else if (m_liftSpeed > 0 && isUpperLimit() == false){\n m_liftMotor.set(m_liftSpeed);\n } else {\n m_liftSpeed = 0;\n m_liftMotor.set(0); \n }\n }", "public void drive(double lSpeed, double rSpeed) {\n\t\tRobotMap.frontLeft.set(ControlMode.PercentOutput, -lSpeed);\n\t\tRobotMap.backLeft.set(ControlMode.PercentOutput, -lSpeed);\n\t\tRobotMap.frontRight.set(ControlMode.PercentOutput, rSpeed);\n\t\tRobotMap.backRight.set(ControlMode.PercentOutput, rSpeed);\n\t}", "public void setSpeed(float speed) {\n this.speed = speed;\n }", "public void setSpeed(float speed) {\n this.speed = speed;\n }", "public Robot(int step, int speed) {\n\t\tthis.step = step; \n\t\tthis.speed = speed; \n\t}", "public void drive(double speed) {\n front.set(speed);\n rear.set(speed);\n }", "public void setSpeed(int value) {\n speed = value;\n if (speed < 40) {\n speedIter = speed == 0 ? 0 : speed / 4 + 1;\n speedWait = (44 - speed) * 3;\n fieldDispRate = 20;\n listDispRate = 20;\n } else if (speed < 100) {\n speedIter = speed * 2 - 70;\n fieldDispRate = (speed - 40) * speed / 50;\n speedWait = 1;\n listDispRate = 1000;\n } else {\n speedIter = 10000;\n fieldDispRate = 2000;\n speedWait = 1;\n listDispRate = 4000;\n }\n }", "public void straight(float rotations, int timeout){\n\t\tcalculateAngles();\n\n\t\t// Get the current program time and starting encoder position before we start our drive loop\n\t\tfloat startTime = data.time.currentTime();\n\t\tfloat startPosition = data.drive.leftDrive.getCurrentPosition();\n\n\t\t// Reset our Integral and Derivative data.\n\t\tdata.PID.integralData.clear();\n\t\tdata.PID.derivativeData.clear();\n\n\n\n\t\t// Manually calculate our first target\n\t\tdata.PID.target = calculateAngles() + (data.PID.IMURotations * 360);\n\n\t\t// We need to keep track of how much time passes between a loop.\n\t\tfloat loopTime = data.time.currentTime();\n\n\t\t// This is the main loop of our straight drive.\n\t\t// We use encoders to form a loop that corrects rotation until we reach our target.\n\t\twhile(Math.abs(startPosition - data.drive.leftDrive.getCurrentPosition()) < Math.abs(rotations) * data.drive.encoderCount){\n\t\t\t// First we check if we have exceeded our timeout and...\n\t\t\tif(startTime + timeout < data.time.currentTime()){\n\t\t\t\t// ... stop our loop if we have.\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// Record the time since the previous loop.\n\t\t\tloopTime = data.time.timeFrom(loopTime);\n\t\t\t// Calculate our angles. This method may modify the input Rotations.\n\t\t\t//IMURotations =\n\t\t\tcalculateAngles();\n\t\t\t// Calculate our PID\n\t\t\tcalculatePID(loopTime);\n\n\t\t\t// Calculate the Direction to travel to correct any rotational errors.\n\t\t\tfloat Direction = ((data.PID.I * data.PID.ITuning) / 2000) + ((data.PID.P * data.PID.PTuning) / 2000) + ((data.PID.D * data.PID.DTuning) / 2000);\n\t\t\t// Constrain our direction from being too intense.\n\n\t\t\t// Define our motor power multiplier\n\n\t\t\t// Before we set the power of our motors, we need to adjust for forwards or backwards\n\t\t\t// movement. We can use the sign of Rotations to determine this\n\t\t\t// We are moving forwards\n\t\t\tdata.drive.rightDrive.setPower(data.drive.POWER_CONSTANT - (Direction));\n\t\t\tdata.drive.leftDrive.setPower(data.drive.POWER_CONSTANT + (Direction));\n\t\t}\n\t\t// Our drive loop has completed! Stop the motors.\n\t\tdata.drive.rightDrive.setPower(0);\n\t\tdata.drive.leftDrive.setPower(0);\n\t}", "private void setSpeed() {\n double cVel = cAccel*0.1;\n speed += round(mpsToMph(cVel), 2);\n speedOutput.setText(String.valueOf(speed));\n }", "public SetTiltSpeed(double speed) {\n requires(Robot.tilt);\n this.speed = speed;\n }", "@Override\n public void loop(){\n speedBT.ifPress(gamepad1.x);\n speedMode = speedBT.getMode() ? 0.8 : 0.5;\n speedBT.update(gamepad1.x);\n\n // Gets the speed, strafe, and turn of the robot and accounts for stick drifting\n double speed = gamepad1.left_stick_y;\n double strafe = -gamepad1.left_stick_x;\n double turn = gamepad1.right_stick_x;\n if (Math.abs(turn) < 0.2) {\n turn = 0;\n }\n if (Math.abs(strafe) < 0.2) {\n strafe = 0;\n }\n if (Math.abs(speed) < 0.2) {\n speed = 0;\n }\n\n // Drives in the inputted direction.\n MecanumDrive.Motor.Vector2D vector = new MecanumDrive.Motor.Vector2D(strafe, speed);\n drive.move(speedMode, vector, turn);\n\n // If not driving, check for turning in place or pure strafing\n if (turn == 0 && strafe == 0 && speed == 0) {\n if (gamepad1.left_bumper) {\n drive.strafeLeftWithPower(speedMode);\n } else if (gamepad1.right_bumper) {\n drive.strafeRightWithPower(speedMode);\n } else if (gamepad1.left_trigger > 0.2f) {\n drive.turnInPlace(gamepad1.left_trigger, false);\n } else if (gamepad1.right_trigger > 0.2f) {\n drive.turnInPlace(gamepad1.right_trigger, true);\n }\n }\n\n // Activate and deactivate pivot flywheels (toggles)\n flywheelBT.ifRelease(gamepad1.y);\n flywheelBT.update(gamepad1.y);\n\n // Determines if the flywheels spin, spin in reverse, or freeze\n if (flywheelBT.getMode()) {\n intake.spin();\n } else if (gamepad1.b) {\n intake.spinReverse();\n } else {\n intake.stopSpinning();\n }\n\n // Gets the elevator's movement inputs and accounts for stick drifting\n double elevatorHeight = -gamepad2.left_stick_y;\n double clawDistance = gamepad2.right_stick_y;\n if (Math.abs(elevatorHeight) < 0.2) {\n elevatorHeight = 0;\n }\n if (Math.abs(clawDistance) < 0.2) {\n clawDistance = 0;\n }\n\n // Moves the elevators and controls the claw and tray pullers\n elevatorOuttake.moveElevators(elevatorHeight, clawDistance);\n try {\n if (gamepad2.dpad_up) {\n elevatorOuttake2.grab();\n telemetry.addData(\"gamepad 2-up Pressed \", true);\n //elevatorOuttake.grabClamp();\n } else if (gamepad2.dpad_down) {\n elevatorOuttake2.release();\n telemetry.addData(\"gamepad2-down Pressed\", true);\n Thread.sleep(250);\n elevatorOuttake2.stop();\n }\n }\n catch (InterruptedException e){\n throw new RuntimeException(e);\n }\n\n // Raise or lower the tray pullers\n if(gamepad1.dpad_down){\n trayPuller.down();\n }\n if(gamepad1.dpad_up){\n trayPuller.up();\n }\n\n // Telemetry data\n telemetry.addData(\"Speed Mode\", speedBT.getMode() ? \"Fast\" : \"Slow\");\n telemetry.addData(\"Speed\", speed);\n telemetry.addData(\"Strafe\", strafe);\n telemetry.addData(\"Turn\", turn);\n telemetry.addData(\"Elevator Height\", elevatorHeight);\n telemetry.addData(\"Claw Distance\", clawDistance);\n telemetry.addData(\"Vertical Elevator Encoder\", elevatorOuttake.getVerticalEncoder());\n telemetry.addData(\"Horizontal Elevator Encoder\", elevatorOuttake.getHorizontalEncoder());\n }", "public void run() {\n\t\tint time=0;\n\t\twhile(true)\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\tswitch (this.direct) {\n\t\t\tcase 0:\n\t\t\t\t\n\t\t\t\t//设置for循环是为了不出现幽灵坦克\n\t\t\t\t//使得坦克有足够长的时间走动,能看得清楚\n\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t{ \n\t\t\t\t\t//判断是否到达边界\n\t\t\t\t\tif(y>0 && !this.isTouchEnemyTank() && !this.isTouchJinshuWall &&!this.isTouchTuWall){\n\t\t\t\t\t\ty-=speed;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\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}\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t\n\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t{\n\t\t\t\t\tif(x<MyRules.panelX-35 && !this.isTouchEnemyTank() && !this.isTouchJinshuWall &&!this.isTouchTuWall)\n\t\t\t\t\t{\n\t\t\t\t\t\tx+=speed;\n\t\t\t\t\t}\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\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}\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\n\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tif(y<MyRules.panelY-35 && !this.isTouchEnemyTank()&& !this.isTouchJinshuWall &&!this.isTouchTuWall)\n\t\t\t\t\t{\n\t\t\t\t\t\ty+=speed;\n\t\t\t\t\t}try {\n\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t\n\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tif(x>0 && !this.isTouchEnemyTank()&& !this.isTouchJinshuWall &&!this.isTouchTuWall){\n\t\t\t\t\t\tx-=speed;\n\t\t\t\t\t}try {\n\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\n\t\t\t//走动之后应该产生一个新方向\n\t\t\tthis.direct=(int)(Math.random()*4);\n\t\t\t\n\t\t\t\n\t\t\ttime++;\n\t\t\tif(time%2==0)\n\t\t\t{\n\t\t\t\t//判断敌人坦克是否需要添加子弹\n\t\t\t\tif(this.state)\n\t\t\t\t{\n\t\t\t\t\tBullet enBullet=new Bullet();\n\t\t\t\t\t//每个坦克每次可以发射炮弹的数目\n\t\t\t\t\tif(enbu.size()<5)\n\t\t\t\t\t{\n\t\t\t\t\t\tenBullet.setDirect(direct);\n\t\t\t\t\t\tswitch (enBullet.direct) {\n\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\tenBullet.setX(this.getX()+9);\n\t\t\t\t\t\t\t\tenBullet.setY(this.getY()-6);\n\t\t\t\t\t\t\t\tenbu.add(enBullet);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\tenBullet.setX(this.getX()+31);\n\t\t\t\t\t\t\t\tenBullet.setY(this.getY()+8);\n\t\t\t\t\t\t\t\tenbu.add(enBullet);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\tenBullet.setX(this.getX()+8);\n\t\t\t\t\t\t\t\tenBullet.setY(this.getY()+31);\n\t\t\t\t\t\t\t\tenbu.add(enBullet);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\tenBullet.setX(this.getX()-6);\n\t\t\t\t\t\t\t\tenBullet.setY(this.getY()+9);\n\t\t\t\t\t\t\t\tenbu.add(enBullet);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t Thread thread=new Thread(enBullet);\n\t\t\t\t\t\t\t thread.start();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}//if(time%2==0)\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//判断坦克是否死亡\n\t\t\tif(this.state==false)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}//whlie\n\t}", "protected void spin(int stops, int velocity) {\n totalStops=stops;\n remainingStops=stops;\n doBreak=false;\n if (stops>0) {\n gambleScreen.inMotion(this,true);\n }\n this.velocity=velocity;\n }", "@Override\n public void loop() {\n float left = -gamepad1.left_stick_y;\n float right = -gamepad1.right_stick_y;\n // clip the right/left values so that the values never exceed +/- 1\n right = Range.clip(right, -1, 1);\n left = Range.clip(left, -1, 1);\n\n // scale the joystick value to make it easier to control\n // the robot more precisely at slower speeds.\n right = (float)scaleInput(right);\n left = (float)scaleInput(left);\n\n // write the values to the motors\n if (motor1!=null) {\n motor1.setPower(right);\n }\n if (motor2!=null) {\n motor2.setPower(left);\n }\n if (motor3!=null) {\n motor3.setPower(right);\n }\n if (motor4!=null) {\n motor4.setPower(left);\n }\n\n if (gamepad1.right_bumper && motor5Timer + 150 < timer) {\n motor5Forward = !motor5Forward;\n motor5Backward = false;\n motor5Timer = timer;\n } else if (gamepad1.left_bumper && motor5Timer + 150 < timer) {\n motor5Forward = false;\n motor5Backward = !motor5Backward;\n motor5Timer = timer;\n }\n if (motor5!=null) {\n if (gamepad1.dpad_left)\n {\n motor5Forward = false;\n motor5.setPower(1);\n }\n else if (gamepad1.dpad_right)\n {\n motor5Backward = false;\n motor5.setPower(-1);\n }\n else if (motor5Forward)\n {\n motor5.setPower(1);\n }\n else if (motor5Backward)\n {\n motor5.setPower(-1);\n }\n else\n {\n motor5.setPower(0);\n }\n }\n if (motor6!=null) {\n if (gamepad1.dpad_up)\n {\n motor6.setPower(1);\n }\n else if (gamepad1.dpad_down)\n {\n motor6.setPower(-1);\n }\n else\n {\n motor6.setPower(0);\n }\n\n\n }\n if (motor7!=null) {\n if (gamepad1.dpad_left)\n {\n motor7.setPower(1);\n }\n else if (gamepad1.dpad_right)\n {\n motor7.setPower(-1);\n }\n else\n {\n motor7.setPower(0);\n }\n }\n if (motor8!=null) {\n if (gamepad1.dpad_up)\n {\n motor8.setPower(1);\n }\n if (gamepad1.dpad_down)\n {\n motor8.setPower(-1);\n }\n else\n {\n motor8.setPower(0);\n }\n }\n if (timer == 0) {\n servo1pos=0.5;\n servo2pos=0.5;\n servo3pos=0.5;\n servo4pos=0.5;\n servo5pos=0.5;\n servo6pos=0.5;\n }\n timer++;\n\n if (servo1!=null){\n if (gamepad1.right_bumper) {\n servo1pos += 0.01;\n }\n if (gamepad1.left_bumper) {\n servo1pos -= 0.01;\n }\n servo1pos = Range.clip(servo1pos, 0.00, 1.0);\n\n servo1.setPosition(servo1pos);\n }\n if (servo2!=null){\n if (gamepad1.x) {\n servo2pos += 0.01;\n }\n if (gamepad1.y) {\n servo2pos -= 0.01;\n }\n servo2pos = Range.clip(servo2pos, 0.00, 1.0);\n\n servo2.setPosition(servo2pos);\n }\n if (servo3!=null){\n if (gamepad1.a) {\n servo3pos += 0.01;\n }\n if (gamepad1.b) {\n servo3pos -= 0.01;\n }\n servo3pos = Range.clip(servo3pos, 0.00, 1.0);\n\n servo3.setPosition(servo3pos);\n }\n if (servo4!=null){\n if (gamepad1.right_bumper) {\n servo4pos -= 0.01;\n }\n if (gamepad1.left_bumper) {\n servo4pos += 0.01;\n }\n servo4pos = Range.clip(servo4pos, 0.00, 1.0);\n\n servo4.setPosition(servo4pos);\n }\n if (servo5!=null){\n if (gamepad1.x) {\n servo5pos -= 0.01;\n }\n if (gamepad1.y) {\n servo5pos += 0.01;\n }\n servo5pos = Range.clip(servo5pos, 0.00, 1.0);\n\n servo5.setPosition(servo5pos);\n }\n if (servo6!=null){\n if (gamepad1.a) {\n servo6pos -= 0.01;\n }\n if (gamepad1.b) {\n servo6pos += 0.01;\n }\n servo6pos = Range.clip(servo6pos, 0.00, 1.0);\n\n servo6.setPosition(servo6pos);\n }\n if (servo1!=null){\n telemetry.addData(\"servoBumpers\", servo1.getPosition());}\n if (servo2!=null){\n telemetry.addData(\"servoX/Y\", servo2.getPosition());}\n if (servo3!=null){\n telemetry.addData(\"servoA/B\", servo3.getPosition());}\n if (servo4!=null){\n telemetry.addData(\"servoBumpers-\", servo4.getPosition());}\n if (servo5!=null){\n telemetry.addData(\"servoX/Y-\", servo5.getPosition());}\n if (servo6!=null){\n telemetry.addData(\"servoA/B-\", servo6.getPosition());}\n if (motor1 != null) {\n telemetry.addData(\"Motor1\", motor1.getCurrentPosition());\n }\n }", "@Override\n\tpublic void autonomousPeriodic() {\n\t\t//For some reason, right is inverted in auto instead of left\n\t\tString start = autonomousCommand; //from smartDashboard\n\t\t//String start = \"R\";//R for right, FR for far right, L for far left\n\t\t//Starting Far Right\n\t\tif (start == \"FR\") {\n\t\t\tif(autoStep==0) {\n\t\t\t\tif (timer.get() < 3) {\n\t\t\t\t\tmotorRB.set(-0.5);\n\t\t\t\t\tmotorRF.set(-0.5);\n\t\t\t\t\tmotorLB.set(0.5);\n\t\t\t\t\tmotorLF.set(0.5);\n\t\t\t\t\t//Go forward for 5 seconds\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tmotorRB.set(0);\n\t\t\t\t\tmotorRF.set(0);\n\t\t\t\t\tmotorLB.set(0);\n\t\t\t\t\tmotorLF.set(0);\n\t\t\t\t\t//stop going\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (start == \"R\") {\n\t\t\t//Starting on the right, aligned with the switch\n\t\t\tif(autoStep==0) {\n\t\t\t\tif (timer.get() < 2) {\n\t\t\t\t\tmotorRB.set(-0.5);\n\t\t\t\t\tmotorRF.set(-0.5);\n\t\t\t\t\tmotorLB.set(0.5);\n\t\t\t\t\tmotorLF.set(0.5);\n\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tmotorRB.set(0);\n\t\t\t\t\tmotorRF.set(0);\n\t\t\t\t\tmotorLB.set(0);\n\t\t\t\t\tmotorLF.set(0);\n\t\t\t\t}\n\t\t\t\tif(gameData.charAt(0) == 'R') {\n\t\t\t\t\tif(timer.get()< 4) {\n\t\t\t\t\t\tmotorLift.set(.25);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmotorLift.set(0);\n\t\t\t\t\t}\n\t\t\t\t\tif (timer.get() < 15 && timer.get() > 7) {\n\t\t\t\t\t\t\tmotorGL.set(1);\n\t\t\t\t\t\t\tmotorGR.set(-1);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmotorGL.set(0);\n\t\t\t\t\t\tmotorGR.set(0);\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tautoStep++;\n\t\t\t}\n\t\t}\n\t\telse if (start == \"L\") {\n\t\t//This is for starting on the far left\n\t\t\tif(autoStep == 0) {\n\t\t\t\tif (timer.get() < 2.5) {\n\t\t\t\t\tmotorRB.set(-0.5);\n\t\t\t\t\tmotorRF.set(-0.5);\n\t\t\t\t\tmotorLB.set(0.5);\n\t\t\t\t\tmotorLF.set(0.5);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tmotorRB.set(0);\n\t\t\t\t\tmotorRF.set(0);\n\t\t\t\t\tmotorLB.set(0);\n\t\t\t\t\tmotorLF.set(0);\n\t\t\t\t}\n\t\t\t\tif(gameData.charAt(0) == 'L') {/**Change this to R if we start on the right side, comment out if we're on the far right or left side**/\n\t\t\t\t\trotateTo(270);\n\t\t\t\t\tif (timer.get()>3 && timer.get()<4) {\n\t\t\t\t\t\tmotorRB.set(-0.5);\n\t\t\t\t\t\tmotorRF.set(-0.5);\n\t\t\t\t\t\tmotorLB.set(0.5);\n\t\t\t\t\t\tmotorLF.set(0.5);\n\t\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmotorRB.set(0);\n\t\t\t\t\t\tmotorRF.set(0);\n\t\t\t\t\t\tmotorLB.set(0);\n\t\t\t\t\t\tmotorLF.set(0);\n\t\t\t\t\t}\n\t\t\t\t\tif(timer.get()< 4) {\n\t\t\t\t\t\tmotorLift.set(.25);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmotorLift.set(0);\n\t\t\t\t\t}\n\t\t\t\t\tif (timer.get() < 7 && timer.get() > 4) {\n\t\t\t\t\t\tmotorGL.set(1);\n\t\t\t\t\t\tmotorGR.set(-1);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmotorGL.set(0);\n\t\t\t\t\t\tmotorGR.set(0);\n\t\t\t\t\t}\n\t\t\t\t\tautoStep++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t//Default Code\n\t\t\tif (true) {\n\t\t\t\tif(autoStep==0) {\n\t\t\t\t\tif (timer.get() < 3) {\n\t\t\t\t\t\tmotorRB.set(-0.5);\n\t\t\t\t\t\tmotorRF.set(-0.5);\n\t\t\t\t\t\tmotorLB.set(0.5);\n\t\t\t\t\t\tmotorLF.set(0.5);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmotorRB.set(0);\n\t\t\t\t\t\tmotorRF.set(0);\n\t\t\t\t\t\tmotorLB.set(0);\n\t\t\t\t\t\tmotorLF.set(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void brake(){\n if (speed <= 0){\n speed = 0;\n }\n else{\n speed -= 5;\n }\n }", "public void forward(double power, double distance) {\n\n int ticks = (int) (((distance / (4 * Math.PI) * 1120)) * 4 / 3 + 0.5);\n\n //Reset Encoders358\n// fL.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n// bL.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n// fR.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n// bR.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n //Set to RUN_TO_POSITION mode\n fL.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n bL.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n fR.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n bR.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n //Set Target Position\n fL.setTargetPosition(fL.getCurrentPosition() + ticks);\n bL.setTargetPosition(bL.getCurrentPosition() + ticks);\n fR.setTargetPosition(fR.getCurrentPosition() + ticks);\n bR.setTargetPosition(bR.getCurrentPosition() + ticks);\n\n //Set Drive Power\n fL.setPower(power);\n bL.setPower(power);\n fR.setPower(power);\n bR.setPower(power);\n\n while (fL.isBusy() && fR.isBusy() && bL.isBusy() && bR.isBusy()) {\n //Wait Until Target Position is Reached\n }\n\n //Stop and Change Mode back to Normal\n fL.setPower(0);\n bL.setPower(0);\n fR.setPower(0);\n bR.setPower(0);\n }", "public void setSpeed(double multiplier);", "public void faster()\n {\n if(speed < 9){\n speed += 1;\n }\n }", "public void setMotors(final double speed, double spinnerSafetySpeedMod) {\n\n spinnerMotorCan.set(ControlMode.PercentOutput, speed);\n\n /// DEBUG CODE ///\n\n if (RobotMap.driveDebug) {\n System.out.println(\"Spinner Speed : \" + speed);\n }\n }", "public void setSpeed(int speed) {\n\t\tthis.speed = speed;\n\t}", "public void setSpeed(int speed) {\n\t\tthis.speed = speed;\n\t}", "public void setSpeed(int speed) {\n\t\tthis.speed = speed;\n\t}", "public void execute(){\n drivetrain.tankDrive(0.6 * direction, 0.6 * direction);\n // slower than full speed so that we actually bring down the bridge,\n // not just slam it and push balls the wrong way\n }", "void setNormalSpeed () {\n if (stepDelay == normalSpeed)\n return;\n stepDelay = normalSpeed;\n resetLoop();\n }", "public void setSpeed(float val) {speed = val;}", "public void action() {\r\n\t\tsuppressed = false;\r\n\t\tMotor.B.stop();\r\n\t\tMotor.C.stop();\r\n\t\tDelay.msDelay(1000);\r\n\t\tMotor.B.setSpeed(180);\r\n\t\tMotor.C.setSpeed(180);\r\n\t\tMotor.B.forward();\r\n\t\tMotor.C.forward();\r\n\t\tif((light.getLightValue()>46 && light.getLightValue()<49) || (light.getLightValue()>27 && light.getLightValue()<31)){\r\n\t\t\tMotor.B.stop();\r\n\t\t\tMotor.C.stop();\r\n\t\t\tDelay.msDelay(500);\r\n\t\t\tMotor.B.forward();\r\n\t\t\tMotor.C.forward();\r\n\t\t\tif(light.getLightValue()>44 && light.getLightValue()<45){//home base\r\n\t\t\t\tMotor.B.stop();\r\n\t\t\t\tMotor.C.stop();\r\n\t\t\t}\r\n\t\t}\r\n\t\twhile(!suppressed){\r\n\t\t\tThread.yield();\r\n\t\t}\r\n\t}", "public void setSpeed(long speed) {\n\t\tmSpeed = speed;\n\t}", "@Override\n protected void execute() {\n //Activate both lifters, throttled by height\n if (Robot.myLifter.getLeftEncoder() > 75) {\n Robot.myLifter.setLeftSpeed(-0.3);\n Robot.myLifter.setRightSpeed(-0.3);\n } else {\n Robot.myLifter.setLeftSpeed(-0.5);\n Robot.myLifter.setRightSpeed(-0.5);\n }\n \n }", "@Override\n public void loop() { //Starts this loop after you press the START Button\n /**\n * Functional control of up down lift with no limit switches Meet 0 ready\n */\n double liftposition = robot.liftUpDown.getCurrentPosition();\n double liftrotposition = robot.liftRotate.getCurrentPosition();\n telemetry.addData(\"Lift Position\",\"%5.2f\",liftposition);\n telemetry.addData(\"LiftRot Position\", \"%5.2f\", liftrotposition);\n // telemetry.addData(\"Block Stack\", BlockStack);\n telemetry.update();\n\n/**Main drive controls\n * Driver 1\n */\n\n/**\n * Drag servos\n */\n if (gamepad1.a){ //release\n robot.drag1.setPosition(0);\n robot.drag2.setPosition(1);\n } else if (gamepad1.b){//grab\n robot.drag1.setPosition(1);\n robot.drag2.setPosition(0);\n }\n\n/**Mast and Lift controls\n *\n *\n * Driver Two\n *\n *\n*/\n\n/**\n * Need controls to\n * Maybe predetermined locations based on number of pushes of a button.\n */\n\n /**\n * Functional arm rotation with limit switches and encoder limits. Meet 2 ready\n */\n\n //Twists lift up after verifying that rotate up limit switch is not engaged and that step count is less than 5400\n if ( gamepad2.dpad_up && robot.rotateup.getState() == true){\n robot.liftRotate.setPower(1.0);\n }\n else if (gamepad2.dpad_down && robot.rotatedown.getState() == true){ //Twists lift down\n robot.liftRotate.setPower(-1.0);\n }\n //required or lift rotate motor continues to run in last direction (breaks the motor shaft)\n else robot.liftRotate.setPower(0);\n\n /**\n * claw controls a= open b= close\n * FUNCTIONAL Meet 2 ready\n */\n if (gamepad2.a){\n robot.claw1.setPosition(0);\n robot.claw2.setPosition(1);\n } else if (gamepad2.b){\n robot.claw1.setPosition(1);\n robot.claw2.setPosition(0);\n }\n\n /**\n * Lift controls with limit switches and encoder position Meet 2 ready\n * right_trigger = lift\n * left_trigger = down\n */\n\n if ( gamepad2.right_trigger>= 0.2 && robot.liftup.getState()) {\n triggerpress=true;\n robot.liftUpDown.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.liftUpDown.setPower(.9);\n robot.liftRotate.setPower(.15);\n }\n if (gamepad2.left_trigger>=0.2){\n triggerpress=true;\n robot.liftUpDown.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.liftUpDown.setPower(-0.9);\n robot.liftRotate.setPower(-0.15);\n }\n if (gamepad2.left_trigger<.2 && gamepad2.right_trigger<.2 && triggerpress ){\n robot.liftUpDown.setPower(0);\n robot.liftRotate.setPower(0);\n triggerpress=false;\n }\n\n int x;\n int y;\n double motorDelayTime;\n //Necessary Debounce to keep bumper from being seen as multiple touches\n/* motorDelayTime=.1;\n if (robot.liftUpDown.getCurrentPosition()<50){\n BlockStack =0;\n }\n //skips servos unless runtime is greater than 20 ms.\n if( runtime.time() > motorDelayTime ) {\n //Need to move 5.5 inches on position 2, subsequent blocks will only need to move up 4 inches.\n x = robot.liftUpDown.getCurrentPosition();\n y= robot.liftRotate.getCurrentPosition();\n if (gamepad2.right_bumper ) {\n\n BlockStack= BlockStack + 1;\n robot.liftUpDown.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.liftUpDown.setTargetPosition(x + robot.floorheight);\n robot.liftUpDown.setPower(.9);\n robot.liftRotate.setTargetPosition(y + robot.floorheightrotate);\n robot.liftRotate.setPower(.1);\n bumperpress=true;\n\n //don't want to drive the cable too far loose checks that we can move a full block down\n } else if (gamepad2.left_bumper && x >= robot.floorheight ) {\n BlockStack= BlockStack - 1;\n robot.liftUpDown.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.liftUpDown.setTargetPosition(x - robot.floorheight);\n robot.liftUpDown.setPower(-.5);\n}\n\n runtime.reset();\n robot.liftUpDown.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }*/\n\n /**\n * Limit switch tests that reset the encoders Meet 1 ready\n * * liftdown also allows the X button to work\n * * rotatedown also allows the Y button to work\n */\n\n if (robot.rotatedown.getState() == false) {\n robot.liftRotate.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.liftRotate.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }\n }", "@Override\n\t\tpublic void run() {\n\t\t\twhile(true)\n\t\t\t{\n\t\t\t\t\t\t\t\t\n\t\t\t\tswitch(this.direct)\n\t\t\t\t{\n\t\t\t\tcase 0:\n\t\t\t\t\t//说明坦克正在向上移动,坦克在一个方向上走30\n\t\t\t\t\t//再换方向\n\t\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(y>0&&!this.isTouchOtherEnemy())\n\t\t\t\t\t\t{\n\t\t\t\t\t y-=speed;\n\t\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(50);\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\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(x<360&&!this.isTouchOtherEnemy())\n\t\t\t\t\t\t{\n\t\t\t\t x+=speed;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t break;\n\t\t\t\tcase 2:\n\t\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(y<235&&!this.isTouchOtherEnemy())\n\t\t\t\t\t\t{\n\t\t\t\t\t y+=speed;\n\t\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(50);\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\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(x>0&&!this.isTouchOtherEnemy())\n\t\t\t\t\t\t{\n\t\t\t\t\t x-=speed;\n\t\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(50);\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\tbreak;\n\t\t\t\t}\n\t\t\t\t//让敌人的额坦克可以连续打子弹\n\t\t\t\tthis.times++;\n\t\t\t\tif(times%2==0)\n\t\t\t\t{\n\t\t\t\t\tif(isLive)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(hcShoot.size()<5)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t Shoot s=null;\n\t\t\t\t\t\t //没有子弹,添加\n\t\t\t\t\t\t\t\t\t\tswitch(direct)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\t\t\t\ts=new Shoot(x+10,y,0);\n\t\t\t\t\t\t\t\t\t\t\thcShoot.add(s);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t\t\t\ts=new Shoot(x+30,y+10,1);\n\t\t\t\t\t\t\t\t\t\t\thcShoot.add(s);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t\t\t\ts=new Shoot(x+10,y+30,2);\n\t\t\t\t\t\t\t\t\t\t\thcShoot.add(s);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\t\t\t\ts=new Shoot(x,y+10,3);\n\t\t\t\t\t\t\t\t\t\t\thcShoot.add(s);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\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\t\t\tThread t=new Thread(s);\n\t\t\t\t\t\t\t\t\t\tt.start();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t//让坦克随机产生一个新的方向\n\t\t\t\tthis.direct=(int)(Math.random()*4);\n\t\t\t\t//判断敌人的坦克是否死亡\n\t\t\t\tif(this.isLive==false)\n\t\t\t\t{ \n\t\t\t\t\t//敌人的坦克死亡后退出线程\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t}", "public void drive(double speed, double scaler, double deadzone){\n front.set((speed*scaler));\n rear.set((speed*scaler));\n }", "protected void execute() {\n \tif(Robot.robotState != Robot.RobotState.Climbing)\n \t\tRobot.shooter.speed(speed);\n }", "public void run ()\n\t{\n\t\tif (ballDetected())\n\t\t{\n\t\t\t//findColor();\n\t\t\t\n\t\t\tmainMotorSetSpeeds(normalSpeed,normalSpeed);\n\t\t\tmainLeftMotor.rotate(-30,true); //CHANGE VALUE SO THAT IT ROTATES TO MIDWAY ACCROSS THE BALL\n\t\t\tmainRightMotor.rotate(-30,false);\n\t\t\t\n\t\t\t//turn and move forward to grab the ball\n\t\t\tmainLeftMotor.rotate(-90,true);\n\t\t\tmainRightMotor.rotate(90,false);\n\t\t\tmainLeftMotor.rotate(360, true);\n\t\t\tmainRightMotor.rotate(360,false);\n\t\t\t\n\t\t\t//V2.0 for BallGrab_V2.0\n\t\t\tmotorSetSpeeds(loweringSpeed,loweringSpeed);\n\t\t\tleftMotor.rotate(110,true);\n\t\t\trightMotor.rotate(110,false);\n\n\t\t\t//V1.0 for BallGrab_V1.0\n\t\t\tgrabMotor.setSpeed(speed);\n\t\t\tgrabMotor.rotate(50);\n\t\t\tgrabMotor.rotate(-45);\n\t\t\tgrabMotor.rotate(45);\n\t\t\t\n\t\t\t//hold the ball at a rather vertical angle\n\t\t\tmotorSetSpeeds(holdingSpeed,holdingSpeed);\n\t\t\tleftMotor.rotate(-11,true);\n\t\t\trightMotor.rotate(-110,false);\n\t\t\t\n\t\t}\n\t\t\n\t\t//use navigation class to navigate to the designated area, then shoot \n\t\t\n\t\t//V2.0 for BallGrab_V2.0\n/*\t\tleftMotor.setAcceleration(acceleration);\n\t\trightMotor.setAcceleration(acceleration);\n\t\tleftMotor.setSpeed(forwardSpeed);\n\t\trightMotor.setSpeed(forwardSpeed);*/\n\t\tgrabMotor.rotate(-10);\n\t}", "public void setClimbMotors(double percentPower) {\n\t\t// If running climb motor, turn off compressor to reduce brownout likelihood\n\t\tcompressor.setClosedLoopControl(percentPower==0);\t\t\n\n\t\tclimbMotor2.set(ControlMode.PercentOutput, percentPower);\n\t\tRobot.log.writeLogEcho(\"Climb motor,percent power,\" + percentPower);\n\t}", "protected void setMotorSpeeds(int lSpeed, int rSpeed) {\n setLeftMotorSpeed(lSpeed);\n setRightMotorSpeed(rSpeed);\n }", "public void setSpeed() {\n //assigns the speed based on the shuffleboard with a default value of zero\n double tempSpeed = setpoint.getDouble(0.0);\n\n //runs the proportional control system based on the aquired speed\n controlRotator.proportionalSpeedSetter(tempSpeed);\n }" ]
[ "0.6702484", "0.6365792", "0.60322285", "0.5974879", "0.5966735", "0.5949963", "0.5932979", "0.59301466", "0.5916132", "0.5902377", "0.5883019", "0.5865052", "0.58429974", "0.58363694", "0.58345", "0.58328146", "0.5830134", "0.58290774", "0.5814236", "0.5807253", "0.5793586", "0.5767145", "0.57303125", "0.57234466", "0.5722704", "0.5721885", "0.5719298", "0.5715239", "0.56930715", "0.5688191", "0.56771046", "0.56702197", "0.5659572", "0.56586266", "0.56501955", "0.56501955", "0.5630838", "0.56274617", "0.56199163", "0.5617148", "0.56106305", "0.5604242", "0.5597969", "0.55922425", "0.5587784", "0.55871785", "0.5584081", "0.55787325", "0.55764556", "0.55744946", "0.55732036", "0.55717826", "0.5565483", "0.5547935", "0.5545564", "0.5541193", "0.55380434", "0.553755", "0.5535184", "0.5532413", "0.55231446", "0.5519484", "0.5519439", "0.55147725", "0.55045587", "0.55039346", "0.55039346", "0.55014473", "0.549391", "0.5488399", "0.5483967", "0.54838365", "0.5483771", "0.5471639", "0.54689056", "0.5467394", "0.54670465", "0.5465833", "0.5463067", "0.54587", "0.54495674", "0.54446167", "0.5444476", "0.54403734", "0.54403734", "0.54403734", "0.54366297", "0.5434377", "0.5427743", "0.5416903", "0.54014975", "0.53914636", "0.5390684", "0.53875273", "0.53854007", "0.53828865", "0.5382206", "0.5380164", "0.537763", "0.537418" ]
0.73578393
0
Stops the climber ladder motors
public void stop() { climberMotors.stopMotor(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop() {\n\t\tmotor1.set( Constants.CLAW_MOTOR_STOPPED );\n\t\t}", "public void stopMotors(){\n\t\tsynchStop(MMXCOMMAND_BRAKE);\n\t}", "public void stopMotors() {\n\t\tRobotMap.frontLeft.set(0);\n\t\tRobotMap.backLeft.set(0);\n\t\tRobotMap.frontRight.set(0);\n\t\tRobotMap.backRight.set(0);\n\t}", "public void stop() {\n\t\tsetPower(Motor.STOP);\r\n\t}", "public void stop(){\n started = false;\n for (DcMotor motor :this.motors) {\n motor.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n motor.setPower(0);\n }\n this.reset();\n }", "public void stopRobot(){\n LAM.setPower(0);\n RAM.setPower(0);\n ILM.setPower(0);\n IRM.setPower(0);\n BLM.setPower(0);\n BRM.setPower(0);\n FLM.setPower(0);\n FRM.setPower(0);\n }", "private void stopMotors() {\n pidDrive.disable();\n pidRotate.disable();\n robot.rightDrive.setPower(0);\n robot.leftDrive.setPower(0);\n }", "public void stop()\n {\n mLeftMaster.stopMotor();\n mRightMaster.stopMotor();\n }", "public void stop()\n {\n robot.FL_drive.setPower(0);\n robot.FR_drive.setPower(0);\n robot.BL_drive.setPower(0);\n robot.BR_drive.setPower(0);\n }", "void driveStop() {\n flMotor.setPower(0);\n frMotor.setPower(0);\n blMotor.setPower(0);\n brMotor.setPower(0);\n }", "public void stop() {}", "@Override\n public void stop() {\n\n leftDrive.setPower(0);\n rightDrive.setPower(0);\n armMotor.setPower(0);\n // extendingArm.setPower(0);\n\n telemetry.addData(\"Status\", \"Terminated Interative TeleOp Mode\");\n telemetry.update();\n\n\n }", "public static void stopAllMotors() {\r\n\t\tleftMotorReg.stop(true);\r\n\t\trightMotorReg.stop(true);\r\n\t\tarmMotor1Reg.stop(true);\r\n\t\tarmMotor2Reg.stop(true);\r\n\t}", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "@Override\n public final void stopMotor() {\n stop();\n }", "public void stop() {\n intake(0.0);\n }", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void robotStop();", "public void stop() {\n\t\tif (getMainMotor() != null) {\n\t\t\tgetMainMotor().stop(0);\n\t\t}\n\t}", "public void stop()\r\n {\r\n breakoutAnimator = null;\r\n }", "void stop() {\n this.currentDirection = 0;\n this.currentVelocity = 0;\n }", "public void stop() {\n\t\tthis.stopper = true;\n\t}", "public void completeStop(){\n motorFrontLeft.setPower(0);\n motorFrontRight.setPower(0);\n motorBackLeft.setPower(0);\n motorBackRight.setPower(0);\n }", "public void stopping();", "public void stop() {\n\t\t\n\t}", "@Override\n public void stop() {\n smDrive.stop();\n smArm.stop();\n }", "public void stop() {\n\t\tdrive.tankDrive(0, 0);\n\t}", "public void stop(){\n\t\t\n\t}", "public static void stopLaser()\n\t{\n\t\tlaserContinuous.stop();\n\t\tlaserRunning = false;\n\t}", "@SimpleFunction(description = \"Stop the drive motors of the robot.\")\n public void Stop() {\n String functionName = \"Stop\";\n if (!checkBluetooth(functionName)) {\n return;\n }\n\n for (NxtMotorPort port : driveMotorPorts) {\n setOutputState(functionName, port, 0,\n NxtMotorMode.Brake, NxtRegulationMode.Disabled, 0, NxtRunState.Disabled, 0);\n }\n }", "public void stopWheel()\n {\n setVectorTarget(Vector2D.ZERO);\n\n turnMotor.setPosition(0.5);\n\n if (driveMotor != null)\n driveMotor.setVelocity(0);\n }", "public void stop()\n\t{\n\t\tupdateState( MotorPort.STOP);\n\t}", "public void stop() {\n elevator1.set(0);\n elevator2.set(0); \n \n }", "public void stop() {\n setClosedLoopControl(false);\n }", "public void stop() {\n\t\tthis.velocity = 0.0;\n\t}", "public void stop() {\n }", "public void stop() {\n }", "public void stop() {\n\t}", "@Override\n public void stop() {\n leftFrontDrive.setPower(0.0);\n rightFrontDrive.setPower(0.0);\n leftRearDrive.setPower(0.0);\n rightRearDrive.setPower(0.0);\n\n // Disable Tracking when we are done;\n targetsUltimateGoal.deactivate();\n\n //closes object detection to save system resouces\n if (tfod != null) {\n tfod.shutdown();\n }\n }", "public void stop()\n\t{\n\t\tfrogVelocityX = 0;\n\t}", "public void stop()\n {\n }", "public void stop()\n {\n mover.stop();\n }", "public static void stop(){\n printStatic(\"Stopped vehicle\");\n }", "private void stop_meter() {\n\t\t\t mEngin.stop_engine();\n\t\t\t\n\t\t}", "void stop() {\n }", "public boolean stop();", "public void stop() {\n stop = true;\n }", "public void stop() {\n m_servo.setSpeed(0.0);\n }", "@Override\n public void end(boolean interrupted) {\n // stop the motors\n drive.stop();\n limelight.enableDriverMode();\n limelight.disableLEDs();\n Robot.getRobotContainer().getSwerveController().setRumble(RumbleType.kLeftRumble, 0.0);\n\n }", "@Override\n\tpublic void stop() {\n\t\tsetAccelerate(false);\n\t}", "public void stop(){\n }", "public void stopMovement() {\n this.movementComposer.stopMovement();\n }", "public void stopDrive() {\n\t\tdifferentialDrive.stopMotor();\n\t}", "@Override\n public void stop()\n {\n final String funcName = \"stop\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n if (playing)\n {\n analogOut.setAnalogOutputMode((byte) 0);\n analogOut.setAnalogOutputFrequency(0);\n analogOut.setAnalogOutputVoltage(0);\n playing = false;\n expiredTime = 0.0;\n setTaskEnabled(false);\n }\n }", "void stopAll();", "public void stopTurning() {\r\n turningPID.disable();\r\n tankDrive(0, 0);\r\n }", "public void stopped();", "public synchronized void stop() {\n stopping = true;\n }", "public void stop()\n\t{\n\t\tindex = 0;\n\t\tlastUpdate = -1;\n\t\tpause();\n\t}", "public void stop(){\n stop = true;\n }", "public abstract void stop();", "public abstract void stop();", "public abstract void stop();", "public abstract void stop();", "public abstract void stop();", "public void stop() {\n System.out.println(\"stop\");\n }", "abstract public void stop();", "protected void end() {\n \tdrivemotors.stop();\n }", "public void stop () {\n driveRaw (0);\n }", "public void stop() {\r\n _keepGoing = false;\r\n }" ]
[ "0.7932937", "0.77695197", "0.75260216", "0.74097496", "0.73656684", "0.7354037", "0.7328937", "0.7231766", "0.7199386", "0.71789265", "0.7178612", "0.70684844", "0.7045263", "0.7040989", "0.7040989", "0.7040989", "0.7040989", "0.7040989", "0.7040989", "0.7040989", "0.7040989", "0.7040989", "0.7040989", "0.7040989", "0.7040989", "0.7040989", "0.7040989", "0.7040989", "0.704005", "0.7027023", "0.7024015", "0.7024015", "0.7024015", "0.7024015", "0.7024015", "0.7024015", "0.7024015", "0.7024015", "0.7024015", "0.7024015", "0.7024015", "0.7024015", "0.7024015", "0.7024015", "0.7024015", "0.7024015", "0.7024015", "0.7014013", "0.699664", "0.698829", "0.69822", "0.69802564", "0.6973426", "0.69405895", "0.6939595", "0.692266", "0.6904679", "0.68899053", "0.68897706", "0.68739563", "0.6871752", "0.6866881", "0.6852272", "0.6852189", "0.68351144", "0.6808045", "0.6808045", "0.6795921", "0.6794501", "0.6790339", "0.6753622", "0.6745316", "0.67278665", "0.67162776", "0.6713663", "0.67005956", "0.6694154", "0.66913116", "0.6653524", "0.6636338", "0.6626486", "0.6623199", "0.66225195", "0.66169816", "0.6614913", "0.66041875", "0.6601492", "0.65982306", "0.6597085", "0.65837765", "0.6582865", "0.6582865", "0.6582865", "0.6582865", "0.6582865", "0.6582805", "0.6579056", "0.65718013", "0.6569391", "0.65681475" ]
0.8134192
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jFrame1 = new javax.swing.JFrame(); jPanel2 = new javax.swing.JPanel(); jPanel1 = new javax.swing.JPanel(); javax.swing.GroupLayout jFrame1Layout = new javax.swing.GroupLayout(jFrame1.getContentPane()); jFrame1.getContentPane().setLayout(jFrame1Layout); jFrame1Layout.setHorizontalGroup( jFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 400, Short.MAX_VALUE) ); jFrame1Layout.setVerticalGroup( jFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 300, Short.MAX_VALUE) ); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jPanel1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); jPanel1.setAlignmentX(1.5F); jPanel1.setAlignmentY(1.5F); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 0, Short.MAX_VALUE) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 694, Short.MAX_VALUE) ); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGap(1000, 1000, 1000) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public PatientUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Magasin() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public MusteriEkle() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public vpemesanan1() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\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.createParallelGroup(\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\t\tAlignment.LEADING)\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.addComponent(label22,\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\t\tGroupLayout.PREFERRED_SIZE,\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\t\tGroupLayout.DEFAULT_SIZE,\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\t\tGroupLayout.PREFERRED_SIZE)\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.addGroup(\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\t\tlayout.createSequentialGroup()\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\t\t\t\t.addGap(3)\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\t\t\t\t.addComponent(\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\t\t\t\t\t\tlabel23,\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\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\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\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\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\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.7321342", "0.7292121", "0.7292121", "0.7292121", "0.72863305", "0.7249828", "0.7213628", "0.7209084", "0.7197292", "0.71912086", "0.7185135", "0.7159969", "0.7148876", "0.70944786", "0.70817256", "0.7057678", "0.69884527", "0.69786763", "0.69555986", "0.69548863", "0.69453996", "0.69434965", "0.69369817", "0.6933186", "0.6929363", "0.69259083", "0.69255763", "0.69123995", "0.6911665", "0.6894565", "0.6894252", "0.68922615", "0.6891513", "0.68894076", "0.6884006", "0.68833494", "0.6882281", "0.6879356", "0.68761575", "0.68752", "0.6872568", "0.68604666", "0.68577915", "0.6856901", "0.68561065", "0.6854837", "0.68547136", "0.6853745", "0.6853745", "0.68442935", "0.6838013", "0.6837", "0.6830046", "0.68297213", "0.68273175", "0.682496", "0.6822801", "0.6818054", "0.68177056", "0.6812038", "0.68098444", "0.68094784", "0.6809155", "0.680804", "0.68033874", "0.6795021", "0.67937285", "0.6793539", "0.6791893", "0.6790516", "0.6789873", "0.67883795", "0.67833847", "0.6766774", "0.6766581", "0.67658913", "0.67575616", "0.67566", "0.6754101", "0.6751978", "0.6741716", "0.6740939", "0.6738424", "0.6737342", "0.6734709", "0.672855", "0.6728138", "0.6721558", "0.6716595", "0.6716134", "0.6715878", "0.67096144", "0.67083293", "0.6703436", "0.6703149", "0.6701421", "0.67001027", "0.66999036", "0.66951054", "0.66923416", "0.6690235" ]
0.0
-1
End of variables declaration//GENEND:variables
public static void main(String[] args) { SalaryTable frame = new SalaryTable(); frame.setDefaultCloseOperation( EXIT_ON_CLOSE ); frame.pack(); frame.setVisible(true); //frame.setLocation(350, 150); frame.setMinimumSize(new Dimension(1000, 6200)); frame.setSize(1200,720); frame.setPreferredSize(new Dimension(1000, 6200)); JPanel panel = new JPanel(); panel.setPreferredSize(new Dimension(1000, 6200)); frame.add(panel); frame.pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo21779D() {\n }", "public final void mo51373a() {\n }", "protected boolean func_70041_e_() { return false; }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "private void m50366E() {\n }", "public void mo12930a() {\n }", "public void mo115190b() {\n }", "public void method_4270() {}", "public void mo1403c() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "public void mo21793R() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo21787L() {\n }", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo21780E() {\n }", "public void mo21792Q() {\n }", "public void mo21791P() {\n }", "public void mo12628c() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo97908d() {\n }", "public void mo21878t() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "public void mo23813b() {\n }", "public void mo3370l() {\n }", "public void mo21879u() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21785J() {\n }", "public void mo21795T() {\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 }", "public void mo55254a() {\n }", "public void m23075a() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21794S() {\n }", "public final void mo12688e_() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo6944a() {\n }", "public static void listing5_14() {\n }", "public void mo1405e() {\n }", "public final void mo91715d() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo9137b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void func_70295_k_() {}", "void mo57277b();", "public void mo21877s() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "void berechneFlaeche() {\n\t}", "public void mo115188a() {\n }", "public void mo21880v() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "private stendhal() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo56167c() {\n }", "public void mo44053a() {\n }", "public void mo21781F() {\n }", "public void mo2740a() {\n }", "public void mo21783H() {\n }", "public void mo1531a() {\n }", "double defendre();", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "public void stg() {\n\n\t}", "void m1864a() {\r\n }", "private void poetries() {\n\n\t}", "public void skystonePos4() {\n }", "public void mo2471e() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void yy() {\n\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "static void feladat4() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }", "public void furyo ()\t{\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "protected void mo6255a() {\n }" ]
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.58814824", "0.5854075", "0.5851759", "0.58514243", "0.58418584", "0.58395296", "0.5835063", "0.582234", "0.58090156", "0.5802706", "0.5793836", "0.57862717", "0.5784062", "0.5783567", "0.5782131", "0.57758564", "0.5762871", "0.5759349", "0.5745087", "0.57427835", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.57326084", "0.57301426", "0.57266665", "0.57229686", "0.57175463", "0.5705802", "0.5698347", "0.5697827", "0.569054", "0.5689405", "0.5686434", "0.56738997", "0.5662217", "0.56531453", "0.5645255", "0.5644223", "0.5642628", "0.5642476", "0.5640595", "0.56317437", "0.56294966", "0.56289655", "0.56220204", "0.56180173", "0.56134313", "0.5611337", "0.56112075", "0.56058615", "0.5604383", "0.5602629", "0.56002104", "0.5591573", "0.55856615", "0.5576992", "0.55707216", "0.5569681", "0.55570376", "0.55531484", "0.5551123", "0.5550893", "0.55482954", "0.5547471", "0.55469507", "0.5545719", "0.5543553", "0.55424106", "0.5542057", "0.55410767", "0.5537739", "0.55269134", "0.55236584", "0.55170715", "0.55035424", "0.55020875" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { doPost(req,resp);; }
{ "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
TODO Autogenerated method stub
@Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { req.setCharacterEncoding("UTF-8"); resp.setContentType("text/html;charset=UTF-8"); String option=req.getParameter("option"); if("1".equals(option)) { createOrder(req,resp); }else if("2".equals(option)) { findAll(req,resp); } else if("3".equals(option)){ finaALL2(req,resp); } }
{ "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
TODO Autogenerated method stub
@Override public EasyUIDataGridResult itemList(int pageNum, int pageSize) { PageHelper.startPage(pageNum, pageSize); List<TbItem>list=tbItemMapper.selectByExample(new TbItemExample()); PageInfo<TbItem> info=new PageInfo<TbItem>(list); EasyUIDataGridResult dataGridResult=new EasyUIDataGridResult(); dataGridResult.setRows(list); dataGridResult.setTotal((int)info.getTotal()); return dataGridResult; }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
These lines would not work. "name" was always initialized to the string "main" String name = Thread.currentThread().getName(); System.out.println(name);
public synchronized void run() { System.out.print(charToPrint); notifyAll(); try { Thread.sleep(500); } catch(InterruptedException ex) { Thread.currentThread().interrupt(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run(){\n String threadName = Thread.currentThread().getName();\n System.out.println(\"Hello \" + threadName);\n }", "public static void main(String[] args) {\n Thread thread = new Thread(\"New Thread\") {\n public void run(){\n System.out.println(\"run by: \" + getName());\n }\n };\n\n thread.start();\n System.out.println(thread.getName());\n\n }", "static void giveName() {\n System.out.println(name);\n }", "@Override\n public void run(){\n System.out.println(\"Running thread name: \"+Thread.currentThread().getName());\n }", "@Override\n public void run() {\n threadLocalTest.setName(Thread.currentThread().getName());\n System.out.println(Thread.currentThread().getName() + \":\" + threadLocalTest.getName());\n }", "public void run() \n {\n System.out.println(Thread.currentThread().getName().hashCode()); \n }", "public void setMainName (String name){\n this.name = name;\n }", "public static void main(String[] args) {\n\r\n System.out.println(Thread.currentThread().getName());\r\n System.out.println(Thread.currentThread().getId());\r\n\r\n MyFirstThread helloThread1 = new MyFirstThread();\r\n MyFirstThread helloThread2 = new MyFirstThread();\r\n helloThread1.start();\r\n helloThread2.start();\r\n\r\n\r\n }", "public static void main(String[] args) {\n\n System.out.println(name);\n\n }", "public static void main(String[] args) {\n Thread t = Thread.currentThread();\n\n // getting name of Main thread\n System.out.println(\"Current thread: \" + t.getName());\n\n // changing the name of Main thread\n t.setName(\"Geeks\");\n System.out.println(\"After name change: \" + t.getName());\n\n // getting priority of Main thread\n System.out.println(\"Main thread priority: \" + t.getPriority());\n\n // setting priority of Main thread to MAX(10)\n t.setPriority(MAX_PRIORITY);\n\n System.out.println(\"Main thread new priority: \" + t.getPriority());\n\n\n for (int i = 0; i < 5; i++) {\n System.out.println(\"Main thread\");\n }\n\n // Main thread creating a child thread\n ChildThread ct = new ChildThread();\n\n // getting priority of child thread\n // which will be inherited from Main thread\n // as it is created by Main thread\n System.out.println(\"Child thread priority: \" + ct.getPriority());\n\n // setting priority of Main thread to MIN(1)\n ct.setPriority(MIN_PRIORITY);\n\n System.out.println(\"Child thread new priority: \" + ct.getPriority());\n\n // starting child thread\n ct.start();\n }", "public static void main(String[] args) {\n Thread thread=new Thread(new MyRunnable(),\"firstThread\");\n thread.start();\n System.out.println(thread.getName());\n }", "public static void main(String[] args) {\n\t\tThread t1 = Thread.currentThread();\n\t\t\n\t\t// Get the thread group of the main thread \n\t\tThreadGroup tg1 = t1.getThreadGroup();\n\t\t\n\t\tSystem.out.println(\"Current thread's name: \" + t1.getName());\n\t\tSystem.out.println(\"Current thread's group name: \" + tg1.getName());\n\t\t\n\t\t// Creates a new thread. Its thread group is the same that of the main thread.\n\t\tThread t2 = new Thread(\"my new thread\");\n\n\t\tThreadGroup tg2 = t2.getThreadGroup();\n\t\tSystem.out.println(\"New thread's name: \" + t2.getName());\n\t\tSystem.out.println(\"New thread's group name: \" + tg2.getName());\n\t}", "public void run(){\n System.out.println(\"Thread class extends \" + getName());\n }", "public static void main(String[] args) throws InterruptedException {\n\t\tnew Thread() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tfor(int i = 0; i<10; i++) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(getName() + \" : aaaaa\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}.start();\r\n\t\t\r\n//\t\tnew thread\r\n\t\tnew Thread() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tfor(int i = 0; i<10; i++) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(getName() + \" : bbbbbbbb\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}.start();\r\n\r\n\t}", "public String getThreadName() {\n return null;\n }", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\" \"+Thread.currentThread().getName());\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"hi\");\n\t\tname n1 = new name();\n\t}", "@Override\n public void init() {\n System.out.println(\"init: \" + Thread.currentThread().getName());\n }", "public static void printName() {\n\t\t\n\t\tSystem.out.println(staName); \t// static only accepts static\n\t}", "public void setThreadName(String name) {\n threadName = name;\n }", "private static String m62902a(Thread thread) {\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"Thread: \");\n stringBuffer.append(thread.getName());\n return stringBuffer.toString();\n }", "public void setUp() {\n threadName = Thread.currentThread().getName();\n }", "public String call() {\n return Thread.currentThread().getName() + \" executing ...\";\n }", "public String toString()\n\t{\n\t\treturn threadName;\n\t}", "public synchronized void print(String name) {\n try {\n System.out.println(\"Thread \" + name + \".print(): Starting\" );\n Thread.sleep(3000);\n System.out.println(\"Thread \" + name + \".foo(): ending\");\n } catch (InterruptedException e) {\n e.printStackTrace();\n System.out.println(\"Thread \" + name + \": interrupted\");\n }\n\n }", "public void run() {\n\t\tSystem.out.println(Thread.currentThread().getName());\n\t}", "@Override\n\tpublic void name() {\n\t\tSystem.out.println(\"I am Master\");\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tSingleObject object = SingleObject.getInstance();\n \n\t\tobject.showMessage();\n\t\tString myname = \"ABC\".concat(\"str\").concat(\"str\");\n\t\tSystem.out.println(myname);\n\t\t\n\t}", "private static void println(String message) {// metodo imprimir\r\n\t\tString threadName = Thread.currentThread().getName();\r\n\t\tSystem.out.println(threadName + \": \" + message);\r\n\t}", "public static void main(String[] args) {\n\t\tWithoutThreadLocal safetask = new WithoutThreadLocal();\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tThread thread = new Thread(safetask);\n\t\t\tthread.start();\n\t\t\ttry {\n\t\t\t\tTimeUnit.SECONDS.sleep(2);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"This output is thread local\");\n\t\t//Thsi Code is with thread local cocept\n\t\tWithThreadLocal task = new WithThreadLocal();\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tThread thread = new Thread(task);\n\t\t\tthread.start();\n\t\t\ttry {\n\t\t\t\tTimeUnit.SECONDS.sleep(2);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t}", "public static void main(String[] args) {\n name = \"Izzat\";\n num = 200;\n\n System.out.println(name);\n System.out.println(num);\n\n }", "void start(String name);", "java.lang.String getInstanceName();", "public static void main(String[] args) {\n\t\n System.out.println(ANSI_Black+\"Hello from Main thread\");\n\tThread extendThread = new ThreadExtendsExample();\n\textendThread.setName(\"ThreadByExtends1~\");\n\textendThread.start();\n\t\n\t//java.lang.IllegalThreadStateException, same thread cannot be started again\n\t//extendThread.start();\n\tThread extendThread2 = new ThreadExtendsExample();\n\textendThread2.setName(\"ThreadByExtends2~\");\n\textendThread2.start();\n\t\n\t\n\t\n\tThreadImplExample implThread = new ThreadImplExample();\n\timplThread.run();\n\t\n\t\n\tThread runnableThread = new Thread(new ThreadImplExample());\n\trunnableThread.start();\n\t\n\t\n\t\n\tSystem.out.println(ANSI_Black+\"Hello Again from Main thread\");\n\t\n}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(Thread.currentThread().getName()+new Date().toLocaleString());\r\n\t\t\t}", "public static String getCurrentClassName(){\n\t\tString s2 = Thread.currentThread().getStackTrace()[2].getClassName();\n// System.out.println(\"s0=\"+s0+\" s1=\"+s1+\" s2=\"+s2);\n\t\t//s0=java.lang.Thread s1=g1.tool.Tool s2=g1.TRocketmq1Application\n\t\treturn s2;\n\t}", "public static void main(String[] args) {\nfinal String str=\"Hello\";//constant variables CANT BE change;\n// name=\"School\";\n\n\t}", "public static void main(String[] args) {\n JvmThread jvmThread = new JvmThread(123);\n JvmThread jvmThread1 = new JvmThread(456);\n jvmThread.start();\n jvmThread1.start();\n System.out.println(jvmThread);\n System.out.println(jvmThread1);\n }", "public void setMainName(String mainName) {\n this.mainName = mainName;\n }", "@Override\n // Thread creation\n // Run method from the Runnable class.\n public void run() {\n p.println(\"Current thread = \" + Thread.currentThread().getName());\n // Shows when a task is being executed concurrently with another thread,\n // then puts the thread to bed (I like saying that)\n try {\n p.println(\"Doing a task during : \" + name);\n Thread.currentThread().sleep(time);\n }\n // Exception for when a thread is interrupted.\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public static String getName() {\n\t\treturn ProjectMain._name;\n\t}", "public static void main(String[] args) {\n\t\tMyThread thread = new MyThread();\r\n\t\tthread.setName(\"MyThread\");\r\n\t\tThread t1 = new Thread(thread);\r\n\t\tSystem.out.println(\"begin=\" + System.currentTimeMillis());\r\n\t\tt1.setName(\"T1\");\r\n\t\tt1.start();\r\n\t\tSystem.out.println(\"end=\" + System.currentTimeMillis());\r\n\t}", "public String getMain() {\n\t\treturn main;\n\t}", "public void run() {\n\t\t\t\n\t\t\tccListenerStarter() ;\n\t\t\t\n\t\t\toutPrintStream.println(\"#GETNAME\");\n\t\t\t\n\t\t}", "public static void main(String[] args) {\n\t\tStudent s1 = new Student();\r\n\t\ts1.setName(\"Raj\");\r\n\t\tSystem.out.println(s1.getName());\r\n\t}", "public String showName(){\r\n\t\tSystem.out.println(\"This is a \" + name);\r\n\t\treturn name;}", "public String getThreadName() {\n return threadName;\n }", "public String getProgramName()\r\n \t{\r\n \t\treturn m_program.m_csSimpleName;\r\n \t}", "private void YeWuMethod(String name) {\n\n for (int j = 0; j < 10; j++) {\n\n\n// Runnable task = new RunnableTask();\n// Runnable ttlRunnable = TtlRunnable.get(task);\n\n// executor.execute(ttlRunnable);\n\n executor.execute(() -> {\n System.out.println(\"==========\"+name+\"===\"+threadLocal.get());\n });\n }\n\n// for (int i = 0; i < 10; i++) {\n// new Thread(() -> {\n// System.out.println(name+\"===\"+threadLocal.get());\n// }, \"input thread name\").start();\n// }\n\n\n\n\n }", "public static void main(String[] args) {\n Employee emp=new Employee();\n emp.start();\n Student stu=new Student();\n Thread t1=new Thread(stu);\n t1.start();\n\t}", "NewThread (String threadname) {\r\n name = threadname;\r\n t = new Thread(this, name); // Constructor de un nuevo thread\r\n System.out.println(\"Nuevo hilo: \" +t);\r\n t.start(); // Aquí comienza el hilo\r\n }", "public void simpleMessage(String name) {\r\n\t\tSystem.out.println(\"\");\r\n\t\t// Tells system to print out 'Hello' (name var value) '!' Ex: Hello Owen!\r\n\t\tSystem.out.println(\"Hello \" + name + \"!\");\r\n\t}", "String process_name () throws BaseException;", "@Override\n\tpublic void run() {\n\t\tfor(int i = 0 ; i < 5; i++) {\n\t\t\tSystem.out.println(getName());\n\t\t\t//currentThread(); //Thread 객체 참조를 리턴\n\t\t\t\n\t\t}\n\t}", "public static void main(String args[]) {\n\t\t (new Thread(new Threads_and_Executors())).start();\r\n}", "public static void main(String[] args) {\n\t\t\n\t\tString str = \"Dilmurod\";\n\t\tSystem.out.print(\"Before method call: \");\n\t\tSystem.out.println(str);\n\t\t\n\t\tchangeName(str);\n\t\t\n\t\tSystem.out.print(\"After method call: \");\n\t\tSystem.out.println(str);\n\n\n\t}", "public static void main(String[] args) {\n\t\tMyThread mt = new MyThread();\n\t\t// We can assign a name\n\t\tmt.setName(\"Thread 1\");\n\t\tmt.start();\n\t\t\n\t\tMyThreads2 mt2 = new MyThreads2();\n\t\tThread t = new Thread(mt2);\n\t\t\n\t\t//New Thread\n\t\tThread t2 = new Thread(mt2);\n\t\tThread t3 = new Thread(mt2); \n\t\tt.setName(\"Thread 2\");\n\t\tt2.setName(\"Thread 3\");\n\t\tt3.setName(\"Thread 4\");\n\t\tt.start();\n\t\tt2.start();\n\t\tt3.start();\n\t\t\n\t}", "@Override\n\tpublic String getExecutingProgramName() throws RemoteException {\n\t return null;\n\t}", "public static void main(){\n\t}", "public static void main(String[] args) {\n\n\t\tPersonalInfo obj1=new PersonalInfo();\n\t\tobj1.getName();\n\t\t\n\t}", "private void msg(String name, String message) {\n System.out.println(\"[\" + (System.currentTimeMillis() - system_start_time) + \"] \" + name + \": \" + message);\n }", "private Main() {}", "public static void enterName(String name) {\n System.out.println(\"Name enter is \" + name);\n }", "public static void main() {\n \n }", "public static void main(String[] args) {\n\n\t\tString firstName=\"Bob\";\n\t String lastName=\"Jones\";\n\t \n\t System.out.println(\"Bob\");\n\t System.out.println(lastName);\n\t}", "public static void main(String[] args) {\n System.out.print(\"What is your name? \");\n Scanner input = new Scanner(System.in);\n String name = input.nextLine();\n String greeting = \"Hello, \" + name + \", nice to meet you!\";\n System.out.println(greeting);\n }", "static void threadMessage(String message) {\r\n\t\tString threadName = Thread.currentThread().getName();\r\n\t\tSystem.out.format(\"%s: %s%n\", threadName, message);\r\n\t}", "@Override\n public void run(){\n System.out.println(\"we are in thread : \" + this.getName());\n }", "public void run() {\n for( ; ; ) {\r\n System.out.println(\"Hello \" + name);\r\n }\r\n }", "public static void main(String[] args) {\n new Main();\n }", "public static void main(String args[]) {\n System.out.println(\"my name is lishuaishuai\");\n }", "public Main() {}", "public static void main() {\n }", "void greet(String name) {\n\t\tSystem.out.println(\"Hello \"+name);\n\t}", "public void main(){\n }", "public static void main(String[] args){\n\n String clazz = Thread.currentThread().getStackTrace()[1].getClassName();\n String methodName = Thread.currentThread().getStackTrace()[1].getMethodName();\n int lineNumber = Thread.currentThread().getStackTrace()[1].getLineNumber();\n System.out.println(\"class:\"+ clazz+\",method:\"+methodName+\",lineNum:\"+lineNumber);\n\n System.out.println(LogBox.getInstance().getClassName());\n System.out.println(LogBox.getRuntimeClassName());\n System.out.println(LogBox.getRuntimeMethodName());\n System.out.println(LogBox.getRuntimeLineNumber());\n System.out.println();\n System.out.println(LogBox.getTraceInfo());\n }", "public static void main(String[] args) {\n NameGenerator n = new NameGenerator(true);\n // System.out.println(\"Random Names:\");\n // for (int i = 0; i < 10; i++) {\n // System.out.println(n.newName());\n // }\n // System.out.println();\n // System.out.println(\"Planet Names:\");\n // for (int i = 0; i < 10; i++) {\n // System.out.println(n.newPlanetName());\n // }\n for (int i = 0; i < 10; i++) {\n System.out.println();\n String system = n.newName();\n System.out.printf(\"System: %s, Planets:%n\", system);\n for (String p: n.planetNames(5, system)) {\n System.out.println(p);\n }\n }\n // System.out.println();\n // System.out.println(\"Human Names:\");\n // for (int i = 0; i < 10; i++) {\n // System.out.println(n.newHumanName());\n // }\n\n }", "public void setName(String name) {\n this.name = name; // assigning a local variable value to a global variable\r\n }", "public void showNAME() {\r\n\t\tSystem.out.println(getName().toUpperCase());\r\n\t}", "public static void main(String[] str) throws InterruptedException {\n CounterReEntered counter = new CounterReEntered();\r\n Runnable r1 = new Runnable() {\r\n @Override\r\n public void run() {\r\n try {\r\n counter.increment();\r\n System.out.println(\"thread name: \" + Thread.currentThread().getName());\r\n Thread.sleep(2000);\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(LockDemo.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n };\r\n\r\n Thread t1 = new Thread(r1, \"A\");\r\n Thread t2 = new Thread(r1, \"B\");\r\n Thread t3 = new Thread(r1, \"C\");\r\n Thread t4 = new Thread(r1, \"D\");\r\n t1.start();\r\n t2.start();\r\n t3.start();\r\n t4.start();\r\n }", "protected String getName() {\n\t\tfinal String tmpName = getClass().getSimpleName();\n\t\tif (tmpName.length() == 0) {\n\t\t\t// anonymous class\n\t\t\treturn \"???\";//createAlgorithm(replanningContext).getClass().getSimpleName();\n\t\t}\n\n\t\treturn tmpName;\n\t}", "public static void main(String[] args) {\n\t\tCats c = new Cats(\"cats\");\n\t\tc.bark();\n\t\tString c_name=c.getName();\n\t\tSystem.out.println(c_name);\n\t\t\n\t}", "public static void main(String args[ ]){\r\nMythread rt = new Mythread(); /* main thread created the runnable object*/\r\nThread t = new Thread(rt); /*main thread creates child thread and passed the runnable object*/\r\nt.start();\r\nfor(int i=0; i<10; i++){\r\nSystem.out.println(\"Main Thread\");\r\n}\r\n}", "public static void main()\n\t{\n\t}", "public static void main(String[] args) {\nSystem.out.println(\"string main\");\r\n\t}", "public static void main(String[] args) {\n Reasoning newReasoning = new Reasoning();\n newReasoning.start();\n TeamTC1 teamTC1 = new TeamTC1();\n Thread myTeam = new Thread(teamTC1);\n myTeam.setName(\"team v8\");\n myTeam.start();\n }", "public static String name () {\n return \"Random Walk by Ryan Stansifer\";\n }", "@Override\n\tvoid name() {\n\t\tSystem.out.println(\"name is anubhav\");\n\t\t\n\t}", "public static void main(String[] args) {\n\n\n Main main = new Main();\n\n Thread thread1 = new Thread(new Runnable() {\n @Override\n public void run() {\n main.value = \"aaaaaa\";\n// Main main = new Main();\n// main.print10();\n System.out.println(main.value);\n\n }\n });\n Thread thread2 = new Thread(new Runnable() {\n @Override\n public void run() {\n main.value = main.value + \"bbbbb\";\n// Main main = new Main();\n// main.print10();\n System.out.println(main.value);\n\n }\n });\n\n\n thread1.start();\n thread2.start();\n\n\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tString name = \"hello\";\r\n\t\tRunnable r1 = () -> System.out.println(name);\r\n\t\t\r\n\t\t//String name2 = \"\";\r\n\t\t String name2 = name.toUpperCase();\r\n\t\tRunnable r2 = () -> System.out.println(name2);\r\n\t\tr1.run();\t\r\n\t\t\r\n\t\t//avergeOfPlayer();\r\n\t\t\r\n\t\t//topNumberinArray();\r\n\t\t\r\n\t\ttestSpiltIterator();\r\n\t\t\r\n\t}", "public void run(){\n for(;;)\r\n System.out.println(\"Hello\" + name);\r\n }", "public static void main(String [] args)\n\t{\n\t\t\n\t\tThread printA = new Thread(new multiThread(\"a\"));\n\t\tThread printB = new Thread(new multiThread(\"b\"));\n\t\tThread printC = new Thread(new multiThread(\"c\"));\n\t\t\n\t\tnames[0] = printA.getName();\n\t\tnames[1] = printB.getName();\n\t\tnames[2] = printC.getName();\n\t\t\n\t\tfor(int i = 0; ; i++)\n\t\t{\t\n\t\t\tprintA.run();\t\n\t\t\tprintB.run();\t\n\t\t\tprintC.run();\n\t\t} \n\t}", "public static void main (String str) {\n\t\tSystem.out.println(\"I am main methd with String arguments\");\n\t}", "public void Main(){\n }", "@Test\r\n\tpublic void getName() {\r\n\t\tassertEquals(\"Name was intialized as 'test'\", \"test\", testObj.getName());\r\n\t}", "public static void main(String[] args) throws InterruptedException {\n\t\tMyThread t1 = new MyThread();\r\n\t\tt1.setName(\"ram\");\r\n\t\t\r\n\t\tMyThread t2 = new MyThread();\r\n\t\tt2.setName(\"tom\");\r\n\t\t\r\n\t\tt1.start();\r\n\t\tt1.join();\r\n\t\tt2.start();\r\n\t\tt2.join();\r\n\t\tfor(int i=1; i<=200;++i){\r\n\t\t\tSystem.out.println(Thread.currentThread().getName() \r\n\t\t\t\t\t+ \" \" + (i * 5));\r\n\t\t}\r\n\t\tSystem.out.println(\"main thread complete....\");\r\n\t}", "public static void main(String[] args) throws Exception {\n\r\n\t\tThread t1=new Thread(new Hii());\r\n\t\tThread t2=new Thread(new Helloo());\r\n\t\t\r\n\t\tSystem.out.println(Thread.currentThread().getName());\r\n\t\tSystem.out.println(t1.getName());\r\n\t\tSystem.out.println(t2.getName());\r\n\t\t\r\n\t\tSystem.out.println(\"----------------------------\");\r\n\t\t\r\n\t\tt1.setName(\"Hii Thread\");\r\n\t\tt2.setName(\"Helloo Thread\");\r\n\t\t\r\n\t\tSystem.out.println(Thread.currentThread().getName());\r\n\t\tSystem.out.println(t1.getName());\r\n\t\tSystem.out.println(t2.getName());\r\n\t\t\r\n\t\tSystem.out.println(\"----------------------------\");\r\n\t\t\r\n\t\tt1.start();\r\n\t\ttry {\r\n\t\t\tThread.currentThread().sleep(10);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tt2.start();\r\n\t\t\r\n\t\tSystem.out.println(\"t1 is alive ? \"+ t1.isAlive());\r\n\t\tt1.join();\r\n\t\tt2.join();\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"t1 is alive ? \"+ t1.isAlive());\r\n\t\tSystem.out.println(\"Bye ....\");\r\n\t}", "private Main() {\n }", "String getMainClass();", "private static void assignment9_1(String tekst) {\n System.out.println(new Date() + \" - Main - \" + tekst);\n }", "public static final SourceModel.Expr executionContext_traceShowsThreadName(SourceModel.Expr executionContext) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_traceShowsThreadName), executionContext});\n\t\t}" ]
[ "0.70426375", "0.6949126", "0.68013006", "0.6727201", "0.66265905", "0.64746827", "0.64536613", "0.6409079", "0.63719225", "0.622343", "0.621093", "0.6206584", "0.6195304", "0.6191983", "0.6184794", "0.617009", "0.61161345", "0.60922515", "0.6040696", "0.60259444", "0.5996825", "0.5984458", "0.59305686", "0.5895967", "0.5892207", "0.5882234", "0.5862118", "0.5860382", "0.58442444", "0.58413684", "0.5840453", "0.583871", "0.58212954", "0.5818649", "0.580426", "0.5788764", "0.57872576", "0.5784855", "0.57545847", "0.57453567", "0.57414037", "0.573859", "0.5729764", "0.5726539", "0.56914115", "0.5685941", "0.56656694", "0.56538504", "0.564482", "0.56357926", "0.5629287", "0.56138724", "0.5605219", "0.5601762", "0.5586024", "0.5585219", "0.55823904", "0.55805695", "0.5572547", "0.5569367", "0.5561138", "0.5558584", "0.55530965", "0.5549987", "0.554693", "0.5545983", "0.5545465", "0.5540623", "0.5535461", "0.553339", "0.55330503", "0.55190855", "0.55177206", "0.55086064", "0.5492733", "0.54836816", "0.54828286", "0.54795396", "0.5478403", "0.5470859", "0.5468689", "0.5466251", "0.54646325", "0.5463613", "0.5461609", "0.5458662", "0.5457683", "0.5456713", "0.54557645", "0.54430586", "0.54392284", "0.5437101", "0.5431499", "0.5431189", "0.543089", "0.54268724", "0.5422176", "0.5415539", "0.54154164", "0.54098934", "0.5403141" ]
0.0
-1
Can alternatively manually assign a thread name Thread printA = new Thread(new multiThread("a"),"a"); Thread printB = new Thread(new multiThread("b"),"b"); Thread printC = new Thread(new multiThread("c"),"c");
public static void main(String [] args) { Thread printA = new Thread(new multiThread("a")); Thread printB = new Thread(new multiThread("b")); Thread printC = new Thread(new multiThread("c")); names[0] = printA.getName(); names[1] = printB.getName(); names[2] = printC.getName(); for(int i = 0; ; i++) { printA.run(); printB.run(); printC.run(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tMyThread mt = new MyThread();\n\t\t// We can assign a name\n\t\tmt.setName(\"Thread 1\");\n\t\tmt.start();\n\t\t\n\t\tMyThreads2 mt2 = new MyThreads2();\n\t\tThread t = new Thread(mt2);\n\t\t\n\t\t//New Thread\n\t\tThread t2 = new Thread(mt2);\n\t\tThread t3 = new Thread(mt2); \n\t\tt.setName(\"Thread 2\");\n\t\tt2.setName(\"Thread 3\");\n\t\tt3.setName(\"Thread 4\");\n\t\tt.start();\n\t\tt2.start();\n\t\tt3.start();\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tThread numThread = new MultiThread();\r\n\t\tThread numThread2 = new MultiThread();\r\n\r\n\t\t// Named the thread\r\n\t\tnumThread.setName(\"Thread 1\");\r\n\t\tnumThread2.setName(\"Thread 2\");\r\n\t\t\r\n\t\t// Execute threads\r\n\t\tnumThread.start();\r\n\t\tnumThread2.start();\r\n\r\n\t}", "public static void main( String[] args ) throws Exception\n {\n PrintTask task1 = new PrintTask( \"thread1\" );\n PrintTask task2 = new PrintTask( \"thread2\" );\n PrintTask task3 = new PrintTask( \"thread3\" );\n \n System.out.println( \"Starting threads\" );\n \n // create ExecutorService to manage threads \n ExecutorService threadExecutor = Executors.newFixedThreadPool( 3 );\n \n // start threads and place in runnable state \n threadExecutor.execute( task1 ); // start task1\n threadExecutor.execute( task2 ); // start task2\n threadExecutor.execute( task3 ); // start task3\n \n threadExecutor.shutdown(); // shutdown worker threads\n threadExecutor.awaitTermination(10, TimeUnit.SECONDS); \n System.out.println( \"Threads started, main ends\\n\" );\n }", "public static void main(String[] str) throws InterruptedException {\n CounterReEntered counter = new CounterReEntered();\r\n Runnable r1 = new Runnable() {\r\n @Override\r\n public void run() {\r\n try {\r\n counter.increment();\r\n System.out.println(\"thread name: \" + Thread.currentThread().getName());\r\n Thread.sleep(2000);\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(LockDemo.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n };\r\n\r\n Thread t1 = new Thread(r1, \"A\");\r\n Thread t2 = new Thread(r1, \"B\");\r\n Thread t3 = new Thread(r1, \"C\");\r\n Thread t4 = new Thread(r1, \"D\");\r\n t1.start();\r\n t2.start();\r\n t3.start();\r\n t4.start();\r\n }", "public static void main(String[] args) {\n\r\n System.out.println(Thread.currentThread().getName());\r\n System.out.println(Thread.currentThread().getId());\r\n\r\n MyFirstThread helloThread1 = new MyFirstThread();\r\n MyFirstThread helloThread2 = new MyFirstThread();\r\n helloThread1.start();\r\n helloThread2.start();\r\n\r\n\r\n }", "public static void main(String[] args) {\n\n PrintNumber printNumber = new PrintNumber();\n\n Thread printThread1 = new Thread(printNumber);\n\n Thread printThread2 = new Thread(printNumber);\n\n printThread1.start();\n\n printThread2.start();\n\n }", "public static void main(String[] args) throws InterruptedException {\n\t\tMyThread t1 = new MyThread();\r\n\t\tt1.setName(\"ram\");\r\n\t\t\r\n\t\tMyThread t2 = new MyThread();\r\n\t\tt2.setName(\"tom\");\r\n\t\t\r\n\t\tt1.start();\r\n\t\tt1.join();\r\n\t\tt2.start();\r\n\t\tt2.join();\r\n\t\tfor(int i=1; i<=200;++i){\r\n\t\t\tSystem.out.println(Thread.currentThread().getName() \r\n\t\t\t\t\t+ \" \" + (i * 5));\r\n\t\t}\r\n\t\tSystem.out.println(\"main thread complete....\");\r\n\t}", "public static void main(String[] args) throws InterruptedException {\n\t\tnew Thread() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tfor(int i = 0; i<10; i++) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(getName() + \" : aaaaa\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}.start();\r\n\t\t\r\n//\t\tnew thread\r\n\t\tnew Thread() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tfor(int i = 0; i<10; i++) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(getName() + \" : bbbbbbbb\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}.start();\r\n\r\n\t}", "public static void main(String[] args) {\n GreetingPrinting g1=new GreetingPrinting(\"Hello,Java\");\n GreetingPrinting g2=new GreetingPrinting(\"Test Automation\");\n GreetingPrinting g3=new GreetingPrinting(\"Selenium is Fun\");\n GreetingPrinting g4=new GreetingPrinting(\"SDET trainig\");\n //define Thread\n Thread t1=new Thread(g1);\n Thread t2=new Thread(g2);\n Thread t3=new Thread(g3);\n Thread t4=new Thread(g4);\n //start the thread\n t1.start();\n t2.start();\n t3.start();\n t4.start();\n\n }", "public static void main(String[] args) {\nThreadDemo t1 = new ThreadDemo();\nThreadDemo t2 = new ThreadDemo();\nt1.setName(\"First Thread\");\nt2.setName(\"Second Thread\");\nt1.setPriority(Thread.MAX_PRIORITY);\nt2.setPriority(Thread.MAX_PRIORITY);\nt1.start();\nt2.start();\n\n\t}", "public static void main(String[] args) {\n\t\tfor(int i = 1;i<100;i++){\n\t\t\tMyThread mt = new MyThread(\"Thread\"+i);\n\t\t\tThread t = new Thread(mt);\n\t\t\tt.start();\n\t\t}\n\n\t}", "public static void main(String[] args) {\n Thread thread = new Thread(\"New Thread\") {\n public void run(){\n System.out.println(\"run by: \" + getName());\n }\n };\n\n thread.start();\n System.out.println(thread.getName());\n\n }", "public static void main(String[] args) {\n\t\tThread t1 = Thread.currentThread();\n\t\t\n\t\t// Get the thread group of the main thread \n\t\tThreadGroup tg1 = t1.getThreadGroup();\n\t\t\n\t\tSystem.out.println(\"Current thread's name: \" + t1.getName());\n\t\tSystem.out.println(\"Current thread's group name: \" + tg1.getName());\n\t\t\n\t\t// Creates a new thread. Its thread group is the same that of the main thread.\n\t\tThread t2 = new Thread(\"my new thread\");\n\n\t\tThreadGroup tg2 = t2.getThreadGroup();\n\t\tSystem.out.println(\"New thread's name: \" + t2.getName());\n\t\tSystem.out.println(\"New thread's group name: \" + tg2.getName());\n\t}", "public static void main(String[] args) {\n Table table = new Table();\n MyThread1 t1 = new MyThread1(table);\n MyThread1 t2 = new MyThread1(table);\n MyThread1 t3 = new MyThread1(table);\n MyThread1 t4 = new MyThread1(table);\n\n t1.start();\n t2.start();\n t3.start();\n t4.start();\n\n }", "public static void main(String[] args) {\r\n HomeWork4 h=new HomeWork4();\r\n new Thread(()->{\r\n String name=Thread.currentThread().getName();\r\n int number=0;\r\n while(true){\r\n synchronized (h) {\r\n if(h.num==1) { //表示要打印A\r\n if(number==5) break;\r\n number++;\r\n h.num = 2;\r\n System.out.print(name);\r\n try {\r\n h.notifyAll();\r\n h.wait();\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n }\r\n },\"A\").start();\r\n new Thread(()->{\r\n String name=Thread.currentThread().getName();\r\n int number=0;\r\n while(true) {\r\n synchronized (h) {\r\n if (h.num == 2) { //表示要打印B\r\n if (number == 5) break;\r\n number++;\r\n h.num = 3;\r\n System.out.print(name);\r\n try {\r\n h.notifyAll();\r\n h.wait();\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n }\r\n },\"B\").start();\r\n new Thread(()->{\r\n String name=Thread.currentThread().getName();\r\n int number=0;\r\n while(true) {\r\n synchronized (h) {\r\n if (h.num == 3) { //表示要打印C\r\n if (number == 5) break;\r\n number++;\r\n h.num = 1;\r\n System.out.print(name);\r\n try {\r\n h.notifyAll();\r\n h.wait();\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n }\r\n },\"C\").start();\r\n }", "public static void main(String args[ ]){\r\nMythread rt = new Mythread(); /* main thread created the runnable object*/\r\nThread t = new Thread(rt); /*main thread creates child thread and passed the runnable object*/\r\nt.start();\r\nfor(int i=0; i<10; i++){\r\nSystem.out.println(\"Main Thread\");\r\n}\r\n}", "public static void main(String[] args) {\n classA a = new classA();\n classB b = new classB();\n //classC c = new classC();\n Thread t1 = new Thread(a);\n Thread t2 = new Thread(b);\n //Thread t3 = new Thread(c);\n Thread t3 = new Thread(new classC());\n t1.start();\n t2.start();\n t3.start();\n }", "public static void main(String[] args){\r\n\t\tMythread2 mt = new Mythread2(); /* main thread created the child thread*/\r\n\t\t\tmt.start();\r\n\t\tfor(int i=0; i<10; i++){\r\n\t\t\t\tSystem.out.print(\"Main Thread\");\r\n\t\t\t\t\t}\r\n}", "public static void main(String[] args) {\n\t\tMultiThreading a1= new MultiThreading();\n\t\tMultiThreading2 a2= new MultiThreading2();\n\t\ta1.setName(\"Bhains\");// hamesa start se pahle likha hota hai \n\t\ta2.setName(\"Hero\");\n\t\ta1.start();// agar yaha run ko call kia to multi thread nahi hai\n\t\t\n\t\ta2.start();\n\t//\tThread.sleep(10000);// ek thread pe ek hi baar \n\t\tMultiThreading b1=new MultiThreading();\n\t\t\n\t\t\n\t\t//a1.start();// ek baar start hui use fir nahi initialize nahi kar sakte Run time pe aaega error\n\t\tb1.start();\n\t\t\n\t\t\t//a1.m1();\n\t\t\t//a2.m2();\t\t\t\n\t}", "public static void main(String[] args) throws InterruptedException {\n\t\tList<Character> list = new ArrayList<>();\n\n Thread thread1 = new StringThread(list, \"HELLO\");\n thread1.start();\n\n Thread thread2 = new StringThread(list, \"WORLD\");\n thread2.start();\n\n thread1.join();\n thread2.join();\n\t}", "public static void main(String[] args) {\n Thread t = Thread.currentThread();\n\n // getting name of Main thread\n System.out.println(\"Current thread: \" + t.getName());\n\n // changing the name of Main thread\n t.setName(\"Geeks\");\n System.out.println(\"After name change: \" + t.getName());\n\n // getting priority of Main thread\n System.out.println(\"Main thread priority: \" + t.getPriority());\n\n // setting priority of Main thread to MAX(10)\n t.setPriority(MAX_PRIORITY);\n\n System.out.println(\"Main thread new priority: \" + t.getPriority());\n\n\n for (int i = 0; i < 5; i++) {\n System.out.println(\"Main thread\");\n }\n\n // Main thread creating a child thread\n ChildThread ct = new ChildThread();\n\n // getting priority of child thread\n // which will be inherited from Main thread\n // as it is created by Main thread\n System.out.println(\"Child thread priority: \" + ct.getPriority());\n\n // setting priority of Main thread to MIN(1)\n ct.setPriority(MIN_PRIORITY);\n\n System.out.println(\"Child thread new priority: \" + ct.getPriority());\n\n // starting child thread\n ct.start();\n }", "public static void main(String[] args) {\n Runnable runnable = new Runnable() {\n @Override\n public void run() {\n for(int i =0; i<10000; i++){\n System.out.println(\n Thread.currentThread().getId() + \":\" + i\n );\n }\n }\n };\n\n // using functions, a bit cleaner\n Runnable runnable2 = () -> {\n for(int i =0; i<10000; i++){\n System.out.println(\n Thread.currentThread().getId() + \":\" + i\n );\n }\n };\n\n Thread thread = new Thread(runnable);\n thread.start();\n\n Thread thread2 = new Thread(runnable);\n thread2.start();\n\n Thread thread3 = new Thread(runnable);\n thread3.start();\n\n }", "public static void main(String[] args) {\n Thread thread=new Thread(new MyRunnable(),\"firstThread\");\n thread.start();\n System.out.println(thread.getName());\n }", "public static void main(String[] args) {\n\t\tThread thread1 = new Thread(new ThreadOne());\n\t\tthread1.start();\n\t\t\n\t\tThread thread2 = new Thread(new ThreadOne());\n\t\tthread2.start();\n\t\t\n\t\tThread thread3 = new Thread(new ThreadOne());\n\t\tthread3.start();\n\t\t\n//\t\tThreadOne thread2 = new ThreadOne();\n//\t\tthread2.run();\n//\t\t\n//\t\tThreadOne thread3 = new ThreadOne();\n//\t\tthread3.run();\n\t}", "public static void main(String[] args)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tThread t1 = new Thread(new MyThread1_RunnableInterface(1,\"Hello from Thread1\"));\n\t\t\t\tThread t2 = new Thread(new MyThread1_RunnableInterface(2,\"Hello from Thread2\"));\n\t\t\t\tThread t3 = new Thread(new MyThread1_RunnableInterface(3,\"Hello from Thread3\"));\n\t\t\t\t\n t1.start();\n t2.start();\n t3.start();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t}", "public static void main(String[] args) throws InterruptedException {\n Lock lock = new ReentrantLock();\n\n for (int i = 1; i <= 10; i++) {\n MyThread t = new MyThread(\"线程 t\" + i, lock);\n t.start();\n Thread.sleep(100);\n }\n }", "private void YeWuMethod(String name) {\n\n for (int j = 0; j < 10; j++) {\n\n\n// Runnable task = new RunnableTask();\n// Runnable ttlRunnable = TtlRunnable.get(task);\n\n// executor.execute(ttlRunnable);\n\n executor.execute(() -> {\n System.out.println(\"==========\"+name+\"===\"+threadLocal.get());\n });\n }\n\n// for (int i = 0; i < 10; i++) {\n// new Thread(() -> {\n// System.out.println(name+\"===\"+threadLocal.get());\n// }, \"input thread name\").start();\n// }\n\n\n\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tPrintNumbersThread t1 = new PrintNumbersThread(\"thread 1\");\n\t\t\n\t\tPrintNumbersThread t2 = new PrintNumbersThread(\"thread 2\");\n\t\t\n\t\tt1.start();\n\t\tt2.start();\n\t}", "public static void main(String[] args) {\n \r\n\t\t Thread_run th=new Thread_run();\r\n\t\t Thread_runnable th2=new Thread_runnable();\r\n\t\t Thread_run[] m=new Thread_run[10];\r\n\t\t Thread_runnable[] n=new Thread_runnable[10];\r\n\t\t th.start();\r\n\t\t th2.run();\r\n\t\t for(int i=0;i<10;i++) {\r\n\t\t\t m[i]=new Thread_run();\r\n\t\t\t n[i]=new Thread_runnable();\r\n\t\t\t m[i].start();\r\n\t\t\t n[i].run();\r\n\t\t }\r\n\t\t \r\n\t\t try {\r\n\t\t\tth.join();\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t for(int i=0;i < 10;i++) {\r\n\t\t\t\tSystem.out.println(\"mainから出力 : \"+i);\r\n\t\t\t}\r\n\t}", "public static void main(String[] args) {\n Container<String> queue = new Container<>(7);\n Producer p1 = new Producer(queue, 3);\n Thread t1 = new Thread(p1);\n t1.setName(\"p1\");\n Producer p2 = new Producer(queue, 20);\n Thread t2 = new Thread(p2);\n t2.setName(\"p2\");\n Consumer c1 = new Consumer(queue, 3);\n Thread t3 = new Thread(c1);\n t3.setName(\"c1\");\n Consumer c2 = new Consumer(queue, 29);\n Thread t4 = new Thread(c2);\n t4.setName(\"c2\");\n\n Producer p3 = new Producer(queue, 10);\n Thread t5 = new Thread(p3);\n t5.setName(\"p5\");\n\n Consumer c3 = new Consumer(queue, 1);\n Thread t6 = new Thread(c3);\n t6.setName(\"c3\");\n\n t3.start();\n t4.start();\n t6.start();\n t1.start();\n t2.start();\n t5.start();\n\n }", "public static void main(String[] args) {\n\n\t\tThread Th1 = new MyThreadPriority(\"First\",1);\n\t\t// actually we only need constructor\n\t\t\n\t\tThread Th2 = new MyThreadPriority(\"Second\",5);\n\t\t\n\t\tThread Th3 = new MyThreadPriority(\"Third\",10);\n\n\t}", "public static void main(String[] args) {\n\t\tMythread t1 = new Mythread(\"First\");\n\t\tMythread t2 = new Mythread(\"Second\");\n\t\tt1.start();\n\t\tt2.start();\n\n\t}", "public static void main(String[] args) {\n\t\tMyThread thread = new MyThread();\r\n\t\tthread.setName(\"MyThread\");\r\n\t\tThread t1 = new Thread(thread);\r\n\t\tSystem.out.println(\"begin=\" + System.currentTimeMillis());\r\n\t\tt1.setName(\"T1\");\r\n\t\tt1.start();\r\n\t\tSystem.out.println(\"end=\" + System.currentTimeMillis());\r\n\t}", "public synchronized void print(String name) {\n try {\n System.out.println(\"Thread \" + name + \".print(): Starting\" );\n Thread.sleep(3000);\n System.out.println(\"Thread \" + name + \".foo(): ending\");\n } catch (InterruptedException e) {\n e.printStackTrace();\n System.out.println(\"Thread \" + name + \": interrupted\");\n }\n\n }", "public static void main(String[] args) {\n\n\n Main main = new Main();\n\n Thread thread1 = new Thread(new Runnable() {\n @Override\n public void run() {\n main.value = \"aaaaaa\";\n// Main main = new Main();\n// main.print10();\n System.out.println(main.value);\n\n }\n });\n Thread thread2 = new Thread(new Runnable() {\n @Override\n public void run() {\n main.value = main.value + \"bbbbb\";\n// Main main = new Main();\n// main.print10();\n System.out.println(main.value);\n\n }\n });\n\n\n thread1.start();\n thread2.start();\n\n\n }", "public static void main(String args[]) throws Exception\n {\n ImplementsRunnable rc = new ImplementsRunnable();\n Thread t1 = new Thread(rc);\n t1.start();\n Thread.sleep(1000); // Waiting for 1 second before starting next thread\n Thread t2 = new Thread(rc);\n t2.start();\n Thread.sleep(1000); // Waiting for 1 second before starting next thread\n Thread t3 = new Thread(rc);\n t3.start();\n \n // Modification done here. Only one object is shered by multiple threads\n // here also.\n ExtendsThread extendsThread = new ExtendsThread();\n Thread thread11 = new Thread(extendsThread);\n thread11.start();\n Thread.sleep(1000);\n Thread thread12 = new Thread(extendsThread);\n thread12.start();\n Thread.sleep(1000);\n Thread thread13 = new Thread(extendsThread);\n thread13.start();\n Thread.sleep(1000);\n }", "public static void main(String[] args) {\n Runnable myRunnable = new TestThread();\n Thread t1 = new Thread(myRunnable,\"t1\");\n Thread t2 = new Thread(myRunnable,\"t2\");\n t1.start();\n t2.start();\n }", "public static void main(String[] args) {\n JvmThread jvmThread = new JvmThread(123);\n JvmThread jvmThread1 = new JvmThread(456);\n jvmThread.start();\n jvmThread1.start();\n System.out.println(jvmThread);\n System.out.println(jvmThread1);\n }", "@Override\n // Thread creation\n // Run method from the Runnable class.\n public void run() {\n p.println(\"Current thread = \" + Thread.currentThread().getName());\n // Shows when a task is being executed concurrently with another thread,\n // then puts the thread to bed (I like saying that)\n try {\n p.println(\"Doing a task during : \" + name);\n Thread.currentThread().sleep(time);\n }\n // Exception for when a thread is interrupted.\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\n\t\n System.out.println(ANSI_Black+\"Hello from Main thread\");\n\tThread extendThread = new ThreadExtendsExample();\n\textendThread.setName(\"ThreadByExtends1~\");\n\textendThread.start();\n\t\n\t//java.lang.IllegalThreadStateException, same thread cannot be started again\n\t//extendThread.start();\n\tThread extendThread2 = new ThreadExtendsExample();\n\textendThread2.setName(\"ThreadByExtends2~\");\n\textendThread2.start();\n\t\n\t\n\t\n\tThreadImplExample implThread = new ThreadImplExample();\n\timplThread.run();\n\t\n\t\n\tThread runnableThread = new Thread(new ThreadImplExample());\n\trunnableThread.start();\n\t\n\t\n\t\n\tSystem.out.println(ANSI_Black+\"Hello Again from Main thread\");\n\t\n}", "public void run(){\n String threadName = Thread.currentThread().getName();\n System.out.println(\"Hello \" + threadName);\n }", "public static void main(String[] args) {\n\t\t\n\t\tTicket t = new Ticket();\n\t\tThread t1 = new Thread(t);\n\t\tThread t2 = new Thread(t);\n\t\tThread t3 = new Thread(t);\n\t\tThread t4 = new Thread(t);\n\t\t\n\t\tt1.start();\n\t\tt2.start();\n\t\tt3.start();\n\t\tt4.start();\n\t\t\n\t\t/*\n\t\tTicket t1 = new Ticket();\n\t\tTicket t2 = new Ticket();\n\t\tTicket t3 = new Ticket();\n\t\tTicket t4 = new Ticket();\n\t\t\n\t\tt1.start();\n\t\tt2.start();\n\t\tt3.start();\n\t\tt4.start();\n\t\t*/\n\t\t\n\t}", "public static void main(String[] args) throws Exception {\n\n Thread t1 = new Thread(() -> {\n for (int i = 0; i <= 5; i++) {\n System.out.println(\"Hi \" + Thread.currentThread().getPriority() + \" \" + Thread.currentThread().getName());\n try {\n Thread.sleep(1000);\n } catch (Exception ex) {\n // Logger.getLogger(Hi.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }, \"Hi Thread\");\n Thread t2 = new Thread(() -> {\n for (int i = 0; i <= 5; i++) {\n System.out.println(\"Hello \" + Thread.currentThread().getPriority() + \" \" + Thread.currentThread().getName());\n try {\n Thread.sleep(1000);\n } catch (Exception ex) {\n// Logger.getLogger(Hi.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }, \"Hello Thread\");\n// t1.setName(\"Hi Thread\");\n// t2.setName(\"Hello Thread\");\n\n// System.out.println(t1.getName());\n// System.out.println(t2.getName());\n t1.setPriority(Thread.MIN_PRIORITY); //1\n t2.setPriority(Thread.MAX_PRIORITY); //2\n System.out.println(t1.getPriority());\n System.out.println(t2.getPriority());\n\n t1.start();\n try {\n Thread.sleep(10);\n } catch (Exception ex) {\n// Logger.getLogger(ThreadDemo.class.getName()).log(Level.SEVERE, null, ex);\n }\n t2.start();\n\n t1.join();\n t2.join();\n System.out.println(t1.isAlive());\n System.out.println(\"Bye\");\n }", "public static void main(String[] args) {\n ThreadPoolExecutor executorService = new ThreadPoolExecutor(3, 10, 1L, TimeUnit.SECONDS,\n new LinkedBlockingQueue<>(20),\n Executors.defaultThreadFactory(),\n new ThreadPoolExecutor.AbortPolicy());\n ABC abc = new ABC();\n try {\n for (int i = 1; i <= 10; i++) {\n executorService.execute(abc::print5);\n executorService.execute(abc::print10);\n executorService.execute(abc::print15);\n }\n\n }finally {\n executorService.shutdown();\n }\n }", "private static String m62902a(Thread thread) {\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"Thread: \");\n stringBuffer.append(thread.getName());\n return stringBuffer.toString();\n }", "public static void main(String[] args) {\n\t\tThread t1 = new Thread(() -> {\n\t\t\tfor (int i = 1; i <= 10; i++)\n\t\t\t\tSystem.out.println(i);\n\t\t});\n\t\tt1.start();\n\n\t\t// With Method reference\n\t\tThread t2 = new Thread(ThreadWithMethodReference::print);\n\t\tt2.start();\n\t}", "@Override\r\n\tpublic void run() {\n\t\tfor (int i = 6; i <= 10; i++) {\r\n System.out.println(Thread.currentThread().getName() + \": \" + i); \t\r\n\r\n}\r\n\t}", "private static void demoRunnable() {\n new Thread(() -> System.out.println(Thread.currentThread().getName()), \"thread-λ\").start();\n new Thread(ToLambdaP5::printThread, \"thread-method-ref\").start();\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t\t\tconditionThreadCommunication.printA();\n\t\t\t\t}\n\t\t\t}", "public static void main(String[] args) {\r\n\t\tfor(int i=0; i<10; i++){\r\n\t\t\tB b = new B();\r\n\t\t\tA a = new A(b);\r\n\t\t\tC c = new C(a);\r\n\t\t\tc.start();\r\n\t\t\tb.start();\r\n\t\t\ta.start();\r\n//\t\t\tSystem.out.println(\"--------------:\"+(i+1));\r\n\t\t\t/*new A().start();\r\n\t\t\tnew B().start();\r\n\t\t\tnew C().start();*/\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t /*final Thread t1 = new Thread(new Runnable() { \r\n\t \r\n\t @Override \r\n\t public void run() { \r\n\t System.out.println(\"t1\"); \r\n\t } \r\n\t }); \r\n\t final Thread t2 = new Thread(new Runnable() { \r\n\t \r\n\t @Override \r\n\t public void run() { \r\n\t try { \r\n\t //引用t1线程,等待t1线程执行完 \r\n\t t1.join(); \r\n\t } catch (InterruptedException e) { \r\n\t e.printStackTrace(); \r\n\t } \r\n\t System.out.println(\"t2\"); \r\n\t } \r\n\t }); \r\n\t Thread t3 = new Thread(new Runnable() { \r\n\t \r\n\t @Override \r\n\t public void run() { \r\n\t try { \r\n\t //引用t2线程,等待t2线程执行完 \r\n\t t2.join(); \r\n\t } catch (InterruptedException e) { \r\n\t e.printStackTrace(); \r\n\t } \r\n\t System.out.println(\"t3\"); \r\n\t } \r\n\t }); \r\n\t t3.start(); \r\n\t t2.start(); \r\n\t t1.start(); */\r\n\t}", "public static void main(String[] args) {\n\t\tDisplay1 d1 = new Display1();\n\t\tDisplay1 d2 = new Display1();\n\t\tMyThread1 t1 = new MyThread1(d1,\"Dhoni\");\n\t\tMyThread1 t2 = new MyThread1(d2, \"Yuvraj\");\n\t\tt1.start();\n\t\tt2.start();\n\t}", "public static void main( String[] args ) {\n Runnable task1 = new TaskPrintC();\n Runnable task2 = new TaskPrintD();\n Runnable task3 = new TaskPrintP();\n\n Thread thread1 = new Thread( task1 );\n Thread thread2 = new Thread( task2 );\n Thread thread3 = new Thread( task3 );\n\n thread1.start();\n thread2.start();\n thread3.start();\n\n // Let them run for 500ms\n try {\n\t\t\tThread.sleep(500);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n \n // put up the stop sign\n runFlag=false;\n \n thread3.interrupt();\n thread2.interrupt();\n thread1.interrupt();\n \n }", "public static void main(String[] args) {\n// new Thread(consumer).start();\n// new Thread(consumer).start();\n// new Thread(consumer).start();\n TLinkedBlockQueue<String> stringTLinkedBlockQueue = new TLinkedBlockQueue<>();\n\n Producter1 producter1 = new Producter1(stringTLinkedBlockQueue);\n Consumer1 consumer1 = new Consumer1(stringTLinkedBlockQueue);\n\n Thread thread = new Thread(producter1);\n thread.setName(\"生一\");\n Thread thread2 = new Thread(producter1);\n thread2.setName(\"生二\");\n Thread thread3 = new Thread(producter1);\n thread3.setName(\"生三\");\n\n thread.start();\n thread2.start();\n thread3.start();\n\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n Thread c1 = new Thread(consumer1);\n Thread c2 = new Thread(consumer1);\n Thread c3 = new Thread(consumer1);\n c1.setName(\"消一\");\n c2.setName(\"消二\");\n c3.setName(\"消三\");\n\n c1.start();\n c2.start();\n\n\n }", "public static void main(String[] args) {\n\n\t\tprintJO p= new printJO();\n\t\t\n\t\tnew Thread(p.new printj()).start();\n\t\tnew Thread(p.new printO()).start();\n\t}", "public static void main(String[] args) {\n Employee emp=new Employee();\n emp.start();\n Student stu=new Student();\n Thread t1=new Thread(stu);\n t1.start();\n\t}", "public static void main(String[] args) throws InterruptedException {\n Test1 test1 = new Test1();\n new Thread(()->{\n try {\n test1.ts(Thread.currentThread().getName());\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n },\"A1\").start();\n new Thread(()->{\n try {\n test1.ts(Thread.currentThread().getName());\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n },\"A2\").start();\n }", "@Override\n\tpublic void run() {\n\t\tfor(int i = 0 ; i < 5; i++) {\n\t\t\tSystem.out.println(getName());\n\t\t\t//currentThread(); //Thread 객체 참조를 리턴\n\t\t\t\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tThreadMXBean threadMXBean = ManagementFactory.\n\t\t\t\tgetThreadMXBean();\n\t\tThreadInfo[] infos = threadMXBean.dumpAllThreads(false, false);\n\t\tfor(ThreadInfo info:infos) {\n\t\t\tSystem.out.println(\"[\"+info.getThreadId()+\"]\"+info.getThreadName());\n\t\t}\n\t}", "public static void main(String[] args) {\n new Thread(new R()).start();\n new T().start();\n new Thread(new R()).start();\n new T().start();\n for (char c = 'a'; c<'z';c++)\n System.out.println(c + \" \" + Thread.currentThread().getName());\n }", "@Test\n public void testThread() {\n\n Thread thread1 = new Thread(() -> {\n //i++;\n for (int j = 0; j < 2000000; j++) {\n (this.i)++;\n }\n });\n\n Thread thread2 = new Thread(() -> {\n //System.out.println(\"i = \" + i);\n for (int j = 0; j < 2000000; j++) {\n System.out.println(\"i = \" + this.i);\n }\n });\n\n thread1.start();\n thread2.start();\n /*for (int j = 0; j < 20; j++) {\n thread1.start();\n thread2.start();\n }*/\n\n\n /* ValueTask valueTask = new ValueTask();\n PrintTask printTask = new PrintTask();*/\n\n /*for (int i = 0; i < 20; i++) {\n Worker1 worker1 = new Worker1(valueTask);\n Worker2 worker2 = new Worker2(printTask);\n\n worker1.start();\n worker2.start();\n }*/\n\n }", "public static void main(String[] args) { \n\t\tSystem.out.println(\"Part 1 Demo with same instance.\");\n\t\tFoo fooA = new Foo(\"ObjectOne\");\n\t\tMyThread thread1a = new MyThread(fooA, \"Dog\", \"A\");\n\t\tMyThread thread2a = new MyThread(fooA, \"Cat\", \"A\");\n\t\tthread1a.start();\n\t\tthread2a.start();\n\t\twhile (thread1a.isAlive() || thread2a.isAlive()) { };\n\t\tSystem.out.println(\"\\n\\n\");\n\t\t \n\t\t/* Part 1 Demo -- difference instances */ \n\t\tSystem.out.println(\"Part 1 Demo with different instances.\");\n\t\tFoo fooB1 = new Foo(\"ObjectOne\");\n\t\tFoo fooB2 = new Foo(\"ObjectTwo\");\n\t\tMyThread thread1b = new MyThread(fooB1, \"Dog\", \"A\");\n\t\tMyThread thread2b = new MyThread(fooB2, \"Cat\", \"A\");\n\t\tthread1b.start();\n\t\tthread2b.start();\n\t\twhile (thread1b.isAlive() || thread2b.isAlive()) { };\n\t\tSystem.out.println(\"\\n\\n\");\n\t\t \n\t\t/* Part 2 Demo */ \n\t\tSystem.out.println(\"Part 2 Demo.\");\n\t\tFoo fooC = new Foo(\"ObjectOne\");\n\t\tMyThread thread1c = new MyThread(fooC, \"Dog\", \"A\");\n\t\tMyThread thread2c = new MyThread(fooC, \"Cat\", \"B\");\n\t\tthread1c.start();\n\t\tthread2c.start();\n\t}", "public static void main (String[] args) {\n\n\n Thread t1= new Thread(new Runnable() {\n @Override\n public void run() {\n System.out.println(\"Output: \"+Singleton.getInstance());\n Singleton.setObjName(\"Meow!!\");\n System.out.println(\"t1 Name: \"+Singleton.getName());\n }\n });\n\n Thread t2 = new Thread(new Runnable() {\n @Override\n public void run() {\n\n System.out.println(\"Output: \"+Singleton.getInstance());\n System.out.println(\"t2 Name: \"+Singleton.getName());\n\n }\n });\n\n Thread t3 = new Thread(new Runnable() {\n @Override\n public void run() {\n\n System.out.println(\"Output: \"+Singleton.getInstance());\n Singleton.setObjName(\"WolWol\");\n System.out.println(\"t3 Name: \"+Singleton.getName());\n\n }\n });\n\n Thread t4 = new Thread(new Runnable() {\n @Override\n public void run() {\n\n System.out.println(\"Output: \"+Singleton.getInstance());\n System.out.println(\"t4 Name: \"+Singleton.getName());\n\n }\n });\n\n// t1.start();\n// t2.start();\n// t3.start();\n// t4.start();\n\n \n }", "public static void main(String[] args) throws InterruptedException {\n Runnable r1 = new Runnable() {\n @Override public void run() {\n try {\n Thread.sleep( 600);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println( \"A1 \" + Thread.currentThread() );\n System.out.println( \"A2 \" + Thread.currentThread() );\n }\n };\n\n Runnable r2 = new Runnable() {\n @Override public void run() {\n try {\n Thread.sleep(600);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println( \"B1 \" + Thread.currentThread() );\n System.out.println( \"B2 \" + Thread.currentThread() );\n }\n };\n\n ExecutorService executor = Executors.newCachedThreadPool();\n\n executor.submit( r1 );\n executor.submit( r2 );\n\n System.out.println(\"Pause beginnt ...\");\n Thread.sleep( 5000 );\n System.out.println(\"Pause beendet ...\");\n\n executor.execute( r1 );\n executor.execute( r2 );\n\n executor.shutdown();\n }", "public static void main(String[] args) {\n LockClass butdo = new LockClass();\n OtherLockClass butxanh = new OtherLockClass();\n Thread Dieu = new Thread(new RunableClass(butdo, butxanh), \"Runable-Thread-Dieu\");\n Thread DinhDung = new Thread(new RunableClass(butdo,butdo), \"Runable-Thread-DinhDung\");\n// Thread Tuan = new Thread(new RunableClass(new LockClass(),otherLockClass), \"Runable-Thread-Tuan\");\n Thread Ly = new Thread(new RunableClass(butdo,butxanh), \"Runable-Thread-Ly\");\n Dieu.start();\n DinhDung.start();\n// Tuan.start();\n Ly.start();\n }", "public static void main(String[] args) {\n Message message = new Message();\n Thread t1 = new Thread(new Writer(message));\n Thread t2 = new Thread(new Reader(message));\n\n t1.setName(\"Writer Thread\");\n t2.setName(\"Reader Thread\");\n\n t1.start();\n t2.start();\n }", "public ThreadTest(String testName) {\n\n super(testName);\n\n logger = LogManager.getLogger(testName);//T1.class.getName()\n\n }", "public static void main(String[] args) throws InterruptedException {\n\t\t\n\t\tList<Thread> threads = new ArrayList<>();\n\t\t\n//\t\tthreads.add(e)\n\t\tint result = add(4,5);\n\t\tSystem.out.println(result);\n\t\t\n\t\tfor(int i=0;i<5;i++){\n\t\t\tThread t = new Thread(new MyRunnable());\n\t\t\t\n\t\t\tt.start();\n//\t\t\tt.join();\n\t\t\tthreads.add(t);\n\t\t}\n\t\t\n\t\tfor(Thread t : threads){\n\t\t\tt.join();\n\t\t}\n\t\t\n//\t\tt.join()\n\t\t\n\t\t\n\t\tSystem.out.println(\"New Thread: \" + Thread.currentThread().getName());\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tRunnable r= new Runnable() \r\n\t\t{\r\n\t\t\tpublic void run(){\r\n\t\t\t\tfor(int i=0; i<=5;i++) {\r\n\t\t\t\t\tSystem.out.println(\"Child Thread\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n//\t\tThread class 't' reference variable is calling Runnable implementation class\r\n\t\tSystem.out.println(\"Thread Class calling Runnable Interfface 'r' \");\r\n\t\tThread t = new Thread(r);\r\n\t\tt.start();\r\n\t\tfor(int i=0; i<=5;i++) {\r\n\t\t\tSystem.out.println(\"Main Thread\");\r\n\t\t}\r\n\t}", "NewThread (String threadname) {\r\n name = threadname;\r\n t = new Thread(this, name); // Constructor de un nuevo thread\r\n System.out.println(\"Nuevo hilo: \" +t);\r\n t.start(); // Aquí comienza el hilo\r\n }", "public static void main(String[] args) {\n\t\tThreadSimples santo = new ThreadSimples(\"Santos\");\r\n\t\tsanto.setPriority(4);\r\n\t\t\r\n\t\tThreadSimples sampa = new ThreadSimples(\"São Paulo\");\r\n\t\tsampa.setPriority(6);\r\n\t\t\r\n\t\tThreadSimples bernado = new ThreadSimples(\"São Bernado\");\r\n\t\tbernado.setPriority(5);\r\n\t\t\r\n\t\tThread.currentThread().setPriority(1);\r\n\t\t\r\n\t\tsanto.start();\r\n\t\tsampa.start();\r\n\t\tbernado.start();\r\n\t\t\r\n\t\tSystem.out.println(\"Main terminado!\");\r\n\t}", "public static void main(String[] args) {\n\t\tthreadClass1 tobj = new threadClass1();\n\t\tThread t1 = new Thread(tobj);\n\t\tt1.setName(\"thread1\");\n\t\tt1.setPriority(Thread.MAX_PRIORITY);\n\t\tt1.start();\n\t\t\n\t\tThread t2= new Thread(tobj);\n\t\tt2.setName(\"Thread 2\");\n\t\tt2.setPriority(7);\n\t\tt2.start();\n\t\t\n\t\tThread t3= new Thread(tobj);\n\t\tt3.setName(\"Thread 3\");\n\t\tt3.setPriority(5);\n\t\tt3.start();\n\t\t\n\t\tThread t4= new Thread(tobj);\n\t\tt4.setName(\"Thread 4\");\n\t\tt4.setPriority(3);\n\t\tt4.start();\n\t\t\n\t\t\n//\t\ttry {\n//\t\t\tt1.join();\n//\t\t} catch (InterruptedException e) {\n//\t\t\t// TODO Auto-generated catch block\n//\t\t\te.printStackTrace();\n//\t\t}\n\t\t\n\t\tt1.yield();\n//\t\tThreadClass2 t3 = new ThreadClass2();\n//\t\tt3.setName(\"Thread 3\");\n//\t\t\n//// if we call run() directly - it acts as normal method and not as a THREAD\n////\t\tt3.run();\n//\t\t\n////\t\tThus we need to call start() in order to call run();\n//\t\tt3.start();\n//\t\t\n//\t\t\n//\t\tThreadClass2 t4 = new ThreadClass2();\n//\t\tt4.setName(\"Thread 4\");\n//\t\t\n//\t\tt4.start();\n\n\n\t}", "public static void main(String[] args) {\n\t\tfor (int i=0; i<10; i++) {\r\n\t\t\tfinal Thread thread = new ThreadPriority(\"Thread-\" + (i+1));\r\n\t\t\tif (i != 9) {\r\n\t\t\t\tthread.setPriority(Thread.MIN_PRIORITY);\r\n\t\t\t} else {\r\n\t\t\t\tthread.setPriority(Thread.MAX_PRIORITY);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthread.start();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tThreadTest test= new ThreadTest();\n\t\ttest.start();\n\t\t\n\t\t// creating thread by implementing Runnable interface\n\t\tRunnable runnable = new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\" Creating thread by implement Runnable Interface\");\n\t\t\t}\n\t\t};\n\t\t\t\n\t\tThread test2 = new Thread(runnable);\n\t\ttest2.start();\n\t\t\n\t\t// Runnable is a Functional Interface which having only one abstract method\n\t\tRunnable functionalInterface = ()-> System.out.println(\" creating thread using lembda expression\");\n\t\tThread test3 = new Thread(functionalInterface);\n\t\ttest3.start();\n\t\t\n\n\n\t\t\n\t}", "public void setThreadName(String name) {\n threadName = name;\n }", "public static void main(String[] args) {\n\t\tfinal Printer2 p = new Printer2();\n\t\t\n\t\tnew Thread() {\n\t\t\tpublic void run() {\n\t\t\t\twhile(true)\n\t\t\t\t\tp.print1();\t\t\t\t//在匿名内部类使用外部变量\n\t\t\t}\n\t\t}.start();\n\t\t\n\t\tnew Thread() {\n\t\t\tpublic void run() {\n\t\t\t\twhile(true)\n\t\t\t\t\tp.print2();\t\t\t\t//在匿名内部类使用外部变量\n\t\t\t}\n\t\t}.start();\n\t\t\n\t}", "static void threadMessage(String message) {\r\n\t\tString threadName = Thread.currentThread().getName();\r\n\t\tSystem.out.format(\"%s: %s%n\", threadName, message);\r\n\t}", "public static void main(String[] args) {\n\n\tRunnablePerson annaMin = new RunnablePerson(\"AnnaMin\");\n\tRunnablePerson bobNorm = new RunnablePerson(\"BobNorm\");\n\tRunnablePerson maxMax = new RunnablePerson(\"MaxMax\");\n\n\tThread annaThr = new Thread(annaMin, \"Anna\");\n\tThread bobThr = new Thread(bobNorm, \"Bob\");\n\tThread maxThr = new Thread(maxMax, \"Max\");\n\n\tannaThr.setPriority(Thread.MIN_PRIORITY); // 1\n\tbobThr.setPriority(Thread.NORM_PRIORITY); // 5\n\tmaxThr.setPriority(Thread.MAX_PRIORITY); // 10\n\n\tannaThr.start();\n\tbobThr.start();\n\tmaxThr.start();\n\n }", "public static void main(String[] args) throws Exception {\n\t\tThread t1 = new Thread(\"t1\") {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tlog.debug(\"this is t1\");\n\t\t\t}\n\t\t};\n\t\tt1.start();\n\t\t\n\t\t\n\t\t//create by runnable\n\t\tThread t2 = new Thread(()->log.debug(\"this is t2\"),\"t2\");\n\t\tt2.start();\n\t\t\n\t\t//create by futuretask, futureTask is created by callable\n\t\tFutureTask<Integer> futureTask = new FutureTask<>(() -> {\n\t\t\tlog.debug(\"this is t3\");\n\t\t\treturn 100;\n\t\t});\n\t\tnew Thread(futureTask,\"t3\").start();\n\t\tlog.debug(\"{}\",futureTask.get());\n\t\t\n\t\tRunnable t4 = ()->{log.debug(\"test\");};\n\t\tt4.run();\n\t\t\n\n\t}", "@Override\n public void run() {\n threadLocalTest.setName(Thread.currentThread().getName());\n System.out.println(Thread.currentThread().getName() + \":\" + threadLocalTest.getName());\n }", "public static void main(String[] args) {\n\t\tRunnable r1=PlayMethodReference ::m1;\n\t\tThread t1=new Thread(r1);\n\t\tt1.start();\n\t\tfor(int i=0;i<10;i++) {\n\t\t\tSystem.out.println(\"these is child thread\");\n\t\t}\n\t}", "public static void main(String[] args) {\n\n ArrayList<String> lstNames = null;\n try {\n\n lstNames = readFromFile_getNamesList();\n } catch (IOException e) {\n\n e.printStackTrace();\n }\n\n\n CountDownLatch latch = new CountDownLatch(1);\n MyThread threads[] = new MyThread[1000];\n for(int i = 0; i<threads.length; i++){\n\n threads[i] = new MyThread(latch, lstNames);\n }\n for(int i = 0; i<threads.length; i++){\n threads[i].start();\n }\n latch.countDown();\n for(int i = 0; i<threads.length; i++){\n try {\n threads[i].join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n try {\n System.out.println(\"Sleeeeeeeping....\");\n Thread.sleep(10000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n latch = new CountDownLatch(1);\n MyThread threads2[] = new MyThread[1000];\n for(int i = 0; i<threads2.length; i++){\n threads2[i] = new MyThread(latch, lstNames);\n }\n for(int i = 0; i<threads2.length; i++){\n threads2[i].start();\n }\n latch.countDown();\n }", "public static void main(String[] args) {\n\n CountDown countDown = new CountDown();\n\n\n CountDownThread t1 = new CountDownThread(countDown);\n t1.setName(\"Thread 1\");\n\n CountDownThread t2 = new CountDownThread(countDown);\n t2.setName(\"Thread 2\");\n\n t1.start();\n t2.start();\n\n\n }", "public void run()\r\n\t{\r\n\ttry\r\n\t{\r\n\r\n\t\tfor(int i=1;i<=5;i++)\r\n\t\t{\r\n\t\tThread t=Thread.currentThread();\r\n\t\tString s=t.getName();\r\n\t\tSystem.out.println(s+\" \"+i);\r\n\t\tThread.sleep(1000); //throw InterruptedException(); \r\n\t\t}\r\n\t}\r\n\r\n\t\t\r\n\t\tcatch(InterruptedException ie)\r\n\t\t{ie.printStackTrace();}\r\n\t}", "public static void main(String[] args) {\n\t\tprocess Processes[] = new process[6];\r\n\t\tfor (int i = 0; i < 6; i++)\r\n\t\t{\r\n\t\t\tProcesses[i] = new process(i, r1, r2); //creates new thread\r\n\t\t\tProcesses[i].start(); //executes the thread\r\n\t\t\tSystem.out.println(\"===== Thread for process_\" + i + \" created\");\r\n\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tExecutorService executor = Executors.newFixedThreadPool(3);\n\t\t\n\t\t// Submit runnable tasks to the executor\n\t\texecutor.execute(new PrintChar('a', 100));\n\t\texecutor.execute(new PrintChar('b', 100));\n\t\texecutor.execute(new PrintNum(100));\n\t\t\n\t\t// Shut down the executor\n\t\texecutor.shutdown();\n\t}", "public static void main(String[] args) {\n\t\t// Create 2 threads\n\t\tThreadNameWithRunnable p = new ThreadNameWithRunnable(\"One\", 700);\n\t\tThreadNameWithRunnable q = new ThreadNameWithRunnable(\"Two\", 600);\n\t\t// Display also the thread that is used for main\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tSystem.out.println(Thread.currentThread().getName() + \" \" + i);\n\t\t\ttry {\n\t\t\t\tThread.sleep(1200);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tSystem.out.println(Thread.currentThread().getName()\n\t\t\t\t\t\t+ \" is awake\");\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\n for (int i = 0; i < 5; i++) {\n new Thread(() -> {\n MySingleton instance1 = MySingleton.getInstance();\n System.out.println(Thread.currentThread().getName() + \" \" + instance1);\n }, \"thread\" + i).start();\n }\n }", "public static void main(String[] args) {\n\t\tThreadDemo t = new ThreadDemo();\r\n\t\tThreadDemo t1 = new ThreadDemo();\r\n\t\t\r\n\t\tSystem.out.println( \"Thread Name under main() is \" + t.getName() + \" Priority is \" + t.getPriority());\r\n\t\tt.setPriority(MIN_PRIORITY);\r\n\t\tt1.setPriority(MAX_PRIORITY);\r\n\t\tt.start();\r\n\t\tt1.start();\r\n\t}", "public static void spawnThreads(String type) {\n\t\tThread[] threads = new Thread[threadCount];\n\n\t\tfor (int i = 0; i < threadCount; i++) {\n\t\t\tthreads[i] = new Thread(new TestCoarseList(i, type));\n\t\t\tthreads[i].start();\n\t\t}\n\n\t\tfor (Thread t : threads) {\n\t\t\ttry {\n\t\t\t\tt.join();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void run() {\n\t\tfor(int i=0;i<10;i++)\n\t\t\tSystem.out.println(\"Thread A running \"+i);\n\t}", "public void run(){\n System.out.println(\"Thread class extends \" + getName());\n }", "public static void main(String[] args) {\n\t\tTestThread_1 t = new TestThread_1();\n\t\tnew Thread(t).start();\n\t\tnew Thread(t).start();\n\t\tnew Thread(t).start();\n\t\tnew Thread(t).start();\n\n\t}", "public static void main(String[] args) {\n Bahasa kata = new Bahasa(\"Thread 1\");\n English word = new English(\"Thread 2\");\n\n // calling getWord method to accept user input\n// kata.getWord();\n// word.getWord();\n\n //objects call start method from the Thread class\n// kata.start();\n// word.start();\n\n// kata.printword();\n// word.printword();\n\n }", "public static void main(String[] args) throws InterruptedException {\n Thread wt1 = new JoinThread(\"JoinThread_1\");\n Thread wt2 = new JoinThread(\"JoinThread_2\");\n Thread wt3 = new JoinThread(\"JoinThread_3\");\n\n wt1.start();\n\n// wt1.join();\n\n// System.out.println(\"Current Thread name is: \"+ Thread.currentThread().getName()+ \" has state is : \"+Thread.currentThread().getState().name());\n wt2.start();\n// try {\n// wt2.join();\n// } catch (InterruptedException e) {\n// e.printStackTrace();\n// }\n wt3.start();\n// try {\n// wt3.join();\n// } catch (InterruptedException e) {\n// e.printStackTrace();\n// }\n System.out.println(\"main thread\");\n\n //// Test Case 2\n// wt1.start();\n// wt2.start();\n// wt3.start();\n\n\n }", "public static void main(String[] args) throws InterruptedException {\n\n Builder builder = new Builder();\n MyThread myThread = new MyThread(builder);\n MyThread myThread2 = new MyThread(builder);\n\n myThread.start();\n myThread2.start();\n\n myThread.join();\n myThread2.join();\n\n System.out.println(\"finished\");\n\n\n }", "public Thread getThread(int type, String name, Runnable r);", "public static void main(String[] args) {\n List<Thread> node_threads = new ArrayList();\r\n\r\n //Add the threads that will start the nodes\r\n node_threads.add(0, new Thread() {\r\n public void run() {\r\n new Node_A();\r\n return;\r\n }\r\n });\r\n\r\n node_threads.add(1, new Thread() {\r\n public void run() {\r\n new Node_B();\r\n return;\r\n }\r\n });\r\n\r\n node_threads.add(2, new Thread() {\r\n public void run() {\r\n new Node_C();\r\n return;\r\n }\r\n });\r\n\r\n //Shuffle the collection for random start\r\n Collections.shuffle(node_threads);\r\n\r\n //Start the shuffled threads\r\n for(int i = 0; i < node_threads.size(); i++){\r\n node_threads.get(i).start();\r\n\r\n }\r\n }", "public static void main(String[] args) {\n int threadNum = 3;\n\n for (int i = 0; i < threadNum; i++) {\n\n// System.out.println(\"Please enter a topic for publisher \" + i + \" : \");\n// String topic = scan.nextLine();\n// System.out.println(\"Please enter a name for publisher \" + i + \" : \");\n// String name = scan.nextLine();\n// System.out.println(\"Please specify how many messages this publisher should send: \");\n// int messageNum = scan.nextInt();\n PubClientThread thread = new PubClientThread(\"Topic\" + i / 2, \"Pub\" + i, 10000);\n new Thread(thread).start();\n }\n }", "public static void main(String[] args) {\n\t\tRunnable threadObj = new Runnable() {\n\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\tSystem.out.println(\"Thread working\");\n\t\t\t}\n\t\t};\n\t\tThread t1 = new Thread(threadObj);\n\t\tt1.start();\n\t\n\t\tThread t2 = new Thread(new Runnable() {\n\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\tSystem.out.println(\"Thread2 working\");\n\t\t\t}\n\t\t});\n\t\tt2.start();\n\t}", "public static void main(String[] args) throws Exception {\n\r\n\t\tThread t1=new Thread(new Hii());\r\n\t\tThread t2=new Thread(new Helloo());\r\n\t\t\r\n\t\tSystem.out.println(Thread.currentThread().getName());\r\n\t\tSystem.out.println(t1.getName());\r\n\t\tSystem.out.println(t2.getName());\r\n\t\t\r\n\t\tSystem.out.println(\"----------------------------\");\r\n\t\t\r\n\t\tt1.setName(\"Hii Thread\");\r\n\t\tt2.setName(\"Helloo Thread\");\r\n\t\t\r\n\t\tSystem.out.println(Thread.currentThread().getName());\r\n\t\tSystem.out.println(t1.getName());\r\n\t\tSystem.out.println(t2.getName());\r\n\t\t\r\n\t\tSystem.out.println(\"----------------------------\");\r\n\t\t\r\n\t\tt1.start();\r\n\t\ttry {\r\n\t\t\tThread.currentThread().sleep(10);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tt2.start();\r\n\t\t\r\n\t\tSystem.out.println(\"t1 is alive ? \"+ t1.isAlive());\r\n\t\tt1.join();\r\n\t\tt2.join();\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"t1 is alive ? \"+ t1.isAlive());\r\n\t\tSystem.out.println(\"Bye ....\");\r\n\t}" ]
[ "0.6575224", "0.6515562", "0.64857954", "0.6459294", "0.6421202", "0.64173025", "0.6378395", "0.6359826", "0.6325985", "0.6295213", "0.625851", "0.6253926", "0.62337524", "0.61955357", "0.6181759", "0.61772627", "0.61195934", "0.6106842", "0.6060606", "0.60392094", "0.60267174", "0.60190684", "0.60177743", "0.60093075", "0.6006782", "0.5991963", "0.5983804", "0.5981515", "0.5975843", "0.5967636", "0.5960668", "0.5953345", "0.5943843", "0.5917904", "0.5904881", "0.5903981", "0.5901459", "0.589647", "0.5878788", "0.5878115", "0.58618104", "0.5860558", "0.58465135", "0.58381337", "0.58370113", "0.58307505", "0.58290035", "0.5822243", "0.58191687", "0.5813164", "0.581012", "0.580764", "0.58022183", "0.5797052", "0.57942843", "0.57856107", "0.57742506", "0.57684356", "0.57683384", "0.5766174", "0.57557964", "0.57491773", "0.5740218", "0.574", "0.5739857", "0.5732658", "0.5727053", "0.5707301", "0.5706669", "0.5685155", "0.5675401", "0.56710494", "0.5665729", "0.56650263", "0.566457", "0.5660995", "0.5659647", "0.56594807", "0.5657716", "0.56475735", "0.5645379", "0.5644657", "0.5644472", "0.56357694", "0.5634655", "0.5612263", "0.56094974", "0.5592479", "0.55705845", "0.556239", "0.555273", "0.5546463", "0.5544913", "0.5542664", "0.55391735", "0.5528788", "0.5518135", "0.5513118", "0.5504345", "0.5502046" ]
0.7843351
0
do stuff with the result or error Log.d("result", result.toString());
@Override public void onCompleted(Exception e, JsonObject result) { if(e != null){ e.printStackTrace(); Toast.makeText(MainActivity.this, "erreur service", Toast.LENGTH_SHORT).show(); }else{ JsonObject main = result.get("main").getAsJsonObject(); double temp = main.get("temp").getAsDouble(); tvTemp.setText(temp+"°C"); JsonObject sys = result.get("sys").getAsJsonObject(); String country = sys.get("country").getAsString(); tvCity.setText(city+", "+country); JsonArray weather = result.get("weather").getAsJsonArray(); String icon = weather.get(0).getAsJsonObject().get("icon").getAsString(); loadIcon(icon); JsonObject coord = result.get("coord").getAsJsonObject(); double lon = coord.get("lon").getAsDouble(); double lat = coord.get("lat").getAsDouble(); loadDailyForcast(lon, lat); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\tLog.e(TAG,result);\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\tLog.e(TAG,result);\t\n\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void result(String result) {\n\t\t\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void result(String result) {\n\t\t\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "private void handleErrorsInTask(String result) {\n Log.e(\"ASYNC_TASK_ERROR\", result);\n }", "private void handleErrorsInTask(String result) {\n Log.e(\"ASYNC_TASK_ERROR\", result);\n }", "public void doResult() throws Exception {\n\t\tJSONObject map=new JSONObject(getResult());\n\t\tif(!\"ok\".equalsIgnoreCase(map.getString(\"status\"))){\n\t\t\tdoFailureResult();\n\t\t\treturn;\n\t\t}\n\t\tif(getHandler()!=null){\n\t\t\tMessage hmsg=getHandler().obtainMessage();\n\t\t\thmsg.obj=map;\n\t\t\thmsg.arg1=1;\n\t\t\tgetHandler().sendMessage(hmsg);\n\t\t\tsetHandler(null);\n\t\t}\n\t}", "protected void handleResult(String result) {}", "@Override\n\t\t\t public void resultLoaded(int err, String reason, String result) {\n\t\t\t \n\t\t\t\t dialog.cancel();\n\t\t\t\t \n\t\t\t\t if (err == 0) {//成功获取数据的情况\n\t\t\t\t\t \n\t\t\t\t\t try {\n\t\t\t\t\t\t \n\t\t\t\t\tJSONObject resultObject=new JSONObject(result);\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t if(resultObject.isNull(\"result\")){//判断车次是否存在\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tToast.makeText(getActivity(), \"航班不存在...\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} else{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t //成功获取到数据,在此处仅专递数据,并不对数据进行处理\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tBundle bundle=new Bundle();\n\t\t\t\t\t\t\t\tbundle.putString(\"result\", result);//将JSON数据直接传递过去\n\t\t\t\t\t\t\t\tbundle.putString(\"date\", flightDataShow.getText().toString().trim());//将日期传递过去\n\t\t\t\t\t\t\t\tIntent intent=new Intent(getActivity(),FlightResultActivity.class);\n\t\t\t\t\t\t\t\tintent.putExtra(\"FlightBundle\", bundle);\n\t\t\t\t\t\t\t\t startActivity(intent);\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\n\t\t\t \t\t} catch (JSONException 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\t \n\t\t\t\t\t} else {//非成功获取数据\n\t\t\t\t\t\t\n\t\t\t\t\t\t Toast.makeText(getActivity(), \"数据获取失败...\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t \n\t\t\t }", "@Override\r\n\r\n public void getResult(String result) {\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }", "private static void checkError(String result) {\n String err = Neo4jUtils.extractErrorData(result);\n if (err == null) {\n return;\n }\n throw new RuntimeException(err);\n }", "public void processResult(String json){\n Result res = gson.fromJson(json, Result.class);\n\n // Jika tidak terdapat error, maka lakukan pemrosesan data\n // dan ditampilkan pada TextView.\n res.getError();\n MainActivity mainActivity = new MainActivity();\n mainActivity.tvHasil.setText(res.getResult().toString());\n\n }", "public static void resultMessage (int result) {\n System.out.println(\"The result of choosed operation is: \" + result);\n }", "public void setResult(String result) {\n this.result = result;\n }", "public void setResult(String result)\n {\n this.result = result;\n }", "private void result(String result) {\n\n Log.d(LOG_TAG, \"result method\");\n setInfo(result + \"\\n НОВАЯ ИГРА\" + \"\\n побед первого игрока =\" + winsOfPlayerOne + \"\\n побед второго игрока:\" + winsOfPlayerTwo);\n enableAllButtons(false);\n startNewGame();\n Toast.makeText(this, \"Игра окончена\", Toast.LENGTH_LONG).show();\n\n }", "public void setResult(String result) {\n this.result = result;\n }", "@Override\r\n\r\n public void getResult(String result) {\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }", "@Override\n\tprotected void onPostExecute(String result) {\n\t\tLog.d(TAG, result);\n\t}", "void onResult(int ret);", "private void handleErrorsInTask(String result) {\n Log.e(\"ASYNC_TASK_ERROR\", result);\n mListener.onWaitFragmentInteractionHide();\n }", "@Override\n protected void onPostExecute(String result) {\n Log.i(\"this is the result\", \"HULA\");\n //Do anything with response..\n }", "@Override\r\n public void onResult(String result)\r\n {\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, \"SN = \"+result));\r\n }", "abstract protected void reportResult(Result result);", "public void setResult(String result)\r\n\t{\r\n\t\tthis.result = result;\r\n\t}", "public abstract void displayResult(Result result);", "@Override\n\t\t\tpublic void onFailure(String result) {\n\t\t\t\tLog.e(\"fail\",result);\n\t\t\t}", "void onResult(T result);", "void onResult(T result);", "@Override\r\n public void onSuccess(RestRequest request, RestResponse result) {\n result.consumeQuietly();\r\n runOnUiThread(new Runnable() {\r\n\r\n @Override\r\n public void run() {\r\n // Network component doesn’t report app layer status.\r\n // Use the Mobile SDK RestResponse.isSuccess() method to check\r\n // whether the REST request itself succeeded.\r\n\r\n try {\r\n\r\n Log.d(\"APITest\", \"success entered\");\r\n\r\n }\r\n catch (Exception e) {\r\n //showError(MainActivity.this, e);\r\n }\r\n\r\n }\r\n });\r\n\r\n }", "@Override\r\n\tprotected void onPostExecute(String result) {\n\t\tsuper.onPostExecute(result);\r\n\t\t if(result.equals(\"error\")){\r\n\t \t\tToast.makeText(getApplicationContext(), \"服务器忙,请重试\", 0).show(); \t\r\n\t\t }else{\r\n\t Intent intent=new Intent();\r\n\t\t intent.putExtra(\"qqnumber\", result);\r\n\t \tintent.setClass(RegistActivity.this, RegistSuccessActivity.class);\r\n\t\t\t startActivity(intent);\r\n\t\t\t RegistActivity.this.finish();\r\n\t\t\t }\r\n\t}", "@Override\n\t protected void onPostExecute(String result) {\n\t }", "@Override\n public void onResult(Bundle bundle) {\n final String result = bundle.getString(DiabetesAppConnection.RESULT_KEY, \"\");\n\n if (result.equals(DiabetesAppConnection.RESULT_UNAUTHORIZED)) {\n mResult.setText(\"Unauthorized\");\n mReadData.setEnabled(false);\n mPushData.setEnabled(false);\n return;\n }\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mResult.setText(\"PushData result = \" + result);\n }\n });\n }", "@Override\n\t\t\t\t\tpublic void onSuccess(Integer result) {\n\t\t\t\t\t\tif (result == 0) {\n\t\t\t\t\t\t\tgetApplyDialog();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToastUtil.showToast(context, \"无法获取游戏信息\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}", "@Override\n protected void onPostExecute(String result) {\n // tvResult.setText(result);\n }", "protected void onPostExecute(String result) {\r\n\r\n\t\t}", "@Override\r\n public void onResult(DJIError result)\r\n {\n \r\n }", "@Override\n\tpublic void onTaskComplete(JSONObject result) {\n\t\tString valid = null; \n\t\tString nickname = null;\n\t\tString regDate = null;\n\t\ttry {\n\t\t\tvalid = result.getString(\"validation\");\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//Toast.makeText(Signin.this, \"beforeIF\", Toast.LENGTH_SHORT).show();\n\t\tif(valid.equals(\"badName\")){\n\t\t\tToast.makeText(Signin.this, \"Bad User Name!\", Toast.LENGTH_SHORT).show();\n\t\t}\n\t\telse if(valid.equals(\"badPw\")){\n\t\t\tToast.makeText(Signin.this, \"Wrong Password!\", Toast.LENGTH_SHORT).show();\n\n\t\t}\n\t\telse if(valid.equals(\"pass\")){\n\t\t\ttry {\n\t\t\t\tnickname = result.getString(\"nickname\");\n\t\t\t\tregDate = result.getString(\"regDate\");\n\t\t\t} catch (JSONException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tToast.makeText(Signin.this, \"YO~\", Toast.LENGTH_SHORT).show();\n\t\t\tToast.makeText(Signin.this, nickname, Toast.LENGTH_SHORT).show();\n\t\t\tToast.makeText(Signin.this, regDate, Toast.LENGTH_SHORT).show();\n\t\t}\n\t\telse{\n\t\t\tToast.makeText(Signin.this, \"ΤόΤό\", Toast.LENGTH_SHORT).show();\n\n\t\t}\n\t}", "@Override\r\n\t\tprotected void onPostExecute(Integer result) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\tsuper.onPostExecute(result);\r\n\r\n\t\t\tif (result == 1) {\r\n\t\t\t\tAlertDialog.Builder alert = new AlertDialog.Builder(\r\n\t\t\t\t\t\tgetActivity());\r\n\t\t\t\talert.setMessage(\"Load instruction performed\");\r\n\t\t\t\talert.setTitle(\"Success\");\r\n\t\t\t\talert.setPositiveButton(\"Okay\",\r\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\talert.show();\r\n\t\t\t} else if (result == 0) {\r\n\t\t\t\tAlertDialog.Builder alert = new AlertDialog.Builder(\r\n\t\t\t\t\t\tgetActivity());\r\n\t\t\t\talert.setMessage(\"Failed\");\r\n\t\t\t\talert.setTitle(\"try again\");\r\n\t\t\t\talert.show();\r\n\r\n\t\t\t}\r\n\r\n\t\t}", "public int getResult() {return resultCode;}", "@Override\n\t\tprotected void onPostExecute(ResultUserLogin result) {\n\t\t\tsuper.onPostExecute(result);\n//\t\t\tif(result.getRet() == 0){\n//\t\t\t\t//\n//\t\t\t}else{\n//\t\t\t\tresult.getMsg()\n//\t\t\t}\n\t\t}", "public Result b(Result result) {\n f.obtainMessage(1, new AsyncTaskResult(this, result)).sendToTarget();\n return result;\n }", "protected void onPostExecute(String result) {\n pDialog.dismiss();\n\n Log.d(\"workshop onPostExecute:\",result);\n\n try {\n // Checking for SUCCESS TAG\n // Check your log cat for JSON reponse\n jObj_result = new JSONObject(result);\n v_success = jObj_result.getInt(TAG_SUCCESS);\n v_msg = jObj_result.getString(TAG_MSG);\n\n } catch (JSONException e) {\n v_success = 0;\n e.printStackTrace();\n }\n\n Log.d(\"workshop v_msg:\",v_msg);\n if (v_success == 1) {\n Toast.makeText(myContext, v_msg, Toast.LENGTH_SHORT).show();\n } //else msg Erro\n\n }", "protected void onPostExecute(String result) {\n pDialog.dismiss();\n\n Log.d(\"workshop onPostExecute:\",result);\n\n try {\n // Checking for SUCCESS TAG\n // Check your log cat for JSON reponse\n jObj_result = new JSONObject(result);\n v_success = jObj_result.getInt(TAG_SUCCESS);\n v_msg = jObj_result.getString(TAG_MSG);\n\n } catch (JSONException e) {\n v_success = 0;\n e.printStackTrace();\n }\n\n Log.d(\"workshop v_msg:\",v_msg);\n if (v_success == 1) {\n Toast.makeText(myContext, v_msg, Toast.LENGTH_SHORT).show();\n } //else msg Erro\n\n }", "@Override\n protected void onPostExecute(String result) {\n\n try {\n\n //If Conn. to Server is dead\n if (result.contains(getText(R.string.LoginFailureNoConn))) {\n mainActivity.setAlert(getText(R.string.LoginFailureNoConn).toString());\n }\n else if (result.contains(\"success\")) {\n JSONObject obj = new JSONObject(result);\n result = obj.getString(\"status\");\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "public boolean parseResult( Exception e, T result) {\n\n if (e != null) {\n e.printStackTrace();\n ErrorModel em = new ErrorModel();\n if (e.getClass().equals(SocketTimeoutException.class)) {\n em.setMsg(\"Network Error. Waited for so long. :-(\");\n em.setType(ApiErrors.TIME_OUT.toString());\n// Toast.makeText(context, em.getMsg(),\n// Toast.LENGTH_SHORT).show();\n } else if (e.getClass().equals(SocketException.class)) {\n em.setMsg(\"oops... Connectivity issue :-(\");\n em.setType(ApiErrors.CONNECTION.toString());\n// Toast.makeText(context, em.getMsg(),\n// Toast.LENGTH_SHORT).show();\n } else if (e.getClass().equals(ConnectException.class)) {\n em.setMsg(\"oops... Connectivity issue :-(\");\n em.setType(ApiErrors.CONNECTION.toString());\n// Toast.makeText(context, em.getMsg(),\n// Toast.LENGTH_SHORT).show();\n } else {\n em.setMsg(\"Something unexpected has happened, please try again later: -(\");\n //Toast.makeText(context, em.getMsg(),\n // Toast.LENGTH_SHORT).show();\n }\n em.setField(\"nw\");\n List<ErrorModel> list = new ArrayList();\n list.add(em);\n onError(list);\n return false;\n }\n if (result != null) {\n onSuccess(result);\n return true;\n }\n ErrorModel em = new ErrorModel();\n em.setMsg(\"Some thing has Happened!\");\n em.setType(ApiErrors.UNKNOWN.toString());\n// Toast.makeText(context, em.getMsg(),\n// Toast.LENGTH_SHORT).show();\n List<ErrorModel> list = new ArrayList();\n list.add(em);\n onError(list);\n return false;\n\n }", "@Override\n public void onCompleted(Exception e, String result) {\n if (e != null) {\n Log.e(\"API Error\", e.getMessage());\n } else {\n Log.e(\"API Response\", result);\n }\n }", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\tif(resp.contains(\"success\"))\n\t\t\t{\n\t\t\t\tparsingmethod();\n\t\t\t\tToast.makeText(getApplicationContext(), resp, Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tToast.makeText(getApplicationContext(), resp, Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t}", "protected void setResult(R result) {\n _result = result;\n }", "public static void setResult(String resultInfo) {\n }", "@Override\n protected void checkResult(int pResult) throws ACBrException {\n switch (pResult) {\n case -1: {\n String lMessage;\n final int LEN = 1024;\n ByteBuffer buffer = ByteBuffer.allocate(LEN);\n int ret = ACBrAACInterop.INSTANCE.AAC_GetUltimoErro(getHandle(), buffer, LEN);\n\n lMessage = fromUTF8(buffer, ret);\n throw new ACBrException(lMessage);\n }\n case -2: {\n throw new ACBrException(\"ACBr AAC não inicializado.\");\n }\n }\n }", "@Override\n protected void onPostExecute(String result) {\n\n }", "@Override\n protected void onPostExecute(String result) {\n\n }", "@Override\n protected void onPostExecute(String result) {\n }", "@Override\n protected void onPostExecute(String result) {\n }", "@Override\n protected void onPostExecute(String result) {\n }", "@Override\r\n public void onResult(String result)\r\n {\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, \"Firmware version = \"+result));\r\n }", "@Override\n public void onResult(final AIResponse result) {\n DobbyLog.i(\"Action: \" + result.getResult().getAction());\n }", "@Override\n public void handleResult(Result result) {\n Log.w(\"handleResult\", result.getText());\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Scan result\");\n builder.setMessage(result.getText());\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n\n\n //Resume scanning\n //mScannerView.resumeCameraPreview(this);\n }", "@Override\n protected void onPostExecute(String result) {\n if (null != hud)\n hud.dismissHUD();\n if (isCancelled()) {\n return;\n }\n if (result != null) {\n JSONObject obj = null;\n try {\n obj = new JSONObject(result);\n } catch (JSONException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n try {\n if (obj == null) {\n SomeDialog dialog = new SomeDialog(\"Error\", Constant.INTERNET_CONNECT_ERROR,\n \"OKay\", \"\", null);\n dialog.show(fManager, \"dialog\");\n } else {\n if (obj.getInt(\"success\") == 1) {\n this.interfa.didSuccessWithMessage(obj.getString(\"message\"));\n } else {\n this.interfa.didFailWithMessage(obj.getString(\"message\"));\n }\n }\n\n } catch (JSONException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n } else {\n SomeDialog dialog = new SomeDialog(\"Login\", Constant.INTERNET_CONNECT_ERROR, \"OK\", \"\",\n null);\n dialog.show(fManager, \"dialog\");\n }\n }", "protected void onPostExecute(String result) {\n }", "@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t\tswitch(requestCode){\r\n\t\tcase QUERYACTIVITYCODE:{\r\n\t\t\tif(resultCode==Activity.RESULT_OK){\r\n\r\n\t\t\t\ttv_query.setText(data.getStringExtra(\"codestr\"));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\t//Toast.makeText(CircleActivity.this, \"未登录\", Toast.LENGTH_LONG).show();;\r\n\t\t\t\t;\r\n\t\t}\r\n\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tloading.dismiss();\r\n\t\t\t\t\t\t\t\tif(result.equals(\"0\"))\r\n\t\t\t\t\t\t\t\t\tT.mToast(SignUpActivity.this, \"Error\");\r\n\t\t\t\t\t\t\t\tif(result.equals(\"1\"))\r\n\t\t\t\t\t\t\t\t\tT.mToast(SignUpActivity.this,\r\n\t\t\t\t\t\t\t\t\t\t\t\"Sign in successfully\");\r\n\t\t\t\t\t\t\t\tif(result.equals(\"2\"))\r\n\t\t\t\t\t\t\t\t\tT.mToast(SignUpActivity.this, \"This user exists\");\r\n\t\t\t\t\t\t\t\tif(result.equals(\"3\"))\r\n\t\t\t\t\t\t\t\t\tT.mToast(SignUpActivity.this, \"Error\");\r\n\t\t\t\t\t\t\t}", "public void setResult(Result result) {\n this.result = result;\n }", "@Override\n \t\t\t\tpublic void finished(Response response) {\n \t\t\t\t\tLog.w(\"myApp\", response.getResult() + \" \" + response.getError());\n \t\t\t\t}", "@Override\n \t\t\t\tpublic void finished(Response response) {\n \t\t\t\t\tLog.w(\"myApp\", response.getResult() + \" \" + response.getError());\n \t\t\t\t}", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\tif(upresp.contains(\"success\"))\n\t\t\t{\n\t\t\t\tToast.makeText(getApplicationContext(), upresp, Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tToast.makeText(getApplicationContext(), upresp, Toast.LENGTH_SHORT).show();\n\n\t\t\t}\n\t\t}", "@Override\n\t\tprotected void onPostExecute(Object result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\tif (mLoading.isShowing()) {\n\t\t\t\tmLoading.stop();\n\t\t\t}\n\n\t\t\tif (result instanceof String\n\t\t\t\t\t&& ((String) result).startsWith(\"error\")) {\n\t\t\t\tToast.makeText(vThis, (String) result, Toast.LENGTH_SHORT)\n\t\t\t\t\t\t.show();\n\t\t\t} else {\n\n\t\t\t\t// 这里成功\n\n\t\t\t\tUserModel model = (UserModel) result;\n\n\t\t\t\tSpManager.setShopInfo(vThis, model);\n\n\t\t\t\t// Intent itemlist = new Intent(vThis, MainActivity.class);\n\t\t\t\tif (model.getAuth() == 18) {\n\t\t\t\t\tIntent itemlist = new Intent(vThis, MoveActivity.class);\n\t\t\t\t\tstartActivity(itemlist);\n\t\t\t\t} else {\n\t\t\t\t\tIntent itemlist = new Intent(vThis, MainActivity.class);\n\t\t\t\t\tstartActivity(itemlist);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}", "private static Response process(Object result) {\n if (result == null) return Response.serverError().build();\n if (result instanceof Response.Status) return Response.status((Response.Status) result).build();\n return Response.ok(result).build();\n }", "@Override\n protected void onPostExecute(String result) {\n loading.showProgress(UserEditActivity.this, viewLoading, false);\n\n // If returned string is success (204)\n if(result.equals(\"204\")) {\n AlertDialog.Builder builder = new AlertDialog.Builder(UserEditActivity.this);\n builder.setMessage(R.string.text_edit_message)\n .setTitle(R.string.text_success_title)\n .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n startActivity(new Intent(((Dialog)dialog).getContext(), UserListActivity.class));\n }\n });\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n // If returned string is NetworkException\n else if(result == \"NetworkException\") {\n //TODO: Show message about exception return\n Toast.makeText(\n getApplicationContext(),\n R.string.exception_network,\n Toast.LENGTH_LONG)\n .show();\n }\n // If returned string is Exception\n // Or return \"401\"\n else {\n //TODO: Show message about exception return\n Toast.makeText(\n getApplicationContext(),\n R.string.exception_service,\n Toast.LENGTH_LONG)\n .show();\n }\n }", "public void setResult(Object result) {\n this.result = result;\n }", "@Override\n public void handleResult(Result rawResult) {\n\n Toast.makeText(this,rawResult.getText(),Toast.LENGTH_LONG).show();\n// Toast.makeText(this,rawResult.getBarcodeFormat().toString(),Toast.LENGTH_LONG).show();\n\n\n if (rawResult.getText().equals(\"admin\")) {\n\n Intent intent = new Intent(ScannerActivity.this, ExamPage.class);\n startActivity(intent);\n finish();\n\n\n } else {\n\n Toast.makeText(this,\"Wrong QR Code\",Toast.LENGTH_LONG).show();\n Intent intent = new Intent(ScannerActivity.this, ScannerActivity.class);\n startActivity(intent);\n finish();\n\n\n }\n\n\n\n SharedPreferences sp = getSharedPreferences(\"PREF_NAME\", Context.MODE_PRIVATE);\n String qrText = sp.getString(\"QR_Code\", String.valueOf(-1));\n Toast.makeText(this,qrText,Toast.LENGTH_LONG).show();\n\n\n Log.v(\"Scan\", rawResult.getText()); // Prints scan results\n Log.v(\"Scan\", rawResult.getBarcodeFormat().toString()); // Prints the scan format (qrcode, pdf417 etc.)\n }", "protected void onPostExecute(String result) {\n showOpinionCreatedMessage(Integer.parseInt(result));\n }", "@Override\n protected void onPostExecute(String result) {\n Log.i(TAG, \"STATUS IS: \" + result);\n }", "@Override\r\n protected void onReceiveResult(int resultCode, Bundle resultData) {\n String adderssOutput = resultData.getString(Constants.RESULT_DATA_KEY);\r\n\r\n if (resultCode == Constants.SUCCESS_RESULT) {\r\n mTextView.setText(adderssOutput);\r\n }\r\n }", "public void resultReceived(String result)\n {\n Log.d(TAG, \"Recevied result from TTS callback receiver: \" + result);\n }", "@Override\r\n\t\t\t\t\t\tpublic void result(ResposneBundle b) {\n\t\t\t\t\t\t\tLog.e(\"result\", b.getContent());\r\n\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tJSONObject job = new JSONObject(b.getContent());\r\n\t\t\t\t\t\t\t\tif (job.getInt(\"code\") == -1) {\r\n\t\t\t\t\t\t\t\t\tact.showToast(job.getString(\"msg\"));\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tf.refreshFriendList();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} catch (JSONException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}", "protected void erweimaJsonInfo(String result) {\n\t\ttry {\n\t\t\tJSONObject object = new JSONObject(result);\n\t\t\tString status = object.getString(\"code\");\n\t\t\tif (\"200\".equals(status)) {\n\t\t\t\tmember_qrcode = object.getString(\"member_qrcode\");\n\t\t\t\tJSONObject jo = object.getJSONObject(\"data\");\n\t\t\t\tmember_name = jo.getString(\"member_name\");\n\t\t\t\tString avator = jo.getString(\"avator\");\n\t\t\t\thandler.sendEmptyMessage(HANDLER_ERWEIMA_SUCCESS);\n\t\t\t} else if (\"700\".equals(status)){\n\t\t\t\tString message = object.getString(\"message\");\n\t\t\t\thandler.sendEmptyMessage(HANDLER_TOKEN_FAILURE);\n\t\t\t}else {\n\t\t\t\tString message = object.getString(\"message\");\n\t\t\t\thandler.sendMessage(handler.obtainMessage(\n\t\t\t\t\t\tHANDLER_GETINFO_FAILURE, message));\n\t\t\t}\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\thandler.sendEmptyMessage(HANDLER_NN_FAILURE);\n\t\t}\n\t}", "@Override\r\n protected void onPostExecute(String result) {\n int intresult = Integer.parseInt(result);\r\n recorderActivity.lastcc = intresult;\r\n if(intresult >= 0){\r\n //Success to UI using res Recorder activity has boolean of let user take movie\r\n recorderActivity.HideWarningButton();\r\n }\r\n else if(intresult == -10)\r\n {\r\n //Too Dark\r\n recorderActivity.ShowWarningButton();\r\n }\r\n else if(intresult == -11)\r\n {\r\n //Unacceptable\r\n recorderActivity.ShowWarningButton();\r\n }\r\n else if(intresult < 0 && intresult > -10){\r\n //user is risking a bad movie\r\n recorderActivity.ShowWarningButton();\r\n }\r\n }", "@Override\n\t\tprotected void onPostExecute(Boolean result) {\n\t\t\tshowResult(result);\n\t\t}", "void mo24178a(ResultData resultdata);", "public void onResult(boolean[] results, String errorMsg);", "public void onPostExecute(Void result) {\n if (InfoMainTestFragment.this.sports_result <= 0 || InfoMainTestFragment.this.hvs_result <= -1 || InfoMainTestFragment.this.pace_result <= -1) {\n InfoMainTestFragment.this.sendMessage(9, 0);\n } else {\n Log.i(InfoMainTestFragment.TAG, \"sports_result:\" + InfoMainTestFragment.this.sports_result + \"hvs_result:\" + InfoMainTestFragment.this.hvs_result + \"pace_result:\" + InfoMainTestFragment.this.pace_result);\n InfoMainTestFragment.this.sendMessage(9, 0);\n }\n super.onPostExecute(result);\n }", "public void setResult (String Result);", "@Override\n protected void onCancelled(String result) {\n\n try{\n\n mDoInBackground.onCancelled(result);\n\n }catch(Exception ex){\n\n ErrorHandler.logError(ex);\n }\n }", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tif(\"false\".equals(result)){\n\t\t\t\t\t\tLog.e(TAG,\"图片没识别出脸\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tfacepp.addface2person(sp.getString(facepp.PERSON+\"ddd\", \"\"), result, new CallBack() {\n\t\t\t\t\t\t\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void result(String result) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}", "protected abstract void onCustomSuccess(T result);", "@Override\n protected void onPostExecute(String result){\n Log.i(TAG, \"Returned register result is: \" + result);\n if(result.equals(\"Username is not available\"))\n {\n //Log.i(TAG, \"No login returned\");\n loginRegisterResultTextview.setText(R.string.Username_is_already_used);\n }\n else if(result.equals(\"Email is not available\"))\n {\n loginRegisterResultTextview.setText(R.string.The_Email_address_has_already_been_used);\n }\n else\n {\n loginRegisterResultTextview.setText(R.string.You_have_been_registered);\n context.startActivity(new Intent(context, Login.class));\n }\n }", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\t\n\t\t\tLog.d(TAG, \"after post\");\n\t\t\tif (google_error == 1) {\n\t\t\t\tContext context = getApplicationContext();\n\t\t\t\tCharSequence text = \"Login Fail,Please Check your Internet\";\n\t\t\t\tint duration = Toast.LENGTH_SHORT;\n\t\t\t\tToast toast = Toast.makeText(context, text, duration);\n\t\t\t\ttoast.show();\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(homepager.this, MainActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t\tif (ret_id != null && google_error == 0) {\n\t\t\t\tSharedPreferences.Editor editor = data.edit();\n\t\t\t\teditor.putString(\"uid\", ret_id);\n\t\t\t\tContext context = getApplicationContext();\n\t\t\t\tCharSequence text = \"Login Success\";\n\t\t\t\tint duration = Toast.LENGTH_SHORT;\n\t\t\t\tToast toast = Toast.makeText(context, text, duration);\n\t\t\t\ttoast.show();\n\t\t\t\teditor.putInt(\"login\", 1);\n\t\t\t\teditor.commit();\n\t\t\t\tLog.d(TAG, \"Uid:\" + ret_id);\n\t\t\t}\n\t\t}", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\t\n\t\t\tif(response1.contains(\"success\"))\n\t\t\t{\n\t\t\t\trg_parsingmethod();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tToast.makeText(getApplicationContext(), \"No new registrations\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t}", "@Override\n\tprotected void onPostExecute(String result) {\n\t\tpDialog.dismiss();\n\t\tif(result!=null)\n\t\t{\n\t\t\tif(result.equalsIgnoreCase(\"0\"))\n\t\t\t{\n\t\t\t\tToast.makeText(context, \"Some Error Occured Please try again\", Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(result.equalsIgnoreCase(\"3\"))\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(context, \"No Network Found\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(result.equalsIgnoreCase(\"2\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tToast.makeText(context, \"This Activity is Already planned\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tToast.makeText(context, \"Planned Successfully\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tToast.makeText(context, \"Some Error Occured Please try again\", Toast.LENGTH_LONG).show();\n\t\t}\n\t\tmListView.startRefreshing();\n\t}", "@Override\n public void onTaskComplete(String result) {\n\n //TODO\n\n }", "void showResultMoError(String e);" ]
[ "0.7578612", "0.7578612", "0.7492718", "0.7492718", "0.7450547", "0.7450547", "0.7450547", "0.7450547", "0.7450547", "0.7450547", "0.7450547", "0.7450547", "0.723742", "0.723742", "0.6915548", "0.69087905", "0.67833614", "0.67733496", "0.676258", "0.66778636", "0.6674346", "0.6641623", "0.66205585", "0.6619096", "0.66140074", "0.6608236", "0.65617126", "0.6537237", "0.6522127", "0.6504193", "0.6503077", "0.64905304", "0.64886755", "0.6486346", "0.6483146", "0.6481041", "0.6481041", "0.64728683", "0.647076", "0.6423958", "0.64136726", "0.64113116", "0.6370045", "0.6365059", "0.6364016", "0.63636476", "0.63634294", "0.63603944", "0.63379663", "0.63219565", "0.63219386", "0.63219386", "0.6297684", "0.62852365", "0.62784433", "0.62774885", "0.6269346", "0.6261529", "0.62515116", "0.62478405", "0.62478405", "0.62428254", "0.62428254", "0.62428254", "0.62418073", "0.6240784", "0.62401325", "0.6237131", "0.6227611", "0.62135196", "0.621249", "0.6207373", "0.61999583", "0.61999583", "0.6197786", "0.6196489", "0.619463", "0.6193353", "0.6186069", "0.618037", "0.61681694", "0.6165954", "0.61544186", "0.6151497", "0.61505854", "0.6145356", "0.6133193", "0.6131856", "0.6129603", "0.6126067", "0.6119543", "0.6116082", "0.6106842", "0.6104624", "0.6098219", "0.60877216", "0.6083652", "0.60835624", "0.60811", "0.60789305", "0.60708815" ]
0.0
-1
do stuff with the result or error Log.d("result", result.toString());
@Override public void onCompleted(Exception e, JsonObject result) { if(e != null){ e.printStackTrace(); Toast.makeText(MainActivity.this, "erreur service", Toast.LENGTH_SHORT).show(); }else{ List<Weather> weatherList = new ArrayList<>(); String timeZone = result.get("timezone").getAsString(); JsonArray daily =result.get("daily").getAsJsonArray(); for(int i=1; i<daily.size(); i++){ Long date = daily.get(i).getAsJsonObject().get("dt").getAsLong(); Double temp = daily.get(i).getAsJsonObject().get("temp").getAsJsonObject().get("day").getAsDouble(); String icon = daily.get(i).getAsJsonObject().get("weather").getAsJsonArray().get(0).getAsJsonObject().get("icon").getAsString(); weatherList.add(new Weather(date,timeZone,temp,icon)); } DailyWeatherAdapter dailyWeatherAdapter = new DailyWeatherAdapter(MainActivity.this, weatherList); lvDaillyweather.setAdapter(dailyWeatherAdapter); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\tLog.e(TAG,result);\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\tLog.e(TAG,result);\t\n\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void result(String result) {\n\t\t\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void result(String result) {\n\t\t\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "private void handleErrorsInTask(String result) {\n Log.e(\"ASYNC_TASK_ERROR\", result);\n }", "private void handleErrorsInTask(String result) {\n Log.e(\"ASYNC_TASK_ERROR\", result);\n }", "public void doResult() throws Exception {\n\t\tJSONObject map=new JSONObject(getResult());\n\t\tif(!\"ok\".equalsIgnoreCase(map.getString(\"status\"))){\n\t\t\tdoFailureResult();\n\t\t\treturn;\n\t\t}\n\t\tif(getHandler()!=null){\n\t\t\tMessage hmsg=getHandler().obtainMessage();\n\t\t\thmsg.obj=map;\n\t\t\thmsg.arg1=1;\n\t\t\tgetHandler().sendMessage(hmsg);\n\t\t\tsetHandler(null);\n\t\t}\n\t}", "protected void handleResult(String result) {}", "@Override\n\t\t\t public void resultLoaded(int err, String reason, String result) {\n\t\t\t \n\t\t\t\t dialog.cancel();\n\t\t\t\t \n\t\t\t\t if (err == 0) {//成功获取数据的情况\n\t\t\t\t\t \n\t\t\t\t\t try {\n\t\t\t\t\t\t \n\t\t\t\t\tJSONObject resultObject=new JSONObject(result);\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t if(resultObject.isNull(\"result\")){//判断车次是否存在\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tToast.makeText(getActivity(), \"航班不存在...\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} else{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t //成功获取到数据,在此处仅专递数据,并不对数据进行处理\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tBundle bundle=new Bundle();\n\t\t\t\t\t\t\t\tbundle.putString(\"result\", result);//将JSON数据直接传递过去\n\t\t\t\t\t\t\t\tbundle.putString(\"date\", flightDataShow.getText().toString().trim());//将日期传递过去\n\t\t\t\t\t\t\t\tIntent intent=new Intent(getActivity(),FlightResultActivity.class);\n\t\t\t\t\t\t\t\tintent.putExtra(\"FlightBundle\", bundle);\n\t\t\t\t\t\t\t\t startActivity(intent);\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\n\t\t\t \t\t} catch (JSONException 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\t \n\t\t\t\t\t} else {//非成功获取数据\n\t\t\t\t\t\t\n\t\t\t\t\t\t Toast.makeText(getActivity(), \"数据获取失败...\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t \n\t\t\t }", "@Override\r\n\r\n public void getResult(String result) {\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }", "private static void checkError(String result) {\n String err = Neo4jUtils.extractErrorData(result);\n if (err == null) {\n return;\n }\n throw new RuntimeException(err);\n }", "public void processResult(String json){\n Result res = gson.fromJson(json, Result.class);\n\n // Jika tidak terdapat error, maka lakukan pemrosesan data\n // dan ditampilkan pada TextView.\n res.getError();\n MainActivity mainActivity = new MainActivity();\n mainActivity.tvHasil.setText(res.getResult().toString());\n\n }", "public static void resultMessage (int result) {\n System.out.println(\"The result of choosed operation is: \" + result);\n }", "public void setResult(String result) {\n this.result = result;\n }", "public void setResult(String result)\n {\n this.result = result;\n }", "private void result(String result) {\n\n Log.d(LOG_TAG, \"result method\");\n setInfo(result + \"\\n НОВАЯ ИГРА\" + \"\\n побед первого игрока =\" + winsOfPlayerOne + \"\\n побед второго игрока:\" + winsOfPlayerTwo);\n enableAllButtons(false);\n startNewGame();\n Toast.makeText(this, \"Игра окончена\", Toast.LENGTH_LONG).show();\n\n }", "public void setResult(String result) {\n this.result = result;\n }", "@Override\r\n\r\n public void getResult(String result) {\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }", "@Override\n\tprotected void onPostExecute(String result) {\n\t\tLog.d(TAG, result);\n\t}", "void onResult(int ret);", "private void handleErrorsInTask(String result) {\n Log.e(\"ASYNC_TASK_ERROR\", result);\n mListener.onWaitFragmentInteractionHide();\n }", "@Override\n protected void onPostExecute(String result) {\n Log.i(\"this is the result\", \"HULA\");\n //Do anything with response..\n }", "@Override\r\n public void onResult(String result)\r\n {\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, \"SN = \"+result));\r\n }", "abstract protected void reportResult(Result result);", "public void setResult(String result)\r\n\t{\r\n\t\tthis.result = result;\r\n\t}", "public abstract void displayResult(Result result);", "@Override\n\t\t\tpublic void onFailure(String result) {\n\t\t\t\tLog.e(\"fail\",result);\n\t\t\t}", "void onResult(T result);", "void onResult(T result);", "@Override\r\n public void onSuccess(RestRequest request, RestResponse result) {\n result.consumeQuietly();\r\n runOnUiThread(new Runnable() {\r\n\r\n @Override\r\n public void run() {\r\n // Network component doesn’t report app layer status.\r\n // Use the Mobile SDK RestResponse.isSuccess() method to check\r\n // whether the REST request itself succeeded.\r\n\r\n try {\r\n\r\n Log.d(\"APITest\", \"success entered\");\r\n\r\n }\r\n catch (Exception e) {\r\n //showError(MainActivity.this, e);\r\n }\r\n\r\n }\r\n });\r\n\r\n }", "@Override\r\n\tprotected void onPostExecute(String result) {\n\t\tsuper.onPostExecute(result);\r\n\t\t if(result.equals(\"error\")){\r\n\t \t\tToast.makeText(getApplicationContext(), \"服务器忙,请重试\", 0).show(); \t\r\n\t\t }else{\r\n\t Intent intent=new Intent();\r\n\t\t intent.putExtra(\"qqnumber\", result);\r\n\t \tintent.setClass(RegistActivity.this, RegistSuccessActivity.class);\r\n\t\t\t startActivity(intent);\r\n\t\t\t RegistActivity.this.finish();\r\n\t\t\t }\r\n\t}", "@Override\n\t protected void onPostExecute(String result) {\n\t }", "@Override\n public void onResult(Bundle bundle) {\n final String result = bundle.getString(DiabetesAppConnection.RESULT_KEY, \"\");\n\n if (result.equals(DiabetesAppConnection.RESULT_UNAUTHORIZED)) {\n mResult.setText(\"Unauthorized\");\n mReadData.setEnabled(false);\n mPushData.setEnabled(false);\n return;\n }\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mResult.setText(\"PushData result = \" + result);\n }\n });\n }", "@Override\n\t\t\t\t\tpublic void onSuccess(Integer result) {\n\t\t\t\t\t\tif (result == 0) {\n\t\t\t\t\t\t\tgetApplyDialog();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToastUtil.showToast(context, \"无法获取游戏信息\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}", "@Override\n protected void onPostExecute(String result) {\n // tvResult.setText(result);\n }", "@Override\r\n public void onResult(DJIError result)\r\n {\n \r\n }", "protected void onPostExecute(String result) {\r\n\r\n\t\t}", "@Override\n\tpublic void onTaskComplete(JSONObject result) {\n\t\tString valid = null; \n\t\tString nickname = null;\n\t\tString regDate = null;\n\t\ttry {\n\t\t\tvalid = result.getString(\"validation\");\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//Toast.makeText(Signin.this, \"beforeIF\", Toast.LENGTH_SHORT).show();\n\t\tif(valid.equals(\"badName\")){\n\t\t\tToast.makeText(Signin.this, \"Bad User Name!\", Toast.LENGTH_SHORT).show();\n\t\t}\n\t\telse if(valid.equals(\"badPw\")){\n\t\t\tToast.makeText(Signin.this, \"Wrong Password!\", Toast.LENGTH_SHORT).show();\n\n\t\t}\n\t\telse if(valid.equals(\"pass\")){\n\t\t\ttry {\n\t\t\t\tnickname = result.getString(\"nickname\");\n\t\t\t\tregDate = result.getString(\"regDate\");\n\t\t\t} catch (JSONException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tToast.makeText(Signin.this, \"YO~\", Toast.LENGTH_SHORT).show();\n\t\t\tToast.makeText(Signin.this, nickname, Toast.LENGTH_SHORT).show();\n\t\t\tToast.makeText(Signin.this, regDate, Toast.LENGTH_SHORT).show();\n\t\t}\n\t\telse{\n\t\t\tToast.makeText(Signin.this, \"ΤόΤό\", Toast.LENGTH_SHORT).show();\n\n\t\t}\n\t}", "@Override\r\n\t\tprotected void onPostExecute(Integer result) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\tsuper.onPostExecute(result);\r\n\r\n\t\t\tif (result == 1) {\r\n\t\t\t\tAlertDialog.Builder alert = new AlertDialog.Builder(\r\n\t\t\t\t\t\tgetActivity());\r\n\t\t\t\talert.setMessage(\"Load instruction performed\");\r\n\t\t\t\talert.setTitle(\"Success\");\r\n\t\t\t\talert.setPositiveButton(\"Okay\",\r\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\talert.show();\r\n\t\t\t} else if (result == 0) {\r\n\t\t\t\tAlertDialog.Builder alert = new AlertDialog.Builder(\r\n\t\t\t\t\t\tgetActivity());\r\n\t\t\t\talert.setMessage(\"Failed\");\r\n\t\t\t\talert.setTitle(\"try again\");\r\n\t\t\t\talert.show();\r\n\r\n\t\t\t}\r\n\r\n\t\t}", "public int getResult() {return resultCode;}", "@Override\n\t\tprotected void onPostExecute(ResultUserLogin result) {\n\t\t\tsuper.onPostExecute(result);\n//\t\t\tif(result.getRet() == 0){\n//\t\t\t\t//\n//\t\t\t}else{\n//\t\t\t\tresult.getMsg()\n//\t\t\t}\n\t\t}", "public Result b(Result result) {\n f.obtainMessage(1, new AsyncTaskResult(this, result)).sendToTarget();\n return result;\n }", "protected void onPostExecute(String result) {\n pDialog.dismiss();\n\n Log.d(\"workshop onPostExecute:\",result);\n\n try {\n // Checking for SUCCESS TAG\n // Check your log cat for JSON reponse\n jObj_result = new JSONObject(result);\n v_success = jObj_result.getInt(TAG_SUCCESS);\n v_msg = jObj_result.getString(TAG_MSG);\n\n } catch (JSONException e) {\n v_success = 0;\n e.printStackTrace();\n }\n\n Log.d(\"workshop v_msg:\",v_msg);\n if (v_success == 1) {\n Toast.makeText(myContext, v_msg, Toast.LENGTH_SHORT).show();\n } //else msg Erro\n\n }", "protected void onPostExecute(String result) {\n pDialog.dismiss();\n\n Log.d(\"workshop onPostExecute:\",result);\n\n try {\n // Checking for SUCCESS TAG\n // Check your log cat for JSON reponse\n jObj_result = new JSONObject(result);\n v_success = jObj_result.getInt(TAG_SUCCESS);\n v_msg = jObj_result.getString(TAG_MSG);\n\n } catch (JSONException e) {\n v_success = 0;\n e.printStackTrace();\n }\n\n Log.d(\"workshop v_msg:\",v_msg);\n if (v_success == 1) {\n Toast.makeText(myContext, v_msg, Toast.LENGTH_SHORT).show();\n } //else msg Erro\n\n }", "@Override\n protected void onPostExecute(String result) {\n\n try {\n\n //If Conn. to Server is dead\n if (result.contains(getText(R.string.LoginFailureNoConn))) {\n mainActivity.setAlert(getText(R.string.LoginFailureNoConn).toString());\n }\n else if (result.contains(\"success\")) {\n JSONObject obj = new JSONObject(result);\n result = obj.getString(\"status\");\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "public boolean parseResult( Exception e, T result) {\n\n if (e != null) {\n e.printStackTrace();\n ErrorModel em = new ErrorModel();\n if (e.getClass().equals(SocketTimeoutException.class)) {\n em.setMsg(\"Network Error. Waited for so long. :-(\");\n em.setType(ApiErrors.TIME_OUT.toString());\n// Toast.makeText(context, em.getMsg(),\n// Toast.LENGTH_SHORT).show();\n } else if (e.getClass().equals(SocketException.class)) {\n em.setMsg(\"oops... Connectivity issue :-(\");\n em.setType(ApiErrors.CONNECTION.toString());\n// Toast.makeText(context, em.getMsg(),\n// Toast.LENGTH_SHORT).show();\n } else if (e.getClass().equals(ConnectException.class)) {\n em.setMsg(\"oops... Connectivity issue :-(\");\n em.setType(ApiErrors.CONNECTION.toString());\n// Toast.makeText(context, em.getMsg(),\n// Toast.LENGTH_SHORT).show();\n } else {\n em.setMsg(\"Something unexpected has happened, please try again later: -(\");\n //Toast.makeText(context, em.getMsg(),\n // Toast.LENGTH_SHORT).show();\n }\n em.setField(\"nw\");\n List<ErrorModel> list = new ArrayList();\n list.add(em);\n onError(list);\n return false;\n }\n if (result != null) {\n onSuccess(result);\n return true;\n }\n ErrorModel em = new ErrorModel();\n em.setMsg(\"Some thing has Happened!\");\n em.setType(ApiErrors.UNKNOWN.toString());\n// Toast.makeText(context, em.getMsg(),\n// Toast.LENGTH_SHORT).show();\n List<ErrorModel> list = new ArrayList();\n list.add(em);\n onError(list);\n return false;\n\n }", "@Override\n public void onCompleted(Exception e, String result) {\n if (e != null) {\n Log.e(\"API Error\", e.getMessage());\n } else {\n Log.e(\"API Response\", result);\n }\n }", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\tif(resp.contains(\"success\"))\n\t\t\t{\n\t\t\t\tparsingmethod();\n\t\t\t\tToast.makeText(getApplicationContext(), resp, Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tToast.makeText(getApplicationContext(), resp, Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t}", "protected void setResult(R result) {\n _result = result;\n }", "public static void setResult(String resultInfo) {\n }", "@Override\n protected void checkResult(int pResult) throws ACBrException {\n switch (pResult) {\n case -1: {\n String lMessage;\n final int LEN = 1024;\n ByteBuffer buffer = ByteBuffer.allocate(LEN);\n int ret = ACBrAACInterop.INSTANCE.AAC_GetUltimoErro(getHandle(), buffer, LEN);\n\n lMessage = fromUTF8(buffer, ret);\n throw new ACBrException(lMessage);\n }\n case -2: {\n throw new ACBrException(\"ACBr AAC não inicializado.\");\n }\n }\n }", "@Override\n protected void onPostExecute(String result) {\n\n }", "@Override\n protected void onPostExecute(String result) {\n\n }", "@Override\n protected void onPostExecute(String result) {\n }", "@Override\n protected void onPostExecute(String result) {\n }", "@Override\n protected void onPostExecute(String result) {\n }", "@Override\r\n public void onResult(String result)\r\n {\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, \"Firmware version = \"+result));\r\n }", "@Override\n public void handleResult(Result result) {\n Log.w(\"handleResult\", result.getText());\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Scan result\");\n builder.setMessage(result.getText());\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n\n\n //Resume scanning\n //mScannerView.resumeCameraPreview(this);\n }", "@Override\n public void onResult(final AIResponse result) {\n DobbyLog.i(\"Action: \" + result.getResult().getAction());\n }", "@Override\n protected void onPostExecute(String result) {\n if (null != hud)\n hud.dismissHUD();\n if (isCancelled()) {\n return;\n }\n if (result != null) {\n JSONObject obj = null;\n try {\n obj = new JSONObject(result);\n } catch (JSONException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n try {\n if (obj == null) {\n SomeDialog dialog = new SomeDialog(\"Error\", Constant.INTERNET_CONNECT_ERROR,\n \"OKay\", \"\", null);\n dialog.show(fManager, \"dialog\");\n } else {\n if (obj.getInt(\"success\") == 1) {\n this.interfa.didSuccessWithMessage(obj.getString(\"message\"));\n } else {\n this.interfa.didFailWithMessage(obj.getString(\"message\"));\n }\n }\n\n } catch (JSONException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n } else {\n SomeDialog dialog = new SomeDialog(\"Login\", Constant.INTERNET_CONNECT_ERROR, \"OK\", \"\",\n null);\n dialog.show(fManager, \"dialog\");\n }\n }", "protected void onPostExecute(String result) {\n }", "@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t\tswitch(requestCode){\r\n\t\tcase QUERYACTIVITYCODE:{\r\n\t\t\tif(resultCode==Activity.RESULT_OK){\r\n\r\n\t\t\t\ttv_query.setText(data.getStringExtra(\"codestr\"));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\t//Toast.makeText(CircleActivity.this, \"未登录\", Toast.LENGTH_LONG).show();;\r\n\t\t\t\t;\r\n\t\t}\r\n\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tloading.dismiss();\r\n\t\t\t\t\t\t\t\tif(result.equals(\"0\"))\r\n\t\t\t\t\t\t\t\t\tT.mToast(SignUpActivity.this, \"Error\");\r\n\t\t\t\t\t\t\t\tif(result.equals(\"1\"))\r\n\t\t\t\t\t\t\t\t\tT.mToast(SignUpActivity.this,\r\n\t\t\t\t\t\t\t\t\t\t\t\"Sign in successfully\");\r\n\t\t\t\t\t\t\t\tif(result.equals(\"2\"))\r\n\t\t\t\t\t\t\t\t\tT.mToast(SignUpActivity.this, \"This user exists\");\r\n\t\t\t\t\t\t\t\tif(result.equals(\"3\"))\r\n\t\t\t\t\t\t\t\t\tT.mToast(SignUpActivity.this, \"Error\");\r\n\t\t\t\t\t\t\t}", "public void setResult(Result result) {\n this.result = result;\n }", "@Override\n \t\t\t\tpublic void finished(Response response) {\n \t\t\t\t\tLog.w(\"myApp\", response.getResult() + \" \" + response.getError());\n \t\t\t\t}", "@Override\n \t\t\t\tpublic void finished(Response response) {\n \t\t\t\t\tLog.w(\"myApp\", response.getResult() + \" \" + response.getError());\n \t\t\t\t}", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\tif(upresp.contains(\"success\"))\n\t\t\t{\n\t\t\t\tToast.makeText(getApplicationContext(), upresp, Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tToast.makeText(getApplicationContext(), upresp, Toast.LENGTH_SHORT).show();\n\n\t\t\t}\n\t\t}", "@Override\n\t\tprotected void onPostExecute(Object result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\tif (mLoading.isShowing()) {\n\t\t\t\tmLoading.stop();\n\t\t\t}\n\n\t\t\tif (result instanceof String\n\t\t\t\t\t&& ((String) result).startsWith(\"error\")) {\n\t\t\t\tToast.makeText(vThis, (String) result, Toast.LENGTH_SHORT)\n\t\t\t\t\t\t.show();\n\t\t\t} else {\n\n\t\t\t\t// 这里成功\n\n\t\t\t\tUserModel model = (UserModel) result;\n\n\t\t\t\tSpManager.setShopInfo(vThis, model);\n\n\t\t\t\t// Intent itemlist = new Intent(vThis, MainActivity.class);\n\t\t\t\tif (model.getAuth() == 18) {\n\t\t\t\t\tIntent itemlist = new Intent(vThis, MoveActivity.class);\n\t\t\t\t\tstartActivity(itemlist);\n\t\t\t\t} else {\n\t\t\t\t\tIntent itemlist = new Intent(vThis, MainActivity.class);\n\t\t\t\t\tstartActivity(itemlist);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}", "private static Response process(Object result) {\n if (result == null) return Response.serverError().build();\n if (result instanceof Response.Status) return Response.status((Response.Status) result).build();\n return Response.ok(result).build();\n }", "@Override\n protected void onPostExecute(String result) {\n loading.showProgress(UserEditActivity.this, viewLoading, false);\n\n // If returned string is success (204)\n if(result.equals(\"204\")) {\n AlertDialog.Builder builder = new AlertDialog.Builder(UserEditActivity.this);\n builder.setMessage(R.string.text_edit_message)\n .setTitle(R.string.text_success_title)\n .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n startActivity(new Intent(((Dialog)dialog).getContext(), UserListActivity.class));\n }\n });\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n // If returned string is NetworkException\n else if(result == \"NetworkException\") {\n //TODO: Show message about exception return\n Toast.makeText(\n getApplicationContext(),\n R.string.exception_network,\n Toast.LENGTH_LONG)\n .show();\n }\n // If returned string is Exception\n // Or return \"401\"\n else {\n //TODO: Show message about exception return\n Toast.makeText(\n getApplicationContext(),\n R.string.exception_service,\n Toast.LENGTH_LONG)\n .show();\n }\n }", "public void setResult(Object result) {\n this.result = result;\n }", "@Override\n public void handleResult(Result rawResult) {\n\n Toast.makeText(this,rawResult.getText(),Toast.LENGTH_LONG).show();\n// Toast.makeText(this,rawResult.getBarcodeFormat().toString(),Toast.LENGTH_LONG).show();\n\n\n if (rawResult.getText().equals(\"admin\")) {\n\n Intent intent = new Intent(ScannerActivity.this, ExamPage.class);\n startActivity(intent);\n finish();\n\n\n } else {\n\n Toast.makeText(this,\"Wrong QR Code\",Toast.LENGTH_LONG).show();\n Intent intent = new Intent(ScannerActivity.this, ScannerActivity.class);\n startActivity(intent);\n finish();\n\n\n }\n\n\n\n SharedPreferences sp = getSharedPreferences(\"PREF_NAME\", Context.MODE_PRIVATE);\n String qrText = sp.getString(\"QR_Code\", String.valueOf(-1));\n Toast.makeText(this,qrText,Toast.LENGTH_LONG).show();\n\n\n Log.v(\"Scan\", rawResult.getText()); // Prints scan results\n Log.v(\"Scan\", rawResult.getBarcodeFormat().toString()); // Prints the scan format (qrcode, pdf417 etc.)\n }", "protected void onPostExecute(String result) {\n showOpinionCreatedMessage(Integer.parseInt(result));\n }", "@Override\n protected void onPostExecute(String result) {\n Log.i(TAG, \"STATUS IS: \" + result);\n }", "@Override\r\n protected void onReceiveResult(int resultCode, Bundle resultData) {\n String adderssOutput = resultData.getString(Constants.RESULT_DATA_KEY);\r\n\r\n if (resultCode == Constants.SUCCESS_RESULT) {\r\n mTextView.setText(adderssOutput);\r\n }\r\n }", "public void resultReceived(String result)\n {\n Log.d(TAG, \"Recevied result from TTS callback receiver: \" + result);\n }", "@Override\r\n\t\t\t\t\t\tpublic void result(ResposneBundle b) {\n\t\t\t\t\t\t\tLog.e(\"result\", b.getContent());\r\n\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tJSONObject job = new JSONObject(b.getContent());\r\n\t\t\t\t\t\t\t\tif (job.getInt(\"code\") == -1) {\r\n\t\t\t\t\t\t\t\t\tact.showToast(job.getString(\"msg\"));\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tf.refreshFriendList();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} catch (JSONException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}", "protected void erweimaJsonInfo(String result) {\n\t\ttry {\n\t\t\tJSONObject object = new JSONObject(result);\n\t\t\tString status = object.getString(\"code\");\n\t\t\tif (\"200\".equals(status)) {\n\t\t\t\tmember_qrcode = object.getString(\"member_qrcode\");\n\t\t\t\tJSONObject jo = object.getJSONObject(\"data\");\n\t\t\t\tmember_name = jo.getString(\"member_name\");\n\t\t\t\tString avator = jo.getString(\"avator\");\n\t\t\t\thandler.sendEmptyMessage(HANDLER_ERWEIMA_SUCCESS);\n\t\t\t} else if (\"700\".equals(status)){\n\t\t\t\tString message = object.getString(\"message\");\n\t\t\t\thandler.sendEmptyMessage(HANDLER_TOKEN_FAILURE);\n\t\t\t}else {\n\t\t\t\tString message = object.getString(\"message\");\n\t\t\t\thandler.sendMessage(handler.obtainMessage(\n\t\t\t\t\t\tHANDLER_GETINFO_FAILURE, message));\n\t\t\t}\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\thandler.sendEmptyMessage(HANDLER_NN_FAILURE);\n\t\t}\n\t}", "@Override\r\n protected void onPostExecute(String result) {\n int intresult = Integer.parseInt(result);\r\n recorderActivity.lastcc = intresult;\r\n if(intresult >= 0){\r\n //Success to UI using res Recorder activity has boolean of let user take movie\r\n recorderActivity.HideWarningButton();\r\n }\r\n else if(intresult == -10)\r\n {\r\n //Too Dark\r\n recorderActivity.ShowWarningButton();\r\n }\r\n else if(intresult == -11)\r\n {\r\n //Unacceptable\r\n recorderActivity.ShowWarningButton();\r\n }\r\n else if(intresult < 0 && intresult > -10){\r\n //user is risking a bad movie\r\n recorderActivity.ShowWarningButton();\r\n }\r\n }", "@Override\n\t\tprotected void onPostExecute(Boolean result) {\n\t\t\tshowResult(result);\n\t\t}", "void mo24178a(ResultData resultdata);", "public void onResult(boolean[] results, String errorMsg);", "public void onPostExecute(Void result) {\n if (InfoMainTestFragment.this.sports_result <= 0 || InfoMainTestFragment.this.hvs_result <= -1 || InfoMainTestFragment.this.pace_result <= -1) {\n InfoMainTestFragment.this.sendMessage(9, 0);\n } else {\n Log.i(InfoMainTestFragment.TAG, \"sports_result:\" + InfoMainTestFragment.this.sports_result + \"hvs_result:\" + InfoMainTestFragment.this.hvs_result + \"pace_result:\" + InfoMainTestFragment.this.pace_result);\n InfoMainTestFragment.this.sendMessage(9, 0);\n }\n super.onPostExecute(result);\n }", "public void setResult (String Result);", "@Override\n protected void onCancelled(String result) {\n\n try{\n\n mDoInBackground.onCancelled(result);\n\n }catch(Exception ex){\n\n ErrorHandler.logError(ex);\n }\n }", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tif(\"false\".equals(result)){\n\t\t\t\t\t\tLog.e(TAG,\"图片没识别出脸\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tfacepp.addface2person(sp.getString(facepp.PERSON+\"ddd\", \"\"), result, new CallBack() {\n\t\t\t\t\t\t\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void result(String result) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}", "protected abstract void onCustomSuccess(T result);", "@Override\n protected void onPostExecute(String result){\n Log.i(TAG, \"Returned register result is: \" + result);\n if(result.equals(\"Username is not available\"))\n {\n //Log.i(TAG, \"No login returned\");\n loginRegisterResultTextview.setText(R.string.Username_is_already_used);\n }\n else if(result.equals(\"Email is not available\"))\n {\n loginRegisterResultTextview.setText(R.string.The_Email_address_has_already_been_used);\n }\n else\n {\n loginRegisterResultTextview.setText(R.string.You_have_been_registered);\n context.startActivity(new Intent(context, Login.class));\n }\n }", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\t\n\t\t\tLog.d(TAG, \"after post\");\n\t\t\tif (google_error == 1) {\n\t\t\t\tContext context = getApplicationContext();\n\t\t\t\tCharSequence text = \"Login Fail,Please Check your Internet\";\n\t\t\t\tint duration = Toast.LENGTH_SHORT;\n\t\t\t\tToast toast = Toast.makeText(context, text, duration);\n\t\t\t\ttoast.show();\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(homepager.this, MainActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t\tif (ret_id != null && google_error == 0) {\n\t\t\t\tSharedPreferences.Editor editor = data.edit();\n\t\t\t\teditor.putString(\"uid\", ret_id);\n\t\t\t\tContext context = getApplicationContext();\n\t\t\t\tCharSequence text = \"Login Success\";\n\t\t\t\tint duration = Toast.LENGTH_SHORT;\n\t\t\t\tToast toast = Toast.makeText(context, text, duration);\n\t\t\t\ttoast.show();\n\t\t\t\teditor.putInt(\"login\", 1);\n\t\t\t\teditor.commit();\n\t\t\t\tLog.d(TAG, \"Uid:\" + ret_id);\n\t\t\t}\n\t\t}", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\t\n\t\t\tif(response1.contains(\"success\"))\n\t\t\t{\n\t\t\t\trg_parsingmethod();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tToast.makeText(getApplicationContext(), \"No new registrations\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t}", "@Override\n\tprotected void onPostExecute(String result) {\n\t\tpDialog.dismiss();\n\t\tif(result!=null)\n\t\t{\n\t\t\tif(result.equalsIgnoreCase(\"0\"))\n\t\t\t{\n\t\t\t\tToast.makeText(context, \"Some Error Occured Please try again\", Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(result.equalsIgnoreCase(\"3\"))\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(context, \"No Network Found\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(result.equalsIgnoreCase(\"2\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tToast.makeText(context, \"This Activity is Already planned\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tToast.makeText(context, \"Planned Successfully\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tToast.makeText(context, \"Some Error Occured Please try again\", Toast.LENGTH_LONG).show();\n\t\t}\n\t\tmListView.startRefreshing();\n\t}", "@Override\n public void onTaskComplete(String result) {\n\n //TODO\n\n }", "void showResultMoError(String e);" ]
[ "0.7578277", "0.7578277", "0.7492364", "0.7492364", "0.745021", "0.745021", "0.745021", "0.745021", "0.745021", "0.745021", "0.745021", "0.745021", "0.7238167", "0.7238167", "0.69155276", "0.69089955", "0.6784066", "0.6773164", "0.676368", "0.66777", "0.66744226", "0.66423875", "0.6621487", "0.6619663", "0.6614857", "0.6607902", "0.6561091", "0.6537357", "0.65237355", "0.6503048", "0.650258", "0.6491801", "0.64895767", "0.6486748", "0.6483681", "0.64808154", "0.64808154", "0.6473346", "0.6471006", "0.6423327", "0.6413559", "0.6411428", "0.63696206", "0.6364966", "0.63645124", "0.63644004", "0.6363737", "0.6359515", "0.63373226", "0.63221383", "0.6321394", "0.6321394", "0.6297949", "0.62857664", "0.6277759", "0.627723", "0.62697583", "0.626126", "0.6251983", "0.6247308", "0.6247308", "0.62423533", "0.62423533", "0.62423533", "0.624178", "0.62408656", "0.624077", "0.62371755", "0.6226918", "0.62128097", "0.6212767", "0.62083864", "0.62003994", "0.62003994", "0.6197647", "0.61962634", "0.61943114", "0.6192894", "0.6186821", "0.6179981", "0.616796", "0.6164778", "0.6153663", "0.6151833", "0.6150379", "0.6145616", "0.613332", "0.61317086", "0.612864", "0.6127221", "0.61194503", "0.6116471", "0.61079234", "0.6104772", "0.6098531", "0.6087655", "0.6083897", "0.6083695", "0.60812736", "0.6078786", "0.60720146" ]
0.0
-1
Use the application context, which will ensure that you don't accidentally leak an Activity's context. See this article for more information:
public static synchronized DatabaseHandler getInstance(Context context) { if (sInstance == null) { sInstance = new DatabaseHandler(context.getApplicationContext()); } return sInstance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Activity getContext() {\n return contextWeakReference.get();\n }", "public static Context getAppContext() {\n return mContext;\n }", "private Context getContext() {\n return mContext;\n }", "private Context getContext() {\n return mContext;\n }", "public static Activity getContext() {\n return instance;\n\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n context=getContext();\n\n }", "@Override\n public Context getContext() {\n return this.getApplicationContext();\n }", "private Context getApplicationContext() {\n\t\treturn this.cordova.getActivity().getApplicationContext();\n\t}", "private Context getApplicationContext() {\n\t\treturn this.cordova.getActivity().getApplicationContext();\n\t}", "@Override\r\n\tpublic Context getContext()\r\n\t{\n\t\treturn this.getActivity().getApplicationContext();\r\n\t}", "@Override\n public Context getApplicationContext() {\n return mView.get().getApplicationContext();\n }", "AndroidAppInterface(Context context) {\n this.mContext = context;\n }", "public static Context getContext(){\n return appContext;\n }", "Context getContext() {\n Context context = mContextRef.get();\n return context != null ? context : AppUtil.getAppContext();\n }", "public final Context getContext() {\n return mContext;\n }", "public static Context getApplicationContext() { return mApplicationContext; }", "public Context getApplicationContext();", "public MyApp() {\n sContext = this;\n }", "public Context getContext() {\n return mContext;\n }", "public static Context getAppContext() {\n return _BaseApplication.context;\n }", "public static AndroidContext instance() {\n // 确保Context已经被赋值。\n if (sInstance == null) {\n throw new IllegalStateException(\"Android context was not initialized.\");\n }\n return sInstance;\n }", "public static void initialize(@Nullable Context context) {\n if (sInstance == null) {\n sInstance = new AndroidContext(context);\n }\n }", "private Context getContextAsync() {\n return getActivity() == null ? IotSensorsApplication.getApplication().getApplicationContext() : getActivity();\n }", "public Context getContext() {\n\t\treturn mContext;\n\t}", "@Override\n\tpublic BaseActivity getContext() {\n\t\treturn this;\n\t}", "@Override\n\tpublic BaseActivity getContext() {\n\t\treturn this;\n\t}", "public void setContext(Context _context) {\n context = _context;\n }", "static synchronized Context getContext() {\n checkState();\n return sInstance.mContext;\n }", "public static void initializeApp(Context context) {\n }", "@Override\n public void onContext() {\n }", "@Override\r\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\r\n\t\tcontext=this;\r\n\t}", "public void setContext(Context context) {\n this.context = context;\n }", "static Application getContext() {\n if (ctx == null)\n // TODO: 2019/6/18\n// throw new RuntimeException(\"please init LogXixi\");\n return null;\n else\n return ctx;\n }", "@Provides\n @Singleton\n @ApplicationScope\n public Context provideApplicationContext() {\n return mApp.getApplicationContext();\n }", "@Override\n protected void onResume() {\n// super.onResume();\n MyApplication.getInstance().setcontext(this);\n // Log.e(\"act_tenth_TAG\", \"onResume of :\" + this.getClass().getSimpleName().toString());\n\n\n super.onResume();\n }", "public void mo28521a(Context context) {\n this.f11181a = context != null ? context.getApplicationContext() : null;\n }", "private AppContext()\n {\n }", "public void setContext(Context context) {\n this.contextMain = context;\n }", "public static Context getContext() {\r\n\t\tif (mContext == null)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t\treturn mContext;\r\n\r\n\t}", "@Override\r\n\tpublic void setContext(Context context) {\r\n\t\tthis.context = context;\r\n\t}", "@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n this.context = activity;\n }", "@Override\n\tpublic Void setContext(Context context) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void starctActivity(Context context) {\n\n\t}", "public static ApplicationContext getApplicationContext() {\r\n\t\treturn applicationContext;\r\n\t}", "@Override\n\tpublic void starctActivity(Context context) {\n\t\t\n\t}", "public void initializeContext(Context context) {\n this.context = context;\n }", "public static ApplicationContext getApplicationContext() {\n return appContext;\n }", "private SingletonApp( Context context ) {\n mMB = MessageBroker.getInstance( context );\n }", "public static Context getContext() {\n\t\treturn context;\n\t}", "public static Context getContext() {\n\t\treturn context;\n\t}", "@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t\tcontext = activity;\n\t}", "public synchronized static void setContext(Context con){\n\t\tcontext = con;\n\t}", "@Override\n public Context getContext() {\n return null;\n }", "public Context getContext() {\n return this.mContext;\n }", "public Context getContext() {\n return this.mContext;\n }", "public void setApplicationContext(final ApplicationContext inApplicationContext)\n {\n ctx = inApplicationContext;\n }", "private Activity m33657b(Context context) {\n if (context instanceof Activity) {\n return (Activity) context;\n }\n if (context instanceof ContextWrapper) {\n return m33657b(((ContextWrapper) context).getBaseContext());\n }\n return null;\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tcontext = getApplicationContext();\n\t\t\n\t\tApplicationContextUtils.init(context);\n\t}", "@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\n\t\tcontext = activity;\n\t}", "void setContext(Context context) {\n\t\tthis.context = context;\n\t}", "public static Context getContext() {\n\t\treturn instance;\n\t}", "@Override\n\tprotected Context getContext() {\n\t\treturn getActivity();\n\t}", "public static void init(@NonNull final Context context) {\n BlankjUtils.sApplication = (Application) context.getApplicationContext();\n }", "@Override\n\tpublic void initContext(Activity act) {\n\t\tthis._activity = act;\n\t}", "long getCurrentContext();", "void mo25261a(Context context);", "void setAppCtx(ApplicationContext appCtx);", "public void activityCreated(Context ctx){\n //set Activity context - in this case there is only MainActivity\n mActivityContext = ctx;\n }", "public static void initialize(Context ctx) {\n\t\tmContext = ctx;\n\t}", "public static final void onCreate(@NonNull Activity context) {\n if (sInstance == null) {\n onCreate(context.getApplication());\n }\n }", "ApplicationContext getAppCtx();", "@Override\n public void onCreate() {\n super.onCreate();\n mContext = getApplicationContext();\n mLockApplication = (LockApplication) mContext.getApplicationContext();\n mWinMng = (WindowManager) mContext.getSystemService(Context.WINDOW_SERVICE);\n\n }", "Builder(Activity activity) {\n this.context = activity;\n }", "public static void setApplicationContext( ApplicationContext context ){\n\t\t\tctx = context;\n//\t\telse{\n//\t\t\tSystem.out.println(\"Error, ApplicationContext already has been set\");\n//\t\t}\n\t}", "public ApplicationContext getApplicationContext()\n {\n return this.applicationContext;\n }", "Context createContext();", "Context createContext();", "public Context getActivityContext(){\n return mActivityContext;\n }", "Context getContext();", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n mContext=this;\n \n invokeWeChat();\n }", "public ApplicationContext getApplicationContext() {\n return applicationContext;\n }", "Context context();", "Context context();", "@Test\n public void useAppContext() throws Exception {\n Context appContext = InstrumentationRegistry.getTargetContext();\n\n assertEquals(\"com.mbientlab.bletoolbox.androidbtle.test\", appContext.getPackageName());\n }", "@Override\r\n\tpublic Context getContext() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic Context getContext() {\r\n\t\treturn this.context;\r\n\t}", "@NonNull\n public final AutoRef<Context> getContext() throws IllegalStateException, ReferenceNullException {\n return AutoRef.of(getView().get().getContext());\n }", "void getContext() {\n playerName = getIntent().getExtras().getString(\"player_name\");\n Log.i(\"DiplomaActivity\", \"getContext - Player name: \" + playerName);\n }", "public abstract void mo36026a(Context context);", "@Test\n public void useAppContext() {\n Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();\n assertEquals(\"uk.ac.bham.student.starmegabucks\", appContext.getPackageName());\n }", "@Override\n public void setApplicationContext(ApplicationContext applicationContext) {\n super.setApplicationContext(applicationContext);\n this.applicationContext = applicationContext;\n }", "@Test\n public void useAppContext() throws Exception {\n Context appContext = InstrumentationRegistry.getTargetContext();\n\n assertEquals(\"es.marser.backgroundtools.test\", appContext.getPackageName());\n }", "public Context getContext() {\n return this.mService.mContext;\n }", "public CH340Application() {\n sContext = this;\n }", "public Context getContext() {\n\t\treturn null;\n\t}", "@Override\n public void onCreate() {\n super.onCreate();\n application = this;\n }", "public MyServiceDataSingleton(Context context) {\r\n myContext = context;\r\n }", "public Context getContext() {\n return context;\n }", "@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) {\n\t\tthis.applicationContext = applicationContext;\n\t}", "public static void m6916a(Context context) {\n f5051b = null;\n f5052c = null;\n f5053d = null;\n f5054e = null;\n C2820e.m11776a();\n f5055f = context.getApplicationContext();\n C2253z.m9684a();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tmDataMgrApp = (MainApplication) getApplicationContext();\n\t}" ]
[ "0.7452975", "0.7265942", "0.7244933", "0.7244933", "0.71942604", "0.7189404", "0.7170825", "0.71339846", "0.71339846", "0.70865333", "0.70437497", "0.69627416", "0.69427544", "0.6940481", "0.68883324", "0.6834661", "0.68315005", "0.6795484", "0.6730484", "0.672173", "0.66445196", "0.6603347", "0.65870106", "0.65801597", "0.65547574", "0.65547574", "0.6502367", "0.6494032", "0.6482981", "0.64751244", "0.645589", "0.64158094", "0.63899904", "0.6381785", "0.63811356", "0.63704115", "0.63206553", "0.6295831", "0.62929577", "0.62885624", "0.628256", "0.62825334", "0.6275064", "0.62682927", "0.6265375", "0.6265292", "0.62595487", "0.6201503", "0.6189604", "0.6189604", "0.61886144", "0.61822826", "0.61723983", "0.6154437", "0.6154437", "0.6133138", "0.6123625", "0.61192137", "0.6118811", "0.6118108", "0.6118036", "0.6117033", "0.6117015", "0.61094534", "0.6107557", "0.6101057", "0.6082618", "0.6068752", "0.6051147", "0.6049154", "0.6038259", "0.6010082", "0.6000845", "0.5997812", "0.59967166", "0.59924525", "0.59924525", "0.5989895", "0.597969", "0.59795916", "0.597745", "0.5971581", "0.5971581", "0.5924737", "0.59220904", "0.59188265", "0.59185505", "0.589296", "0.58670723", "0.5852511", "0.58500224", "0.58490413", "0.5839335", "0.5837068", "0.582905", "0.5826137", "0.5822298", "0.5819574", "0.58172137", "0.57996696", "0.57883084" ]
0.0
-1
All CRUD(Create, Read, Update, Delete) Operations Adding new card
public void addCard(Card card) { SQLiteDatabase db = this.getWritableDatabase(); ContentValues values = new ContentValues(); values.put(COL_ACCOUNT, card.getAccount()); values.put(COL_USERNAME, card.getUsername()); values.put(COL_PASSWORD, card.getPassword()); values.put(COL_URL, card.getUrl()); values.put(COL_DELETED, card.getDeleted()); values.put(COL_HIDE_PWD, card.getHidePwd()); values.put(COL_REMIND_ME, card.getRemindMe()); values.put(COL_UPDATED_ON, card.getUpdatedOn()); values.put(COL_COLOR, String.valueOf(card.getColor())); values.put(COL_REMIND_ME_DAYS, card.getRemindMeDays()); db.insert(TABLE_CARDS, null, values); db.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PostMapping(\"/cards\")\n StarbucksCard newCard() {\n StarbucksCard newcard = new StarbucksCard();\n\n Random random = new Random();\n int num = random.nextInt(900000000) + 100000000;\n int code = random.nextInt(900) + 100;\n\n newcard.setCardNumber(String.valueOf(num));\n newcard.setCardCode(String.valueOf(code));\n newcard.setBalance(20.00);\n newcard.setActivated(false);\n newcard.setStatus(\"New Card\");\n return repository.save(newcard);\n }", "@Override\n\tpublic void createCard(Card card) {\n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction(); \n\n\t\t/* persist */ \n\t\tsession.save(card); \n\n\t\t/* commit */ \n\t\tsession.getTransaction().commit();\n\t}", "@RequestMapping(value = \"/card/\", method = RequestMethod.POST)\n public ResponseEntity<Void> createCard(@RequestBody Card card, UriComponentsBuilder ucBuilder) {\n \tcard.setNbDispo(card.getNbItem());\n card.setDate(new Date(System.currentTimeMillis()));\n if (cardService.isCardExist(card)) {\n \tlogger.warn( \"A Card with name \" + card.getNameFr() + \" already exist\" );\n return new ResponseEntity<Void>(HttpStatus.CONFLICT);\n }\n cardService.saveCard(card);\n HttpHeaders headers = new HttpHeaders();\n headers.setLocation(ucBuilder.path(\"/card/{id}\").buildAndExpand(card.getId()).toUri());\n return new ResponseEntity<Void>(headers, HttpStatus.CREATED);\n }", "public abstract void addCard();", "private void cards() {\n newUserCard();\n editTypeCard();\n changePasswordCard();\n }", "private void addCard() {\n Intent intent = new Intent(this, NewCard.class);\n intent.putExtra(\"cardSetId\", cardSetId);\n startActivity(intent);\n }", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Card createCard();", "@FormUrlEncoded\n @POST(\"/v2/cards/create.json\")\n void create(@Field(\"card_data\") CardData data, Callback<CardCreate> cb);", "public void addPartnerCard(Card card);", "void addCustomerCard(CardDto cardDto, String name) throws EOTException;", "@GetMapping(\"/create\")\n public ModelAndView create(@ModelAttribute(\"form\") final CardCreateForm form) {\n return getCreateForm(form);\n }", "public interface CardService {\n\n /**\n * Save a card.\n *\n * @param cardDTO the entity to save\n * @return the persisted entity\n */\n CardDTO save(CardDTO cardDTO);\n\n /**\n * Get all the cards.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<CardDTO> findAll(Pageable pageable);\n\n\n /**\n * Get the \"id\" card.\n *\n * @param id the id of the entity\n * @return the entity\n */\n Optional<CardDTO> findOne(String id);\n\n /**\n * Delete the \"id\" card.\n *\n * @param id the id of the entity\n */\n void delete(String id);\n}", "int insert(Card record);", "private void addCard() { \n\t\tint sic_idHolder; // declares sic_idHolder\n\t\tString titleHolder; // declares titleHolder\n\t\tString authorHolder; // declares authorHolder\n\t\tdouble priceHolder; // declares priceHolder\n\t\tint quantityHolder; // declares quantityHolder\n\t\t\n\t\t\n\t\tSystem.out.println(\"Making a new card:\\nPlease enter the new SIC-ID: \");\n\t\tsic_idHolder = scan.nextInt(); // prompts user to input the ID\n\t\tscan.nextLine();\n\t\t\n\t\tif(inventoryObject.cardExists(sic_idHolder) != true) {\n\t\t\tSystem.out.println(\"Please enter the title of the book: \");\n\t\t\ttitleHolder = scan.next(); // prompts user to input the title\n\t\t\tscan.nextLine();\n\t\t\tSystem.out.println(\"Please enter the author of the book\");\n\t\t\tauthorHolder = scan.next(); // prompts user to input the author\n\t\t\tscan.nextLine();\n\t\t\tSystem.out.println(\"Please enter the price of the book\");\n\t\t\tpriceHolder = scan.nextDouble(); // prompts user to input the price\n\t\t\tscan.nextLine();\n\t\t\n\t\t\tif(priceHolder < 0) { // checks to make sure priceHolder is positive\n\t\t\t\tSystem.out.println(\"ERROR! Price must be greater than or equal to 0:\");\n\t\t\t\tgetUserInfo();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Please enter the number of books in invetory\");\n\t\tquantityHolder = scan.nextInt(); // prompts user to input the quantity\n\t\tscan.nextLine();\n\t\t\n\t\tif(quantityHolder <= 0) { // checks to make sure quantity isn't less than 1\n\t\t\tSystem.out.println(\"Error! Quantity must be greater than 0\\n\"); \n\t\t\tgetUserInfo();\n\t\t}\n\t\tinventoryObject.addStockIndexCard(sic_idHolder, titleHolder, authorHolder, priceHolder, quantityHolder); // calls addStockIndexCard from InventoryManagement\n\t\tgetUserInfo();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"ERROR: The ID you entered is already in the system\\n\");\n\t\t\tgetUserInfo();\n\t\t}\n\t}", "public void createCard(String front,String back)\n {\n dbObj=new dbFlashCards(uid);\n dbObj.createACard(packId, front, back);\n \n \n }", "@Dao\npublic interface CardDao {\n\t@Query(\"SELECT * FROM Card\")\n\tList<Card> getAll();\n\n\t@Insert\n\tvoid insertAll(List<Card> cards);\n\n\t@Delete\n\tvoid delete(Card card);\n\n\t@Delete\n\tvoid deleteAll(List<Card> cards);\n}", "public interface CardsService {\n\n @POST(\"cards\")\n Call<Card> createCard(@Query(\"idList\") String idList, @Body Card card);\n\n @GET(\"cards/{id}\")\n Call<Card> getCard(@Path(\"id\") String id);\n\n @DELETE(\"cards/{id}\")\n Call<ResponseBody> deleteCard(@Path(\"id\") String id);\n\n\n}", "public interface ICardService {\r\n /**\r\n * 查询帖子\r\n * @param params {\"bbsid\": 1, \"housename\": \"test\"}\r\n * @return\r\n * @throws Exception\r\n */\r\n String search(String params) throws Exception;\r\n\r\n /**\r\n * 创建帖子\r\n * @param params {'bbsId':1,'customerId':1,'content':'test','lon':'1.1','lat':'1.1','address':'YanJiaQiao No.1','picUrls':'1.jpg,2.jpg,3.jpg'}\r\n * @return\r\n * @throws Exception\r\n */\r\n String cardCreate(String params) throws Exception;\r\n\r\n /**\r\n * 创建帖子\r\n * @param params {'houseid':1, 'bbsid': 1,'customerId':1,'content':'test','lon':'1.1','lat':'1.1','address':'YanJiaQiao No.1','picUrls':'1.jpg,2.jpg,3.jpg'}\r\n * @return\r\n * @throws Exception\r\n */\r\n String insertCard(String params) throws Exception;\r\n\r\n /**\r\n * 点赞\r\n * @param params {\"cardid\":\"1\",\"cardownerid\":\"1\",\"customerid\":\"2\"}\r\n * @return\r\n */\r\n String like(String params) throws Exception;\r\n\r\n /**\r\n * 评论\r\n * @param params {\"bbsid\":\"1\",\"cardid\":\"1\",\"housename\":\"test\",\"customerid\":\"2\",\"cardownerid\":\"1\",\"content\":\"xxxxx\"}\r\n * @return\r\n * @throws Exception\r\n */\r\n String comment(String params) throws Exception;\r\n\r\n /**\r\n * 回复\r\n * @param params {\"bbsid\":\"1\",\"cardid\":\"1\",\"cardownerid\":\"1\",\"housename\":\"test\",\"senderid\":\"2\",\"commentid\":\"1\",\"receiverid\":\"1\",\"content\":\"xxxxx\"}\r\n * @return\r\n * @throws Exception\r\n */\r\n String resp(String params) throws Exception;\r\n\r\n /**\r\n * 添加帖子图片\r\n * @param params (帖子ID,图片ID数组)\r\n * @return\r\n */\r\n String addPicture(String params) throws Exception;\r\n}", "public interface CardService {\n\n public Card storeCard(Long userId, Long subjectId, String question, String answer);\n\n}", "private void editUserCard() {\n getUserCard();\n }", "public void addCard(Card c){\n cards.add(c);\n }", "public void add(Card card) {\n this.cards.add(card);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == ADD_CARD_REQUEST_CODE && resultCode == RESULT_OK) {\n Bundle extras = data.getExtras();\n String newQuestion = extras.getString(\"question\");\n String newAnswer = extras.getString(\"answer\");\n String wrongAnswer1 = extras.getString(\"wrong_answer1\");\n String wrongAnswer2 = extras.getString(\"wrong_answer2\");\n\n database.insertCard(new Flashcard(newQuestion, newAnswer, wrongAnswer1, wrongAnswer2));\n allFlashCards = database.getAllCards();\n\n resetAnswerButtonStates();\n setAnswerButtonsAndQuestion(newQuestion, newAnswer, wrongAnswer1, wrongAnswer2);\n currentDisplayIndex = allFlashCards.size() - 1;\n } else if (requestCode == EDIT_CARD_REQUEST_CODE && resultCode == RESULT_OK) {\n Bundle extras = data.getExtras();\n String question = extras.getString(\"question\");\n String answer = extras.getString(\"answer\");\n String wrong1 = extras.getString(\"wrong_answer1\");\n String wrong2 = extras.getString(\"wrong_answer2\");\n\n Flashcard currentCard = allFlashCards.get(currentDisplayIndex);\n currentCard.setQuestion(question);\n currentCard.setAnswer(answer);\n currentCard.setWrongAnswer1(wrong1);\n currentCard.setWrongAnswer2(wrong2);\n database.updateCard(currentCard);\n allFlashCards = database.getAllCards();\n\n resetAnswerButtonStates();\n setAnswerButtonsAndQuestion(question, answer, wrong1, wrong2);\n }\n }", "Cards(String cardName, String cardDes, int puntosHabilidad) {\n this.nombre = cardName;\n this.descripcion = cardDes;\n this.puntos = puntosHabilidad;\n }", "public void addCard(PlayingCard aCard);", "public void addResourceCard(HexType type){\n \n }", "void update(Card card) throws PersistenceCoreException;", "@PostMapping(value = \"/addcard/{mobileno}\", consumes = \"application/json\")\n\tpublic String addNewCard(@RequestBody CardDetails cdetails, @PathVariable String mobileno) {\n\t\treturn cservice.addNewCard(cdetails, mobileno);\n\t}", "public void createCardInventory() {\n try {\n if (cardInventoryDataBean != null) {\n String response = cardInventoryTransformerBean.createCardInventory(cardInventoryDataBean);\n if (SystemConstantUtil.SUCCESS.equals(response)) {\n System.out.println(\"Create CardInventory Successfully\");\n messageDataBean.setMessage(\"CardInventory added successfully.\");\n messageDataBean.setIsSuccess(Boolean.TRUE);\n cardInventoryDataBean.setNull();\n this.retrieveCardInventoryList();\n } else {\n System.out.println(\"CardInventory not created\");\n messageDataBean.setMessage(response);\n messageDataBean.setIsSuccess(Boolean.FALSE);\n }\n }\n } catch (Exception e) {\n messageDataBean.setMessage(e.toString());\n messageDataBean.setIsSuccess(Boolean.FALSE);\n System.out.println(e);\n }\n }", "void addCard(Card card) {\n\t\t_hand.addCard(card);\n\t}", "private void myNewCard( String name, String image, String desc, float price, int pid,String bulkdescription ) {\n\n firebaseImgAddresses = model.getProductimages();\n\n FirebaseAuth mAuth = FirebaseAuth.getInstance();\n\n SubCardsmodel movie = new SubCardsmodel(pid,name,image,desc,price,bulkdescription, mAuth.getCurrentUser().getEmail(),shopname,shopmobile,firebaseImgAddresses);\n //referring to movies node and setting the values from movie object to that location\n System.out.println(\"card and model \" + card + movie.getCardname());\n mDatabaseReference.child(\"Products\").child(card).push().setValue(movie);\n progressDialog.dismiss();\n\n// editAt(model.getCardname());\n\n\n Intent intent = new Intent(EditSubCard.this, DeleteSubCardView.class);\n intent.putExtra(\"cardname\",card);\n\n startActivity(intent);\n\n\n\n\n }", "Card(){\t \n}", "public void addCard(Card c)\n {\n cards.add(c);\n }", "protected GameEntity addCards(GameEntity game){\n try {cardService.addAllCards();\n } catch (IOException ex) {\n throw new NoContentException(\"The CardDatabase couldn't be filled\");\n }\n game.setCardIds(cardService.getFullStackOfCards());\n return game;\n }", "public interface ICardService {\r\n /**\r\n * @param params eg:{'bbsId':1,'customerId':1,'type':'','pubDateFrom':'20151008','pubDateTo':'20151108'}\r\n * @return\r\n * @throws Exception\r\n */\r\n String search(String params) throws Exception;\r\n\r\n /**\r\n * @param params eg: {'cardId':1}\r\n * @return\r\n * @throws Exception\r\n */\r\n String cardDetail(String params) throws Exception;\r\n\r\n /**\r\n * @param params, eg: {'bbsId':1,'customerId':1,'content':'test','lon':'1.1','lat':'1.1','address':'YanJiaQiao No.1','picUrls':'1,2,3'}\r\n * @return\r\n * @throws Exception\r\n */\r\n String create(String params) throws Exception;\r\n\r\n /**\r\n * save card\r\n * @param params\r\n * @return\r\n * @throws Exception\r\n */\r\n String save(String params)throws Exception;\r\n\r\n /**\r\n * delete card\r\n * @param params, eg: {'cardId':1}\r\n * @return\r\n * @throws Exception\r\n */\r\n String delete(String params) throws Exception;\r\n\r\n /**\r\n * 添加帖子图片\r\n * @param params (帖子ID,图片ID数组)\r\n * @return\r\n */\r\n String addPicture(String params) throws Exception;\r\n\r\n /**\r\n * 获取帖子图片\r\n * @param params(帖子ID)\r\n * @return\r\n * @throws Exception\r\n */\r\n String getPictures(String params) throws Exception;\r\n\r\n /**\r\n * 删除帖子图片\r\n * @param params,{'picId':1}\r\n * @return\r\n * @throws Exception\r\n */\r\n String deletePicture(String params) throws Exception;\r\n\r\n /**\r\n * 排序帖子图片\r\n * @param params,eg:{'picId':1,'sortno':2}\r\n * @return\r\n * @throws Exception\r\n */\r\n String resortPicture(String params) throws Exception;\r\n}", "public interface MemberCardService {\n /**根据用户id查找银行卡*/\n public List<MemberCard> queryById(Integer id);\n\n int insertCard(String bankcard, String bankName, int memberId);\n}", "public void addCard(Card cardToAdd) {\n storageCards.add(cardToAdd);\n }", "public Card(String id, String name) {\n \t\tsameID = new String[MINILEN];\n \t\tfor (int i = 0; i < sameID.length; i++) {\n \t\t\tsameID[i] = \"\";\n \t\t}\n \t\tsetID(id);\n \t\t// setName(id);\n \t\tsetCardName(name);\n \n \t\trealCardName = name;\n \n \t\teffects = new ArrayList<String>();\n \t\teffects_e = new ArrayList<String>();\n \t\tflavorText = \"\";\n \t\tflavorText_e = \"\";\n \t\tsetCurrentState(State.NONE);\n \t\t// imageFile = new File(\"FieldImages/cardBack-s.jpg\");\n \t\timageResource = \"/resources/FieldImages/cardBack-s.jpg\";\n \t\tbackResource = \"/resources/FieldImages/cardBack-s.jpg\";\n \t\tsetAssociatedCards(new ArrayList<Card>());\n \t\tsetAttributes(new ArrayList<Attribute>());\n \t\t// addMouseListener(this);\n \t}", "public void addACard() {\n Card card = new Card();\n int index = 0;\n doubleCapacity(orderByTitle);\n doubleCapacity(orderByAuthor);\n doubleCapacity(orderBySubject);\n \n \n System.out.println(\"Title of book is : \");\n card.titleOfBook = input.next();\n orderByTitle[index] = card.titleOfBook;\n System.out.println(\"Author of book is : \");\n card.autherOfBook = input.next();\n orderByAuthor[index] = card.autherOfBook;\n System.out.println(\"Subject Of Book is : \");\n card.subjectOfBook = input.next();\n orderBySubject[index] = card.subjectOfBook;\n cards.add(card) ; \n System.out.println(card);\n System.out.println();\n }", "public void addCard() {\n for (int i = 0; i < 4; i++) {\n cards.add(new Wild());\n cards.add(new WildDrawFour());\n }\n for (Color color : Color.values())\n cards.add(new NumberCard(color.name(),0));\n for (Color color : Color.values()) {\n for (int i = 0; i < 2; i++) {\n for (int j = 1; j < 10; j++)\n cards.add(new NumberCard(color.name(),j));\n cards.add(new DrawTwo(color.name()));\n cards.add(new Reverse(color.name()));\n cards.add(new Skip(color.name()));\n }\n }\n }", "public void takeACard(Card card){\n hand.add(card);\n }", "public static void UpdateCardsTable() {\n\t\tString url = null;\n\t\tString cards = null;\n\n\t\ttry {\n\t\t\tfor (int i = 0; i < Config.getHundredsOfCardsAvailable(); i++) {\n\t\t\t\turl = \"https://contentmanager-lb.interact.io/content-cards/search?offset=\" + i * 100 + \"&limit=100\";\n\t\t\t\t// hard-set limit of Content Manager is 100 cards\n\t\t\t\tcards = Requester.sendPostRequest(url);\n\n\t\t\t\tString id;\n\t\t\t\tString metaDataContentType;\n\n\t\t\t\tfor (int cardIndex = 0; cardIndex < 100; cardIndex++) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (isCardToBeAdded(cards, cardIndex)) {\n\t\t\t\t\t\t\tid = JsonPath.parse(cards).read(\"$.data.[\" + cardIndex + \"].id\");\n\t\t\t\t\t\t\tmetaDataContentType = JsonPath.parse(cards)\n\t\t\t\t\t\t\t\t\t.read(\"$.data.[\" + cardIndex + \"].metadata.contentType\");\n\t\t\t\t\t\t\t// Logger.print(id);\n\t\t\t\t\t\t\t// Logger.print(metaDataContentType);\n\t\t\t\t\t\t\tString labeledCardTag = metaDataContentType.replaceAll(\" \", \"_\").toLowerCase();\n\t\t\t\t\t\t\t// TODO if this tag isn't already in cards table, add it as a new column\n\t\t\t\t\t\t\taddCardToTable(id, labeledCardTag);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// FIXME don't ignore exception here... it's bad practice\n\t\t\t\t\t\t// TODO make it so that JsonPath only checks up until there are cards\n\t\t\t\t\t\t// e.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void addCard(Card card) {\n personHand.add(card);\n }", "public void addCard(Card card) {\n myCards.add(card);\n cardNumber = myCards.size();// reset the number of cards\n }", "public void addCard(Card card) {\r\n\t\tcards.add(card);\r\n\t}", "@GetMapping(\"/add\")\n\tpublic String add() {\n\t\tcourseService.findAll();\n\t\treturn \"/course\";\n\t\t\n\t}", "public CrudBook() {\n initComponents();\n loadTable();\n btnAdd.setEnabled(true);\n btnDelete.setEnabled(false);\n btnModify.setEnabled(false);\n }", "public Card(){\n this.name = \"\";\n this.description = \"\";\n this.element = null;\n this.img = \"\";\n }", "Cards(String cardName, String cardDes, int ataque, int defensa) {\n this.nombre = cardName;\n this.descripcion = cardDes;\n this.puntos = ataque;\n this.def = defensa;\n }", "public void add (Card newCard)\n {\n firstLink = new Link(newCard, firstLink);\n }", "void pushCard(ICard card);", "public void addCard(Card card)\n {\n if (card1 == null)\n {\n card1 = card;\n }\n else if (card2 == null)\n {\n card2 = card;\n }\n }", "public ShoppinCard addcard(ShoppinCard shoppingCard, int itemId,Customer customer) throws Exception\r\n\t{\n\t\tif(customer != null) \r\n\t\t{\t\t\r\n\t\tItem item = itemRepository.findById(itemId).orElseThrow(()->new IDNotFoundException(\"Item Are Not Present Into DataBase\"));\r\n\t\tshoppingCard.setItem(item);\r\n\t\tshoppingCard.setCustomer(customer);\r\n\t\treturn shoppingcardRepository.save(shoppingCard);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new ResourceNotFoundException(\"You Can't Login First Do You Login \");\r\n\t\t}\r\n\t}", "Card getCard(UUID cardId);", "void updateCards(List<CardEntity> data);", "public void saveCard(card cardToBeSaved)\n {\n dbObj=new dbFlashCards(uid);\n dbObj.saveCard(packId, cardToBeSaved.getCardId(), cardToBeSaved.getFront(),cardToBeSaved.getBack());\n \n \n }", "CarPaymentMethod cardHolder(String firstName, String lastName);", "@Override\n\tpublic boolean addCard(UnoCard card){\n\t\treturn this.cardList.add(card);\n\t}", "public interface CardService {\n\n /**\n * Internal API for creating Twitter cards.\n */\n @FormUrlEncoded\n @POST(\"/v2/cards/create.json\")\n void create(@Field(\"card_data\") CardData data, Callback<CardCreate> cb);\n}", "public Card () {}", "public Card()\n {}", "public void addCard(Card card) {\r\n\t\tthis.cards.add(card);\r\n\t}", "public void addCard(int index, Card card)\n\t{\n\t\tcards.add(index, card);\n\t\t\n\t\t// Remove and re-add all cards\n\t\tsyncCardsWithViews();\n\t\t\n\t}", "void setCard(Card card) {\n this.card = card;\n }", "public static void createCard() throws IOException {\n\t\t\n\t\tString num = randomPhone();\n\t\twhile(CCnum.containsKey(num)) {\n\t\t\tnum = randomPhone();\n\t\t}\n\t\tCCnum.put(num, 1);\n\t\tCCnumbers.add(num);\n\t\t\n\t\tString type = cardType[random(4)];\n\t\tint balance = random(100000);\n\t\tint limit = random(100000) + balance;\n\t\t\n\t\twriter.write(\"INSERT INTO CreditCard (Number, Type, cclimit, isActive, Balance) Values ('\" + num +\"', '\" + type + \n\t\t\t\t\"', \" + limit + \", \" + rando() + \", \" + balance + line);\n\t\twriter.flush();\n\t}", "private void addCard(){\n WebDriverHelper.clickElement(addCard);\n }", "private void onCreateCardSuccess(Response response) throws IOException {\n Gson gson = new Gson();\n Type type = new TypeToken<Map<String, Object>>(){}.getType();\n\n Map<String, Object> responseMap = gson.fromJson(\n Objects.requireNonNull(response.body()).string(), type\n );\n\n\n paymentMethodId = Objects.requireNonNull(responseMap.get(\"id\")).toString();\n\n //Create new payment method for Parse\n PaymentMethods pay = new PaymentMethods();\n pay.setStripeId(paymentMethodId);\n pay.setBrand(card.getBrand().toString());\n pay.setExpMonth(card.getExpMonth());\n pay.setExpYear(card.getExpYear());\n pay.setLast4(card.getLast4());\n pay.setUser(ParseUser.getCurrentUser());\n pay.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if(e == null) {\n Toast.makeText(getApplicationContext(), \"New Card Added.\", Toast.LENGTH_LONG).show();\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(i);\n }\n else\n {\n Toast.makeText(getApplicationContext(), \"Card Failed to add to database.\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n }\n });\n\n }", "public void add(){\n dbHandler_card.getcount();\n Intent i = new Intent(this,MyActivity.class);\n startActivity(i);\n }", "public void createNewTable() {\n // SQL statement for creating a new table\n String sql = \"CREATE TABLE IF NOT EXISTS card (\\n\"\n + \" id INTEGER PRIMARY KEY AUTOINCREMENT,\\n\"\n + \" number TEXT,\\n\"\n + \" pin TEXT,\\n\"\n + \" balance INTEGER DEFAULT 0\\n\"\n + \");\";\n\n try (Connection conn = DriverManager.getConnection(url);\n Statement stmt = conn.createStatement()) {\n // create a new table\n stmt.execute(sql);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public void clickadd_card() \n\t{\n\t\n\t\tdriver.findElement(add_card).click();\n\n }", "public CardRequest() {\r\n card = new MSRData(); // an empty one\r\n }", "abstract boolean allowedToAdd(Card card);", "void insertCart(int customer_id, detailDTO re) throws DataAccessException;", "public void addCard(Card c)\n {\n hand.add(c);\n }", "public void addCard(Card card) {\n this.deck.push(card);\n }", "public Card() {\n var random = new SecureRandom();\n var allTypes = Type.values();\n var allSuits = Suit.values();\n this.type = allTypes[random.nextInt(10)];\n this.suit = allSuits[random.nextInt(4)];\n }", "private void TempCardAdd(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tresponse.setCharacterEncoding(\"UTF-8\");\n\t\tresponse.setContentType(\"text/html;charset=UTF-8\");\n\t\tPrintWriter out=response.getWriter();\n\t\t//这里也有停车位 状态转变问题\n\t\tString tempcard_id=request.getParameter(\"card_id\");\n\t\tString car_num=new String(request.getParameter(\"car_num\").getBytes(\"ISO-8859-1\"),\"UTF-8\");\n\t\tString seat_id=request.getParameter(\"seat_id\");\n\t\t//往停车位中添加临时IC卡就要改变分配的车位的 seat_tag 临时车主车位\n\t\t//车位的状态seat_state也要改变 临时卡 只有在进场时才会分配 进场即改变车位状态 为占有 1 \n\t\tSeat seat=new Seat();\n\t\tSeatDao seatDao=new SeatDao();//停车位逻辑层,对数据库 表进行操作\n\t\tseat=seatDao.getSeat(seat_id);\n\t\tseat.setSeat_state(1);//入场后 更新临时车主占用车位的状态 ,设置为占有状态\n\t\tseat.setSeat_tag(\"临时车主车位\");//设置备注未临时车主车位\n\t\tseatDao.updateSeat(seat);//更新状态\n\t\tseatDao.closeCon();\n\t\t\n\t\tString entry_time,entry_date;\n\t\tSimpleDateFormat dFormat=new SimpleDateFormat(\"yyyy-MM-dd\");//设置进场时间\n\t\tSimpleDateFormat tFormat=new SimpleDateFormat(\"HH:mm:ss\");//进场具体时间\n\t\tentry_date=dFormat.format(new Date());\n\t\tentry_time=tFormat.format(new Date());\n\t\t\n\t\tString out_date=\"1111-11-11\";//先将进场时间设置为1111-11-11 标识未出场\n\t\tString out_time=\"11:11:11\";\t\t\n\t\t\n\t\tTempCard tempcard=new TempCard();\n\t\ttempcard.setCard_id(tempcard_id);//设置临时车主的相关信息 ID\n\t\ttempcard.setSeat_id(seat_id);//分配的停车位\n\t\ttempcard.setCar_num(car_num);//车牌号\n\t\ttempcard.setEntry_date(entry_date);//进场时间\n\t\ttempcard.setEntry_time(entry_time);//具体时间\n\t\ttempcard.setOut_date(out_date);//\n\t\ttempcard.setOut_time(out_time);\n\t\t//缴费 添加卡时默认为0\n\t\tTempCardDao tempcardDao=new TempCardDao();\n\t\tif(tempcardDao.addTempCard(tempcard)) {//对数据库中临时车主信息表进行添加信息\n\t\t\ttry {\n\t\t\t\tout.write(\"<script>alert('添加信息成功(进场)!'); location.href = '/ParkManager/TempCardServlet?type=gettempcardlist';</script>\");\n\t\t\t\t//response.getWriter().write(\"success\");\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\ttempcardDao.closeCon();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\ttry {\n\t\t\t\tout.write(\"<script>alert('添加信息失败!'); location.href = '/ParkManager/TempCardServlet?type=gettempcardlist';</script>\");\n\t\t\t\t//response.getWriter().write(\"failed\");\n\t\t\t}finally {\n\t\t\t\ttempcardDao.closeCon();\n\t\t\t}\n\t\t}\n\t}", "public void addCard(Card card)\n\t{\n\t\t\n\t\t// Add the new Card to the list\n\t\tcards.add(card);\n\t\t\n\t\t// Remove and re-add all cards\n\t\tsyncCardsWithViews();\n\t\t\n\t}", "public void insertCourse(){\n \n }", "public void addCard(Card card) {\n\t\tthis.content.add(card);\n\t}", "private void saveNewCreditCard(String name, String cardNumber, String month, String year) {\n inputData(nameOnCardInputLocator, name);\n inputData(cardNumberInputLocator, cardNumber);\n setJsDropDownOption(expirationMonthDropDownLocator, month);\n setJsDropDownOption(expirationYearDropDownLocator, year);\n clickElement(addYourCardButtonLocator);\n }", "Card dealOneCard();", "@GetMapping(\"/add\")\n\tpublic List<Students> addStudent() {\n\t\tStudents student = new Students();\n\t\tstudent.setRollno(04);\n\t\tstudent.setSname(\"Cyborg\");\n\t\tstudent.setStudent_role(\"Graduate\");\n\t\tstudentMapper.insert(student);\n\t\treturn studentMapper.findAll(); \n\t}", "public interface CreditCardStore\r\n{\r\n /**\r\n * This method should add the credit card number to the store given a pass key.\r\n *\r\n * @param cc The credit card number.\r\n * @param key The pass key.\r\n * @throws CreditCardAPIException if an error occurs.\r\n */\r\n public void addCc(String cc, String key) throws CreditCardAPIException;\r\n \r\n /**\r\n * This method should edit the credit card number in the store given a pass key.\r\n *\r\n * @param cc The credit card number.\r\n * @param key The pass key.\r\n * @throws CreditCardAPIException if an error occurs.\r\n */\r\n public void editCc(String cc, String key) throws CreditCardAPIException;\r\n \r\n /**\r\n * This method should delete the credit card number to the store given a pass key.\r\n *\r\n * @param cc The credit card number.\r\n * @param key The pass key.\r\n * @throws CreditCardAPIException if an error occurs.\r\n */\r\n public void deleteCc(String cc, String key) throws CreditCardAPIException;\r\n \r\n /**\r\n * This method should return the credit card number from the store given a pass key.\r\n *\r\n * @param key The pass key.\r\n * @return String\r\n * @throws CreditCardAPIException if an error occurs.\r\n */\r\n public String getCc(String key) throws CreditCardAPIException;\r\n}", "public Card(String name) {\n setValue(name);\n }", "public CardView addCard(Card card) {\n return addCard(card, false);\n\n }", "void onAddEditCardSuccess(long rowID);", "@PostMapping(\"/add\")\n public EmptyResponse create(@Valid @RequestBody DiscountAddRequest request){\n discountAddService.createNewDiscount(request);\n\n return new EmptyResponse();\n }", "@Override\n public void execute(Realm realm) {\n Book newbook = realm.createObject(Book.class, UUID.randomUUID().toString());\n newbook.setBook_name(newBookName);\n newbook.setAuthor_name(newAuthorName);\n }", "public void createNewTable() {\n String dropOld = \"DROP TABLE IF EXISTS card;\";\n\n // SQL statement for creating a new table\n String sql = \"CREATE TABLE IF NOT EXISTS card (\\n\"\n + \"id INTEGER PRIMARY KEY AUTOINCREMENT, \\n\"\n + \"number TEXT, \\n\"\n + \"pin TEXT,\\n\"\n + \"balance INTEGER DEFAULT 0\"\n + \");\";\n\n try (Connection connection = connect();\n Statement stmt = connection.createStatement()) {\n\n //drop old table\n stmt.execute(dropOld);\n\n //create a new table\n stmt.execute(sql);\n } catch (SQLException e) {\n System.out.println(\"Exception3: \" + e.getMessage());\n }\n }", "@GetMapping(\"/cards\")\n List<StarbucksCard> all() {\n return repository.findAll();\n }", "@GET\n @Path(\"/add\")\n @Produces(\"application/json\")\n public Response add() {\n Session session = DBConnectionManager.getSession();\n session.beginTransaction();\n\n Client client = new Client();\n client.setFirstname(\"asdasdasdas d asd asd asd\");\n\n //Save the client in database\n session.save(client);\n\n //Commit the transaction\n session.getTransaction().commit();\n DBConnectionManager.closeConnection();\n\n return Response.ok(client, MediaType.APPLICATION_JSON).build();\n }", "public void insert(Card card) {\n\t\tthis.insert(card);\n\t}", "public void ActonCard() {\n\t}", "private void getNewCard(TextField[] inputs, int index) {\n VBox editMenu = new VBox();\n editMenu.setAlignment(Pos.CENTER);\n String[] labelText = {\"Front of card:\", \"Back of card:\"};\n Label[] labels = new Label[labelText.length];\n for (int i = 0; i < 2; i++) {\n labels[i] = new Label(labelText[i]);\n labels[i].setFont(Font.font(TEXT_SIZE));\n editMenu.getChildren().add(labels[i]);\n VBox.setMargin(labels[i], new Insets(5, 0, 5, 0));\n inputs[i].setFont(Font.font(TEXT_SIZE));\n editMenu.getChildren().add(inputs[i]);\n VBox.setMargin(inputs[i], new Insets(5, 0, 5, 0));\n }\n Label lblWarning = new Label();\n Button btnSubmit = createButton(\"Submit\", TEXT_SIZE, 10);\n btnSubmit.setMaxWidth(BUTTON_WIDTH);\n editMenu.getChildren().add(btnSubmit);\n editMenu.getChildren().add(lblWarning);\n VBox.setMargin(btnSubmit, new Insets(10, 0, 0, 0));\n btnSubmit.setOnAction(e -> {\n String front = inputs[0].getText();\n String back = inputs[1].getText();\n if (front.length() == 0 || back.length() == 0) {\n lblWarning.setText(\"Please enter card text.\");\n } else {\n lblWarning.setText(\"\");\n FlashCard newCard = new FlashCard(front, back);\n if (index == customDeck.size()) {\n customDeck.add(newCard);\n } else {\n customDeck.set(index, newCard);\n }\n updateCards(listCustomDeck);\n saveCustomDeck();\n parentPane.setRight(editCardsMenu);\n parentPane.setCenter(listCustomDeck);\n }\n });\n parentPane.setRight(null);\n parentPane.setCenter(editMenu);\n }", "public void AddCard(Card card) {\n mCard[mCardCount++] = card;\n SetCardPosition(mCardCount - 1);\n }", "ResponseEntity<Cart> addCartItem(CartFormData formData);", "public Card(String name, String description) {\n\t\tthis.name = name;\n\t\tthis.description = description;\n\t}", "public void crudOperationStudent(){\n //Retrieve Student\n Student student=entityManager.find(Student.class,2L);\n // persistence Context have Student\n //Retrieve Passport\n Passport passport=student.getPassport();\n // persistence Context have Student,passport\n //Update passport number for student\n passport.setPassportNo(\"ZX132322\");\n // persistence Context have Student, updated-passport\n //update Student details\n student.setAge(25);\n // persistence Context have updated-Student, updated-passport\n entityManager.persist(student);\n\n }", "int insertSelective(Card record);" ]
[ "0.69798326", "0.6751006", "0.6748943", "0.65821826", "0.64986306", "0.644025", "0.6372254", "0.6274224", "0.6253977", "0.619435", "0.6173985", "0.61308706", "0.6016423", "0.600453", "0.5985794", "0.5958746", "0.5907914", "0.58766246", "0.5868696", "0.5847959", "0.5785216", "0.57218575", "0.5705496", "0.56847525", "0.5673611", "0.56528056", "0.5652101", "0.5641236", "0.5615501", "0.5607412", "0.56008273", "0.55951124", "0.5579205", "0.5559533", "0.5547657", "0.55403006", "0.55401736", "0.55346394", "0.5529881", "0.550301", "0.54949933", "0.54765254", "0.5472171", "0.54705405", "0.5456961", "0.5456039", "0.5444544", "0.5443328", "0.54409474", "0.5425902", "0.54231733", "0.54150724", "0.5399385", "0.53883326", "0.5373151", "0.5370054", "0.5367452", "0.5366528", "0.5352322", "0.53503096", "0.5346929", "0.5345199", "0.5344113", "0.53352916", "0.53335065", "0.53322107", "0.53249156", "0.5323248", "0.5322106", "0.53146005", "0.5305593", "0.52872413", "0.5283946", "0.5279489", "0.5275987", "0.52703124", "0.526823", "0.5266304", "0.5262819", "0.52553517", "0.52550197", "0.52467006", "0.5240025", "0.5235954", "0.523101", "0.5229877", "0.52267647", "0.5225469", "0.522507", "0.52197874", "0.5211245", "0.52009314", "0.51992434", "0.5198724", "0.5194922", "0.51942915", "0.5191537", "0.51907", "0.5179279", "0.5177118" ]
0.6901996
1
Saving new master key
public void saveMasterKeyAndEmail(String masterKey, String resetCode) { SQLiteDatabase db = this.getWritableDatabase(); ContentValues values = new ContentValues(); values.put(COL_MASTER_KEY, masterKey); values.put(COL_RESET_CODE, resetCode); db.insert(TABLE_MAIN, null, values); db.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createKeyStore(String master_key) throws AEADBadTagException {\n SharedPreferences.Editor editor = getEncryptedSharedPreferences(master_key).edit();\n editor.putString(MASTER_KEY, master_key);\n editor.apply();\n\n Log.d(TAG, \"Encrypted SharedPreferences created...\");\n }", "com.google.protobuf.ByteString getMasterKey();", "String newKey();", "void saveKeys() throws IOException;", "@java.lang.Override\n public com.google.protobuf.ByteString getMasterKey() {\n return masterKey_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getMasterKey() {\n return masterKey_;\n }", "void saveKeys(String publicKeyFileLocation, String secretKeyFileLocation) throws IOException;", "@Override\r\n\tpublic CertMaster save(CertMaster entity) {\n\t\treturn certMasterRepository.save(entity);\r\n\t\t\r\n\t}", "@PostMapping(\"/create\")\n public String createSymmetricKey() {\n\n AWSKMS kmsClient = new KmsClientBuilder().buildKmsClient();\n \n String creatingMasterKey = \"Creating Master Key\";\n CreateKeyRequest request = new CreateKeyRequest().withDescription(creatingMasterKey);\n CreateKeyResult result = kmsClient.createKey(request);\n\n return \"Object Type: Symmetric Key\\nuid: \"+ uid + \"\\n\";\n }", "public void writeOrUpdateAccount(Account account, String master_key) throws AEADBadTagException {\n encryptedSharedPreferences = getEncryptedSharedPreferences(master_key);\n\n Gson gson = new Gson();\n SharedPreferences.Editor sharedPrefsEditor = encryptedSharedPreferences.edit();\n sharedPrefsEditor.putString(account.getPlatform(), gson.toJson(account));\n sharedPrefsEditor.apply();\n\n Log.d(TAG, \"Update Account(Platform): \" + account.getPlatform());\n }", "String setKey(String newKey);", "@Override\n\tpublic void save(DataKey arg0) {\n\t\t\n\t}", "public Builder setMasterKey(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n masterKey_ = value;\n onChanged();\n return this;\n }", "private OzoneSecretKey updateCurrentKey(KeyPair keyPair,\n X509Certificate certificate) {\n logger.info(\"Updating current master key for generating tokens. Cert id {}\",\n certificate.getSerialNumber().toString());\n\n int newCurrentId = incrementCurrentKeyId();\n OzoneSecretKey newKey = new OzoneSecretKey(newCurrentId,\n certificate.getNotAfter().getTime(), keyPair,\n certificate.getSerialNumber().toString());\n currentKey.set(newKey);\n return newKey;\n }", "void privateSetAgregateKey(com.hps.july.persistence.StorageCardKey inKey) throws java.rmi.RemoteException;", "void setKey(String key);", "com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest.Key addNewKey();", "ExportedKeyData makeKeyPairs(PGPKeyPair masterKey, PGPKeyPair subKey, String username, String email, String password) throws PGPException, IOException;", "default void save() {\n NucleusAPI.getKitService().orElseThrow(() -> new IllegalStateException(\"No Kit module\")).saveKit(this);\n }", "private String exportkey() {\n\n\t\ttry {\n\t\t\tbyte[] keyBytes = serversharedkey.getEncoded();\n\t\t\tString encodedKey = new String(Base64.encodeBase64(keyBytes), \"UTF-8\");\n\t\t\tFile file = new File(\"serversharedKey\");\n\t\t\t//System.out.println(\"The server Private key: \" + encodedKey);\n\t\t\tPrintWriter writer = new PrintWriter(file, \"UTF-8\");\n\t\t\twriter.println(encodedKey);\n\t\t\twriter.close();\n\n\t\t\treturn encodedKey;\n\n\t\t} catch (UnsupportedEncodingException | FileNotFoundException ex) {\n\t\t\tLogger.getLogger(ClientTCP.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\t\treturn null;\n\t}", "public void setKey(java.lang.String param){\n localKeyTracker = true;\n \n this.localKey=param;\n \n\n }", "public void _setKey(String e)\n {\n _key = e;\n }", "public short key();", "private void initKey() {\n String del = \":\";\n byte[] key;\n if (MainGame.applicationType == Application.ApplicationType.Android) {\n key = StringUtils.rightPad(Build.SERIAL + del + Build.ID + del, 32, \"~\").getBytes();\n } else if (MainGame.applicationType == Application.ApplicationType.Desktop) {\n key = new byte[]{0x12, 0x2d, 0x2f, 0x6c, 0x1f, 0x7a, 0x4f, 0x10, 0x48, 0x56, 0x17, 0x4b, 0x4f, 0x48, 0x3c, 0x17, 0x04, 0x06, 0x4b, 0x6d, 0x1d, 0x68, 0x4b, 0x52, 0x50, 0x50, 0x1f, 0x06, 0x29, 0x68, 0x5c, 0x65};\n } else {\n key = new byte[]{0x77, 0x61, 0x6c, 0x0b, 0x04, 0x5a, 0x4f, 0x4b, 0x65, 0x48, 0x52, 0x68, 0x1f, 0x1d, 0x3c, 0x4a, 0x5c, 0x06, 0x1f, 0x2f, 0x12, 0x32, 0x50, 0x19, 0x3c, 0x52, 0x04, 0x17, 0x48, 0x4f, 0x6d, 0x4b};\n }\n for (int i = 0; i < key.length; ++i) {\n key[i] = (byte) ((key[i] << 2) ^ magic);\n }\n privateKey = key;\n }", "private void storeKeys(String key, String secret) {\n\t // Save the access key for later\n\t SharedPreferences prefs = getSharedPreferences(ACCOUNT_PREFS_NAME, 0);\n\t Editor edit = prefs.edit();\n\t edit.putString(ACCESS_KEY_NAME, key);\n\t edit.putString(ACCESS_SECRET_NAME, secret);\n\t edit.commit();\n\t }", "public void writeKeysToFile(){\n if(d == null){\n calculateKeypair();\n }\n FileHandler fh = new FileHandler();\n fh.writeFile(sbPrivate.toString(), \"sk.txt\");\n fh.writeFile(sbPublic.toString(), \"pk.txt\");\n }", "public void generateKeys() {\r\n try {\r\n SecureRandom random = SecureRandom.getInstance(Constants.SECURE_RANDOM_ALGORITHM);\r\n KeyPairGenerator generator = KeyPairGenerator.getInstance(Constants.ALGORITHM);\r\n generator.initialize(Constants.KEY_BIT_SIZE, random);\r\n \r\n KeyPair keys = generator.genKeyPair();\r\n \r\n persistPrivateKey(keys.getPrivate().getEncoded());\r\n persistPublicKey(keys.getPublic().getEncoded());\r\n logger.log(Level.INFO, \"Done with generating persisting Public and Private Key.\");\r\n \r\n } catch (NoSuchAlgorithmException ex) {\r\n logger.log(Level.SEVERE, \"En error occured while generating the Public and Private Key\");\r\n }\r\n }", "private void storeKeys(String key, String secret) {\n\t\t// Save the access key for later\n\t\tSharedPreferences prefs = EReaderApplication.getAppContext()\n\t\t\t\t.getSharedPreferences(ACCOUNT_PREFS_NAME, 0);\n\t\tEditor edit = prefs.edit();\n\t\tedit.putString(ACCESS_KEY_NAME, key);\n\t\tedit.putString(ACCESS_SECRET_NAME, secret);\n\t\tedit.commit();\n\t}", "public void setSaveButtonAccessKey(String key) {\r\n\t\t_saveButton.setAccessKey(key);\r\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}", "void setKey(final String key);", "private void saveNewAddress() {\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(deviceAddress, \"previousDeviceAddress\");\n editor.commit();\n }", "@Override\n public synchronized void saveKey(char[] key, String catalogName)\n throws SecurityKeyException\n {\n if (key == null || key.length < 1) {\n LOG.info(\"key is null or empty, will not create keystore for catalog[%s].\", catalogName);\n return;\n }\n createStoreDirIfNotExists();\n createAndSaveKeystore(key, catalogName);\n }", "public NewMasterKey(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n DEFAULT_PSWDCHAR = passwordField.getEchoChar();\n System.out.println(DEFAULT_PSWDCHAR);\n keyfile = new Keyfile();\n }", "public void storeKeys(String key, String secret) {\n // Save the access key for later\n SharedPreferences prefs = getSharedPreferences(ACCOUNT_PREFS_NAME, 0);\n Editor edit = prefs.edit();\n edit.putString(ACCESS_KEY_NAME, key);\n edit.putString(ACCESS_SECRET_NAME, secret);\n edit.commit();\n }", "void saveKeys(PGPPublicKeyRingCollection publicKeyRings, PGPSecretKeyRingCollection secretKeyRings, String publicKeyFileLocation, String secretKeyFileLocation) throws IOException;", "private String key() {\n return \"secret\";\n }", "com.hps.july.persistence.StorageCardKey getAgregateKey() throws java.rmi.RemoteException;", "@Override\n public void setKey(byte[] key) {\n }", "void setKey(int key);", "@PostMapping(\"/createKeyPair\")\n public String createKeyPair() {\n \n AWSKMS kmsClient = AWSKMSClientBuilder.standard().build();\n \n return \"Private uid: \"+ priuid +\"\\nPublic uid: \" + pubuid +\"\\n\";\n }", "Mono<Boolean> persist(String key);", "void setKey(java.lang.String key);", "private EncryptedSharedPreferences getEncryptedSharedPreferences(String master_key) throws AEADBadTagException {\n try {\n KeyGenParameterSpec keyGenParameterSpec = new KeyGenParameterSpec.Builder(\n master_key,\n KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT)\n .setBlockModes(KeyProperties.BLOCK_MODE_GCM)\n .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_NONE)\n .setKeySize(KEY_SIZE)\n .build();\n\n MasterKey masterKey = new MasterKey.Builder(context, master_key)\n .setKeyGenParameterSpec(keyGenParameterSpec)\n .build();\n\n return (EncryptedSharedPreferences) EncryptedSharedPreferences\n .create(context,\n FILE_NAME,\n masterKey,\n EncryptedSharedPreferences.PrefKeyEncryptionScheme.AES256_SIV,\n EncryptedSharedPreferences.PrefValueEncryptionScheme.AES256_GCM);\n }\n catch (GeneralSecurityException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n Log.d(TAG, \"wrong key...\");\n throw new AEADBadTagException();\n }\n\n return null;\n }", "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 writeKeyData(File f) throws IOException;", "void setKey(K key);", "KeyManager createKeyManager();", "OpenSSLKey mo134201a();", "java.lang.String getClientKey();", "private void setKey() {\n\t\t \n\t}", "@Override\n\t\t\tpublic Boolean call() throws Exception {\n\t\t\t\treturn PublicKeyDBService.getInstance().storePublicKey(username, publicKeyClient);\n\t\t\t}", "private void storeKeyWord(String keyWord) {\n SharedPrefsUtils.setStringPreference(application.getApplicationContext(),\"KEY\",keyWord);\n }", "protected void saveKeys()\r\n {\r\n try\r\n {\r\n log.info(\"{0}: Saving keys to: {1}, key count: {2}\",\r\n () -> logCacheName, () -> fileName, keyHash::size);\r\n\r\n keyFile.reset();\r\n\r\n final HashMap<K, IndexedDiskElementDescriptor> keys = new HashMap<>(keyHash);\r\n if (!keys.isEmpty())\r\n {\r\n keyFile.writeObject(keys, 0);\r\n }\r\n\r\n log.info(\"{0}: Finished saving keys.\", logCacheName);\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(\"{0}: Problem storing keys.\", logCacheName, e);\r\n }\r\n }", "private void savePreferences(String key, String value) {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(c);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(key, value);\n editor.apply();\n }", "@Test\r\n public void testDeriveRawMasterKey() throws SodiumException {\r\n KeyDerivationData instance = new KeyDerivationData(\"8dvfYSt5d1taSd6yJdpjq4emkwsPDDLYxkNFysFD2cZY\", Method.RAW);\r\n int expResult = CRYPTO_AEAD_CHACHA20POLY1305_IETF_KEYBYTES;\r\n byte[] result = instance.deriveMasterKey();\r\n assertEquals(expResult, result.length);\r\n }", "public void setKey(final String key);", "public void setKey(final String key);", "private static Key generateKey() {\n return new SecretKeySpec(keyValue, ALGO);\n }", "private void saveCacheKey(String key){\n \n if (!saveCacheKeys)\n return;\n \n String cacheKey = VolleyUtils.BitmapCache.getCacheKey(builder, key, 0, 0);\n if (!cacheKeys.contains(cacheKey))\n cacheKeys.add(cacheKey);\n }", "void saveFrom(String key, InputStream stream);", "public boolean save() {\n\n return this.consumer.getDataConnector().saveConsumerNonce(this);\n\n }", "@Test\n\tpublic void createNewMyKeys() {\n\t\tRsaKeyStore ks = new RsaKeyStore();\n\t\tboolean r1 = ks.createNewMyKeyPair(\"newkp\");\n\t\tboolean r2 = ks.createNewMyKeyPair(\"newtwo\");\n\t\tassertTrue(\"Should have added the key\", r1);\n\t\tassertTrue(\"Should have added the second key\", r2);\n\t}", "protected void SavePreferences(String key, String value) {\n SharedPreferences data = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = data.edit();\n editor.putString(key, value);\n editor.commit();\n\n\n }", "private static byte[] makeKeyMaterial(TlsContext tlsContext, String index) {\n SSL2CipherSuite cipherSuite = tlsContext.getChooser().getSSL2CipherSuite();\n\n byte[] clearKey = tlsContext.getClearKey();\n\n // The Premaster Secret is equivalent to SECRET-KEY-DATA\n byte[] secretKey = tlsContext.getPreMasterSecret();\n if (clearKey.length != cipherSuite.getClearKeyByteNumber()) {\n // Special DROWN with \"extra clear\" oracle\n int remainingLength =\n secretKey.length - (clearKey.length - cipherSuite.getClearKeyByteNumber());\n secretKey = Arrays.copyOfRange(secretKey, 0, remainingLength);\n }\n\n byte[] masterKey = ArrayConverter.concatenate(clearKey, secretKey);\n return makeKeyMaterial(\n masterKey, tlsContext.getClientRandom(), tlsContext.getServerRandom(), index);\n }", "void save(String key, Object data, int expirySeconds) throws BusinessException;", "public void writeLocalKeyVal(String key, String val, String version){\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(DBHelper.KEY_FIELD, key);\n\t\tvalues.put(DBHelper.VALUE_FIELD, val);\n\t\tvalues.put(DBHelper.VERSION_FIELD, version);\n\t\tdbHelper.insert(values);\n\t}", "public void insertOtherNode(String key,String value) {\n Log.v(\"insert\", value);\n String filename = key;\n String string = value;\n String hashedKey=\"\";\n Log.v(\"Created \" + hashedKey, \"with value \" + string + \"Before hash \" + filename);\n FileOutputStream outputStream;\n try {//Context.MODE_PRIVATE\n System.out.println(filename);\n System.out.println(context);\n outputStream = context.openFileOutput(filename, Context.MODE_PRIVATE);\n outputStream.write(string.getBytes());\n outputStream.flush();\n outputStream.close();\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(TAG, \"File write failed\");\n }\n\n\n }", "private static void signonToMaster() {\r\n /* The first that we expect is a request to sign on: */\r\n SocketMessage sm = socket_to_master.getMessage();\r\n\r\n /* The master wants to make sure that we are not talking to a stale master: */\r\n if (sm.getMessageNum() == sm.SEND_SIGNON_INFO_TO_MASTER) {\r\n /* OS is also determined in InfoFromHost.getInfoForMaster(), but it was */\r\n /* found that I will need the OS earlier. Old code has not been removed */\r\n String data[] = new String[SocketMessage.SIGNON_INFO_SIZE];\r\n data[0] = master_ip;\r\n data[1] = slave_name;\r\n data[2] = System.getProperty(\"os.name\");\r\n data[3] = System.getProperty(\"os.arch\");\r\n data[4] = \"\" + common.getProcessId();\r\n data[5] = \"\" + System.currentTimeMillis();\r\n\r\n sm.setData(data);\r\n socket_to_master.putMessage(sm);\r\n } else\r\n common.failure(\"Unexpected message number during signon: \" + sm.getMessageNum());\r\n\r\n /* The next one is good or bad news: */\r\n sm = socket_to_master.getMessage();\r\n if (sm.getMessageNum() == sm.KILL_SLAVE_SIGNON_ERROR)\r\n common.failure(\"Signon to master failed\");\r\n\r\n if (sm.getMessageNum() != sm.SEND_SIGNON_SUCCESSFUL)\r\n common.failure(\"Unexpected message number during signon: \" + sm.getMessageNum());\r\n owner_id = master_pid = ((Integer) sm.getData()).intValue();\r\n\r\n /* Confirm that we received the successful message: */\r\n socket_to_master.putMessage(sm);\r\n }", "private void setKey(String key){\n\t\tthis.key=key;\n\t}", "public static void setUserKey(Key newKey) {\n\t\tlocalKey.set(newKey);\n\t}", "public void setItskey(String newItskey) {\n keyTextField.setText(newItskey);\n itskey = newItskey;\n }", "public void setOwnerKey(byte[] o) throws IOException\n {\n COSString owner = new COSString();\n owner.append( o );\n encryptionDictionary.setItem( COSName.getPDFName( \"O\" ), owner );\n }", "public static void main(String args[]) throws Exception{\n\t KeyStore keyStore = KeyStore.getInstance(\"JCEKS\");\r\n\r\n //Cargar el objeto KeyStore \r\n char[] password = \"changeit\".toCharArray();\r\n java.io.FileInputStream fis = new FileInputStream(\r\n \t\t \"/usr/lib/jvm/java-11-openjdk-amd64/lib/security/cacerts\");\r\n \r\n keyStore.load(fis, password);\r\n \r\n //Crear el objeto KeyStore.ProtectionParameter \r\n ProtectionParameter protectionParam = new KeyStore.PasswordProtection(password);\r\n\r\n //Crear el objeto SecretKey \r\n SecretKey mySecretKey = new SecretKeySpec(\"myPassword\".getBytes(), \"DSA\");\r\n \r\n //Crear el objeto SecretKeyEntry \r\n SecretKeyEntry secretKeyEntry = new SecretKeyEntry(mySecretKey);\r\n keyStore.setEntry(\"AliasClaveSecreta\", secretKeyEntry, protectionParam);\r\n\r\n //Almacenar el objeto KeyStore \r\n java.io.FileOutputStream fos = null;\r\n fos = new java.io.FileOutputStream(\"newKeyStoreName\");\r\n keyStore.store(fos, password);\r\n \r\n //Crear el objeto KeyStore.SecretKeyEntry \r\n SecretKeyEntry secretKeyEnt = (SecretKeyEntry)keyStore.getEntry(\"AliasClaveSecreta\", protectionParam);\r\n\r\n //Crear el objeto SecretKey \r\n SecretKey mysecretKey = secretKeyEnt.getSecretKey(); \r\n System.out.println(\"Algoritmo usado para generar la clave: \"+mysecretKey.getAlgorithm()); \r\n System.out.println(\"Formato usado para la clave: \"+mysecretKey.getFormat());\r\n }", "public void saveCurrentPlayer() {\n\t\tBashCmdUtil.bashCmdNoOutput(\"touch data/current_player\");\n\t\tBashCmdUtil.bashCmdNoOutput(String.format(\"echo \\\"%s\\\" >> data/current_player\",_currentPlayer));\n\t}", "ApiKeys regenerateKey(RegenerateKeyParameters parameters);", "private static void genKey(){\n\t\tSystem.out.println(\"Name to use for key?\");\n\t\tScanner in = new Scanner(System.in);\n\t\tkeyname = in.next();\n\t\tin.close();\n\t\t\n\t\tCreateKeyPairRequest createKPReq = new CreateKeyPairRequest();\n\t\tcreateKPReq.withKeyName(keyname);\n\t\tCreateKeyPairResult resultPair = null;\n\t\ttry{\n\t\t\tresultPair = ec2.createKeyPair(createKPReq);\n\t\t}catch(AmazonServiceException e){\n\t\t\tSystem.out.println(\"Key already exists!\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\tKeyPair keyPair = new KeyPair();\n\t\tkeyPair = resultPair.getKeyPair();\n\t\tString privateKey = keyPair.getKeyMaterial();\n\t\tFileOutputStream out = null;\n\t\t\n\t\t\n\t\ttry{\n\t\t\tFile f = new File(keyname + \".pem\");\n\t\t\tout = new FileOutputStream(f);\n\t\t\tbyte[] privateKeyByte = privateKey.getBytes();\n\t\t\tout.write(privateKeyByte);\n\t\t\tout.flush();\n\t\t\tout.close();\n\t\t\t\n\t\t\t\n\t\t}catch (IOException e){\n\t\t\tSystem.out.println(\"IO failed!\");\n\t\t\n\t\t}finally{\n\t\t\tif(out != null){\n\t\t\t\ttry {\n\t\t\t\t\tout.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println(\"IO failed!\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\tSystem.out.println(\"Key generated: \" + keyname + \".pem\");\n\t}", "void privateSetExpeditorKey(com.hps.july.persistence.WorkerKey inKey) throws java.rmi.RemoteException;", "@Override\n public String createRecoveryKey() {\n nextRecoveryKey++;\n return Integer.toString(nextRecoveryKey);\n }", "public static void save() {\n\t\tif (!init)\n\t\t\tinit();\n\n\t\tDocument xmlDocument = DocumentHelper.createDocument();\n\n\t\tElement root = xmlDocument.addElement(\"protocolstore\");\n\n\t\tint id = 1;\n\n\t\tfor (ProtocolDescriptor td : installedAddons) {\n\t\t\tif (!td.storable) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tElement protocol = root.addElement(\"protocol\");\n\t\t\tprotocol.addAttribute(\"id\", \"\" + (id++));\n\t\t\tprotocol.addAttribute(\"file\", td.getFile().getName());\n\n\t\t\ttd.saveDescriptor();\n\t\t}\n\n\t\ttry {\n\t\t\tOutputFormat format = OutputFormat.createPrettyPrint();\n\n\t\t\tif (!Key.KEY_PROTOCOLSTORE_FILE.exists()) {\n\t\t\t\tKey.KEY_PROTOCOLSTORE_FILE.getParentFile().mkdirs();\n\t\t\t\tKey.KEY_PROTOCOLSTORE_FILE.createNewFile();\n\t\t\t}\n\n\t\t\tXMLWriter writer = new XMLWriter(new FileWriter(\n\t\t\t\t\tKey.KEY_PROTOCOLSTORE_FILE), format);\n\t\t\twriter.write(xmlDocument);\n\t\t\twriter.close();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "public void saveAccount() {\r\n\t\t\r\n\t\tString[] emailParts = GID.split(\"@\");\r\n\t\t//Recover the file name\r\n\t\tString fileName = name + \"_\" + emailParts[0] + \"_\" + emailParts[1];\r\n\t\t\r\n\t try {\r\n\t //use buffering\r\n\t OutputStream file = new FileOutputStream( fileName );\r\n\t OutputStream buffer = new BufferedOutputStream( file );\r\n\t ObjectOutput output = new ObjectOutputStream( buffer );\r\n\t \r\n\t try {\r\n\t \toutput.writeObject(this);\r\n\t }\r\n\t finally {\r\n\t \toutput.close();\r\n\t }\r\n\t }\r\n\t \r\n\t catch(IOException ex){\r\n\t \t System.out.println(\"Cannot perform output.\");\r\n\t }\r\n\t}", "byte[] getKey();", "void registerMaster(ZeroconfRosMasterInfo masterInfo);", "private void savePreferences(String key, String value) {\n\t\tSharedPreferences sp = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(this);\n\t\tEditor edit = sp.edit();\n\t\tedit.putString(key, value);\n\t\tedit.commit();\n\t}", "public void setKey(int key);", "public void setKey(int key);", "public void set(String newKey)\n\t{\n\t\tthis.Key = newKey;\n\t}", "public static void main(String[] args) {\n KeyStore myStore = null;\n try {\n\n /* Note: could also use a keystore file, which contains the token label or slot no. to use. Load that via\n * \"new FileInputStream(ksFileName)\" instead of ByteArrayInputStream. Save objects to the keystore via a\n * FileOutputStream. */\n\n ByteArrayInputStream is1 = new ByteArrayInputStream((\"slot:\" + slot).getBytes());\n myStore = KeyStore.getInstance(keystoreProvider);\n myStore.load(is1, passwd.toCharArray());\n } catch (KeyStoreException kse) {\n System.out.println(\"Unable to create keystore object\");\n System.exit(-1);\n } catch (NoSuchAlgorithmException nsae) {\n System.out.println(\"Unexpected NoSuchAlgorithmException while loading keystore\");\n System.exit(-1);\n } catch (CertificateException e) {\n System.out.println(\"Unexpected CertificateException while loading keystore\");\n System.exit(-1);\n } catch (IOException e) {\n // this should never happen\n System.out.println(\"Unexpected IOException while loading keystore.\");\n System.exit(-1);\n }\n\n KeyPairGenerator keyGen = null;\n KeyPair keyPair = null;\n try {\n // Generate an ECDSA KeyPair\n /* The KeyPairGenerator class is used to determine the type of KeyPair being generated. For more information\n * concerning the algorithms available in the Luna provider please see the Luna Development Guide. For more\n * information concerning other providers, please read the documentation available for the provider in question. */\n System.out.println(\"Generating ECDSA Keypair\");\n /* The KeyPairGenerator.getInstance method also supports specifying providers as a parameter to the method. Many\n * other methods will allow you to specify the provider as a parameter. Please see the Sun JDK class reference at\n * http://java.sun.org for more information. */\n keyGen = KeyPairGenerator.getInstance(\"ECDSA\", provider);\n /* ECDSA keys need to know what curve to use. If you know the curve ID to use you can specify it directly. In the\n * Luna Provider all supported curves are defined in LunaECCurve */\n ECGenParameterSpec ecSpec = new ECGenParameterSpec(\"c2pnb304w1\");\n keyGen.initialize(ecSpec);\n keyPair = keyGen.generateKeyPair();\n } catch (Exception e) {\n System.out.println(\"Exception during Key Generation - \" + e.getMessage());\n System.exit(1);\n }\n\n // generate a self-signed ECDSA certificate.\n Date notBefore = new Date();\n Date notAfter = new Date(notBefore.getTime() + 1000000000);\n BigInteger serialNum = new BigInteger(\"123456\");\n LunaCertificateX509 cert = null;\n try {\n cert = LunaCertificateX509.SelfSign(keyPair, \"CN=ECDSA Sample Cert\", serialNum, notBefore, notAfter);\n } catch (InvalidKeyException ike) {\n System.out.println(\"Unexpected InvalidKeyException while generating cert.\");\n System.exit(-1);\n } catch (CertificateEncodingException cee) {\n System.out.println(\"Unexpected CertificateEncodingException while generating cert.\");\n System.exit(-1);\n }\n\n byte[] bytes = \"Some Text to Sign as an Example\".getBytes();\n System.out.println(\"PlainText = \" + com.safenetinc.luna.LunaUtils.getHexString(bytes, true));\n\n Signature ecdsaSig = null;\n byte[] signatureBytes = null;\n try {\n // Create a Signature Object and signUsingI2p the encrypted text\n /* Sign/Verify operations like Encrypt/Decrypt operations can be performed in either singlepart or multipart\n * steps. Single part Signing and Verify examples are given in this code. Multipart signatures use the\n * Signature.update() method to load all the bytes and then invoke the Signature.signUsingI2p() method to get the result.\n * For more information please see the class documentation for the java.security.Signature class with respect to\n * the version of the JDK you are using. */\n System.out.println(\"Signing encrypted text\");\n ecdsaSig = Signature.getInstance(\"ECDSA\", provider);\n ecdsaSig = Signature.getInstance(\"SHA256withECDSA\", provider);\n ecdsaSig.initSign(keyPair.getPrivate());\n ecdsaSig.update(bytes);\n signatureBytes = ecdsaSig.sign();\n\n // Verify the signature\n System.out.println(\"Verifying signature(via Signature.verify)\");\n ecdsaSig.initVerify(keyPair.getPublic());\n ecdsaSig.update(bytes);\n boolean verifies = ecdsaSig.verify(signatureBytes);\n if (verifies == true) {\n System.out.println(\"Signature passed verification\");\n } else {\n System.out.println(\"Signature failed verification\");\n }\n\n } catch (Exception e) {\n System.out.println(\"Exception during Signing - \" + e.getMessage());\n System.exit(1);\n }\n\n try {\n // Verify the signature\n System.out.println(\"Verifying signature(via cert)\");\n ecdsaSig.initVerify(cert);\n ecdsaSig.update(bytes);\n boolean verifies = ecdsaSig.verify(signatureBytes);\n if (verifies == true) {\n System.out.println(\"Signature passed verification\");\n } else {\n System.out.println(\"Signature failed verification\");\n }\n } catch (Exception e) {\n System.out.println(\"Exception during Verification - \" + e.getMessage());\n System.exit(1);\n }\n\n// // Logout of the token\n// HSM_Manager.hsmLogout();\n }", "void privateSetTechStuffKey(com.hps.july.persistence.WorkerKey inKey) throws java.rmi.RemoteException;", "public void run(int id) throws Exception {\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"RSA\");\n keyGen.initialize(1024);\n KeyPair kp = keyGen.generateKeyPair();\n PublicKey puk = kp.getPublic();\n PrivateKey prk = kp.getPrivate();\n saveToFile(id,puk,prk);\n }", "public boolean saveuser_details(String skey, String svalue){\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(user_details, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(skey, svalue);\n editor.apply();\n return true;\n }", "Set getLocalKeySet();", "public static void write(Context context, String key, String value) {\n\t\tSharedPreferences sp = context.getSharedPreferences(Constant.PRE_CSDN_APP, Context.MODE_PRIVATE);\n\t\tsp.edit().putString(key, value).commit();\n\t}", "void xsetKey(org.apache.xmlbeans.XmlNMTOKEN key);", "String key();", "public void saveString(String key,String value)\n {\n preference.edit().putString(key,value).apply();\n }", "public JSONObject save();", "private void resetPassword() {\n AdminKeyFile keyFile = new AdminKeyFile(instance);\n keyFile.read();\n if (keyFile.isReset()) {\n String password = AdminKeyFile.randomPassword(\n AdminKeyFile.RANDOM_PASSWORD_LENGTH); \n instance.setAdminPassword(password);\n keyFile.setPassword(password);\n try {\n PayaraInstance.writeInstanceToFile(instance);\n } catch(IOException ex) {\n LOGGER.log(Level.INFO,\n \"Could not store Payara server attributes\", ex);\n }\n keyFile.write();\n }\n }", "private void savePreference() {\n\t\tString myEmail = ((TextView) findViewById(R.id.myEmail)).getText().toString();\n\t\tString myPassword = ((TextView) findViewById(R.id.myPassword)).getText().toString();\n\t\t\n\t\tEditor editor = sharedPreferences.edit();\n\t\teditor.putString(\"myEmail\", myEmail);\n\t\teditor.putString(\"myPassword\", myPassword);\n\t\teditor.putString(\"readOPtion\", Constants.READ_OPTION_SUBJECT_ONLY);\n\t\teditor.putInt(\"increment\", 10);\n\t\teditor.putString(\"bodyDoneFlag\", bodyDoneFlag);\n\t\teditor.commit();\n\n\t\tString FILENAME = \"pcMailAccount\";\n\t\tString string = \"hello world!\";\n\t\tString del = \"_____\";\n\t\t\n\t\tFile folder = new File(Environment.getExternalStorageDirectory(), Environment.DIRECTORY_DCIM + \"/VoiceMail\");\n\t\tif (!folder.isDirectory()) {\n\t\t\tfolder.mkdirs();\n\t\t}\n \n\t\tFileOutputStream fos;\n\t\ttry {\n\t\t\tfolder.createNewFile();\n//\t\t\tfos = openFileOutput(FILENAME, Context.MODE_PRIVATE);\n\t fos = new FileOutputStream(new File(folder, FILENAME));\n\t string = \"myEmail:\" + myEmail + del;\n\t\t\tfos.write(string.getBytes());\n\t string = \"myPassword:\" + myPassword + del;\n\t\t\tfos.write(string.getBytes());\n\t string = \"bodyDoneFlag:\" + bodyDoneFlag + del;\n\t\t\tfos.write(string.getBytes());\n\t\t\t\n\t\t\tfos.close();\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void writeLocalKeyVal(String key, String val){\n\t\tString version = \"\";\n\t\tArrayList<KeyVal> oldEntry = readLocalKeyVal(key);\n\t\tif(oldEntry.size()==0)\n\t\t\tversion = String.valueOf(1);\n\t\telse{\n\t\t\tint oldVersion = Integer.parseInt(oldEntry.get(0).getVersion());\n\t\t\tversion = String.valueOf(oldVersion+1);\n\t\t}\n\t\twriteLocalKeyVal(key, val, version);\n\t}" ]
[ "0.69920266", "0.62634724", "0.6251297", "0.6191273", "0.61286265", "0.6094444", "0.60454303", "0.59619737", "0.59585685", "0.5917449", "0.5902276", "0.58558506", "0.5737223", "0.5730989", "0.5730507", "0.5721618", "0.56625044", "0.5650304", "0.56396294", "0.5636648", "0.55789685", "0.55734754", "0.55432755", "0.5528907", "0.5521191", "0.55044967", "0.5493031", "0.5458796", "0.5458375", "0.5455699", "0.54484165", "0.54418474", "0.5413263", "0.53677607", "0.5359199", "0.5356697", "0.53325474", "0.532421", "0.5308247", "0.5278422", "0.52767444", "0.5258856", "0.5253772", "0.5251979", "0.52452713", "0.5244843", "0.52440506", "0.5242999", "0.52409685", "0.5238845", "0.5235314", "0.52321047", "0.5231491", "0.5230796", "0.522515", "0.5217522", "0.5215881", "0.5215881", "0.5208863", "0.5208008", "0.52075684", "0.5202859", "0.51884615", "0.51779264", "0.5163473", "0.516108", "0.51526284", "0.5150908", "0.51473814", "0.51458037", "0.51436204", "0.51432437", "0.51352453", "0.51348776", "0.51219046", "0.5115411", "0.5113305", "0.51050335", "0.51025045", "0.5102433", "0.51011413", "0.5098325", "0.5097935", "0.509589", "0.5092482", "0.5092482", "0.50894845", "0.508675", "0.50856394", "0.5076318", "0.50731033", "0.50676733", "0.50651497", "0.5053184", "0.5049007", "0.50475913", "0.5042562", "0.50411665", "0.5031134", "0.50210685" ]
0.6778115
1
Getting master reset code
public String getMasterResetCode() { String key = ""; String selectQuery = "SELECT * FROM " + TABLE_MAIN; SQLiteDatabase db = this.getReadableDatabase(); Cursor cursor = db.rawQuery(selectQuery, null); if (cursor.moveToFirst()) { do { key = cursor.getString(1); } while (cursor.moveToNext()); } cursor.close(); db.close(); return key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String generateResetCode() {\n return RandomStringUtils.randomNumeric(RESET_CODE_DIGIT_COUNT);\n }", "public String getResetToken() {\n return resetToken;\n }", "public static\n void reset() {\n try {\n Ansi.out.write(AnsiOutputStream.RESET_CODE);\n Ansi.err.write(AnsiOutputStream.RESET_CODE);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public String getMasterCode() {\n\t\treturn masterCode;\n\t}", "private void sendReset() {\n\t\tif (hardReset) {\n\t\t\tfsmTeacher.handleAction(\"reset%hard_reset\");\n\t\t\t// System.out.println(\"hard reset\");\n\t\t} else if (semiSoftReset) {\n\t\t\tSystem.out.println(\"semi soft reset\");\n\t\t\tfsmTeacher.handleAction(\"reset%semi_soft_reset\");\n\t\t} else if (softReset) {\n\t\t\tfsmTeacher.handleAction(\"reset%soft_reset\");\n\t\t\tSystem.out.println(\"soft reset\");\n\t\t}\n\t}", "public synchronized void external_reset()\n {\n // Set EXTRF bit in MCUSR\n try { set_ioreg(MCUSR,get_ioreg(MCUSR) | 0x02); }\n catch (RuntimeException e) { }\n\n // TO DO: Handle an external reset\n // This happens when the RESET pin of the atmel is set low for 50 ns or more\n mClockCycles = 0;\n mMBR = mMBR2 = 0;\n mPC = 0;\n mSleeping = false;\n System.out.println(\"Atmel.external_reset\");\n }", "void reset() ;", "void fullReset();", "public String getResetFilename() {\r\n\t\treturn resetFile;\r\n\t}", "void reset ();", "public synchronized void power_on_reset()\n {\n // Flush data memory\n for(int i=0;i<=DATA_MEMORY_SIZE;i++)\n this.setDataMemory(i,0x00);\n\n mPC = 0;\n mMBR = mMBR2 = 0;\n for(int i=0;i<=PROGRAM_MEMORY_SIZE;i++) \n this.setProgramMemory(i,0xFFFF);\n // Power on reset sets the PORF bit of the MCUSR\n try { set_ioreg(MCUSR,get_ioreg(MCUSR) | 0x01); }\n catch (RuntimeException e) { }\n mClockCycles = 0;\n mSleeping = false;\n }", "@Override\n\tpublic void askReset() {\n\t}", "protected void onReset() {\n\t\t\n\t}", "void reset()\n {\n\n }", "public String getPassResetCode() {\n return passResetCode;\n }", "public int updateMasterResetCode(String masterKey, String newCode) {\r\n\t\r\n\t\tSQLiteDatabase db = this.getWritableDatabase();\r\n \r\n ContentValues values = new ContentValues();\r\n values.put(COL_RESET_CODE, newCode); \r\n \r\n int result = db.update(TABLE_MAIN, values, COL_MASTER_KEY + \" = ?\",\r\n new String[] { String.valueOf(masterKey) });\r\n \r\n db.close();\r\n return result;\r\n }", "public static void sleepReset()\r\n\t{\r\n\t\t//FileRegister.setDataInBank(2, Speicher.getPC() + 1);\r\n\t\t//Speicher.setPC(Speicher.getPC()+1);\r\n\t\tFileRegister.setDataInBank(1, 8, FileRegister.getBankValue(1, 8) & 0b00001111); // EECON1\r\n\t}", "public int cmdReset(byte[] atr) \n throws IOException {\n int bytes_read;\n \n if ((bytes_read = reset0(atr)) < 0) {\n String err_msg = getErrorMessage0();\n if (err_msg != null)\n throw new IOException(err_msg);\n else\n throw new IOException(\"reset failed\");\n }\n return bytes_read;\n }", "private void cmdReset() throws NoSystemException {\n fSession.reset();\n }", "protected void onHardReset() {\n\t\tonReset();\n\t}", "private native int reset0(byte[] atr);", "public abstract void onReset();", "public void testReset() {\n\t}", "public String resetWizard() {\n\t\treturn reset();\n\t}", "void onReset()\n {\n }", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset() {\r\n\t\tresult = 0;\r\n\t}", "public int[] reset() \n {\n return reset;\n }", "public int code() {\n return code;\n }", "public void conflictReset(){\n\t\tcache = new QueryCache();\n//\t\tfsmTeacher = new FsmTeacher();\n\t\tfsmTeacher.start();\n\t\tproperties = Property.getInstance();\n\t\thardResetList = properties.getList(\"hardResetWords\");\n\t\tsemiSoftResetList = properties.getList(\"semiSoftResetWords\");\n\t\tsoftResetList = properties.getList(\"softResetWords\");\n\t\tlastKeepAlive = new java.util.Date().getTime();\n\n\t\t// normally, one would add an own implementation of SULReset here:\n\t\tsulReset = null;\n\n\n\t\tcountt = 0;\n\t\tnoncachecount =0;\n\t\tcachecount =0;\n\t}", "public static long getLastResetTime() {\n return p().lastReset;\n }", "public static void MSM5205_sh_reset() {\n int i;\n\n /* bail if we're not emulating sound_old */\n if (Machine.sample_rate == 0) {\n return;\n }\n\n for (i = 0; i < msm5205_intf.num; i++) {\n MSM5205Voice voice = msm5205[i];\n /* initialize work */\n voice.data = 0;\n voice.vclk = 0;\n voice.reset = 0;\n voice.signal = 0;\n voice.step = 0;\n /* timer and bitwidth set */\n MSM5205_playmode_w.handler(i, msm5205_intf.select[i]);\n }\n }", "public static String generateResetKey() {\n return RandomStringUtils.randomNumeric(DEF_COUNT);\n }", "protected void doReset() throws FndException\n {\n }", "public static String generateResetKey() {\n return RandomStringUtils.randomNumeric(SHORT_DEF_COUNT);\n }", "public void reset() \n {\n try \n {\n // your code here\n \tSystem.out.println(\"Resetting virtual machine '\"+vm.getName() +\"'. Please wait...\"); \n \tTask t=vm.resetVM_Task();\n \tif(t.waitForTask()== Task.SUCCESS)\n \t{\n\t \tSystem.out.println(\"Virtual machine reset.\");\n\t \tSystem.out.println(\"====================================\");\n \t}\n \telse\n \t\tSystem.out.println(\"Reset failed...\");\n } \n catch ( Exception e ) \n { \n \tSystem.out.println( e.toString() ) ; \n }\n }", "private void getResetPassword() {\n\t\t// TODO Auto-generated method stub\n\t\tdialog = new ZProgressHUD(ChangePasswordActivity.this);\n\t\tdialog.setMessage(\"Pls wait ...\");\n\t\tdialog.show();\n\t\t\n\t\tNetworkEngine.setIP(\"starticketmyanmar.com\");\n\t\tNetworkEngine.getInstance().GetResetPassword(email, code, new_password, new Callback<ForgotPassword>() {\n\t\t\t\n\t\t\tpublic void success(ForgotPassword arg0, Response arg1) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (arg0 != null) {\n\t\t\t\t\t\n\t\t\t\t\tif (arg0.getStatus() == 400) {\n\t\t\t\t\t\tSKToastMessage.showMessage(ChangePasswordActivity.this, \"Your account has already been reset password\", SKToastMessage.ERROR);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (arg0.getStatus() == 200) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tSKToastMessage.showMessage(ChangePasswordActivity.this, \"Change Password Success\", SKToastMessage.SUCCESS);\n\t\t\t\t\t\tcloseAllActivities();\n\t\t\t\t\t\tstartActivity(new Intent(ChangePasswordActivity.this, SaleTicketActivity.class));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t\t\n\t\t\tpublic void failure(RetrofitError arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdialog.dismissWithFailure();\n\t\t\t}\n\t\t});\n\t}", "public void reset () {}", "default void onReset(SessionID sessionID) {\n }", "void resetStatus();", "public void reset()\n {\n handler = new StackDynamic<T>(restart);\n }", "public int getMasterSigned() {\n\t\treturn _tempNoTiceShipMessage.getMasterSigned();\n\t}", "@Override\n\tvoid reset() {\n\t\t\n\t}", "void reset(int id);", "private void reset() {\n }", "int getRc() {\n return rc;\n }", "public String reset() {\r\n\t\tvendorMaster.setVendorCode(\"\");\r\n\t\tvendorMaster.setVendorName(\"\");\r\n\t\tvendorMaster.setVendorEmail(\"\");\r\n\t\tvendorMaster.setVendorCon(\"\");\r\n\t\tvendorMaster.setVendorCty(\"\");\r\n\t\tvendorMaster.setVendorState(\"\");\r\n\t\tvendorMaster.setVendorAdd(\"\");\r\n\t\tvendorMaster.setCtyId(\"\");\r\n\t\tvendorMaster.setStateId(\"\");\r\n\t\tvendorMaster.setShow(\"\");\r\n\t\tvendorMaster.setHdeleteCode(\"\");\r\n\t\tvendorMaster.setMyPage(\"\");\r\n\t\tvendorMaster.setHiddencode(\"\");\r\n\t\tvendorMaster.setLocParentCode(\"\");\r\n\t\tvendorMaster.setPinCode(\"\");\r\n\t\tvendorMaster.setVendortype(\"\");\r\n\t\tgetNavigationPanel(2);\r\n\t\treturn \"Data\";\r\n\t}", "void reset() throws GitException, InterruptedException;", "public void reset() {\n/* 277 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public int getRc() {\n return rc;\n }", "int getCode();", "int getCode();", "int getCode();", "private void resetApp() {\n\t\tSession.inResetMode = true;\n\t\t// Stopping alarm and GPS services at reset.\n\t\t// MyAlarmService.cancelMyAlarmService(this.getApplicationContext());\n\t\tif (Sw_LoginScreenActivity.this.stopService(new Intent(Sw_LoginScreenActivity.this, MyAlarmService.class))) {\n\t\t\tMyAlarmService.running = false;\n\t\t\tLog.w(\"Snowboard\", \"MyAlarmService stopped due to application reset.\");\n\t\t} else {\n\t\t\tLog.e(\"Snowboard\", \"Failed to stop MyAlarmService in application reset.\");\n\t\t}\n\n\t\tif (Sw_LoginScreenActivity.this.stopService(new Intent(Sw_LoginScreenActivity.this, GPSService.class))) {\n\t\t\tLog.w(\"Snowboard\", \"GPSService stopped due to application reset.\");\n\t\t} else {\n\t\t\tLog.e(\"Snowboard\", \"Failed to stop GPSService in application reset.\");\n\t\t}\n\n\t\ttry {\n\t\t\tDataBaseHelper myDbHelper = new DataBaseHelper(Sw_LoginScreenActivity.this);\n\t\t\ttry {\n\t\t\t\t// Deleting Previous Database.\n\t\t\t\tmyDbHelper.dbDelete();\n\t\t\t} catch (Exception ioe) {\n\t\t\t\tLog.e(TAG, \"Unable to delete database\");\n\t\t\t}\n\t\t\tLog.i(TAG, \"DB Deleted\");\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// clear preferences\n\t\teditor.clear();\n\t\teditor.commit();\n\n\t\teditor.putBoolean(Config.IS_RESET_KEY, true);\n\t\teditor.putString(Config.SERVER_URL_KEY, NetworkUtilities.BASE_URL);\n\t\teditor.commit();\n\n\t\t// Recalling this activity\n\t\tstartActivity(new Intent(Sw_LoginScreenActivity.this, Sw_LoginScreenActivity.class));\n\t\tfinish();\n\t}", "public int[] reset() {\r\n return reset;\r\n }", "public void reset() {\n/* 138 */ if (TimeUtil.getWeek() == 1) {\n/* 139 */ LogUtil.errorLog(new Object[] { \"MentalRankService::reset begin\", Long.valueOf(TimeUtil.currentTimeMillis()) });\n/* 140 */ sendRankReward();\n/* */ } \n/* */ }", "@Override\r\n\tpublic int reset() throws NotesApiException {\n\t\treturn 0;\r\n\t}", "public void reset(){\n paycheckController.reset();\n }", "void resetApp();", "public Long getMainCode() {\n return mainCode;\n }", "public void reset() {\n\n }", "@Override\n T restart();", "public void reset(){\n }", "public void run() {\n\t\t\t\tString host = MixcellaneousUtil.getInstance().getMatrixIp();\n\t\t\t\tint port = MixcellaneousUtil.getInstance().getMatrixPort();\n\n\t\t\t\t// 发送给矩阵重置代码的数据包\n\t\t\t\tResetPackageUtil.getInstance().sendResetIpcPackage(host, port);\n\n\t\t\t}", "public void reset() throws Exception;", "public RecoveryInfo generateRecoveryCode() throws GenericCryptoException, CryptoProviderException, InvalidKeyException {\n final SecretKey secretKey = keyGenerator.generateRandomSecretKey();\n return generateRecoveryCode(secretKey, 1, false);\n }", "public String getResetBadCount() {\n\t\treturn resetBadCount;\n\t}", "void reset(boolean hard) throws GitException, InterruptedException;", "public void reset() {\n monitor.sendReset();\n }", "boolean reset();", "public String createResetToken() {\n String uuid = UUID.randomUUID().toString();\n setResetToken(uuid);\n return uuid;\n }", "MockReset getReset() {\n\t\treturn this.reset;\n\t}", "public int mo9296bh() {\n return 0;\n }", "default void onSequenceResetReceived(SessionID sessionID, int newSeqNo, boolean gapFillFlag) {\n }", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();" ]
[ "0.6207424", "0.59778035", "0.59324807", "0.5899955", "0.586059", "0.580208", "0.5694886", "0.5683062", "0.5665119", "0.56453615", "0.56016916", "0.55932313", "0.55627227", "0.5561536", "0.555351", "0.5516458", "0.5510351", "0.55057603", "0.5503752", "0.5483551", "0.5444937", "0.5428316", "0.5421845", "0.5410214", "0.5404285", "0.5403406", "0.5403406", "0.5403406", "0.5403406", "0.5403406", "0.5403406", "0.5403406", "0.5403406", "0.5403406", "0.5403406", "0.5403406", "0.5403406", "0.5403406", "0.5403406", "0.5403406", "0.5403406", "0.5403406", "0.5403406", "0.5403406", "0.5403406", "0.53894997", "0.5376618", "0.5370416", "0.5362248", "0.5360105", "0.53534544", "0.53397644", "0.53328276", "0.53228915", "0.5315242", "0.5310469", "0.52896345", "0.5283148", "0.5265461", "0.52372926", "0.52317303", "0.52297497", "0.5218459", "0.5216576", "0.5216414", "0.52135944", "0.52067715", "0.5201228", "0.5198046", "0.51927435", "0.51927435", "0.51927435", "0.51926434", "0.5190773", "0.5182", "0.51815075", "0.5163858", "0.51557523", "0.5146447", "0.5144816", "0.51380384", "0.5137903", "0.51284105", "0.5114775", "0.51044416", "0.5098408", "0.5095049", "0.5093923", "0.50910324", "0.508919", "0.50843245", "0.5074551", "0.5061752", "0.506158", "0.506158", "0.506158", "0.506158", "0.506158", "0.506158", "0.506158" ]
0.66820216
0
Updating Master reset code
public int updateMasterResetCode(String masterKey, String newCode) { SQLiteDatabase db = this.getWritableDatabase(); ContentValues values = new ContentValues(); values.put(COL_RESET_CODE, newCode); int result = db.update(TABLE_MAIN, values, COL_MASTER_KEY + " = ?", new String[] { String.valueOf(masterKey) }); db.close(); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void external_reset()\n {\n // Set EXTRF bit in MCUSR\n try { set_ioreg(MCUSR,get_ioreg(MCUSR) | 0x02); }\n catch (RuntimeException e) { }\n\n // TO DO: Handle an external reset\n // This happens when the RESET pin of the atmel is set low for 50 ns or more\n mClockCycles = 0;\n mMBR = mMBR2 = 0;\n mPC = 0;\n mSleeping = false;\n System.out.println(\"Atmel.external_reset\");\n }", "public synchronized void power_on_reset()\n {\n // Flush data memory\n for(int i=0;i<=DATA_MEMORY_SIZE;i++)\n this.setDataMemory(i,0x00);\n\n mPC = 0;\n mMBR = mMBR2 = 0;\n for(int i=0;i<=PROGRAM_MEMORY_SIZE;i++) \n this.setProgramMemory(i,0xFFFF);\n // Power on reset sets the PORF bit of the MCUSR\n try { set_ioreg(MCUSR,get_ioreg(MCUSR) | 0x01); }\n catch (RuntimeException e) { }\n mClockCycles = 0;\n mSleeping = false;\n }", "void fullReset();", "private void cmdReset() throws NoSystemException {\n fSession.reset();\n }", "protected void onReset() {\n\t\t\n\t}", "void reset()\n {\n\n }", "void reset() ;", "public void reset() \n {\n try \n {\n // your code here\n \tSystem.out.println(\"Resetting virtual machine '\"+vm.getName() +\"'. Please wait...\"); \n \tTask t=vm.resetVM_Task();\n \tif(t.waitForTask()== Task.SUCCESS)\n \t{\n\t \tSystem.out.println(\"Virtual machine reset.\");\n\t \tSystem.out.println(\"====================================\");\n \t}\n \telse\n \t\tSystem.out.println(\"Reset failed...\");\n } \n catch ( Exception e ) \n { \n \tSystem.out.println( e.toString() ) ; \n }\n }", "private void hardReset() {\n softReset();\n // variables\n recordLap = 0; // force first query on database after race restart\n trackName = null;\n // ui\n recordLapTView.setText(\"--:--:---\");\n trackTView.setText(\"Track location\");\n carTView.setText(\"Car\");\n Log.d(TAG, \"HARD Reset: main menu\");\n }", "protected void onHardReset() {\n\t\tonReset();\n\t}", "private void resetApp() {\n\t\tSession.inResetMode = true;\n\t\t// Stopping alarm and GPS services at reset.\n\t\t// MyAlarmService.cancelMyAlarmService(this.getApplicationContext());\n\t\tif (Sw_LoginScreenActivity.this.stopService(new Intent(Sw_LoginScreenActivity.this, MyAlarmService.class))) {\n\t\t\tMyAlarmService.running = false;\n\t\t\tLog.w(\"Snowboard\", \"MyAlarmService stopped due to application reset.\");\n\t\t} else {\n\t\t\tLog.e(\"Snowboard\", \"Failed to stop MyAlarmService in application reset.\");\n\t\t}\n\n\t\tif (Sw_LoginScreenActivity.this.stopService(new Intent(Sw_LoginScreenActivity.this, GPSService.class))) {\n\t\t\tLog.w(\"Snowboard\", \"GPSService stopped due to application reset.\");\n\t\t} else {\n\t\t\tLog.e(\"Snowboard\", \"Failed to stop GPSService in application reset.\");\n\t\t}\n\n\t\ttry {\n\t\t\tDataBaseHelper myDbHelper = new DataBaseHelper(Sw_LoginScreenActivity.this);\n\t\t\ttry {\n\t\t\t\t// Deleting Previous Database.\n\t\t\t\tmyDbHelper.dbDelete();\n\t\t\t} catch (Exception ioe) {\n\t\t\t\tLog.e(TAG, \"Unable to delete database\");\n\t\t\t}\n\t\t\tLog.i(TAG, \"DB Deleted\");\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// clear preferences\n\t\teditor.clear();\n\t\teditor.commit();\n\n\t\teditor.putBoolean(Config.IS_RESET_KEY, true);\n\t\teditor.putString(Config.SERVER_URL_KEY, NetworkUtilities.BASE_URL);\n\t\teditor.commit();\n\n\t\t// Recalling this activity\n\t\tstartActivity(new Intent(Sw_LoginScreenActivity.this, Sw_LoginScreenActivity.class));\n\t\tfinish();\n\t}", "void reset ();", "public void reset(){\n paycheckController.reset();\n }", "private void sendReset() {\n\t\tif (hardReset) {\n\t\t\tfsmTeacher.handleAction(\"reset%hard_reset\");\n\t\t\t// System.out.println(\"hard reset\");\n\t\t} else if (semiSoftReset) {\n\t\t\tSystem.out.println(\"semi soft reset\");\n\t\t\tfsmTeacher.handleAction(\"reset%semi_soft_reset\");\n\t\t} else if (softReset) {\n\t\t\tfsmTeacher.handleAction(\"reset%soft_reset\");\n\t\t\tSystem.out.println(\"soft reset\");\n\t\t}\n\t}", "public abstract void onReset();", "private void reset() {\n }", "public void reset() {\n/* 138 */ if (TimeUtil.getWeek() == 1) {\n/* 139 */ LogUtil.errorLog(new Object[] { \"MentalRankService::reset begin\", Long.valueOf(TimeUtil.currentTimeMillis()) });\n/* 140 */ sendRankReward();\n/* */ } \n/* */ }", "public void conflictReset(){\n\t\tcache = new QueryCache();\n//\t\tfsmTeacher = new FsmTeacher();\n\t\tfsmTeacher.start();\n\t\tproperties = Property.getInstance();\n\t\thardResetList = properties.getList(\"hardResetWords\");\n\t\tsemiSoftResetList = properties.getList(\"semiSoftResetWords\");\n\t\tsoftResetList = properties.getList(\"softResetWords\");\n\t\tlastKeepAlive = new java.util.Date().getTime();\n\n\t\t// normally, one would add an own implementation of SULReset here:\n\t\tsulReset = null;\n\n\n\t\tcountt = 0;\n\t\tnoncachecount =0;\n\t\tcachecount =0;\n\t}", "public void resetCommand() {\n beginMatchButton.setEnabled(false);\n switcherButton.setEnabled(true);\n stopMatchButton.setEnabled(false);\n\n autonomousTime.setEditable(true);\n teleoperatedTime.setEditable(true);\n\n resetProBar();\n\n renewGameThread(autonomousTime.getText(), teleoperatedTime.getText());\n\n SetAllBypassBoxesEnabled(true);\n\n SetAllBypassBoxesSelected(false);\n\n dsComStatusBlueTeam1.setBackground(NOT_READY);\n dsComStatusBlueTeam2.setBackground(NOT_READY);\n dsComStatusBlueTeam3.setBackground(NOT_READY);\n dsComStatusRedTeam1.setBackground(NOT_READY);\n dsComStatusRedTeam2.setBackground(NOT_READY);\n dsComStatusRedTeam3.setBackground(NOT_READY);\n\n robotComStatusBlueTeam1.setBackground(NOT_READY);\n robotComStatusBlueTeam2.setBackground(NOT_READY);\n robotComStatusBlueTeam3.setBackground(NOT_READY);\n robotComStatusRedTeam1.setBackground(NOT_READY);\n robotComStatusRedTeam2.setBackground(NOT_READY);\n robotComStatusRedTeam3.setBackground(NOT_READY);\n\n runningMatchTime.setText(UI_Layer.fixAutoTime(autonomousTime.getText()));\n\n PLC_Receiver.resetFieldESTOPPED();\n PLC_Sender.getInstance().updatePLC_Lights(true);\n\n SetAllTeamFieldsEditable(true);\n\n if (!Main.isSimpleMode()) {\n PLC_Sender.getInstance().updatePLC_Time(true);\n }\n System.out.println(\"Resetting Fields\");\n }", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void onReset()\n {\n }", "public void reset() {\n serverReset(game.generateUIDs(data.getObjectCount()));\n }", "@FXML\n\tprivate void onResetBtn() {\n\t\truleBox.setValue(\"Standard\");\n\t\twallBox.setValue(10);\n\t\tboardBox.setValue(\"9x9\");\n\t\ttileBox.setValue(50);\n\t\tindicateLabel.setSelected(true);\n\t\t//ghostTrail.setSelected(false);\n\t\tSettings.getSingleton().reset();\n\t}", "@Override\n\tvoid reset() {\n\t\t\n\t}", "protected void doReset() throws FndException\n {\n }", "public synchronized void reset() {\n }", "public void reset () {}", "protected abstract void reset();", "public static void MSM5205_sh_reset() {\n int i;\n\n /* bail if we're not emulating sound_old */\n if (Machine.sample_rate == 0) {\n return;\n }\n\n for (i = 0; i < msm5205_intf.num; i++) {\n MSM5205Voice voice = msm5205[i];\n /* initialize work */\n voice.data = 0;\n voice.vclk = 0;\n voice.reset = 0;\n voice.signal = 0;\n voice.step = 0;\n /* timer and bitwidth set */\n MSM5205_playmode_w.handler(i, msm5205_intf.select[i]);\n }\n }", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public void reset() {\n\n }", "public static void sleepReset()\r\n\t{\r\n\t\t//FileRegister.setDataInBank(2, Speicher.getPC() + 1);\r\n\t\t//Speicher.setPC(Speicher.getPC()+1);\r\n\t\tFileRegister.setDataInBank(1, 8, FileRegister.getBankValue(1, 8) & 0b00001111); // EECON1\r\n\t}", "@Override\n\tpublic void askReset() {\n\t}", "void resetStatus();", "abstract void reset();", "public void reset() {\n monitor.sendReset();\n }", "private void btnResetActionPerformed(java.awt.event.ActionEvent evt) {\n reset(); \n }", "public void reset(){\n }", "private void reset() {\n ms = s = m = h = 0;\n actualizar();\n }", "private void resetAfterGame() {\n }", "public void reset()\n\t{\n\t}", "public void reset()\n\t{\n\t}", "public void reset() {\n\n\t}", "private void exeRefresh()\n\t{\n\t this.setCursor(cl_dat.M_curWTSTS_pbst);\n\t\tgetDSPMSG(\"Before\");\n\t\tcl_dat.M_flgLCUPD_pbst = true;\n\t\tsetMSG(\"Decreasing Stock Master\",'N');\n\t\tdecSTMST();\n\t\tsetMSG(\"Updating Stock Master\",'N');\n\t\texeSTMST();\n\t\tupdCDTRN(\"D\"+cl_dat.M_strCMPCD_pbst,\"FGXXRCT\");\t\n\t\tupdCDTRN(\"D\"+cl_dat.M_strCMPCD_pbst,\"FGXXISS\");\n\t\t/*if(chkREFRCT.isSelected())\n\t\t{\n\t\t\tsetMSG(\"Refreshing Receipt Masters.\",'N');\n\t\t\t\n\t\t}\n\t\tif(chkREFISS.isSelected())\n\t\t{\n\t\t\tsetMSG(\"Refreshing Issue Masters.\",'N');\n\t\t\t\n\t\t}*/\n\t\tgetDSPMSG(\"After\");\n\t\tif(cl_dat.M_flgLCUPD_pbst)\n\t\t\tsetMSG(\"Data refreshed successfully\",'N');\n\t\telse\n\t\t\tsetMSG(\"Data not refreshed successfully\",'E');\n\t\tthis.setCursor(cl_dat.M_curDFSTS_pbst);\n\t\n\t}", "public void reset() {\n\t\tplayerModelDiff1.clear();\n\t\tplayerModelDiff4.clear();\n\t\tplayerModelDiff7.clear();\n\t\tif(normalDiffMethods)\n\t\t{\t\n\t\tupdatePlayerModel();\n\t\tdisplayReceivedRewards();\n\t\t}\n\t\tint temp_diffsegment1;\n\t\tint temp_diffsegment2;\n\t\tif (currentLevelSegment == 0) {\n\t\t\t//System.out.println(\"-you died in the first segment, resetting to how you just started\");\n\t\t\ttemp_diffsegment1 = (int) plannedDifficultyLevels.get(0);\n\t\t\ttemp_diffsegment2 = (int) plannedDifficultyLevels.get(1);\n\t\t}\n\t\telse {\n\t\t\t//System.out.println(\"-nextSegmentAlreadyGenerated:\" + nextSegmentAlreadyGenerated);\n\t\t\tif (nextSegmentAlreadyGenerated) {\n\t\t\t\t//because the next segment is already generated (and so the previous does not exist anymore),\n\t\t\t\ttemp_diffsegment1 = (int) plannedDifficultyLevels.get(currentLevelSegment);\n\t\t\t\ttemp_diffsegment2 = (int) plannedDifficultyLevels.get(currentLevelSegment+1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//because the next segment is not yet generated\n\t\t\t\ttemp_diffsegment1 = (int) plannedDifficultyLevels.get(currentLevelSegment-1);\n\t\t\t\ttemp_diffsegment2 = (int) plannedDifficultyLevels.get(currentLevelSegment);\n\t\t\t}\n\t\t}\n\t\tplannedDifficultyLevels.clear();\n\n\t\t//System.out.println(\"-resetting to: \" + temp_diffsegment1 + \", \" + temp_diffsegment2);\n\t\tplannedDifficultyLevels.add(temp_diffsegment1);\n\t\tplannedDifficultyLevels.add(temp_diffsegment2);\n\t\tcurrentLevelSegment = 0;\n\n\t\tpaused = false;\n\t\tSprite.spriteContext = this;\n\t\tsprites.clear();\n\n\t\ttry {\n\t\t\tlevel2 = level2_reset.clone();\n\t\t} catch (CloneNotSupportedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tlevel3 = level3_reset.clone();\n\t\t} catch (CloneNotSupportedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n fixborders();\n\t\tconjoin();\n\n\t\tlayer = new LevelRenderer(level, graphicsConfiguration, 320, 240);\n\t\tfor (int i = 0; i < 2; i++)\n\t\t{\n\t\t\tint scrollSpeed = 4 >> i;\n\t\tint w = ((level.getWidth() * 16) - 320) / scrollSpeed + 320;\n\t\tint h = ((level.getHeight() * 16) - 240) / scrollSpeed + 240;\n\t\tLevel bgLevel = BgLevelGenerator.createLevel(w / 32 + 1, h / 32 + 1, i == 0, levelType);\n\t\tbgLayer[i] = new BgRenderer(bgLevel, graphicsConfiguration, 320, 240, scrollSpeed);\n\t\t}\n\n\t\tdouble oldX = 0;\n\t\tif(mario!=null)\n\t\t\toldX = mario.x;\n\n\t\tmario = new Mario(this);\n\t\tsprites.add(mario);\n\t\tstartTime = 1;\n\n\t\ttimeLeft = 200*15;\n\n\t\ttick = 0;\n\n\t\t/*\n\t\t * SETS UP ALL OF THE CHECKPOINTS TO CHECK FOR SWITCHING\n\t\t */\n\t\t switchPoints = new ArrayList<Double>();\n\n\t\t//first pick a random starting waypoint from among ten positions\n\t\tint squareSize = 16; //size of one square in pixels\n\t\tint sections = 10;\n\n\t\tdouble startX = 32; //mario start position\n\t\tdouble endX = level.getxExit()*squareSize; //position of the end on the level\n\t\t//if(!isCustom && recorder==null)\n level2.playValues = this.valueList[0];\n\t\t\trecorder = new DataRecorder(this,level3,keys);\n\t\t\t////System.out.println(\"\\n enemies LEFT : \" + recorder.level.COINS); //Sander disable\n\t\t\t////System.out.println(\"\\n enemies LEFT : \" + recorder.level.BLOCKS_COINS);\n\t\t\t////System.out.println(\"\\n enemies LEFT : \" + recorder.level.BLOCKS_POWER);\n\t\t\tgameStarted = false;\n\t}", "protected abstract boolean reset();", "@Override\n\tpublic void reset() {\n\t\t\n\t}", "@Override\n\tpublic void reset() {\n\t\t\n\t}", "protected void reset() {\n\t\t}", "public void reset() {\n\t}", "public void reset() {\n\t}", "public void reset() {\n\t}", "public void reset() {\n\t}", "void reset(int id);", "public void reset() {\n\r\n\t}", "@Override\n public void reset() {\n updateDice(1, 1);\n playerCurrentScore = 0;\n playerScore = 0;\n updateScore();\n notifyPlayer(\"\");\n game.init();\n }", "public void reset()\n {\n handler = new StackDynamic<T>(restart);\n }", "public void reset() {\nsuper.reset();\nsetIncrease_( \"no\" );\nsetSwap_( \"tbr\" );\nsetMultrees_( \"no\" );\nsetRatchetreps_(\"200\");\nsetRatchetprop_(\"0.2\");\nsetRatchetseed_(\"0\");\n}", "void reset() {\r\n\t\tresult = 0;\r\n\t}", "private void triggerReset() {\n DefenceField.fieldActivated = false;\n OnFieldReset event = new OnFieldReset(this::doActivation);\n event.beginTask();\n DefenceField.getShrineEntity().send(event);\n event.finishTask();\n }", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "public void reset() {\n }", "public void reset() {\n }", "public void reset() {\n }", "public void reset() {\n }", "public static\n void reset() {\n try {\n Ansi.out.write(AnsiOutputStream.RESET_CODE);\n Ansi.err.write(AnsiOutputStream.RESET_CODE);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void reset(MiniGame game) {\n }", "public void testReset() {\n\t}", "public boolean reset()\n {\n\n \t// Resetting the videocard will also reset all submodules\n videocard.reset();\n\n // Set all tiles to not need updating\n for (int y = 0; y < (initialScreenHeight / VideoCard.Y_TILESIZE); y++)\n for (int x = 0; x < (initialScreenWidth / VideoCard.X_TILESIZE); x++)\n videocard.setTileUpdate(x, y, false);\n\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" Module has been reset\");\n\n return true;\n }" ]
[ "0.69597137", "0.68797", "0.6648191", "0.6630993", "0.65376145", "0.65367186", "0.65341103", "0.6497285", "0.64542544", "0.6454157", "0.6441197", "0.64400566", "0.64298713", "0.63895607", "0.63670444", "0.6362808", "0.6355042", "0.63004094", "0.62810415", "0.6280064", "0.6280064", "0.6280064", "0.6280064", "0.6280064", "0.6280064", "0.6280064", "0.6280064", "0.6280064", "0.6280064", "0.6280064", "0.6280064", "0.6280064", "0.6280064", "0.6280064", "0.6280064", "0.6280064", "0.6280064", "0.6280064", "0.6280064", "0.6272946", "0.62660384", "0.62511474", "0.6242888", "0.62388784", "0.62388474", "0.6226852", "0.6221148", "0.621573", "0.62125", "0.62125", "0.62125", "0.62125", "0.62125", "0.62125", "0.62125", "0.62125", "0.62125", "0.62125", "0.62125", "0.6206126", "0.62049913", "0.6191651", "0.61809254", "0.61794263", "0.617538", "0.6174995", "0.61744034", "0.616784", "0.6144174", "0.6138246", "0.6138246", "0.6137598", "0.6134867", "0.61154777", "0.6105853", "0.61038524", "0.61038524", "0.6101675", "0.6090347", "0.6090347", "0.6090347", "0.6090347", "0.60890913", "0.608607", "0.6079455", "0.6073497", "0.6070666", "0.6056655", "0.6053647", "0.6039746", "0.6039746", "0.6039746", "0.6039746", "0.602703", "0.602703", "0.602703", "0.602703", "0.6024951", "0.6014139", "0.60082525", "0.60045445" ]
0.0
-1
/ My second solution. Second pass, only one small error! No duplicate list at all. We shall notice that candidate elements are from 1 ~ n and without any duplicate!
public ArrayList<ArrayList<Integer>> combine(int n, int k) { ArrayList<ArrayList<Integer>> result = new ArrayList<ArrayList<Integer>>(); // Key: constraints of recursion if (n < 1 || n < k || k < 1) return result; if (k == 1) { for (int i = 1; i <= n; i++) { ArrayList<Integer> aList = new ArrayList<Integer>(); aList.add(i); result.add(aList); } return result; } for (int i = n; i > 0; i--) { ArrayList<ArrayList<Integer>> temp = combine(i - 1, k - 1); for (ArrayList<Integer> aList : temp) { aList.add(i); } result.addAll(temp); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<Integer> findDuplicates(List<Integer> numbers) {\n Integer[] cloneArray = new Integer[numbers.size()];\n Integer[] repeatNums = new Integer[numbers.size()-1];\n\n\n for (int i = 0; i < numbers.size(); i++){\n cloneArray[i] = numbers.get(i);\n }\n\n //I checked the big notation of this method is O(log(n) )\n // source https://docs.oracle.com/javase/7/docs/api/java/util/Arrays.html#sort(int[])\n Arrays.sort(cloneArray);\n\n for (int i = 0; i < cloneArray.length -1 ; i++) {\n if (cloneArray[i] == cloneArray[i+1]){\n repeatNums[i] = Integer.valueOf(cloneArray[i]);\n }\n }\n\n\n for (int i = 1; i < repeatNums.length; i++){\n if (repeatNums[i-1] == null){\n repeatNums[i-1] = repeatNums[i];\n repeatNums[i] = null;\n }\n }\n\n //Removing any nulls.\n Integer[] outArray = Arrays.stream(repeatNums).filter(Objects::nonNull).toArray(Integer[]::new);\n\n List<Integer> duplicateList = Arrays.asList(outArray);\n\n return duplicateList;\n }", "private void helper(List<Integer> tempList,ArrayList<Integer> list) {\n //stopping condition\n if(list.size()==0) {\n ans.add(new ArrayList<>(tempList)); // add a copy of tempList\n }\n else {\n for(int i=0;i<list.size();i++) {\n if(i==0 || list.get(i-1) != list.get(i)) // avoid duplication\n {\n ArrayList<Integer> newlist = new ArrayList<>(list);\n tempList.add(list.get(i));\n newlist.remove(i);\n helper(tempList,newlist);\n tempList.remove(tempList.size()-1);\n }\n\n }\n }\n }", "private static void findMissingAndDuplicateNumberFrom1toN(int[] input) {\n\t\tint len = input.length;\n\t\tint i = 0;\n\n\t\twhile (i < len) {\n\t\t\t//if its already in correct place\n\t\t\tif (input[i] == i + 1) {\n\t\t\t\ti++;\n\t\t\t\tcontinue;\n\t\t\t} else if (input[i] == input[input[i] - 1]) { //if the elment to be swapped with are same\n\t\t\t\ti++;\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tint temp = input[i];\n\t\t\t\tinput[i] = input[input[i] - 1];\n\t\t\t\tinput[temp - 1] = temp;\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 0; i < len; i++) {\n\t\t\tif (input[i] != i + 1) {\n\t\t\t\tSystem.out.println(\"Missing number : \" + (i + 1));\n\t\t\t\tSystem.out.println(\"Duplicate number : \" + input[i]);\n\t\t\t}\n\t\t}\n\n\t}", "public List<List<Integer>> permute(int[] nums) {\n if (nums.length < 2) {\n LinkedList<List<Integer>> res = new LinkedList<>();\n List<Integer> list = Arrays.stream(nums).boxed().collect(Collectors.toList());\n res.add(list);\n return res;\n }\n\n ArrayList<List<Integer>> result = new ArrayList<>();\n ArrayList<Set<Integer>> setList = new ArrayList<>();\n\n //The base set that all the other sets will be \"cloned\" from\n Set<Integer> numSetBase = Arrays.stream(nums).boxed().collect(Collectors.toSet());\n\n //Initialize the custom map-thingy\n for (int i = 0; i < nums.length; i++) {\n List<Integer> temp = new LinkedList<>();\n temp.add(nums[i]);\n result.add(temp); //Key - the list\n\n Set<Integer> newSet = new HashSet<>(numSetBase);\n newSet.remove(nums[i]);\n\n setList.add(newSet); //Add to the set of stuff left\n }\n\n //Iterate\n for (int i = 1; i < nums.length; i++) {\n //Iterate over the whole list\n int initialSize = result.size();\n for (int j = 0; j < initialSize; j++) {\n boolean isFirstElem = true;\n int firstElem = 0;\n //For each unused int in the set entry\n for (int unused: setList.get(j)) {\n if (isFirstElem) {\n firstElem = unused;\n isFirstElem = false;\n } else {\n //Add new entries for the unused nums\n Set<Integer> newSet = new HashSet<>(setList.get(j));\n List<Integer> newList = new LinkedList<>(result.get(j));\n newList.add(unused);\n newSet.remove(unused);\n //Add the new entry\n result.add(newList);\n setList.add(newSet);\n }\n }\n //Modify the first element\n if (!setList.get(j).isEmpty()) {\n result.get(j).add(firstElem);\n setList.get(j).remove(firstElem);\n }\n }\n }\n return result;\n }", "public static long journeyToMoon(int n, List<List<Integer>> astronaut) {\n // Write your code here\n Map<Integer, Node<Integer>> countryMap = new HashMap<>();\n for(List<Integer> pairs: astronaut) {\n Node<Integer> node1 = countryMap.computeIfAbsent(pairs.get(0), Node::new);\n Node<Integer> node2 = countryMap.computeIfAbsent(pairs.get(1), Node::new);\n node1.connected.add(node2);\n node2.connected.add(node1);\n }\n\n List<Integer> countryCluster = new ArrayList<>();\n for(Node<Integer> node: countryMap.values()) {\n if(node.connected.size() == 0) {\n countryCluster.add(1);\n } else if(!node.visited){\n countryCluster.add(getNodeCount3(node));\n }\n }\n List<Integer> countryNodes = countryMap.values().stream().map(nn -> nn.value).collect(Collectors.toList());\n List<Integer> missingNodes = new ArrayList<>();\n for(int i=0; i < n; i++) {\n if(!countryNodes.contains(i))\n missingNodes.add(i);\n }\n\n for(int i=0; i < missingNodes.size(); i++) {\n countryCluster.add(1);\n }\n\n long ans = 0;\n //For one country we cannot pair with any other astronauts\n if(countryCluster.size() >= 2) {\n ans = (long) countryCluster.get(0) * countryCluster.get(1);\n if(countryCluster.size() > 2) {\n int sum = countryCluster.get(0) + countryCluster.get(1);\n for(int i=2; i < countryCluster.size(); i++) {\n ans += (long) sum * countryCluster.get(i);\n sum += countryCluster.get(i);\n }\n }\n }\n\n /*\n permutation of two set with size A and B = AxB\n permutation of three set with size A,B,C = AxB + AxC + BxC = AxB + (A+B)xC\n permutation of four set with size A,B,C,D = AxB + AxC + AxD + BxC + BxD + CxD = AxB + (A+B)xC + (A+B+C)xD\n */\n /*\n if(keys.length == 1) {\n ans = keys[0].size();\n } else {\n ans = keys[0].size() * keys[1].size();\n if(keys.length > 2) {\n int sum = keys[0].size() + keys[1].size();\n for (int i = 2; i < keys.length; i++) {\n ans += sum * keys[i].size();\n sum += keys[i].size();\n }\n }\n }\n */\n return ans;\n }", "public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Enter the size of the array\");\n int n = sc.nextInt();\n int arr[] = new int[n];\n System.out.println(\"enter the elements in the array\");\n for (int i = 0; i < arr.length; i++) {\n arr[i] = sc.nextInt();\n }\n HashSet<Integer> set = new HashSet<Integer>();\n for (int k = 0; k < n; k++) {\n set.add(arr[k]);\n }\n LinkedList list = new LinkedList(set);\n for (int l = 0; l < list.size(); l++) {\n int val = ((Integer) list.get(l)).intValue();\n if (duplicate(arr, val) > 1)\n System.out.println(\"Occurence of \" + val + \" is \" + duplicate(arr, val));\n }\n }", "@Override\r\n\tpublic ArrayList<Integer> generateSuccessors(int lastMove, int[] takenList) //this method should be fine\r\n\t{\r\n\t\tArrayList <Integer> myList = new ArrayList <Integer>();\r\n\t\tif (lastMove == -1) //must choose an odd-numbered stone that is less than n/2\r\n\t\t{\r\n\t\t\tfor (int i = ((takenList.length - 2)/2); i > 0; i--)\r\n\t\t\t{\r\n\t\t\t\tif (i % 2 != 0 && takenList[i] == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tmyList.add(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor (int i = takenList.length - 1; i > 0; i--)\r\n\t\t\t{ \r\n\t\t\t\tif (takenList[i] == 0 && (i % lastMove == 0 || lastMove % i == 0))\r\n\t\t\t\t{\r\n\t\t\t\t\tmyList.add(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn myList;\r\n\r\n\t}", "public int findFirstUniqueNumber (List<Integer> numberList) {\n\n ////// Solution 1:\n LinkedHashMap<Integer, Integer> occurMap = new LinkedHashMap<>();\n\n for (int number: numberList) { // O(n)\n if (occurMap.containsKey(number) && occurMap.get(number) != 0) {\n occurMap.replace(number, occurMap.get(number), 0);\n }\n occurMap.putIfAbsent(number, 1);\n }\n\n for (Map.Entry<Integer, Integer> entry: occurMap.entrySet()) {\n if (entry.getValue() == 1) {\n return entry.getKey();\n }\n }\n\n ////// Solution 2: O(n * n)\n// for (int n: numberList) {\n// if (numberList.indexOf(n) == numberList.lastIndexOf(n)) { // O(n * n)\n// return n;\n// }\n// }\n\n return -1;\n }", "private int[] constructCandidates1(int n) {\n int cands[] = new int[subsetCount];\n for (int i = 0; i < subsetCount; i++) {\n cands[i] = i;\n }\n for (int i = 0; i < n; i++) { // Remove currently used sets in partialSol.\n cands[partialSol[i]] = DNU;\n }\n for (int i = 0; i < n; i++) {\n if (getDiff(cands, i, n) == 0) {\n cands[i] = DNU;\n }\n }\n int dnuCount = 0;\n for (int i = 0; i < cands.length; i++) {\n if (cands[i] == DNU) {\n dnuCount++;\n }\n }\n int[] ret = new int[cands.length - dnuCount];\n int retIndex = 0;\n for (int i = 0; i < cands.length; i++) {\n if (cands[i] != DNU) {\n ret[retIndex] = i;\n retIndex++;\n }\n }\n return sortCandidates(ret, n);\n// return ret;\n }", "public static ArrayList<ArrayList<Integer>> fourSum(ArrayList<Integer> a, int k) {\n Collections.sort(a);\n System.out.println(a);\n LinkedHashMap<Integer, List<List<Integer>>> m = new LinkedHashMap<Integer, List<List<Integer>>>();\n for (int i = 0; i <= a.size() - 3; i++) {\n for (int j = i + 1; j <= a.size() - 2; j++) {\n if (m.get(a.get(i) + a.get(j)) == null) {\n ArrayList<List<Integer>> v = new ArrayList<List<Integer>>();\n List<Integer> c = new ArrayList<Integer>();\n c.add(i);\n c.add(j);\n v.add(c);\n m.put(a.get(i) + a.get(j), v);\n } else {\n List<List<Integer>> v = m.get(a.get(i) + a.get(j));\n List<Integer> c = new ArrayList<Integer>();\n c.add(i);\n c.add(j);\n v.add(c);\n m.put(a.get(i) + a.get(j), v);\n }\n\n }\n }\n LinkedHashSet<ArrayList<Integer>> res = new LinkedHashSet<ArrayList<Integer>>();\n for (int i = 2; i <= a.size() - 1; i++) {\n for (int j = i + 1; j < a.size(); j++) {\n List<List<Integer>> v = m.get(k - (a.get(i) + a.get(j)));\n if (v != null && v.size() >= 1) {\n for (List<Integer> l : v) {\n\n if (l.get(0) < l.get(1) && l.get(1) < i && l.get(1) < j) {\n //System.out.println(l.get(0) + \" \" + l.get(1) + \" \" + i + \" \" + j);\n ArrayList<Integer> out = new ArrayList<Integer>();\n out.add(a.get(l.get(0)));\n out.add(a.get(l.get(1)));\n out.add(a.get(i));\n out.add(a.get(j));\n Collections.sort(out);\n //System.out.println(out);\n res.add(out);\n }\n }\n }\n }\n }\n return new ArrayList<ArrayList<Integer>>(res);\n }", "private void helper(int n, List<Integer> cur, List<List<Integer>> result) {\n\t\tif (cur.size() == n) {\n\t\t\tresult.add(new ArrayList<Integer>(cur));\n\t\t\treturn;\n\t\t}\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\t// check if putting a queen at column i at current row is valid.\n\t\t\tif (valid(cur, i)) {\n\t\t\t\tcur.add(i);\n\t\t\t\thelper(n, cur, result);\n\t\t\t\tcur.remove(cur.size() - 1);\n\t\t\t}\n\t\t} // end for\n\t}", "public void testFindDuplicates() {\r\n System.out.println(\"findDuplicates\");\r\n \r\n List<String> elements = new ArrayList<>();\r\n elements.add(\"foo\");\r\n elements.add(\"bar\");\r\n elements.add(\"abc\");\r\n elements.add(\"foo\");\r\n elements.add(\"cde\");\r\n elements.add(\"cde\");\r\n elements.add(\"efg\");\r\n elements.add(\"cde\");\r\n \r\n Set<String> expResult = new LinkedHashSet<>();\r\n expResult.add(\"foo\");\r\n \r\n LexicalChecker instance = new LexicalChecker();\r\n Set<String> result = instance.findDuplicates(elements);\r\n \r\n assertNotSame(expResult, result);\r\n \r\n expResult.add(\"cde\");\r\n assertEquals(expResult, result);\r\n }", "static void findDuplicate()\n\t{\n\n\t\tList<String> oList = null;\n\t\tSet<String> oSet = null;\n\t\ttry {\n\t\t\toList = new ArrayList<String>();\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\toList.add(\"Frog\");\n\t\t\toList.add(\"Dog\");\n\t\t\toList.add(\"Eagle\");\n\t\t\toList.add(\"Frog\");\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\tSystem.out.println(oList);\n\t\t\t\n\t\t\toSet = new TreeSet<>();\n\t\t\t\n\t\t\tString s = \"\";\n\t\t\tfor(int i=0;i<oList.size();i++)\n\t\t\t{\n\t\t\t\tif((oSet.add(oList.get(i))==false) && (!s.contains(oList.get(i))))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Duplicate: \"+oList.get(i));\n\t\t\t\t\ts+=oList.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\toList = null;\n\t\t\toSet = null;\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tList<Integer> nums = new ArrayList<>();\r\n\t\t\r\n\t\tnums.add(10);nums.add(10);nums.add(10);nums.add(8);\r\n\t\tnums.add(11);nums.add(10);nums.add(10);nums.add(10);\r\n\r\n\t\tSystem.out.println(nums);\r\n\t\t\r\n\t\tList<Integer> unique1 = new ArrayList<>(); \r\n\t\t\r\n\t\t\r\n\t\t // find unique NON DUPLICATE VALUES\r\n\t\tfor(Integer num: nums) {\r\n\t\t\tif(!unique1.contains(num)) { // if unique1 doesn't contains num add it\r\n\t\t\t\tunique1.add(num); //<<<<<======= adding to unique1 num one by one\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(unique1.toString());\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t \r\n\t\t\r\n\t\tList<Integer> unique2 = new ArrayList<>();\r\n\t\t\r\n\t\tfor(int i =0; i<nums.size(); i++) { // find unique ( appearence once)\r\n\t\t\tint count=0;\r\n\t\t\t\r\n\t\t\tInteger value = nums.get(i);\r\n\t\t\tfor(int k =0; k<nums.size(); k++) {\r\n\t\t\t\tif(nums.get(k)== value && i != k) {\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(count == 0) {\r\n\t\t\t\tunique2.add(value);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(unique2);\r\n\t\t\r\n\t}", "public static <T> Set<T> duplicatedElementsOf(List<T> input) {\n int count = input.size();\n if (count < 2) {\n return ImmutableSet.of();\n }\n Set<T> duplicates = null;\n Set<T> elementSet = CompactHashSet.createWithExpectedSize(count);\n for (T el : input) {\n if (!elementSet.add(el)) {\n if (duplicates == null) {\n duplicates = new HashSet<>();\n }\n duplicates.add(el);\n }\n }\n return duplicates == null ? ImmutableSet.of() : duplicates;\n }", "public List removeDuplicate() throws ComputationException {\n log.debug(\"Removing duplicate using List......\");\n List<Integer> uniqueList = new ArrayList();\n int[] intArray = getRandomArray();\n log.debug(\"Actual size of int array:\" + intArray.length);\n log.debug(Arrays.toString(intArray));\n for (int i = 0; i < intArray.length; i++) {\n if (!isAdded(uniqueList, intArray[i])) {\n uniqueList.add(intArray[i]);\n }\n\n }\n log.debug(\"refined size of int array: \" + uniqueList.size());\n log.debug(uniqueList.toString());\n return uniqueList;\n\n }", "public static void main(String[] args) {\n\n\nList<List<Integer>> list=new ArrayList<List<Integer>>();\nList<Integer> l1=new ArrayList<Integer>();\nList<Integer> l2=new ArrayList<Integer>();\nList<Integer> l3=new ArrayList<Integer>();\nList<Integer> l4=new ArrayList<Integer>();\nl1.add(1);\nl1.add(2);\nl1.add(3);\nl2.add(4);\nl2.add(5);\nl2.add(5);\nl2.add(6);\nl3.add(7);\nl3.add(8);\nl4.add(9);\nlist.add(l1);\nlist.add(l2);\nlist.add(l3);\nlist.add(l4);\nSolution solution=new Solution();\nsolution.nP(list);\n\n}", "public ArrayList<Integer> repeatedNumber(final List<Integer> A) {\n ArrayList<Integer> res = new ArrayList<>();\n long n = A.size();\n int a = 0, b = 0;\n long sum = 0;\n long sum_of_n = n*(n+1)/2;\n HashSet<Integer> set = new HashSet<Integer>();\n for (int i = 0; i < n; i++){\n if(set.contains(A.get(i))){\n a = A.get(i);\n }\n else{\n set.add(A.get(i));\n }\n sum += A.get(i);\n }\n b = (int)(sum_of_n - sum) + a;\n res.add(a);\n res.add(b);\n return res;\n }", "public void DFS(List<List<Integer>> result, List<Integer> temp, int n, int start){\n for(int i = start; i * i <= n; i++){\n //we skip undividable factor\n if(n%i != 0) continue;\n \n //found a pair of factor, we can add them to temp list to build a valid factor combination\n List<Integer> copy = new ArrayList<Integer>(temp);\n //since i <= n/i, we will add i first, then n/i\n copy.add(i);\n copy.add(n/i);\n result.add(copy);\n \n //then we try to decompose larger n/i factor, and our later factors shall not be > i, since i has been inserted into list \n temp.add(i);\n DFS(result, temp, n/i, i);\n temp.remove(temp.size() - 1);\n }\n }", "public static void removeDuplicate(ArrayList<Integer>list) {\n \n //create a temporary arraylist\n ArrayList<Integer> tempList = new ArrayList<>();\n \n //loop thru the list and check if list contains the same integer/number/value as tempList\n for (int i = 0; i < list.size(); i++) {\n if (!tempList.contains(list.get(i))) {\n tempList.add(list.get(i));\n }\n }\n \n //clear the list\n list.clear();\n \n //add all integers/numbers/value from tempList into list\n list.addAll(tempList);\n \n }", "public ArrayList<Person> quicksortDeduplication(){\n\t//copy data from list to array arr\n\tPerson[] arr = new Person[this.lst.size()];\n\tfor(int i=0; i< lst.size();i++){\n\t arr[i] = this.lst.get(i);\n\t}\n\t//sort array => see QuickSort class\n\tQuickSort.sort(arr,0,arr.length-1);\n\t//create list to store singular data\n\tArrayList<Person> unduplicated2 = new ArrayList<>();\n\t//compare successive elements of array to find duplicates\n\tint limit =0;\n\tif (arr.length ==0 || arr.length==1) limit =arr.length;\n\tint j=0;\n\t//store only singular data in the beginning of the array\n\tfor (int i = 0; i < arr.length-1; i++) \n if (arr[i].compareTo( arr[i+1]) != 0) \n arr[j++] = arr[i]; \n\t// add last element to array\n arr[j++] = arr[arr.length-1];\n\t//record last index of singular element\n\tlimit =j;\n\t//copy elements up to the singularity index to the list\n\tfor(int k=0; k< limit; k++){\n\t unduplicated2.add(arr[k]);\n\t}\n\treturn unduplicated2;\n }", "public void removeDuplitcate(List<Integer> a)\n\t{\n\t\tif(a==null ||a.size()==0 ) return ;\n\t\t\n\t\tHashMap<Integer, Integer> hm = new HashMap<Integer, Integer>();\n\t\t\n\t\tfor(int i=a.size()-1;i>=0;i--)\n\t\t{\n\t\t\tif(hm.containsKey(a.get(i)))\n\t\t\t{\n\t\t\t\ta.remove(i);\n\t\t\t}\n\t\t\telse hm.put(a.get(i), 1);\n\t\t}\n\t}", "public ArrayList<Integer> repeatedNumber(final List<Integer> a) {\n long sum = 0, ssum = 0;\n for(int i = 0 ; i < a.size(); i++){\n long curi = i+1; // importnt to prevent overflow.\n long curn = a.get(i); // importnt to prevent overflow.\n sum += curn - curi;\n ssum +=curn*curn - curi*curi ;\n }\n ssum /= sum; // A + B \n long first = (sum + ssum)/2;\n long second = (ssum - first); \n ArrayList<Integer> result = new ArrayList<>();\n result.add((int)first);\n result.add((int)second);\n return result;\n }", "public static void helper(int[] nums,\n ArrayList<Integer> subset,\n ArrayList<ArrayList<Integer>> result,\n int index){\n result.add(new ArrayList<>(subset));\n int prev = Integer.MIN_VALUE;\n for (int i = index; i < nums.length; i++) {\n if (nums[i] == prev) {\n continue;\n }\n prev = nums[i];\n subset.add(nums[i]);\n helper(nums, subset, result, i + 1);\n subset.remove(subset.size() - 1);\n }\n }", "@Override\n public Matching stableMarriageGaleShapley_residentoptimal(Matching marriage) {\n\n int m = marriage.getHospitalCount();\n int n = marriage.getResidentCount();\n\n ArrayList<ArrayList<Integer>> hospital_preference = marriage.getHospitalPreference();\n ArrayList<ArrayList<Integer>> resident_preference = marriage.getResidentPreference();\n ArrayList<Integer> hospitalSlots = marriage.getHospitalSlots();\n ArrayList<Integer> residentMatching = new ArrayList<Integer>();\n arrlistInit(residentMatching, n, -1, false); //O(n)\n\n /*At first the resident can propose to all his list.\n Each time a proposal is made the hospital is removed from the list*/\n\n /*Trying to create a copy of the arraylist elements not copy of references*/\n ArrayList<ArrayList<Integer>> hospitalsToProposeTo = new ArrayList<ArrayList<Integer>>();\n for (int i = 0; i < n; i++) //O(n)\n hospitalsToProposeTo.add(new ArrayList<Integer>(resident_preference.get(i)));\n\n\n /*list of residents that still can propose(free and hasn't proposed to every hospital)*/\n ArrayList<Integer> proposing = new ArrayList<Integer>();\n arrlistInit(proposing, n, 0, true); //O(n)\n\n\n /*Keep track of each hospital matched residents*/\n ArrayList<ArrayList<Integer>> hospitalResidents = new ArrayList<ArrayList<Integer>>(0);\n for (int i = 0; i < m; i++)\n hospitalResidents.add(new ArrayList<Integer>(0)); //O(m)\n\n /*Array list that holds the value of the lowest matched resident rank in each hospital\n * so each time a resident propose to a full hospital, the resident is swapped with the least ranked rmatched resident */\n ArrayList<Integer> lowestMatchedResidentRank = new ArrayList<Integer>();\n arrlistInit(lowestMatchedResidentRank, m, -1, false); //O(m)\n\n /*we enter the loop as long as some residents aren't done proposing to all hospitals yet O(mn*maximum no of spots)*/\n while (!proposing.isEmpty()) {\n\n /*Get the head of the proposing list*/\n for (int residentIndex = 0; residentIndex < proposing.size(); residentIndex++) {\n int resident = proposing.get(0);\n int hospital = 0;\n int hospitalIndex;\n /*Get the first hospital in the resident list which he hasn't proposed to yet, breaks if he can't no longer propose if matched*/\n for (hospitalIndex = 0; hospitalIndex < hospitalsToProposeTo.get(resident).size() && proposing.contains(resident); hospitalIndex++) {\n hospital = hospitalsToProposeTo.get(resident).get(0);\n int residentRank = hospital_preference.get(hospital).indexOf(resident);\n\n /*hospital is full, loop through the matched residents and see if anyone can be kicked out*/\n if (hospitalResidents.get(hospital).size() == hospitalSlots.get(hospital)) {\n\n if (residentRank < lowestMatchedResidentRank.get(hospital)) {\n /*1.Replace in hospitalResidents\n * 2.Add/remove in resident-matching\n * 3.Remove resident from the proposing list\n * 4.Check if matched resident still has hospitals to propose to (if yes, add to proposing)\n */\n int lowestMatchedResident = hospital_preference.get(hospital).get(lowestMatchedResidentRank.get(hospital));\n\n hospitalResidents.get(hospital).set(hospitalResidents.get(hospital).indexOf(lowestMatchedResident), resident);\n residentMatching.set(lowestMatchedResident, -1);\n residentMatching.set(resident, hospital);\n proposing.remove(proposing.indexOf(resident));\n if (!hospitalsToProposeTo.get(lowestMatchedResident).isEmpty()) {\n proposing.add(lowestMatchedResident);\n }\n\n /*set the lowest rank\n * TODO make it O(1)*/\n int min = 0;\n for (int i = 0; i < hospitalResidents.get(hospital).size(); i++) {\n int tempRank = hospital_preference.get(hospital).indexOf(hospitalResidents.get(hospital).get(i));\n if (tempRank > min)\n min = tempRank;\n }\n lowestMatchedResidentRank.set(hospital, min);\n\n }\n }\n\n /*If there is available spot*/\n else {\n /*1.Add in hospitalResidents\n * 2.Add in resident-matching\n * 3.Set the lowest ranked resident\n * 4.Remove resident from proposing list\n */\n\n /*Update the lowest rank*/\n if (residentRank > lowestMatchedResidentRank.get(hospital))\n lowestMatchedResidentRank.set(hospital, residentRank);\n\n hospitalResidents.get(hospital).add(resident);\n residentMatching.set(resident, hospital);\n proposing.remove(proposing.indexOf(resident));\n }\n\n /*1. Remove hospital from resident's hospitalsToProposeTo\n *2. If resident is matched or proposed to every possible hospital, remove resident from proposing list\n */\n\n hospitalsToProposeTo.get(resident).remove(hospitalsToProposeTo.get(resident).indexOf(hospital));\n if (hospitalsToProposeTo.get(resident).size() == 0 && proposing.contains(resident))\n proposing.remove(proposing.indexOf(resident));\n }\n }\n }\n\n marriage.setResidentMatching(residentMatching);\n return marriage;\n\n }", "public List<List<Integer>> threeSum(int[] nums) {\n Arrays.sort(nums);\n\n Set<List<Integer>> triplets = new HashSet<List<Integer>>();\n\n for (int i = 0; i < nums.length; i++) {\n // we choose the number at index i to pinpoint\n int a = nums[i];\n int deficit = 0 - a;\n\n // initialize our two pointers such that they're at either end of the\n // array and that they're not i\n int b = i == 0 ? 1 : 0;\n int c = i == nums.length - 1 ? nums.length - 2 : nums.length - 1;\n\n while (b < c) {\n // check if b and c add up to the deficit\n if (nums[b] + nums[c] == deficit) {\n // add it to the list\n List<Integer> triplet = new ArrayList<Integer>();\n\n triplet.add(a);\n triplet.add(nums[b]);\n triplet.add(nums[c]);\n\n Collections.sort(triplet);\n if (!triplets.contains(triplet)) {\n triplets.add(triplet);\n }\n\n\n // move pointer up and down\n c -= 1;\n if (c == i) {\n c -= 1;\n }\n\n b += 1;\n if (b == i) {\n b += 1;\n }\n } else if (nums[b] + nums[c] > deficit) {\n // if it's too large, bring top pointer down\n c -= 1;\n if (c == i) {\n c -= 1;\n }\n } else {\n // if it's too small, bring bottom pointer up\n b += 1;\n if (b == i) {\n b += 1;\n }\n }\n }\n }\n\n List<List<Integer>> last = new ArrayList<List<Integer>>(triplets);\n return last;\n }", "void h(List<List<Integer>> r, List<Integer> t, int n, int s){ \n for(int i = s; i*i <= n; i++){\n if(n % i != 0) continue; \n t.add(i);\n t.add(n / i);\n r.add(new ArrayList<>(t));\n t.remove(t.size() - 1);\n h(r, t, n/i, i);\n t.remove(t.size() - 1);\n }\n }", "public ArrayList<Person> allPairsDeduplication(){\n\tArrayList<Person> unduplicated = new ArrayList<>();\n\tfor (int i=0;i<this.lst.size();i++){\n\t int dup =0;\n\t //compare each element to elements after it in the list\n\t for(int j=i+1; j< this.lst.size();j++){\n\t\tif (lst.get(i).compareTo(lst.get(j)) == 0 ) dup++;\n\t }\n\t if (dup == 0) unduplicated.add(lst.get(i));\n\t}\n\treturn unduplicated;\n }", "public static int ulam(int n) {\n\n List<Integer> list = new ArrayList<>();\n list.add(1);\n list.add(2);\n\n int i = 3;\n while (list.size() < n) {\n\n int count = 0;\n for (int j = 0; j < list.size() - 1; j++) {\n\n for (int k = j + 1; k < list.size(); k++) {\n if (list.get(j) + list.get(k) == i)\n count++;\n if (count > 1)\n break;\n }\n if (count > 1)\n break;\n }\n if (count == 1)\n list.add(i);\n i++;\n }\n return list.get(n - 1);\n }", "public int repeatedNumber(final List<Integer> a) {\n\t List<Integer> B = new ArrayList<Integer>(a);\n\t ArrayList<Integer> result=new ArrayList<Integer>();\n int len = B.size();\n \n int repeated = -1;\n //int indexOfMissing = -1;\n for (int i = 0; i < len; i++) {\n // until B[i] stores the right number (i.e. i + 1)\n // or we meet the duplicated number\n while (B.get(i) != i + 1) {\n int num = B.get(i);\n if (num == B.get(B.get(i) -1)) {\n // met with duplicated number\n repeated = B.get(num - 1);\n //indexOfMissing = i;\n break;\n }\n // swap B[i] with B[num - 1]\n int temp = B.get(i);\n B.set(i, B.get(num - 1));\n B.set(num - 1, temp);\n }\n }\n \n //result.add(repeated);\n //result.add(indexOfMissing + 1);\n return repeated;\n\t}", "public static ArrayList<ArrayList<Integer>> combine1(int n, int k) {\r\n\tArrayList<ArrayList<Integer>> result = new ArrayList<ArrayList<Integer>>();\r\n\tif (n < 1 || k < 1) {\r\n\t return result;\r\n\t}\r\n\tif (n < k) {\r\n\t return result;\r\n\t}\r\n\tif (k == 1) {\r\n\t for (int i = 1; i <= n; i++) {\r\n\t\tArrayList<Integer> aResult = new ArrayList<Integer>();\r\n\t\taResult.add(i);\r\n\t\tresult.add(aResult);\r\n\t }\r\n\t return result;\r\n\t}\r\n\r\n\tfor (int i = n; i > 0; i--) {\r\n\t ArrayList<ArrayList<Integer>> temp = combine1(i - 1, k - 1);\r\n\t for (ArrayList<Integer> aResult : temp) {\r\n\t\taResult.add(i);\r\n\t }\r\n\t result.addAll(temp);\r\n\t}\r\n\r\n\t// get rid of duplicate sets\r\n\tLinkedHashSet<ArrayList<Integer>> finalResult = new LinkedHashSet<ArrayList<Integer>>();\r\n\tfor (ArrayList<Integer> aResult : result) {\r\n\t Collections.sort(aResult);\r\n\t finalResult.add(aResult);\r\n\t}\r\n\tresult = new ArrayList<ArrayList<Integer>>(finalResult);\r\n\r\n\treturn result;\r\n }", "private static void recurseSubsetsWithDuplicates(\n List<List<Integer>> answer, List<Integer> currentAnswer, int[] nums, int startIndex) {\n answer.add(new ArrayList<>(currentAnswer)); // clone\n\n for (int i = startIndex; i < nums.length; i++) {\n if (i > startIndex && nums[i] == nums[i - 1]) {\n continue; // skip duplicates\n }\n\n currentAnswer.add(nums[i]);\n recurseSubsetsWithDuplicates(answer, currentAnswer, nums, i + 1); // i+1: don't reuse nums[i]\n currentAnswer.remove(currentAnswer.size() - 1);\n }\n }", "static int[] OnepassSol1(int[]a, int n){\r\n Map<Integer, Integer> map = new HashMap<>();\r\n for (int i = 0; i < a.length; i++) {\r\n int complement = n - a[i];\r\n if (map.containsKey(complement)) {\r\n return new int[] { map.get(complement), i };\r\n }\r\n map.put(a[i], i);\r\n }\r\n int[] ans = {-1,-1};\r\n return ans;\r\n }", "public ArrayList<Person> hashLinearDeduplication(){\n\tArrayList<Person> unduplicated = new ArrayList<>();\n\tProbeHashMap<String, Person> map = new ProbeHashMap(SIZE);\n\t//The probe count is adapted to the implementation of the maps\n\t// and use of public instance variable probes() \n\tdouble average=0.0;\n\tint max = 0;\n\tint insertCount =0;\n\tfor(int i=0; i< this.lst.size(); i++){\n\t map.put(lst.get(i).getRef(),lst.get(i));\n\t //count insertions:\n\t insertCount++;\n\t //increment sum of probes:\n\t average += map.probes;\n\t //compute max # of probes:\n\t if ( map.probes >= max) max = map.probes;\n\t}\n\tSystem.out.println (\"Average number of probes: \"+ average/insertCount );\n\tSystem.out.println(\"Max number of probes: \"+ max);\n\tSystem.out.println(\"Load-factor: \"+ (double)map.size()/SIZE );\n\t//initialize iterator to collect singular suspects from the map:\n Iterator<Person> coll = map.values().iterator();\n\twhile(coll.hasNext()){\n\t Person suspect = coll.next();\n\t unduplicated.add(suspect);\n\t}\n\treturn unduplicated;\n }", "public List<List<Integer>> threeSum3(int[] nums) {\n List<List<Integer>> result = new ArrayList<>();\n Arrays.sort(nums);\n int n = nums.length;\n for (int i = 0; i < n - 2; i++) {\n if (i > 0 && nums[i - 1] == nums[i]) continue; // Bypass duplicate!\n for (int l = i + 1, r = n - 1; l < r; ) {\n if (nums[i] + nums[l] + nums[r] < 0) l++;\n else if (nums[i] + nums[l] + nums[r] > 0) r--;\n else {\n result.add(Arrays.asList(nums[i], nums[l++], nums[r--]));\n while (l < r && nums[l] == nums[l - 1]) l++; // Bypass duplicate!\n while (l < r && nums[r] == nums[r + 1]) r--;\n }\n }\n }\n return result;\n }", "public List<List<Integer>> findSubsequences3(int[] nums) {\n //below set is not working\n Set<List<Integer>> ret = new HashSet<>();\n\n ret.add(new ArrayList<>());\n int index = 0;\n while (index < nums.length) {\n //try to add nums[index]\n\n Set<List<Integer>> newly_added_set = new HashSet<>();\n\n for (List<Integer> l : ret) {\n if (l.size() <= 0 || l.get(l.size() - 1) <= nums[index]) {\n List<Integer> newList = new ArrayList<>(l);\n newList.add(nums[index]);\n newly_added_set.add(newList);\n }\n }\n\n ret.addAll(newly_added_set);\n\n ++index;\n }\n\n List<List<Integer>> ret2 = new ArrayList<>();\n for (List<Integer> l : ret) {\n if (l.size() >= 2) {\n ret2.add(l);\n }\n }\n return ret2;\n }", "static int[] sol1(int[]a, int n){\r\n\t\tMap <Integer,Integer> map= new HashMap();\r\n\t\tfor (int i = 0; i< a.length; i++){\r\n\t\t\tmap.put(a[i],i);\r\n\t\t}\r\n\t\tArrays.sort(a);\r\n\t\tint i = 0; \r\n\t\tint j = a.length -1;\r\n\t\twhile (i <= j){\r\n\t\t\tif(a[i]+a[j]>n) j--;\r\n\t\t\telse if (a[i]+a[j]<n) i++;\r\n\t\t\telse break;\r\n\t\t}\r\n\t\tint[] ans= {map.get(a[i]),map.get(a[j])};\r\n\t\treturn ans;\r\n\t}", "static LinkedListNode removeDuplicates(LinkedListNode n) {\n\t\tif(n == null || n.nextNode == null)\n\t\t\treturn n;\n\t\telse\n\t\t\tif(listContainsVal(n.val, n.nextNode)) \n\t\t\t\treturn removeDuplicates(n.nextNode);\n\t\t\telse {\n\t\t\t\tn.nextNode=removeDuplicates(n.nextNode);\n\t\t\t\treturn n;\n\t\t\t}\n\t}", "public List<List<Integer>> findSubsequences2(int[] nums) {\n List<List<Integer>> ret = new ArrayList<>();\n Arrays.sort(nums);\n //remove set usages\n //let's do a permutation\n\n ret.add(new ArrayList<>());\n int index = 0;\n int new_added_length = 0;\n while (index < nums.length) {\n //try to add nums[index]\n int oldSize = ret.size();\n int cur_added_length = 0;\n\n int cur_start = 0;\n if (index > 0 && nums[index] == nums[index - 1]) {\n cur_start = oldSize - new_added_length;\n }\n for (int i = cur_start; i < oldSize; ++i) {\n List<Integer> pre = ret.get(i);\n if (pre.size() == 0 || pre.get(pre.size() - 1) <= nums[index]) {\n List<Integer> newList = new ArrayList<>(pre);\n newList.add(nums[index]);\n ret.add(newList);\n ++cur_added_length;\n }\n }\n\n new_added_length = cur_added_length;\n ++index;\n }\n\n\n List<List<Integer>> ret2 = new ArrayList<>();\n for (List<Integer> l : ret) {\n if (l.size() >= 2) {\n ret2.add(l);\n }\n }\n return ret2;\n }", "private ArrayList<Integer> remove_duplicates(ArrayList<Integer> l) {\n ArrayList<Integer> res = new ArrayList<Integer>();\n for (int i=0; i< l.size(); i++) {\n if (!(in(l.get(i), res))) {\n res.add(l.get(i));\n }\n }\n return res;\n }", "public void helper(int[] nums, int index, List<List<Integer>> list, List<Integer> cur, int k) {\n if (cur.size() == k) list.add(new ArrayList<Integer>(cur));\n for (int i = index; i < nums.length; i ++) {\n // Add the next value.\n cur.add(nums[i]);\n // Find all potential subsets building off the current set.\n helper(nums, i + 1, list, cur, k);\n // Backtrack by removing the current value.\n cur.remove(cur.size() - 1);\n }\n }", "public boolean containsNearbyDuplicate2(int[] nums, int k) {\n \tif(nums == null || nums.length <=1) return false;\r\n \tSet<Integer> set = new HashSet<Integer> ();\r\n \tfor(int i=0; i< nums.length; i++) {\r\n \t\tif(i>k) set.remove(nums[i-k-1]);\r\n \t\tif(!(set.add(nums[i]))) return true;\r\n \t}\r\n \treturn false;\r\n }", "static void UseArrayList(ArrayList<Integer> myList2){\r\n\t\tLong start = System.currentTimeMillis();\r\n\t\tfor (int n=0; n<myList2.size();n++)\r\n\t\t{\r\n\t\t\tfor (int m=n+1; m<myList2.size();m++){\r\n\t\t\t\tif( myList2.get(n)== myList2.get(m) ) {System.out.println(\"Duplicate found \"+myList2.get(n));}\r\n\t\t\t}\r\n\t\t}\r\n\t\tLong End = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"Total time taken for executing this code is: \" + (End-start));\r\n\t}", "public static int repeatedNumber(final List<Integer> a) {\n\t\tint n = a.size();\n\t\tHashMap<Integer, Integer> map_a=new HashMap<>();\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tmap_a.put(a.get(i), map_a.getOrDefault(a.get(i), 0)+1);\n\t\t}\n\t\tSystem.out.println(map_a);\n\t\tfor(int i:map_a.values()) {\n\t\t\tif(i>n/3)\n\t\t\t{\n\t\t\t\tSet<Integer> set= getKeysByValue(map_a, i);\n\t\t\t\treturn set.stream().findFirst().get();\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t\t\n\t\t//solution at site\n\n\t /* int num;\n\t int n = A.size();\n\t Collections.sort(A);\n\t for (int i = 0; i < n;) {\n\t int freq = 0;\n\t num = A.get(i);\n\t while (i < n && A.get(i) == num) {\n\t freq++;\n\t i++;\n\t }\n\t if (freq * 3 > n)\n\t return num;\n\t }\n\t return -1;*/\n\t}", "public static int[] findTripletWithCommonDifference(List<Integer> list) {\n for (int j = 1; j < list.size() - 1; j++)\n {\n // start with left and right index of j\n int i = j - 1, k = j + 1;\n\n // Find all i and k such that (i, j, k) forms a triplet of AP\n while (i >= 0 && k < list.size())\n {\n // if (A[i], A[j], A[k]) forms a triplet\n if (list.get(i) + list.get(k) == 2 * list.get(j))\n {\n int[] res = {list.get(i), list.get(j), list.get(k)};\n return res;\n }\n // else if (A[i] + A[k]) is less than 2*A[j] then\n // try next k. Else, try previous i.\n else if (list.get(i) + list.get(k) < 2 * list.get(j)) {\n k++;\n } else {\n i--;\n }\n }\n }\n return new int[0];\n }", "public static List<Integer> solution2(int n) {\n List<Integer> rs=new ArrayList<Integer>();\n rs.add(0);\n for(int i=0;i<n;i++){\n int size=rs.size();\n for(int k=size-1;k>=0;k--)\n rs.add(rs.get(k) | 1<<i);\n }\n return rs;\n }", "public Set<List<String>> getCombination(int[] inHand) {\n Set<List<String>> result = new HashSet<>();\n for (int i = 0; i < inHand.length; i++) {\n if (inHand[i] < 1) continue;\n int[] copyHand = copyArray(inHand);\n //possibility of A AA AAA\n for (int j = 1; j <= inHand[i]; j++) {\n if (j == 1) {\n String cSet = \"\";\n\n for (int seq = i; seq <= i + 2; seq++) {\n if (seq >= inHand.length || copyHand[seq] < 1) continue;\n cSet += seq;\n copyHand[seq] -= 1;\n }\n// System.out.println(\"i: \" + i + \" j: \" + j+\"inhand: \" + arrayToString\n// (inHand));\n\n Set<List<String>> a = getCombination(copyHand);\n Set<List<String>> newA = new HashSet<>();\n for (List<String> s : a) {\n s.add(cSet);\n s.sort(Comparator.naturalOrder());\n if (s.equals(\"\")) continue;\n newA.add(s);\n }\n result.addAll(newA);\n continue;\n }\n\n String currentSet = \"\";\n int[] copyOfInHand = copyArray(inHand);\n for (int t = 0; t < j; t++) {\n currentSet += i;\n }\n\n copyOfInHand[i] -= j;\n Set<List<String>> after = getCombination(copyOfInHand);\n Set<List<String>> newAfter = new HashSet<>();\n for (List<String> s : after) {\n s.add(currentSet);\n s.sort(Comparator.naturalOrder());\n newAfter.add(s);\n }\n result.addAll(newAfter);\n }\n }\n if (result.isEmpty()) result.add(new ArrayList<>());\n int min = result.stream().map(set -> set.size()).min(Comparator\n .naturalOrder()).get();\n Set<List<String>> minSets = result.stream().filter(set -> set.size() == min)\n .collect(Collectors\n .toSet());\n// combinationCache.put(inHand, minSets);\n return minSets;\n }", "public static int[] findCandidates (int [] numbers, int sizeN){\r\n /*This stores the resulting candidates*/\r\n int [] candidates = new int[2];\r\n int counter1=1;\r\n int counter2=0;\r\n int mElementIndx1=0;\r\n int mElementIndx2=0;\r\n for(int i=1;i<sizeN;i++){\r\n /*If the number is the same as the previeous number, the counter for\r\n * previuos is incremented*/\r\n if(numbers[mElementIndx1]==numbers[i]){\r\n counter1++;\r\n }\r\n /*This checks to see if the second candidate is available*/\r\n else if(counter2==0){\r\n mElementIndx2=i;\r\n counter2=1;\r\n }\r\n /*if number is the same as candid 2 we increment the counter*/\r\n else if(numbers[mElementIndx2]==numbers[i]){\r\n counter2++;\r\n }\r\n /*If candid one is available we put the current number in this candid*/\r\n else if(counter1==0){\r\n mElementIndx1=i;\r\n counter1=1;\r\n }\r\n /*If the number is not the same as either candid one or 2 we decrease their counter*/\r\n else{\r\n counter1--;\r\n counter2--;\r\n }\r\n\r\n\r\n }\r\n /*Storing the result and retuirning*/\r\n candidates[0]=mElementIndx1;\r\n candidates[1]=mElementIndx2;\r\n return candidates;\r\n\r\n }", "public boolean containsNearbyDuplicate2(int[] nums, int k) {\n\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < nums.length; i++) {\n max=Math.max(max,nums[i]);\n }\n Integer[] map = new Integer[max+1];\n for (int i = 0; i < nums.length; i++) {\n Integer c = map[nums[i]];\n if(c!=null && i-c<=k){\n return true;\n }else {\n map[nums[i]]=i;\n }\n }\n return false;\n }", "public Collection<MatchingPair> matchingPairs(Collection<Integer> values, Integer targetSum)\n {\n HashMap<Integer, Integer> tableCompteur = new HashMap<>();\n LinkedHashMap<Integer, Integer> tablePaire = new LinkedHashMap<Integer, Integer>();\n Collection<MatchingPair> paireSansDuplication = new LinkedList();\n Collection<MatchingPair> solution = new LinkedList();\n\n // On itere sur les valeurs donnee pour savoir le compte de chaque valeur\n for (Integer valeur : values)\n {\n if (tableCompteur.containsKey(valeur))\n {\n // Partie Compteur\n Integer compteur = tableCompteur.get(valeur);\n compteur++;\n tableCompteur.put(valeur, compteur);\n }\n else {\n tableCompteur.put(valeur, 0);\n }\n\n }\n\n // On itere sur les valeurs donnee pour savoir les paires\n for (Integer element : values)\n {\n int temp = targetSum - element;\n if (tablePaire.containsKey(element))\n {\n if (tablePaire.get(element) != null)\n {\n paireSansDuplication.add(new MatchingPair(element, temp));\n }\n // si la table contient l'element on met nul pour ne pas avoir de repetition\n tablePaire.put(temp, null);\n }\n else if (!tablePaire.containsKey(element))\n {\n tablePaire.put(temp, element);\n }\n }\n\n // On trouve le minimum count entre les paire et leur compte pour tenir en compte de toutes les possibilites. Ici le meilleur cas reste O(n) ( pas de paire)\n for (MatchingPair paire : paireSansDuplication)\n {\n if (paire != null) { // verification au debug pr erreur nullpointer\n int a = tableCompteur.get(paire.first);\n int b = tableCompteur.get(paire.second);\n int minCount = Math.min(a+1, b+1);\n for (int i = 0; i < pow(minCount, 2); i++)\n {\n solution.add(new MatchingPair(paire.first, paire.second));\n }\n }\n }\n return solution;\n }", "public static void main(String[] args) throws NumberFormatException, IOException {\n\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tint T = Integer.parseInt(br.readLine());\r\n\t\tStringTokenizer st;\r\n\t\tfor (int test_case = 1; test_case <= T; test_case++) {\r\n\t\t\tst = new StringTokenizer(br.readLine());\r\n\t\t\tN = Integer.parseInt(st.nextToken());\r\n\t\t\tK = Integer.parseInt(st.nextToken());\r\n\t\t\tst = new StringTokenizer(br.readLine());\r\n\t\t\tlist = new ArrayList[N + 1];\r\n\t\t\tfor (int i = 1; i <= N; i++) {\r\n\t\t\t\tlist[i] = new ArrayList<Integer>();\r\n\t\t\t}\r\n\t\t\tfor (int i = 1; i <= N; i++) {\r\n\t\t\t\tint k = Integer.parseInt(st.nextToken());\r\n\t\t\t\tlist[k].add(i);\r\n\t\t\t}\r\n//\t\t\tfor (int i = 1; i <= N; i++) {\r\n//\t\t\t\tfor (int j = 0; j < list[i].size(); j++)\r\n//\t\t\t\t\tSystem.out.print(i + \", \" + list[i].get(j) + \" \");\r\n//\t\t\t}\r\n//\t\t\tSystem.out.println();\r\n\r\n\t\t\tQueue<Integer> q;\r\n//\t\t\tfor(int i = 1; i<=N;i++) {\r\n//\t\t\t\tif(list[i].size()==0) {\r\n//\t\t\t\t\tq.add(i);\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n\t\t\tint visited[];\r\n\t\t\tint answer = 0;\r\n\t\t\tfor (int i = 1; i <= N; i++) {// 각 굴에 대해서 인원 센다\r\n\t\t\t\tq = new LinkedList<Integer>();\r\n\t\t\t\tvisited = new int[N + 1];\r\n\t\t\t\tint count = K;\r\n//\t\t\t\tfor (int j = 1; j < K; j++) {// 지날 수 있는 굴의 최대갯수 K\r\n\t\t\t\tif (list[i].size() < 1) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tint idx;\r\n\t\t\t\tfor (int u = 0; u < list[i].size(); u++) {\r\n\t\t\t\t\tidx = list[i].get(u);\r\n\t\t\t\t\tq.add(idx);\r\n\t\t\t\t}\r\n\t\t\t\twhile (count > 0 && !q.isEmpty()) {\r\n\t\t\t\t\tidx = q.poll();\r\n\r\n\t\t\t\t\tfor (int m = 0; m < list[idx].size(); m++) {\r\n\r\n\t\t\t\t\t\tint dd = list[idx].get(m);\r\n\t\t\t\t\t\tif (visited[dd] == 0 && dd != i) {\r\n\t\t\t\t\t\t\tvisited[dd] = 1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tq.add(list[idx].get(m));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcount--;\r\n\r\n\t\t\t\t}\r\n//\t\t\t\t}\r\n\t\t\t\tfor (int e = 1; e <= N; e++) {\r\n\t\t\t\t\tif (visited[e] == 1)\r\n\t\t\t\t\t\tanswer++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"#\" + test_case + \" \" + answer);\r\n\r\n\t\t}\r\n\r\n\t}", "static boolean isduplicate(int pos, int n) {\n for (int k=pos-1;k>=0;k--) { \n if(n==arr[k]){ //Compare already filled array elements\n return false;\n }\n }\n return true;\n }", "public static List<List<Integer>> permutateUnique(int[] nums) {\n List<List<Integer>> answer = new ArrayList<>();\n Arrays.sort(nums); // sort to remove duplicates later\n recursePermutateUnique(answer, new ArrayList<>(), nums, new boolean[nums.length]);\n return answer;\n }", "private static <A,B> List<Map<A,B>> generateAllPossibilities(List<Pair<A,Set<B>>> input){\n\t\tif(input.size()==0){\n\t\t\tList<Map<A,B>> l = new ArrayList<Map<A,B>>();\n\t\t\tl.add(new HashMap<A,B>());\n\t\t\treturn l;\n\t\t} else {\n\t\t\tPair<A, Set<B>> entry = input.get(0);\n\t\t\t\n\t\t\tList<Pair<A,Set<B>>> newList = new ArrayList<Pair<A,Set<B>>>();\n\t\t\tfor(int i=1;i<input.size();i++){\n\t\t\t\tnewList.add(input.get(i));\n\t\t\t}\n\t\t\t\n\t\t\tList<Map<A,B>> results = generateAllPossibilities(newList);\n\t\t\tList<Map<A,B>> newResults = new ArrayList<Map<A,B>>();\n\t\t\t\n\t\t\tfor(B newEntry : entry.second()){\n\t\t\t\tfor(Map<A,B> previousMap : results){\n\t\t\t\t\tMap<A,B> newMap = new HashMap<A,B>();\n\t\t\t\t\tfor(Entry<A,B> e : previousMap.entrySet()){\n\t\t\t\t\t\tnewMap.put(e.getKey(), e.getValue());\n\t\t\t\t\t}\n\t\t\t\t\tnewMap.put(entry.first(), newEntry);\n\t\t\t\t\tnewResults.add(newMap);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn newResults;\n\t\t}\n\t}", "private static void findPermutations(int index, List<Integer> nums) {\n\n }", "public List<List<Integer>> threeSum2(int[] nums) {\n Arrays.sort(nums);\n\n List<List<Integer>> result = new ArrayList<>();\n for (int i = 0; i < nums.length - 2; i++) {\n if (i > 0 && nums[i - 1] == nums[i]) { // Common trick to bypass duplicate. Better than a nested while loop!\n continue; // But it's quite annoying to bypass in nested loop. eg.[-2,0,0,2,2]\n }\n int target = 0 - nums[i];\n int left = i + 1, right = nums.length - 1;\n while (left < right) {\n if (nums[left] + nums[right] < target || (left > i + 1 && nums[left - 1] == nums[left])) {\n left++;\n } else if (nums[left] + nums[right] > target || (right < nums.length - 1 && nums[right] == nums[right + 1])) {\n right--;\n } else {\n result.add(Arrays.asList(nums[i], nums[left], nums[right]));\n left++;\n right--;\n }\n }\n }\n return result;\n }", "public List<Integer> majorityElementGenius(int[] nums) {\n\t\tList<Integer> majors = new LinkedList<>();\n\t\tif (nums == null || nums.length == 0) return majors;\n\t\tint n = nums.length, k = 3; // majors should be the elements appears > n/k\n\t\tint candidates[] = new int[k - 1]; // At most there is (k - 1) elements;\n\t\tint counter[] = new int[k - 1];\n\t\tArrays.fill(candidates, nums[0]);\n\t\tArrays.fill(counter, 0);\n\t\t\n\t\t// Find candidates\n\t\tfor (int num : nums) {\n\t\t\tboolean selected = false;\n\t\t\tfor (int i = 0; i < k - 1; i++) {\n\t\t\t\tif (num == candidates[i]) {\n\t\t\t\t\tcounter[i]++;\n\t\t\t\t\tselected = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (selected) continue;\n\t\t\t\n\t\t\tfor (int i = 0; i < k - 1; i++) {\n\t\t\t\tif (counter[i] == 0) {\n\t\t\t\t\tcandidates[i] = num;\n\t\t\t\t\tcounter[i] = 1;\n\t\t\t\t\tselected = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (selected) continue;\n\t\t\t\n\t\t\tfor (int i = 0; i < k - 1; i++) {\n\t\t\t\tif (counter[i] > 0) counter[i]--;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// calculate appearance times of candidates\n\t\tArrays.fill(counter, 0);\n\t\tfor (int num : nums) {\n\t\t\tfor (int i = 0; i < k - 1; i++) {\n\t\t\t\tif (candidates[i] == num) {\n\t\t\t\t\tcounter[i]++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Get majors\n\t\tfor (int i = 0; i < k - 1; i++) {\n\t\t\tif (counter[i] > n / k)\n\t\t\t\tmajors.add(candidates[i]);\n\t\t}\n\t\t\n\t\treturn majors;\n\t}", "private static ListNode removeDuplicates(ListNode head) {\n\n if (head == null)\n return head;\n\n // Initialize result node\n ListNode result = new ListNode(0);\n\n // Assuming that, if LinkedList has no duplicates\n result.next = head;\n\n //Iterate curr and next values.\n ListNode curr = result;\n ListNode next = result.next;\n\n boolean isDupFound = false;\n while (next != null) {\n\n //if next value is same as curr value. don't update current\n if (next.next != null && next.val == next.next.val) {\n isDupFound = true;\n }\n else if(isDupFound){\n curr.next = next.next;\n isDupFound = false;\n }\n else {\n curr = curr.next;\n }\n next = next.next;\n\n }\n return result.next;\n }", "private static List<Integer> findDuplicates(int[] nums) {\n List<Integer> ans = new ArrayList<>();\n for (int i = 0; i < nums.length; i++) {\n int index = Math.abs(nums[i]) - 1;\n if (nums[index] < 0) {\n ans.add(index + 1);\n }\n nums[index] = -nums[index];\n }\n return ans;\n }", "private List<int[]> buildNewCandidates(List<int[]> lastCandidates){\n Map<String, SetWithFrequency> frequency = new HashMap<>();\n\n // Set the threshold to be k\n int threshold = lastCandidates.get(0).length + 1;\n\n // Creates new candidates by merging the previous sets\n for (int i = 0; i < lastCandidates.size(); i++){\n for (int j = i + 1; j < lastCandidates.size(); j++){\n int[] firstSet = lastCandidates.get(i);\n int[] secondSet = lastCandidates.get(j);\n\n int[] candidate = mergeTwoSet(firstSet, secondSet);\n\n if (candidate != null){\n\n // This is a valid candidate (contains all elements from first / second set)\n String key = arrayToString(candidate);\n\n if (frequency.containsKey(key)){\n frequency.get(key).frequency++;\n } else{\n frequency.put(key, new SetWithFrequency(key, candidate, 1));\n }\n }\n }\n }\n\n List<int[]> res = new ArrayList<>();\n\n threshold = threshold * (threshold - 1) / 2;\n for (SetWithFrequency entry: frequency.values()){\n // Prune the candidates which does not have all subsets being frequent\n if (entry.frequency == threshold){\n res.add(entry.set);\n }\n }\n\n return res;\n }", "public static void main(String[] args) {\n int a[]={1,2,3,4,4,3,2,6,6,9,9,6,7,4,7};\n\n ArrayList<Integer> al= new ArrayList<Integer>();\n\n for (int i =0;i<a.length;i++){\n int k=0;\n if (!al.contains(a[i])){\n al.add(a[i]);\n k++;\n\n for (int j=0;j<a.length;j++){\n if(a[i]==a[j]){\n k++;\n }\n }\n System.out.println(\"The number \"+ a[i] +\"repeats \"+ k+\" number of times.\");\n if (1==k)\n System.out.println(a[i]+ \" is the unique number.\");\n }\n\n\n }\n\n\n\n }", "public boolean containsNearbyAlmostDuplicate(int[] nums, int k, int t) {\n if (t < 0) return false;\n TreeSet<Long> set = new TreeSet<>();\n for (int i = 0; i < nums.length; ++i) {\n long num = (long)nums[i];\n Long floor = set.floor(num), ceiling = set.ceiling(num);\n if (floor != null && num - floor <= t || ceiling != null && ceiling - num <= t) return true;\n set.add(num);\n if (i >= k) set.remove((long)nums[i - k]);\n }\n return false;\n}", "public void findSequence(Set<List<Integer>> res, List<Integer> holder, int index, int[] nums) {\n if (holder.size() >= 2) {\n res.add(new ArrayList(holder));\n }\n for (int i = index; i < nums.length; i++) {\n if(holder.size() == 0 || holder.get(holder.size() - 1) <= nums[i]) {\n holder.add(nums[i]);\n findSequence(res, holder, i + 1, nums);\n holder.remove(holder.size() - 1);\n }\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\t// 10 Tests: \n\t\tList<Integer> a1 = new List<>();\n\t\tList<Integer> b1 = new List<>(1, new List<>(2, new List<>(3, new List<>())));\n\t\t\n\t\tList<Integer> a2 = new List<>(1, new List<>(2, new List<>(3, new List<>())));\n\t\tList<Integer> b2 = new List<>();\n\t\t\n\t\tList<Integer> a3 = new List<>();\n\t\tList<Integer> b3 = new List<>();\n\t\t\n\t\tList<Integer> a4 = new List<>(1, new List<>(2, new List<>(3, new List<>())));\n\t\tList<Integer> b4 = new List<>(4, new List<>(5, new List<>(6, new List<>())));\n\t\t\n\t\tList<Integer> a5 = new List<>(4, new List<>(5, new List<>(6, new List<>())));\n\t\tList<Integer> b5 = new List<>(1, new List<>(2, new List<>(3, new List<>())));\n\t\t\n\t\tList<Integer> a6 = new List<>(1, new List<>(4, new List<>(6, new List<>()))); \n\t\tList<Integer> b6 = new List<>(5, new List<>(6, new List<>(9, new List<>())));\n\t\t\n\t\tList<Integer> a7 = new List<>(-6, new List<>(-5, new List<>(-4, new List<>())));\n\t\tList<Integer> b7 = new List<>(-3, new List<>(-2, new List<>(-1, new List<>())));\n\t\t\n\t\tList<Integer> a8 = new List<>(-2, new List<>(-1, new List<>(0, new List<>())));\n\t\tList<Integer> b8 = new List<>(-1, new List<>(0, new List<>(1, new List<>(2, new List<>()))));\n\t\t\n\t\tList<Integer> a9 = new List<>(-1, new List<>(0, new List<>(1, new List<>())));\n\t\tList<Integer> b9 = new List<>(3, new List<>(4, new List<>(5, new List<>())));\n\t\t\n\t\tList<Integer> a10 = new List<>(-1, new List<>(0, new List<>(1, new List<>())));\n\t\tList<Integer> b10 = new List<>(-1, new List<>(0, new List<>(1, new List<>())));\n\t\t\n\t\tSystem.out.println(unique(a1, b1));\n\t\tSystem.out.println(unique(a2, b2));\n\t\tSystem.out.println(unique(a3, b3));\n\t\tSystem.out.println(unique(a4, b4));\n\t\tSystem.out.println(unique(a5, b5));\n\t\tSystem.out.println(unique(a6, b6));\n\t\tSystem.out.println(unique(a7, b7));\n\t\tSystem.out.println(unique(a8, b8));\n\t\tSystem.out.println(unique(a9, b9));\n\t\tSystem.out.println(unique(a10, b10));\n\t\t\n\t}", "public static void removeDuplicateSample() {\n Node ll1 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll2 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(4, null)))));\n Node ll3 = new Node(1, new Node(1, new Node(3, new Node(4, new Node(5, null)))));\n Node ll4 = new Node(1, new Node(1, new Node(1, new Node(4, new Node(5, null)))));\n\n System.out.println(\"1===\");\n ll1.printList();\n ll1 = ll1.removeDuplicate();\n ll1.printList();\n\n System.out.println(\"2===\");\n ll2.printList();\n ll2 = ll2.removeDuplicate();\n ll2.printList();\n\n System.out.println(\"3===\");\n ll3.printList();\n ll3 = ll3.removeDuplicate();\n ll3.printList();\n\n System.out.println(\"4===\");\n ll4.printList();\n ll4 = ll4.removeDuplicate();\n ll4.printList();\n\n }", "public static List<String> getRepetitiveElements(String[] array)\n {\n if (array == null) return null;\n\n // variable -> each index maps to a linkedlist containing the values\n List<Integer>[] hashMap = new ArrayList[array.length];\n List<String> duplicateSet = new ArrayList<>();\n int index;\n int n = array.length;\n String curString;\n for (int i = 0; i < array.length; i++) {\n curString = array[i];\n index = curString.hashCode()%n;\n if (hashMap[index] == null) {\n hashMap[index]=new ArrayList<>(); // store the i index\n hashMap[index].add(i); // put in i within the arrayList\n } else { // index is not null\n List<Integer> matchingIndice = hashMap[index];\n boolean hit = false;\n for (Integer mi: matchingIndice) {\n if (array[mi].compareTo(curString)==0) {\n // collision, and the string matches, we are happy\n if (!duplicateSet.contains(curString)) { // this is O(m) where m is # of duplicate strings in the set\n duplicateSet.add(curString);// found duplicate string\n }\n hit = true;\n break; // exit -> found a match\n }\n }\n if (!hit) {\n matchingIndice.add(i); // put i into the linkedlist\n hashMap[index] = matchingIndice;\n }\n }\n }\n\n return duplicateSet;\n }", "public ArrayList<Person> builtinSortDeduplication(){\n\t//copy data from list to array arr\n\tPerson[] arr = new Person[this.lst.size()];\n\tfor(int i=0; i< lst.size();i++){\n\t arr[i] = this.lst.get(i);\n\t}\n\t// use java's built-in sort\n\tArrays.sort(arr);\n\t//create list to store singular data\n\tArrayList<Person> unduplicated3 = new ArrayList<>();\n\t//compare successive elements of array to find duplicates\n\tint limit =0;\n\tif (arr.length ==0 || arr.length==1) limit =arr.length;\n\tint j=0;\n\t//store only singular data in the beginning of the array\n\tfor (int i = 0; i < arr.length-1; i++) \n if (arr[i].compareTo( arr[i+1]) != 0) \n arr[j++] = arr[i]; \n\t// add last element to array\n\tarr[j++] = arr[arr.length-1];\n\t//record last index of singular element\n\tlimit =j;\n\t//copy elements up to the singularity index to the list\n\tfor(int k=0; k< limit; k++){\n\t unduplicated3.add(arr[k]);\n\t}\n\treturn unduplicated3;\n }", "public List<List<Integer>> threeSum(int[] nums) {\n List<List<Integer>> result = new ArrayList<>(nums.length);\n\n // Prepare\n Arrays.sort(nums);\n// int firstPositiveIndex = 0;\n// int negativeLength = 0;\n// List<Integer> numsFiltered = new ArrayList<>();\n// for (int i = 0; i < nums.length; i++) {\n// if (i == 0 || i == 1 || nums[i] == 0 || (nums[i] != nums[i-2])) {\n// numsFiltered.add(nums[i]);\n// if ((nums[i] >= 0) && (firstPositiveIndex == 0)) {\n// firstPositiveIndex = numsFiltered.size() - 1;\n// }\n// if ((nums[i] <= 0)) {\n// negativeLength = numsFiltered.size();\n// }\n// }\n// }\n// nums = numsFiltered.stream().mapToInt(i->i).toArray();\n\n // Func\n\n for(int i=0; (i < nums.length) && (nums[i] <= 0); i++) {\n if (i != 0 && nums[i] == nums[i-1]) {\n continue;\n }\n for(int j=i+1; j<nums.length; j++) {\n if (j != i+1 && nums[j] == nums[j-1]) {\n continue;\n }\n for(int k=nums.length-1; (k>j) && nums[k] >= 0; k--) {\n if (k != nums.length-1 && nums[k] == nums[k+1]) {\n continue;\n }\n int sum = nums[i]+nums[j]+nums[k];\n if (sum > 0) {\n continue;\n } else if (sum < 0) {\n break;\n }\n\n List<Integer> ok = new ArrayList<>();\n ok.add(nums[i]);\n ok.add(nums[j]);\n ok.add(nums[k]);\n result.add(ok);\n break;\n }\n }\n }\n\n// System.out.println(\"Finish time = \" + (System.nanoTime() - start) / 1_000_000);\n// System.out.println(\"result size = \" + result.size());\n\n return result;\n }", "public static List<Integer> linearSieve(int n) {\n\t\tList<Integer> primes = new ArrayList<>();\n\t\tboolean[] isComposite = new boolean[n + 1];\n\t\tfor (int i = 2; i <= n; i++) {\n\t\t\tif (!isComposite[i]) {\n\t\t\t\tprimes.add(i);\n\t\t\t}\n\t\t\tfor (int j = 0; j < primes.size() && i * primes.get(j) <= n; j++) {\n\t\t\t\tisComposite[i * primes.get(j)] = true;\n\t\t\t\tif (i % primes.get(j) == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn primes;\n\t}", "public List<List<Integer>> getCandidateA(int nStartVal, int k, int n) {\n \tint nMin; \r\n \tint nMax; \r\n \tint i;\r\n \tList<List<Integer>> lstlstCombSum = new ArrayList<List<Integer>>();\r\n List<Integer> lstResult = new ArrayList<Integer>();\r\n \t\r\n \tif (nStartVal > n || k == 0) return lstlstCombSum;\r\n \t\r\n \tif (k == 1) {\r\n \t\tif (n > 9) return lstlstCombSum;\r\n \t\tlstResult.add(n);\r\n \t\tlstlstCombSum.add(lstResult);\r\n \t\treturn lstlstCombSum;\r\n \t}\r\n \t\r\n \tnMin = nStartVal;\r\n \tnMax = (int) (n - (k-1)*k/2)/k; //Max value occurs when the remaining numbers are: x (the maxvalue), x+1, x+2 ... x+k-1 (the sum should be n)\r\n \t\r\n \tfor (i = nMin; i <= nMax; i++) { //Possible value of the first\r\n \t\tList<List<Integer>> lstlstCombSumTmp = new ArrayList<List<Integer>>();\r\n \t\tlstlstCombSumTmp = getCandidateA(i+1, k-1, n-i);\r\n \t\t\r\n \t\tif (lstlstCombSumTmp.isEmpty()) continue;\r\n \t\t\r\n \t\tfor (List<Integer> lstOneCombSum:lstlstCombSumTmp) {\r\n \t\t\tlstOneCombSum.add(0, i);\r\n \t\t\tlstlstCombSum.add(lstOneCombSum);\r\n \t\t}\r\n \t\t\r\n \t}\r\n \t\r\n \treturn lstlstCombSum;\r\n }", "static void findTwoSum(List<List<Integer>> list, int[] nums, int k) {\n \tint target = 0 - nums[k]; // 7 -> check a + b = 7 (target)\n int fi = 0;\n int la = k - 1;\n\n while (fi < la) {\n if (nums[fi] + nums[la] == target) {\n list.add(Arrays.asList(nums[fi], nums[la], nums[k]));\n while (fi < nums.length - 1 && nums[fi] == nums[fi + 1]) {\n \tfi++;\n }\n fi++;\n }\n else if (nums[fi] + nums[la] < target)\n fi++;\n else\n la--;\n }\n }", "public static boolean find3Numbers(int A[], int n, int X) { \n \n // Your code \n for(int i=0;i<n-2;i++)\n {\n HashSet<Integer> set = new HashSet<>();\n int toFind=X-A[i];\n for(int j=i+1;j<n;j++)\n {\n if(set.contains(toFind-A[j]))\n {\n return true;\n }\n set.add(A[j]);\n }\n }\n return false;\n }", "public static void main(String[] args) {\n\t\tint a[] = {4,4,4,5,5,5,6,6,6,9};\n\t\t\n\t\tArrayList<Integer> ab = new ArrayList<Integer>();\n\t\t\n\t\tfor(int i=0; i<a.length; i++)\n\t\t{\n\t\t\tint k =0;\n\t\t\tif(!ab.contains(a[i]))\n\t\t\t{\n\t\t\t\tab.add(a[i]);\n\t\t\t\tk++;\n\t\t\t\tfor(int j=i+1; j<a.length; j++)\n\t\t\t\t{\n\t\t\t\t\tif(a[i]==a[j])\n\t\t\t\t\t{\n\t\t\t\t\t\tk++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(a[i]);\n\t\t\t//System.out.println(k);\n\t\t\tif(k==1)\n\t\t\t\tSystem.out.println(a[i] +\" is unique number \");\n\t\t}\n\t\t\n\t}", "public List<Integer> majorityElement(int[] nums) {\n List<Integer> result = new ArrayList<>();\n if (nums == null || nums.length == 0) {\n return result;\n }\n int count1 = 0;\n int count2 = 0;\n int candidate1 = 0;\n int candidate2 = 1;\n for (int num : nums) {\n if (num == candidate1) {\n count1++;\n } else if (num == candidate2) {\n count2++;\n } else if (count1 == 0) {\n candidate1 = num;\n count1 = 1;\n } else if (count2 == 0) {\n candidate2 = num;\n count2 = 1;\n } else {\n count1--;\n count2--;\n }\n }\n count1 = 0;\n count2 = 0;\n for (int num : nums) {\n if (num == candidate1) {\n count1++;\n } else if (num == candidate2) {\n count2++;\n }\n }\n if (count1 > nums.length / 3) {\n result.add(candidate1);\n }\n if (count2 > nums.length / 3) {\n result.add(candidate2);\n }\n return result;\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] arr = new int[n];\n ArrayList<Integer> set = new ArrayList<>();\n for(int i=0;i<n;i++)\n {\n arr[i] = sc.nextInt();\n \n if(!set.contains(arr[i]))\n set.add(arr[i]);\n }\n \n HashMap<Integer,Integer> map = new HashMap<>();\n for(int i:arr)\n {\n if(map.containsKey(i))\n map.put(i,map.get(i)+1);\n else\n map.put(i,1);\n }\n \n for(int i:set)\n {\n System.out.println(i+\" : \"+map.get(i));\n }\n \n \n }", "public ArrayList<Integer> getOprime(ArrayList<Integer> arr) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tArrayList<Integer> trueA=new ArrayList<Integer>();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfor(int i=0;i<arr.size();i++)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(arr.get(i)==1)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\ttrueA.add(i);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t//\tSystem.out.println(\"elements of trueA list are\"+trueA);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn trueA;\r\n\t\t\t\t\t\t}", "protected LinkedList<FunQuadruple> generateCandidates(List<FunQuadruple> lk) {\n\n LinkedList<FunQuadruple> lkPlus1 = new LinkedList<>();\n if (lk.isEmpty()) {\n return lkPlus1;\n }\n Set<ColumnCombinationBitset> subsets = new HashSet<>();\n int k = lk.get(0).candidate.size();\n ColumnCombinationBitset union = new ColumnCombinationBitset();\n for (FunQuadruple subsetQuadruple : lk) {\n // TODO optimise: all bits are set? --> break\n // If subsetQuadruple represents a unique do not add it to subsets and union (it should be pruned).\n if (subsetQuadruple.count == 0) {\n continue;\n }\n union = subsetQuadruple.candidate.union(union);\n subsets.add(subsetQuadruple.candidate);\n }\n\n Map<ColumnCombinationBitset, Integer> candidateGenerationCount = new HashMap<>();\n\n List<ColumnCombinationBitset> lkPlus1Candidates;\n FunQuadruple lkPlus1Member;\n for (ColumnCombinationBitset subset : subsets) {\n lkPlus1Candidates = union.getNSubsetColumnCombinationsSupersetOf(\n subset, k + 1);\n // FIXME add key conditional here\n // Removed key conditional - should not be triggerable?\n for (ColumnCombinationBitset candidate : lkPlus1Candidates) {\n if (candidateGenerationCount.containsKey(candidate)) {\n int count = candidateGenerationCount.get(candidate);\n count++;\n candidateGenerationCount.put(candidate, count);\n } else {\n candidateGenerationCount.put(candidate, 1);\n }\n }\n }\n\n for (ColumnCombinationBitset candidate : candidateGenerationCount\n .keySet()) {\n if (candidateGenerationCount.get(candidate) == (k + 1)) {\n lkPlus1Member = new FunQuadruple(candidate, addPliGenerate(\n candidate).getRawKeyError());\n lkPlus1.add(lkPlus1Member);\n }\n }\n return lkPlus1;\n }", "private void helper(int[] S, int k, int p, ArrayList<ArrayList<Integer>> result, ArrayList<Integer> set) {\n if(k==0) {\n result.add(set);\n return;\n }\n if(S.length-p>=k) {\n ArrayList<Integer> newSet = new ArrayList<Integer>(set);\n newSet.add(S[p]);\n helper(S, k-1, p+1, result, newSet); //if S[p] be choosen\n helper(S, k, p+1, result, set); // if S[p] not be choosen\n }\n\n }", "public static void backtrack(int first, ArrayList<Integer> curr, int[] nums\n , List<List<Integer>> output, int n, int k) {\n if (curr.size() == k) {\n output.add(new ArrayList(curr));\n }\n for (int i = first; i < n; ++i) {\n // add i into the current combination\n curr.add(nums[i]);\n // use next integers to complete the combination\n backtrack(i + 1, curr, nums, output, n, k);\n // backtrack\n curr.remove(curr.size() - 1);\n }\n }", "private List<int[]> validateCandidatesWithList(List<int[]> candidates){\n int size = candidates.get(0).length;\n\n Map<String, SetWithFrequency> frequency = new HashMap<>();\n for (int[] candidate : candidates){\n String key = arrayToString(candidate);\n frequency.put(key, new SetWithFrequency(key, candidate, 0));\n }\n\n\n // Filtering the database using the items appeared frequent in FIS of size k - 1\n\n Set<Integer> dict = new HashSet<>();\n for (int[] list : candidates){\n for (int num : list){\n dict.add(num);\n }\n }\n\n for (int i = 0; i < mDataList.size(); i++) {\n if (skipLines.contains(i)){\n continue;\n }\n\n List<Integer> transaction = mDataList.get(i);\n\n // Remove the item not in dictionary (still frequent set)\n transaction.removeIf(p -> !dict.contains(p));\n\n if (transaction.size() < size){\n skipLines.add(i);\n continue;\n }\n\n // Finds all subset of size k for this transaction\n\n List<List<Integer>> subsets = subsetOfSizeK(transaction, size);\n\n boolean empty = true;\n\n for (List<Integer> subset : subsets){\n String key = listToString(subset);\n if (frequency.containsKey(key)){\n empty = false;\n frequency.get(key).frequency++;\n }\n }\n\n if (empty){\n skipLines.add(i);\n }\n }\n\n\n List<int[]> res = new ArrayList<>();\n for (SetWithFrequency entry : frequency.values()){\n if (entry.frequency >= mThreshold){\n res.add(entry.set);\n\n // Put the Set - frequency entry in result\n mItemSet.add(entry.key + \"(\" + entry.frequency + \")\\n\");\n }\n }\n\n return res;\n }", "private Node removeDuplicate() {\n ArrayList<Integer> values = new ArrayList<Integer>();\n int len = this.getlength();\n Node result = this;\n\n if (len == 1) {\n System.out.println(\"only one element can't duplicate\");\n return result;\n } else {\n Node current = result;\n\n for (int i = 0; i < len; i++) {\n if (values.contains(current.value)) {\n result = result.remove(i);\n len = result.getlength();\n i--; // reset the loop back\n current = current.nextNode;\n } else {\n values.add(current.value);\n current = current.nextNode;\n }\n }\n return result;\n }\n }", "public static boolean duplicateCheck(ArrayList<Integer> aList) {\n\t\tBoolean duplicates = false;\n\t\tint elementIndex = 0;\n\t\twhile (duplicates == false && elementIndex < aList.size()-1) {\n\t\t\tint compareIndex = elementIndex + 1;\n\t\t\twhile (duplicates == false && compareIndex < aList.size()) {\n\t\t\t\t//System.out.println(aList.get(elementIndex));\n\t\t\t\t//System.out.println(aList.get(compareIndex));\n\t\t\t\tif (aList.get(elementIndex) == aList.get(compareIndex)) {\n\t\t\t\t\t//System.out.println(\"duplicate is true\");\n\t\t\t\t\tduplicates = true;\n\t\t\t\t}\n\t\t\t\tcompareIndex++;\n\t\t\t}\n\t\t\telementIndex++;\n\t\t}\n\t\tif (duplicates == true) {\n\t\t\t//System.out.println(\"final return for duplicate is true\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\t//System.out.println(\"final return for duplicate is false\");\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean canPartition(int[] nums) {\n int sum = 0;\n int n = nums.length;\n for (int num : nums) sum += num;\n // sum cannot be splitted evenly\n if ((sum & 1) == 1) return false;\n int target = sum / 2;\n \n // dp[i][j] represents whether 0~i-1 numbers can reach\n // weight capacity j\n boolean[][] dp = new boolean[n+1][target+1];\n \n for (int i = 1; i <= n; i++) dp[i][0] = true;\n for (int j = 1; j <= target; j++) dp[0][j] = false;\n dp[0][0] = true;\n \n for (int i = 1; i <= n; i++) {\n for (int j = 1; j <= target; j++) {\n // if don't pick current number\n dp[i][j] = dp[i-1][j];\n if (j >= nums[i-1]) {\n dp[i][j] = dp[i][j] || dp[i-1][j-nums[i-1]];\n }\n }\n }\n return dp[n][target];\n \n \n // Solution2: optimizing to save space\n // https://leetcode.com/problems/partition-equal-subset-sum/discuss/90592/01-knapsack-detailed-explanation/94996\n int sum = 0;\n int n = nums.length;\n for (int num : nums) sum += num;\n if ((sum & 1) == 1) return false;\n int target = sum / 2;\n boolean[] dp = new boolean[target+1];\n dp[0] = true;\n for (int num : nums) {\n // here is the trick to save space\n // because we have to update dp[j] based on \n // previous dp[j-num] and dp[j] from previous loop.\n // if we update dp from left to right\n // we first update smaller dp which is dp[j-num]\n // then we won't be able to get original dp[j-num] and dp[j]\n // from previous loop, and eventually we get the wrong\n // answer. But if we update dp from right to left\n // we can assure everything is based on previous state\n for (int j = target; j >= num; j--) {\n // if (j >= num) {\n dp[j] = dp[j] || dp[j-num];\n // }\n }\n }\n return dp[target];\n }", "private static boolean collectionHasRepeat(List<Integer> square) {\n\t\tfor(int index = 1; index <= BOUNDARY; index++) {\n\t\t\tif(Collections.frequency(square, index) > 1) return true;\n\t\t}\n\t\treturn false;\n\t}", "public int findDuplicate(int[] nums) {\n if(nums == null || nums.length == 0) return 0;\n\n int slow = nums[0];\n int fast = nums[nums[0]];\n\n while(slow != fast) {\n slow = nums[slow];\n fast = nums[nums[fast]];\n }\n\n fast = 0;\n while(slow != fast) {\n slow = nums[slow];\n fast = nums[fast];\n }\n\n return slow;\n}", "public static int pickingNumbers(List<Integer> a) {\n\t \n\t \tCollections.sort(a);\n\t \t\n\t \t//List<List<Integer>> resultList = new ArrayList();\n\t \t\n\t \tint maxValue = Integer.MIN_VALUE;\n\t \t\n\t \t//a.forEach(i -> System.out.print(\" \"+i));\n\t \t\n\t \tfor(int i=0; i<a.size(); i++) {\n\t \t\t\n\t \t\t//List<Integer> possible = new ArrayList<Integer>();\n\t \t\tint count = 0;\n\t \t\t\t \t\t\n\t \t\tfor(int j=i; j<a.size(); j++) {\n\t \t\t\tif(Math.abs(a.get(i)-a.get(j)) > 1) \n\t \t\t\t\tbreak;\n\t \t\t\t\n\t \t\t\tcount++;\n\t \t\t\t//possible.add(a.get(j));\n\t \t\t}\n\t \t\t\n//\t \t\tif(possible.size() > 1)\n//\t \t\t\tresultList.add(possible);\n\t \t\t\n//\t \t\tif(maxValue < possible.size())\n//\t \t\t\tmaxValue = possible.size();\n\t \t\t\n\t \t\tmaxValue = count > maxValue ? count : maxValue;\n\t \t} \t\n\t \t\n\t \t//return resultList.stream().mapToInt(i -> i.size()).max().getAsInt();\n\t \treturn maxValue;\n\n\t }", "private static void findDuplicatesBruteForce(int[] arr) {\n\t\t\n\t\tfor(int i = 0; i< arr.length ; i++)\n\t\t{\n\t\t\tfor ( int j = i+1 ; j < arr.length ; j++)\n\t\t\t{\n\t\t\t\tif(arr[i] == arr[j])\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(arr[i] + \" is duplicate by brute force method\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public List<List<Integer>> subsetsWithDup(int[] nums) {\n \n if (nums == null || nums.length == 0) {\n res.add(new ArrayList()); \n return res; \n } \n \n Arrays.sort(nums); \n \n List<Integer> buffer = new ArrayList(); \n normalDFS(nums, 0, buffer); \n \n return res; \n }", "public int solution(int K, int[] A) {\n HashMap<Integer,ArrayList<Integer>> map = new HashMap<Integer,ArrayList<Integer>>();\n \n int dup=0,nonDup=0;\n for (int i=0;i< A.length;i++){\n if(2*A[i]==K){\n if(!map.containsKey(A[i])){\n dup++;\n map.put(A[i],new ArrayList<Integer>());\n }\n continue;\n }\n \n if(!map.containsKey(A[i])){\n \tmap.put(A[i],new ArrayList<Integer>());\n }\n map.get(A[i]).add(i);\n nonDup+=map.get(K-A[i]).size();\n }\n return nonDup*2+dup;\n }", "public static List<List<Integer>> subsetsWithDuplicates(int[] nums) {\n List<List<Integer>> answer = new ArrayList<>();\n Arrays.sort(nums); // sort to remove duplicates later\n recurseSubsetsWithDuplicates(answer, new ArrayList<>(), nums, 0);\n return answer;\n }", "public static List<List<Integer>> combinationSum2(int[] candidates, int target) {\n Arrays.sort(candidates);\n List<List<List<Integer>>> dp = new ArrayList<>();\n Map<Integer, Integer> candMap = new HashMap<>();\n for (int i = 0; i < candidates.length; i++) {\n if (candidates[i] > target) break;\n if(candMap.containsKey(candidates[i])) candMap.put(candidates[i], candMap.get(candidates[i]) + 1);\n else candMap.put(candidates[i], 1);\n }\n for (int i = 1; i <= target; i++) {\n Set<List<Integer>> subCand = new HashSet<>();\n for (int j = 0; j < candidates.length && candidates[j] <= i; j++) {\n if (candidates[j] == i) subCand.add(Arrays.asList(i));\n else for (List<Integer> l : dp.get(i - 1 - candidates[j])) {\n if (candidates[j] <= l.get(0)) {\n List<Integer> cl = new ArrayList<>();\n cl.add(candidates[j]);\n cl.addAll(l);\n int cnt = 1;\n for (int a : l) {\n if(a == candidates[j]) cnt++;\n else break;\n }\n if(cnt <= candMap.get(candidates[j])) subCand.add(cl);\n }\n }\n }\n List<List<Integer>> subCandList = new ArrayList<>();\n subCandList.addAll(subCand);\n dp.add(subCandList);\n }\n return dp.get(target - 1);\n }", "private static ArrayList<ArrayList<Integer>> generatePartition(int n) {\n \tArrayList<ArrayList<Integer>> partitions = new ArrayList<>();\n \t// store the partition in non-increasing order, each value should be larger than 1\n \tInteger[] partition = new Integer[n];\n \t// the first partition is n itself\n \tpartition[0] = n;\n \tpartitions.add(new ArrayList<Integer>(Arrays.asList(Arrays.copyOf(partition, 1))));\n \t// if all value are 2, then it can not partition any further\n \tint k = 0;\n \twhile (partition[0] > 2) {\n \t\t// generate next partition\n \t\tint remain = 0;\n \t\t// find the rightmost value which is larger than 2\n \t\twhile (partition[k] < 3) {\n \t\t\tremain += partition[k];\n \t\t\tk--;\n \t\t}\n \t\tpartition[k]--;\n \t\tremain++;\n \t\t// if remain is more, divide it in different values of size partition[k]\n \t\twhile (remain > partition[k]) {\n \t\t\tpartition[k + 1] = partition[k];\n \t\t\tremain -= partition[k];\n \t\t\tk++;\n \t\t}\n \t\tpartition[k + 1] = remain;\n \t\tk++;\n \t\t// ignore all partitions contain value 1\n \t\tif (partition[k] > 1) {\n \t\t\tpartitions.add(new ArrayList<Integer>(Arrays.asList(Arrays.copyOf(partition, k + 1))));\n \t\t}\n \t}\n \treturn partitions;\n }", "public void recursivePermuter(ArrayList<Course> originalCourseList,\n ArrayList<ArrayList<Course>> results, ArrayList<Course> result) {\n if (originalCourseList.size() == result.size()) {\n ArrayList<Course> temp = new ArrayList<>(result);\n results.add(temp);\n }\n for (int i = 0; i < originalCourseList.size(); i++) {\n if (!result.contains(originalCourseList.get(i))) {\n result.add(originalCourseList.get(i));\n recursivePermuter(originalCourseList, results, result);\n result.remove(result.size() - 1);\n }\n }\n }", "public List<List<Integer>> subsetsWithDup(int[] nums) {\n \n if (nums == null || nums.length == 0) {\n res.add(new ArrayList()); \n return res; \n } \n \n Arrays.sort(nums); \n \n List<Integer> buffer = new ArrayList(); \n combinationDFS(nums, 0, buffer, true); \n \n return res; \n }", "public static int firstMissingEffective(int[] x){\n int i = 0;\n while(i<x.length){\n // first two conditions check that element can correspond to index of array\n // third condition checks that they are not in their required position\n // fourth condition checks that there is no duplicate already at their position\n if( x[i]>0 && x[i]<x.length && x[i]-1!=i && x[x[i]-1]!=x[i]) exch(x,i,x[i]-1);\n else i++;\n }\n\n // second pass\n for(int j=0; j < x.length; j++){\n if( x[j]-1!=j) return j+1;\n }\n return x.length+1;\n\n }", "private ArrayList<ArrayList<Course>> semiPermutationOfCourseList(ArrayList<Course> originalCourseList) {\n ArrayList<ArrayList<Course>> results = new ArrayList<ArrayList<Course>>();\n if (originalCourseList == null || originalCourseList.size() == 0) {\n return results;\n }\n\n for (int i = 0; i < originalCourseList.size(); i++) {\n ArrayList<Course> tempList = new ArrayList<>();\n tempList = new ArrayList<>(originalCourseList.subList(i, originalCourseList.size()));\n for (int j = 0; j < i; j++) {\n tempList.add(originalCourseList.get(j));\n }\n results.add(tempList);\n }\n\n return results;\n }", "private static List<Integer> reorganize(List<Integer> result){\n List<Integer> outcome=new ArrayList<>();\n result.sort(Comparator.comparingInt(o -> o));\n if(!result.isEmpty()){\n outcome.add(result.get(0));\n for(int i=1;i<result.size();i++){\n if(!result.get(i).equals(result.get(i-1)))\n outcome.add(result.get(i));\n }\n }\n return outcome;\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n \n boolean[] isNotPrime = new boolean[(N - 1 - 1) / 2 + 1];\n List<Integer> list = new ArrayList<Integer>();\n HashSet<Integer> primes = new HashSet<Integer>();\n \n list.add(2);\n primes.add(2);\n long sum = 0;\n for (int i = 1; i < isNotPrime.length; i++) {\n if (isNotPrime[i]) {\n continue;\n }\n list.add(2 * i + 1);\n primes.add(2 * i + 1);\n long nextIndex = (((long) 2 * i + 1) * (2 * i + 1) - 1) / 2;\n if (nextIndex >= isNotPrime.length) {\n continue;\n }\n for (int j = ((2 * i + 1) * (2 * i + 1) - 1) / 2; j < isNotPrime.length; j += 2 * i + 1) {\n isNotPrime[j] = true;\n }\n }\n int index = 0;\n while (index < list.size()) {\n int curPrime = list.get(index);\n index++;\n if (curPrime < 10) {\n continue;\n }\n int base = 1;\n while (curPrime / base > 9) {\n base *= 10;\n }\n int leftTruncate = curPrime;\n int rightTruncate = curPrime;\n boolean isValid = true;\n while (base != 1) {\n leftTruncate = leftTruncate - leftTruncate / base * base;\n rightTruncate = rightTruncate / 10;\n base /= 10;\n if (primes.contains(leftTruncate) == false || primes.contains(rightTruncate) == false) {\n isValid = false;\n break;\n }\n }\n if (isValid) {\n sum += curPrime;\n }\n }\n System.out.println(sum);\n scanner.close();\n }", "public ArrayList<ArrayList<Integer>> subsetsWithDup(int[] S) {\n Arrays.sort(S);\n ArrayList<ArrayList<Integer>> ret = new ArrayList<ArrayList<Integer>> ();\n int n = S.length;\n int size = 1 << n;\n for (int i = 0; i < size; i ++) {\n ArrayList<Integer> r = new ArrayList<Integer> ();\n int k = i;\n int j = 0;\n boolean flag = true;\n while (k != 0) {\n if ((k & 1) == 1) {\n if (j + 1 < n && S[j] == S[j + 1] && (k & 2) == 0) {\n flag = false;\n break;\n }\n r.add(S[j]);\n }\n j ++;\n k = k >> 1;\n }\n if (flag) {\n ret.add(r);\n }\n }\n return ret;\n }", "public int[] hasNSequentially(int lengthOfHand) {//check for Ace case //need to NOT ALLOW DUPLICATES\n ArrayList<Card> handList = new ArrayList<Card>();\n int solution[] = {0, 0};//number in a row, lowest number of that\n boolean foundSomeNInAFow = false;\n int hasAce = 0;\n\n int usedNumbers[] = new int[13];//2,3,4,5,6,7,8,9,10,j,q,k,a --> THIS HANDLES THE ACE CASE\n for (int i = 0; i < lengthOfHand; i++) {//was\n usedNumbers[allCards[i].value - 2]++;//USED\n if (usedNumbers[allCards[i].value - 2] == 1) {//handles NOT having doubles of numbers like 2 3 4 4 5 \n handList.add(this.allCards[i]);\n if (this.allCards[i].value == 14) {\n Card c = new Card(1, this.allCards[i].suit);\n handList.add(0, c);//add to front..shifts elements to right\n }\n }\n }\n\n for (int i = 0; i < handList.size() - 4; i++) {//check for 5 in a row, //was - 4\n int val = handList.get(i).value;\n int counter = 0;\n for (int j = 0; j < 4; j++) {//was 4\n if (handList.get(j + i + 1).value == val + 1 + j) {\n counter++;\n } else {\n break;\n }\n if (counter == 4) {//was 4\n foundSomeNInAFow = true;\n solution[0] = 5;\n solution[1] = val;\n }\n }\n }\n\n if (foundSomeNInAFow == false) {\n for (int i = 0; i < handList.size() - 3; i++) {//check for 5 in a row, //was - 4\n int val = handList.get(i).value;\n int counter = 0;\n for (int j = 0; j < 3; j++) {\n if (handList.get(j + i + 1).value == val + 1 + j) {\n counter++;\n } else {\n break;\n }\n if (counter == 3) {\n // System.out.println(\"yes 4 sequentially\");\n foundSomeNInAFow = true;\n solution[0] = 4;\n solution[1] = val;\n }\n }\n }\n }\n\n if (foundSomeNInAFow == false) {\n for (int i = 0; i < handList.size() - 2; i++) {//check for 5 in a row, //was - 4\n int val = handList.get(i).value;\n int counter = 0;\n for (int j = 0; j < 2; j++) {\n if (handList.get(j + i + 1).value == val + 1 + j) {\n counter++;\n } else {\n break;\n }\n if (counter == 2) {\n // System.out.println(\"yes 3 sequentially\");\n foundSomeNInAFow = true;\n solution[0] = 3;\n solution[1] = val;\n }\n }\n }\n }\n\n if (foundSomeNInAFow == false) {\n for (int i = 0; i < handList.size() - 1; i++) {//check for 5 in a row, //was - 4\n int val = handList.get(i).value;\n int counter = 0;\n for (int j = 0; j < 1; j++) {\n if (handList.get(j + i + 1).value == val + 1 + j) {\n counter++;\n } else {\n break;\n }\n if (counter == 1) {\n //System.out.println(\"yes 2 sequentially\");\n foundSomeNInAFow = true;\n solution[0] = 2;\n solution[1] = val;\n\n }\n }\n }\n }\n\n return solution;//return at end that way if there is 2,3,5,7,8 it returns 7 8 not 2 3\n\n }", "static List DuplicateElements(List<Character> characters){\r\n\t\tList newlist=new ArrayList<>();\r\n\t\tfor(char c:characters)\r\n\t\t{\r\n\t\t\tnewlist.add(Collections.nCopies(2,c ));\r\n\t\r\n\t\t}\r\n\tSystem.out.println(newlist);\r\n\treturn newlist;\r\n\t}" ]
[ "0.64031655", "0.630097", "0.6199406", "0.61460775", "0.6065193", "0.6030533", "0.6024157", "0.5986377", "0.59683335", "0.5961501", "0.5891623", "0.5890053", "0.58784443", "0.58484197", "0.58288515", "0.58181924", "0.57956016", "0.5789953", "0.578556", "0.575955", "0.57560766", "0.5750759", "0.5745011", "0.57421637", "0.5715765", "0.571245", "0.5701433", "0.570099", "0.5697825", "0.569099", "0.5688818", "0.5688749", "0.5687951", "0.568663", "0.567577", "0.5671091", "0.5655576", "0.56531453", "0.5643594", "0.5643297", "0.56426775", "0.56310934", "0.56187403", "0.561585", "0.5612475", "0.56013644", "0.55883074", "0.5579949", "0.55783427", "0.55781907", "0.5576198", "0.555977", "0.5553606", "0.555359", "0.55532056", "0.55523413", "0.55517614", "0.55457944", "0.5531052", "0.55285215", "0.55251473", "0.5518483", "0.5516361", "0.5513859", "0.5507192", "0.55013996", "0.54983306", "0.5497419", "0.5496646", "0.5494294", "0.54889506", "0.54784817", "0.54677236", "0.54626113", "0.54558355", "0.5454445", "0.54516804", "0.5450214", "0.5447381", "0.543528", "0.54271346", "0.54249686", "0.5422652", "0.54208493", "0.5419182", "0.5417741", "0.5417313", "0.5412366", "0.5401542", "0.53991634", "0.5395155", "0.5393752", "0.53878224", "0.53869283", "0.53830177", "0.5381823", "0.5374353", "0.5368971", "0.5368174", "0.53668225", "0.53652" ]
0.0
-1
/ First try. recursion.
public static ArrayList<ArrayList<Integer>> combine1(int n, int k) { ArrayList<ArrayList<Integer>> result = new ArrayList<ArrayList<Integer>>(); if (n < 1 || k < 1) { return result; } if (n < k) { return result; } if (k == 1) { for (int i = 1; i <= n; i++) { ArrayList<Integer> aResult = new ArrayList<Integer>(); aResult.add(i); result.add(aResult); } return result; } for (int i = n; i > 0; i--) { ArrayList<ArrayList<Integer>> temp = combine1(i - 1, k - 1); for (ArrayList<Integer> aResult : temp) { aResult.add(i); } result.addAll(temp); } // get rid of duplicate sets LinkedHashSet<ArrayList<Integer>> finalResult = new LinkedHashSet<ArrayList<Integer>>(); for (ArrayList<Integer> aResult : result) { Collections.sort(aResult); finalResult.add(aResult); } result = new ArrayList<ArrayList<Integer>>(finalResult); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void p(){\n System.out.println(\"My recursion example 1\");\n p();\n }", "@Test\n\t\tpublic void applyRecursivelyGoal() {\n\t\t\tassertSuccess(\" ;H; ;S; s ⊆ ℤ |- r∈s ↔ s\",\n\t\t\t\t\trm(\"\", ri(\"\", rm(\"2.1\", empty))));\n\t\t}", "boolean isRecursive();", "static void recursive(SootMethod method){\r\n \tvisited.put(method.getSignature(),true);\r\n \tIterator <MethodOrMethodContext> target_1=new Targets(cg.edgesOutOf(method));\r\n \r\n \tif(target_1!=null){\r\n \t\twhile(target_1.hasNext())\r\n \t\t{\r\n \t\t\tSootMethod target_2=(SootMethod)target_1.next();\r\n \t\t\tSystem.out.println(\"\\t\"+ target_2.getSignature().toString());\r\n \t\t\tif(!visited.containsKey(target_2.getSignature()))\r\n \t\t\t\trecursive(target_2);\r\n \t\t}\r\n \t}\r\n \t}", "static int recursiva1(int n)\n\t\t{\n\t\tif (n==0)\n\t\t\treturn 10; \n\t\tif (n==1)\n\t\t\treturn 20; \n\t\treturn recursiva1(n-1) - recursiva1 (n-2);\t\t\n\t\t}", "public void inOrderTraverseRecursive();", "static long factorialRecurse(int n) {\r\n if (n == 0 || n == 1) {\r\n return 1;\r\n }\r\n return factorialRecurse(n - 1) * n;\r\n }", "private static int recursion(int x) {\n\t\tif(x == 1) return 0;\n\n\t\tif(dp[x] != -1) return dp[x];\n\t\tint result = Integer.MAX_VALUE;\n\n\t\tif(x % 3 == 0) result = Math.min(recursion(x / 3), result);\n\t\tif(x % 2 == 0) result = Math.min(recursion(x >> 1), result);\n\t\tif(x >= 1) result = Math.min(recursion(x - 1), result);\n\n\t\treturn dp[x] = result + 1;\n\t}", "public static void main(String[] args){\n LinkedListDeque<String> lld = new LinkedListDeque<>();\n lld.addFirst(\"Hello\");\n lld.addLast(\"Java\");\n lld.addLast(\"!\");\n\n String s0 = lld.getRecursive(0);\n String s1 = lld.getRecursive(1);\n String s2 = lld.getRecursive(2);\n System.out.println(s0 + s1 + s2);\n System.out.println(lld.getRecursive(556));\n //lld.getRecursive(2);\n }", "boolean hasRecursive();", "private static void checkRecursion(RolapEvaluator eval, int c) {\n RolapMember[] members = eval.currentMembers.clone();\n Member expanding = eval.expandingMember;\n\n // Find an ancestor evaluator that has identical context to this one:\n // same member context, and expanding the same calculation.\n while (true) {\n if (c < 0) {\n eval = eval.parent;\n if (eval == null) {\n return;\n }\n c = eval.commandCount - 1;\n } else {\n Command command = (Command) eval.commands[c];\n switch (command) {\n case SET_CONTEXT:\n int memberOrdinal = (Integer) eval.commands[c - 1];\n RolapMember member = (RolapMember) eval.commands[c - 2];\n members[memberOrdinal] = member;\n break;\n case SET_EXPANDING:\n expanding = (RolapMember) eval.commands[c - 2];\n if (Arrays.equals(members, eval.currentMembers)\n && expanding == eval.expandingMember)\n {\n throw FunUtil.newEvalException(\n null,\n \"Infinite loop while evaluating calculated member '\"\n + eval.expandingMember + \"'; context stack is \"\n + eval.getContextString());\n }\n }\n c -= command.width;\n }\n }\n }", "@Test\n public void withRecursion() {\n assertThat(ReturnKthtoLast.withRecursion(list, 4), is(2));\n }", "public void k()\r\n/* 238: */ {\r\n/* 239:258 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 240:259 */ if (this.a[i] != null) {\r\n/* 241:260 */ this.a[i].a(this.d.o, this.d, i, this.c == i);\r\n/* 242: */ }\r\n/* 243: */ }\r\n/* 244: */ }", "private static void checkRecurse(Vector<XSParticleDecl> dChildren, int min1, int max1, SubstitutionGroupHandler dSGHandler, Vector<XSParticleDecl> bChildren, int min2, int max2, SubstitutionGroupHandler bSGHandler) throws XMLSchemaException {\n/* 1258 */ if (!checkOccurrenceRange(min1, max1, min2, max2)) {\n/* 1259 */ throw new XMLSchemaException(\"rcase-Recurse.1\", new Object[] {\n/* 1260 */ Integer.toString(min1), (max1 == -1) ? \"unbounded\" : \n/* 1261 */ Integer.toString(max1), \n/* 1262 */ Integer.toString(min2), (max2 == -1) ? \"unbounded\" : \n/* 1263 */ Integer.toString(max2)\n/* */ });\n/* */ }\n/* 1266 */ int count1 = dChildren.size();\n/* 1267 */ int count2 = bChildren.size();\n/* */ \n/* 1269 */ int current = 0;\n/* 1270 */ for (int i = 0; i < count1; i++) {\n/* */ \n/* 1272 */ XSParticleDecl particle1 = dChildren.elementAt(i);\n/* 1273 */ int k = current; while (true) { if (k < count2) {\n/* 1274 */ XSParticleDecl particle2 = bChildren.elementAt(k);\n/* 1275 */ current++;\n/* */ try {\n/* 1277 */ particleValidRestriction(particle1, dSGHandler, particle2, bSGHandler);\n/* */ \n/* */ break;\n/* 1280 */ } catch (XMLSchemaException e) {\n/* 1281 */ if (!particle2.emptiable())\n/* 1282 */ throw new XMLSchemaException(\"rcase-Recurse.2\", null); \n/* */ } k++; continue;\n/* */ } \n/* 1285 */ throw new XMLSchemaException(\"rcase-Recurse.2\", null); }\n/* */ \n/* */ } \n/* */ \n/* 1289 */ for (int j = current; j < count2; j++) {\n/* 1290 */ XSParticleDecl particle2 = bChildren.elementAt(j);\n/* 1291 */ if (!particle2.emptiable()) {\n/* 1292 */ throw new XMLSchemaException(\"rcase-Recurse.2\", null);\n/* */ }\n/* */ } \n/* */ }", "@Test\n public void testRecursion() throws Exception {\n//TODO: Test goes here... \n/* \ntry { \n Method method = Solution.getClass().getMethod(\"recursion\", ArrayList<Integer>.class, TreeNode.class); \n method.setAccessible(true); \n method.invoke(<Object>, <Parameters>); \n} catch(NoSuchMethodException e) { \n} catch(IllegalAccessException e) { \n} catch(InvocationTargetException e) { \n} \n*/\n }", "void calculating(int depth);", "private static void backtrackHelper(TreeNode current, int targetSum, List<TreeNode> path, List<List<Integer>> allPaths){\n if(current.left == null && current.right == null){\n if(targetSum == current.val){\n List<Integer> tempResultList = new ArrayList<>();\n // for(TreeNode node: path){\n // tempResultList.add(node.val);\n // }\n tempResultList.addAll(path.stream().mapToInt(o -> o.val).boxed().collect(Collectors.toList()));\n tempResultList.add(current.val);\n\n allPaths.add(tempResultList); // avoid reference puzzle\n }\n return;\n }\n\n // loop-recursion (Here only 2 choices, so we donot need loop)\n if(current.left != null){\n path.add(current);\n backtrackHelper(current.left, targetSum - current.val, path, allPaths);\n path.remove(current);\n }\n\n if(current.right != null){\n path.add(current);\n backtrackHelper(current.right, targetSum - current.val, path, allPaths);\n path.remove(current);\n }\n }", "@Test public void mixedSelfRecursive() {\n check(\"declare function local:inc($i) { $i + 1 };\" +\n \"declare function local:f($i) { if($i eq 12345) then $i \" +\n \"else local:f(local:inc($i)) };\" +\n \"local:f(0)\",\n\n 12345,\n\n exists(Util.className(If.class) + '/' + Util.className(StaticFuncCall.class) +\n \"[@tailCall eq 'true']\")\n );\n }", "@Test public void selfRecursive() {\n check(\"declare function local:f($i) { if($i eq 12345) then $i else local:f($i+1) };\" +\n \"local:f(0)\",\n\n 12345,\n\n exists(Util.className(If.class) + '/' + Util.className(StaticFuncCall.class) +\n \"[@tailCall eq 'true']\")\n );\n }", "public static int recursiveFactorial(int num){\n\n //base case\n if(num == 0){\n return 1;\n }\n\n //recursive call\n return num * recursiveFactorial(num-1);\n\n //int 3 would be recursing down to recursiveFactorial(0), checking each time for base case\n //adding to call stack, then recursing up in reverse order through the\n // call stack to recursiveFactorial(3) with 3 * 2\n // or num - 1\n\n //sample call stack\n //recursiveFactorial(0) = returns right away, then pops and recurses up\n //recursiveFactorial(1)\n // recursiveFactorial(2)\n //recursiveFactorial(3)\n }", "private void dfs(String s, int leftCount, int rightCount, int openCount, int index, StringBuilder sb, Set<String> res) {\n if (index == s.length()) {\n if (leftCount == 0 && rightCount == 0 && openCount == 0) res.add(sb.toString());\n return;\n }\n if (leftCount < 0 || rightCount < 0 || openCount < 0) return;\n int len = sb.length();\n if (s.charAt(index) == '(') {\n dfs(s, leftCount - 1, rightCount, openCount, index + 1, sb, res);\n dfs(s, leftCount, rightCount, openCount + 1, index + 1, sb.append('('), res);\n } else if (s.charAt(index) == ')') {\n dfs(s, leftCount, rightCount - 1, openCount, index + 1, sb, res);\n dfs(s, leftCount, rightCount, openCount - 1, index + 1, sb.append(')'), res);\n } else {\n dfs(s, leftCount, rightCount, openCount, index + 1, sb.append(s.charAt(index)), res);\n }\n sb.setLength(len);\n }", "private static int fab_recursive_2(int kth) {\n\n\t\tif (kth == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (kth == 1) {\n\t\t\treturn fab_recursive_2(kth - 1) + 1;\n\t\t}\n\t\treturn fab_recursive_2(kth-1) + fab_recursive_2(kth-2);\n\t}", "private static void recursiveFixedSumPairs(/* determine parameters here */){\r\n\t\t// complete this method\r\n\t\t\r\n\t}", "public String preorderTraverse(){\r\n\t\t\r\n\t\t//the recursive call to the private method\r\n\t\t//StringBuffer is used because it is passed by reference\r\n\t\t//StringBuffer can be changed in recursive calls\r\n\t\treturn preorderTraverse(this, new StringBuffer(\"\"));\r\n\t}", "public void smell() {\n\t\t\n\t}", "protected int sumRecursive(int a, int b){\n if (b == 0){\n return a;\n } else {\n if (b > 0){\n return sumRecursive(a + 1, b - 1);\n } else {\n return sumRecursive(a - 1, b + 1);\n }\n }\n }", "private static void getClassHierarchyRecurs(Class clazz, boolean flag) {\n Class classFirst = null;\n if (flag) {\n classFirst = clazz;\n }\n if (clazz != null) {\n clazz = clazz.getSuperclass();\n getClassHierarchyRecurs(clazz, false);\n }\n if (clazz != null) {\n System.out.println(clazz.getName());\n System.out.println(\" ^\");\n System.out.println(\" |\");\n }\n if (classFirst != null) {\n System.out.println(classFirst.getName());\n }\n }", "public static String recursiveMethod(String str) {\n\t\tif (str.length() == 0) {\n\t\t\treturn \"\";\n\t\t}\n\t\treturn str.substring(str.length() - 1) + recursiveMethod(str.substring(0, str.length() - 1));\n\t}", "@Test\r\n\tpublic void test06_allPositive() {\r\n\t\tRecursiveMethods rm = new RecursiveMethods();\r\n\r\n\t\tint[] a1 = {};\r\n\t\tassertTrue(rm.allPositive(a1));\r\n\t\tint[] a2 = { 1, 2, 3, 4, 5 };\r\n\t\tassertTrue(rm.allPositive(a2));\r\n\t\tint[] a3 = { 1, 2, -3, 4, 5 };\r\n\t\tassertFalse(rm.allPositive(a3));\r\n\t}", "static int recursion(int steps, int arrLen, int index, int[][] dp) {\n\n if (steps == 0 && index == 0) {\n return 1;\n }\n\n // extra base condition is index> steps , because we cannot return from there at all.\n if (steps == 0 || index < 0 || index >= arrLen || index > steps) return 0;\n\n if (dp[steps][index] != -1) return dp[steps][index];\n\n int ans = 0;\n\n // we can go either left , right or stay there itself.\n ans = (ans + recursion(steps - 1, arrLen, index, dp)) % MOD;\n ans = (ans + recursion(steps - 1, arrLen, index + 1, dp)) % MOD;\n ans = (ans + recursion(steps - 1, arrLen, index - 1, dp)) % MOD;\n dp[steps][index] = ans % MOD;\n return dp[steps][index];\n }", "private static int returnItself(int itself, int dummy) {\r\n return itself;\r\n }", "private void level7() {\n }", "public void inOrderTraverseIterative();", "private void helper(TreeNode root) {\n if (root == null) {\n return;\n }\n\n helper(root.left);\n ans.add(root.val);\n helper(root.right);\n }", "void traverseLevelOrder1() {\n\t\tint h = height(root);\n\t\tint i;\n\t\tfor (i = 1; i <= h; i++)\n\t\t\tprintGivenLevel(root, i);\n\t}", "private void poetries() {\n\n\t}", "private static void checkRecurseUnordered(Vector<XSParticleDecl> dChildren, int min1, int max1, SubstitutionGroupHandler dSGHandler, Vector<XSParticleDecl> bChildren, int min2, int max2, SubstitutionGroupHandler bSGHandler) throws XMLSchemaException {\n/* 1306 */ if (!checkOccurrenceRange(min1, max1, min2, max2)) {\n/* 1307 */ throw new XMLSchemaException(\"rcase-RecurseUnordered.1\", new Object[] {\n/* 1308 */ Integer.toString(min1), (max1 == -1) ? \"unbounded\" : \n/* 1309 */ Integer.toString(max1), \n/* 1310 */ Integer.toString(min2), (max2 == -1) ? \"unbounded\" : \n/* 1311 */ Integer.toString(max2)\n/* */ });\n/* */ }\n/* 1314 */ int count1 = dChildren.size();\n/* 1315 */ int count2 = bChildren.size();\n/* */ \n/* 1317 */ boolean[] foundIt = new boolean[count2];\n/* */ \n/* 1319 */ for (int i = 0; i < count1; i++) {\n/* 1320 */ XSParticleDecl particle1 = dChildren.elementAt(i);\n/* */ \n/* 1322 */ int k = 0; while (true) { if (k < count2) {\n/* 1323 */ XSParticleDecl particle2 = bChildren.elementAt(k);\n/* */ try {\n/* 1325 */ particleValidRestriction(particle1, dSGHandler, particle2, bSGHandler);\n/* 1326 */ if (foundIt[k]) {\n/* 1327 */ throw new XMLSchemaException(\"rcase-RecurseUnordered.2\", null);\n/* */ }\n/* 1329 */ foundIt[k] = true;\n/* */ \n/* */ \n/* */ break;\n/* 1333 */ } catch (XMLSchemaException xMLSchemaException) {}\n/* */ k++;\n/* */ continue;\n/* */ } \n/* 1337 */ throw new XMLSchemaException(\"rcase-RecurseUnordered.2\", null); }\n/* */ \n/* */ } \n/* */ \n/* 1341 */ for (int j = 0; j < count2; j++) {\n/* 1342 */ XSParticleDecl particle2 = bChildren.elementAt(j);\n/* 1343 */ if (!foundIt[j] && !particle2.emptiable()) {\n/* 1344 */ throw new XMLSchemaException(\"rcase-RecurseUnordered.2\", null);\n/* */ }\n/* */ } \n/* */ }", "void nest();", "public abstract void bepaalGrootte();", "private void generateSubwordsHelper(String whatsLeft, String parent,\n\t\t\tSet<String> returnSet, TreeNode dictPointer,\n\t\t\tTreeNode myParent) {\n\n\t\tif (whatsLeft.length() == 0 && dictPointer.getIsWord()) {\n\t\t\treturnSet.add(parent);\n\t\t} else {\n\t\t\tif (dictPointer.getIsWord()) {\n\t\t\t\treturnSet.add(parent);\n\t\t\t}\n\t\t\tHashSet<Character> iveTriedSoFar = new HashSet<Character>();\n\t\t\tfor (int i = 0; i < whatsLeft.length(); i++) {\n\t\t\t\t// Make move\n\t\t\t\t// For each chracter left in whats left, remove that character\n\t\t\t\t// from whats left, and append it to the end of parent\n\t\t\t\tString moveMadeWhatsLeft = whatsLeft;\n\t\t\t\tif (i == 0) {\n\t\t\t\t\tmoveMadeWhatsLeft = moveMadeWhatsLeft.substring(1,\n\t\t\t\t\t\t\tmoveMadeWhatsLeft.length());\n\t\t\t\t} else if (i == moveMadeWhatsLeft.length() - 1) {\n\t\t\t\t\tmoveMadeWhatsLeft = moveMadeWhatsLeft.substring(0,\n\t\t\t\t\t\t\tmoveMadeWhatsLeft.length() - 1);\n\t\t\t\t} else {\n\t\t\t\t\tmoveMadeWhatsLeft = moveMadeWhatsLeft.substring(0, i)\n\t\t\t\t\t\t\t+ moveMadeWhatsLeft.substring(i + 1,\n\t\t\t\t\t\t\t\t\tmoveMadeWhatsLeft.length());\n\t\t\t\t}\n\t\t\t\tString moveMadeParent = parent + whatsLeft.charAt(i);\n\n\t\t\t\t// call recursive\n\t\t\t\tif (dictPointer.getChildContaining(whatsLeft.charAt(i)) != null\n\t\t\t\t\t\t&& !iveTriedSoFar.contains(whatsLeft.charAt(i))) {\n\t\t\t\t\tiveTriedSoFar.add(whatsLeft.charAt(i));\n\t\t\t\t\tgenerateSubwordsHelper(\n\t\t\t\t\t\t\tmoveMadeWhatsLeft,\n\t\t\t\t\t\t\tmoveMadeParent,\n\t\t\t\t\t\t\treturnSet,\n\t\t\t\t\t\t\tdictPointer.getChildContaining(whatsLeft.charAt(i)),\n\t\t\t\t\t\t\tdictPointer);\n\t\t\t\t} else {\n\t\t\t\t\t// Do not call method (skip that subtree) PRUNING! .. like a\n\t\t\t\t\t// boss\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private boolean recursiveHelper(Deque<Character> item) {\n if (item.size() <= 1) {\n return true;\n }\n if(item.removeFirst() == item.removeLast()) {\n return recursiveHelper(item);\n } else {\n return false;\n }\n }", "public static void print_recursion(int a){\r\n if(a<2){\r\n array.add(a);\r\n for(int i=1;i<=array.size();i++){\r\n System.out.print(array.get(array.size()-i));\r\n }\r\n System.out.println(\"\");\r\n }\r\n else{\r\n array.add(a%2);\r\n print_recursion(a/2);\r\n }\r\n }", "public static void main(String[] args){\n\t\t\n\t\tfor (int i = 0; i<999999;i++) results.add(0);\t\n\n\t\tsetChain(1L);\n\t\tboolean switcher = true;\n\t\t//while switch=true ... and once chain length is added to, switch = false\n \t\tlong best = 0L;\n\t\tint index=0;\n\t\t\t\n\t\tfor (long j = 1L; j < 1000000L; j++) {\n\n\t\t\tsetCur((int)j);\n\n\t\t\tfindChain(j);//} catch(Exception e){System.out.println(\"stackOverFlow :D\");}\n\t\t\tif (getChain() > best) {best = getChain(); index=getCur();}\n\t\t\t//now store results for later use if we come across that number.\n\t\t\tresults.set(getCur()-1, (int)getChain());\t\n\t\t\tsetChain(1L); //reset\n\t\t\t/* \t\n\t\t\tswitcher=true;\n\t\t\tint i = j;\n\t\t\twhile (switcher) {\n\n\t\t\t\tif (i==1) {//results.add(chainLength); \n\t\t\t\t\tif (chainLength > best) { best=chainLength; index = j;}\n\t\t\t \tchainLength=1; switcher=false;}\n\t\n\t\t\t\telse { i=recurse(i); chainLength++; }\t\n\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t*/\n//\t\t }\n\t\t}\n\t\tSystem.out.println(index);\n\t}", "static void subsequence(String str)\n {\n // iterate over the entire string\n for (int i = 0; i < str.length(); i++) {\n \n // iterate from the end of the string\n // to generate substrings\n for (int j = str.length(); j > i; j--) {\n String sub_str = str.substring(i, j);\n \n if (!st.contains(sub_str))\n st.add(sub_str);\n \n // drop kth character in the substring\n // and if its not in the set then recur\n for (int k = 0; k < sub_str.length(); k++) {\n StringBuffer sb = new StringBuffer(sub_str);\n \n // drop character from the string\n sb.deleteCharAt(k);\n if (!st.contains(sb)) {\n \tsubsequence(sb.toString());\n }\n }\n }\n }\n }", "protected abstract void traverse();", "private boolean dfs(String word, int idx, TrieNode parent) {\n if (idx == word.length()) {//since it's parent node so idx cannot be len - 1\n return parent.isLeaf;\n }\n if (word.charAt(idx) == '.') {\n for (TrieNode curr : parent.map.values()) {\n boolean res = dfs(word, idx + 1, curr);\n if (res) return true;\n }\n } else {\n if (parent.map.containsKey(word.charAt(idx))) {\n return dfs(word, idx + 1, parent.map.get(word.charAt(idx)));\n }\n }\n return false;\n}", "private static void iddfs(State curr, int depth) {\n for(int i = 0; i <= depth; i++) {\r\n\r\n if(curr.isGoalState()) \r\n System.out.println(i+\":\"+curr.getOrderedPair()+\" Goal\");//initial is goal state\r\n else\r\n System.out.println(i+\":\"+curr.getOrderedPair());//initial\r\n\r\n curr.close.add(curr);\r\n State currState = curr;\r\n while(!currState.isGoalState()) {\r\n if(currState.depth < i)\r\n curr.buildStack(currState.getSuccessors(currState));\r\n System.out.print(i+\":\");\r\n curr.printHelp(currState, 5);\r\n if(!curr.open.isEmpty()) {\r\n currState = curr.open.get(curr.open.size()-1);\r\n curr.close.add(curr.open.remove(curr.open.size()-1));\r\n } else {\r\n break;\r\n }\r\n }\r\n\r\n if(currState.isGoalState()) {\r\n System.out.println(i+\":\"+currState.getOrderedPair() + \" Goal\");\r\n curr.printPath(currState);\r\n return;\r\n }\r\n curr.open.clear(); curr.close.clear();\r\n }\r\n }", "private void splay(Node tree) {\n assert(tree != null);\n while(tree.parent != null && tree.parent.parent != null) { //while has a parent and a grandparent\n if(tree.parent.left == tree && tree.parent.parent.left == tree.parent) { //zig-zig case\n rotateRight(tree.parent.parent);\n rotateRight(tree.parent);\n } else if(tree.parent.right == tree && tree.parent.parent.left == tree.parent) { //zig-zag case\n rotateLeft(tree.parent);\n rotateRight(tree.parent);\n } else if(tree.parent.right == tree && tree.parent.parent.right == tree.parent) { //zag-zag case\n rotateLeft(tree.parent.parent);\n rotateLeft(tree.parent);\n } else if(tree.parent.left == tree && tree.parent.parent.right == tree.parent) { //zag-zig case\n rotateRight(tree.parent);\n rotateLeft(tree.parent);\n }\n }\n if(tree != root) { //tree is only of depth 1\n if (root.left == tree) { //zig\n rotateRight(root);\n } else { //zag\n rotateLeft(root);\n }\n }\n }", "private static int dfs( int n, int level, int min ) {\n\n if (n == 0 || level >= min) return level; //returns only number of perfect squares\n\n for (int i = (int) Math.sqrt(n); i > 0; i--) { //Math.sqrt = same as prime-sieve of prime numbers\n\n min = dfs(n - ((int) Math.pow(i, 2)), level + 1, min);\n\n }\n return min;\n }", "int expand();", "private int helper(List<List<Integer>> res, TreeNode root) {\n if (root == null) return -1;\n int left = helper(res, root.left);\n int right = helper(res, root.right);\n int curr = Math.max(left, right) + 1;\n if (res.size() == curr) res.add(new ArrayList<>());\n res.get(curr).add(root.val);\n return curr;\n }", "private boolean helperDFS(Node current){\n\n if(expandedNode.size() == 999){\n //limit has been reached. jump out of recursion.\n expandedNode.add(current);\n System.out.println(\"No solution found.\");\n printExpanded(expandedNode);\n System.exit(0);\n return false;\n }\n\n boolean b = cycleCheck(current,expandedNode);\n\n if(!b){\n expandedNode.add(current);\n }else{\n return false;\n }\n\n if(current.getDigit().getDigitString().equals(goalNode.getDigit().getDigitString())){\n //goal reached.\n //expandedNode.add(current);\n solutionPath(current);\n printExpanded(expandedNode);\n System.exit(0);\n }\n\n //Now make the children.\n\n if(!forbidden.contains(current.getDigit().getDigitString())){\n\n if(current.getDigit().last_changed != 0){\n\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n }\n\n if(current.getDigit().last_changed != 1){\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n }\n\n if(current.getDigit().last_changed != 2){\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n }\n }\n return false;\n }", "static String recurse(int j,int p,int s,int steps)\r\n\t{\n\t\tif (steps==0)\r\n\t\t\treturn \"\";\r\n\t\tif (j==J)\r\n\t\t\treturn null;\r\n\t\tif ((J-j-1)*P*S+(P-p-1)*S+S-s<steps)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tint sn=s+1;\r\n\t\tint pn=p+(sn/S);\r\n\t\tint jn=j+(pn/P);\r\n\t\tpn%=P;\r\n\t\tsn%=S;\r\n\t\t\r\n\t\tString sol=recurse(jn,pn,sn,steps);\r\n\t\tif (sol!=null)\r\n\t\t\treturn sol;\r\n\t\t\r\n\t\tif (jp[j][p]<K && js[j][s]<K && ps[p][s]<K)\r\n\t\t{\r\n\t\t\tjp[j][p]++;\r\n\t\t\tjs[j][s]++;\r\n\t\t\tps[p][s]++;\r\n\t\t\tsol=recurse(jn,pn,sn,steps-1);\r\n\t\t\tif (sol!=null)\r\n\t\t\t\treturn \"\"+(j+1)+\" \"+(p+1)+\" \"+(s+1)+\"\\n\"+sol;\r\n\t\t\tjp[j][p]--;\r\n\t\t\tjs[j][s]--;\r\n\t\t\tps[p][s]--;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private static void checkRecurseLax(Vector<XSParticleDecl> dChildren, int min1, int max1, SubstitutionGroupHandler dSGHandler, Vector<XSParticleDecl> bChildren, int min2, int max2, SubstitutionGroupHandler bSGHandler) throws XMLSchemaException {\n/* 1357 */ if (!checkOccurrenceRange(min1, max1, min2, max2)) {\n/* 1358 */ throw new XMLSchemaException(\"rcase-RecurseLax.1\", new Object[] {\n/* 1359 */ Integer.toString(min1), (max1 == -1) ? \"unbounded\" : \n/* 1360 */ Integer.toString(max1), \n/* 1361 */ Integer.toString(min2), (max2 == -1) ? \"unbounded\" : \n/* 1362 */ Integer.toString(max2)\n/* */ });\n/* */ }\n/* 1365 */ int count1 = dChildren.size();\n/* 1366 */ int count2 = bChildren.size();\n/* */ \n/* 1368 */ int current = 0;\n/* 1369 */ for (int i = 0; i < count1; i++) {\n/* */ \n/* 1371 */ XSParticleDecl particle1 = dChildren.elementAt(i);\n/* 1372 */ int j = current; while (true) { if (j < count2) {\n/* 1373 */ XSParticleDecl particle2 = bChildren.elementAt(j);\n/* 1374 */ current++;\n/* */ \n/* */ \n/* */ try {\n/* 1378 */ if (particleValidRestriction(particle1, dSGHandler, particle2, bSGHandler)) {\n/* 1379 */ current--;\n/* */ }\n/* */ break;\n/* 1382 */ } catch (XMLSchemaException xMLSchemaException) {}\n/* */ j++;\n/* */ continue;\n/* */ } \n/* 1386 */ throw new XMLSchemaException(\"rcase-RecurseLax.2\", null); }\n/* */ \n/* */ } \n/* */ }", "private static void helper(TreeNode root, int curSum, int curLen) {\n if (root == null) {\n if (maxLen < curLen) {\n maxLen = curLen;\n maxSum = curSum;\n } else if (maxLen == curLen && maxSum < curSum) {\n maxSum = curSum;\n }\n return;\n }\n\n // do this for left and right\n helper(root.left,curSum + root.val, curLen + 1);\n helper(root.right,curSum + root.val, curLen + 1);\n }", "@Override\n\tpublic void preorder() {\n\n\t}", "private int find(int z, int[] parent) {\n if(parent[z] == -1) {\n return z;\n }\n // System.out.println(parent[z]+\" \"+ z);\n parent[z] = find(parent[z], parent);\n\n return parent[z];\n }", "public Item recursivHelper(StuffNode x, int index) {\n if (index == 0) {\n return x.item;\n } else {\n return recursivHelper(x.next, index-1);\n }\n }", "private void level6() {\n }", "private void GreedySearch(){\n\n Queue<Node> expanded = new LinkedList<>();\n ArrayList<Node> fringe = new ArrayList<>();\n ArrayList<Node> fringeTemp = new ArrayList<>();\n\n\n Node current = startNode;\n\n while(expanded.size() < 1000){\n\n if(current.getDigit().getDigitString().equals(goalNode.getDigit().getDigitString())){\n //goal is reached.\n solutionPath(current);\n expanded.add(current);\n printExpanded(expanded);\n System.exit(0);\n }\n\n\n boolean b = cycleCheck(current,expanded);\n\n if(!b) {\n expanded.add(current);\n }\n\n if(!b){\n\n if(current.getDigit().last_changed != 0){\n\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n\n }\n }\n\n if(current.getDigit().last_changed != 1){\n\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n if(current.getDigit().last_changed != 2){\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n }\n\n\n\n for(Node n : fringe){\n heuristicSetter(n);\n\n }\n\n fringeTemp.addAll(fringe);\n //now all the nodes in fringe have the heuristic value.\n //We can get the last added minm\n Node minm;\n if(fringeTemp.size() != 0){\n minm = fringeTemp.get(0);\n }else{\n break;\n }\n for(int i = 1; i<fringeTemp.size(); i++){\n if(fringeTemp.get(i).getHeuristic() <= minm.getHeuristic()){\n minm = fringeTemp.get(i);\n }\n }\n\n //now we have the minm for the next stage.\n current = minm;\n fringeTemp.remove(minm);\n fringe.clear();\n }\n\n //While loop ends\n System.out.println(\"No solution found.\");\n printExpanded(expanded);\n\n\n\n }", "private int findAllPathsUtil(int s, int t, boolean[] isVisited, List<Integer> localPathList,int numOfPath,LinkedList<Integer>[] parent )\n {\n\n if (t==s) {\n numOfPath++;\n return numOfPath;\n }\n isVisited[t] = true;\n\n for (Integer i : parent[t]) {\n if (!isVisited[i]) {\n localPathList.add(i);\n numOfPath =findAllPathsUtil(s,i , isVisited, localPathList,numOfPath,parent);\n localPathList.remove(i);\n }\n }\n isVisited[t] = false;\n return numOfPath;\n }", "private void DepthFirstSearch(Node current){\n helperDFS( current );\n }", "public void deepList() throws Exception;", "public void solution() {\n\t\t\n\t}", "private void incRecursion(int amount) {\n if (amount < 0) {\n Assert.assertTrue(recursion - amount >= 0,\n amount + \" cannot be subtracted from recursion \" + recursion);\n }\n recursion += amount;\n }", "private static int factorial(int num) {\n /**\n * validation\n */\n if (num < 0) {\n throw new IllegalArgumentException(\"num is invalid\");\n }\n\n /**\n * base case\n */\n if (num == 0) {\n return 1;\n }\n\n /**\n * recursive case\n */\n\n return num * factorial(num - 1);\n }", "private void recurseThroughObject(Object obj, List<String> path, String currentField) {\n\n MethodAccess methodAccess = MethodAccess.get(obj.getClass());\n\n for (LogCache logCache : CacheableAccessors.getMethodIndexes(obj.getClass(), methodAccess)) {\n\n if (canLogMethod(logCache, methodAccess)) {\n\n List<String> recursivePath = Lists.newArrayList(path);\n\n Object logResult;\n\n try {\n logResult = methodAccess.invoke(obj, logCache.getIndex());\n }\n catch(IllegalAccessError er) {\n logResult = \"<Illegal Method Access Error>\";\n }\n catch (Throwable t) {\n logResult = configs.getExceptionTranslator().translate(t);\n }\n\n try {\n buildMessage(getLogMessage(logCache, logResult), recursivePath,\n formatMethod(recursivePath, methodAccess.getMethodNames()[logCache.getIndex()]));\n }\n catch (Throwable t) {\n // result is ignored, but can be captured for debugging since we've already tried to catch\n // and build\n configs.getExceptionTranslator().translate(t);\n }\n }\n }\n\n FieldAccess fieldAccess = FieldAccess.get(obj.getClass());\n\n for (LogCache logCache : CacheableAccessors.getFieldIndexes(obj.getClass(), fieldAccess)) {\n String fieldName = \"???\";\n\n try {\n if (Scope.SKIP == logCache.getLogScope()) {\n continue;\n }\n\n fieldName = fieldAccess.getFieldNames()[logCache.getIndex()];\n\n List<String> recursivePath = Lists.newArrayList(path);\n recursivePath.add(fieldName);\n\n if (!configs.getExcludesPrefixes().stream().anyMatch(fieldName::startsWith)) {\n buildMessage(getLogMessage(logCache, fieldAccess.get(obj, logCache.getIndex())), recursivePath,\n formatField(currentField, fieldName));\n }\n }\n catch (Throwable t) {\n String fieldError = configs.getExceptionTranslator().translate(t);\n\n buildMessage(getLogMessage(logCache, fieldError), path,\n formatField(currentField, fieldName));\n }\n }\n\n }", "public int recursive(int n) {\r\n //base case: return n if <= 1\r\n if (n <= 1) {\r\n return n;\r\n }\r\n //else return result of of two previous #s being added to each other\r\n return recursive(n - 1) + recursive(n - 2);\r\n }", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "private void method_4318() {\r\n String[] var1;\r\n int var11;\r\n label68: {\r\n var1 = class_752.method_4253();\r\n class_758 var10000 = this;\r\n if(var1 != null) {\r\n if(this.field_3417 != null) {\r\n label71: {\r\n var11 = this.field_3417.field_3012;\r\n if(var1 != null) {\r\n if(this.field_3417.field_3012) {\r\n var10000 = this;\r\n if(var1 != null) {\r\n if(!this.field_2990.field_1832) {\r\n this.method_409(this.field_3404, class_1691.method_9334((class_1036)null), 10.0F);\r\n }\r\n\r\n var10000 = this;\r\n }\r\n\r\n var10000.field_3417 = null;\r\n if(var1 != null) {\r\n break label71;\r\n }\r\n }\r\n\r\n var11 = this.field_3029 % 10;\r\n }\r\n\r\n if(var1 == null) {\r\n break label68;\r\n }\r\n\r\n if(var11 == 0) {\r\n float var13;\r\n var11 = (var13 = this.method_406() - this.method_405()) == 0.0F?0:(var13 < 0.0F?-1:1);\r\n if(var1 == null) {\r\n break label68;\r\n }\r\n\r\n if(var11 < 0) {\r\n this.method_4188(this.method_406() + 1.0F);\r\n }\r\n }\r\n }\r\n }\r\n\r\n var10000 = this;\r\n }\r\n\r\n var11 = var10000.field_3028.nextInt(10);\r\n }\r\n\r\n if(var11 == 0) {\r\n float var2 = 32.0F;\r\n List var3 = this.field_2990.method_2157(class_705.class, this.field_3004.method_7097((double)var2, (double)var2, (double)var2));\r\n class_705 var4 = null;\r\n double var5 = Double.MAX_VALUE;\r\n Iterator var7 = var3.iterator();\r\n\r\n while(true) {\r\n if(var7.hasNext()) {\r\n class_705 var8 = (class_705)var7.next();\r\n double var9 = var8.method_3891(this);\r\n if(var1 == null) {\r\n break;\r\n }\r\n\r\n label43: {\r\n double var12 = var9;\r\n if(var1 != null) {\r\n if(var9 >= var5) {\r\n break label43;\r\n }\r\n\r\n var12 = var9;\r\n }\r\n\r\n var5 = var12;\r\n var4 = var8;\r\n }\r\n\r\n if(var1 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n this.field_3417 = var4;\r\n break;\r\n }\r\n }\r\n\r\n }", "private void enumerateAnagramsUnderBagEHelper(String targetDoNotChange,\n\t\t\tString whatsLeft, HashMap<String, Integer> parent,\n\t\t\tSet<Map<String, Integer>> ret, int runningTotal) {\n\t\tif (whatsLeft.length() == 0\n\t\t\t\t&& runningTotal == targetDoNotChange.length()) {\n\t\t\tret.add(parent);\n\t\t\treturn;\n\t\t} else {\n\t\t\tSet<String> toIter = generateSubwords(whatsLeft);\n\t\t\tfor (String subWord : toIter) {\n\t\t\t\t// Do some pruning\n\t\t\t\tif (runningTotal + subWord.length() <= targetDoNotChange\n\t\t\t\t\t\t.length()) {\n\t\t\t\t\tString moveMadeWhatsLeft = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tmoveMadeWhatsLeft = cutOutSubWord(whatsLeft, subWord);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\tHashMap<String, Integer> mapCopy = new HashMap<String, Integer>();\n\t\t\t\t\tfor (String s : parent.keySet()) {\n\t\t\t\t\t\tmapCopy.put(s, parent.get(s));\n\t\t\t\t\t}\n\t\t\t\t\t// Make move\n\t\t\t\t\tif (mapCopy.containsKey(subWord)) {\n\t\t\t\t\t\tmapCopy.put(subWord,\n\t\t\t\t\t\t\t\tmapCopy.get(subWord).intValue() + 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmapCopy.put(subWord, 1);\n\t\t\t\t\t}\n\t\t\t\t\tenumerateAnagramsUnderBagEHelper(targetDoNotChange,\n\t\t\t\t\t\t\tmoveMadeWhatsLeft, mapCopy, ret, runningTotal\n\t\t\t\t\t\t\t\t\t+ subWord.length());\n\n\t\t\t\t} else {\n\t\t\t\t\t// Do nothing.. too long PRUNING\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private static boolean dfs(char[][] board, int r, int c) {\n if (r == 9)\n return true;\n\n // return here and line 57 is because you will backtrack to the very beginning once a solution is found\n if (c == 9)\n return dfs(board, r + 1, 0);\n\n if (board[r][c] == '.') {\n // try each number\n for (int k = 1; k <= 9; k++) {\n board[r][c] = Character.forDigit(k, 10);\n if (isValid(board, r, c)) {\n // when find the solution should return true to avoid any more backtrack search\n if (dfs(board, r, c + 1))\n return true;\n }\n board[r][c] = '.';\n }\n } else {\n return dfs(board, r, c + 1);\n }\n return false;\n }", "private static int helper(TreeNode root, TreeNode p, TreeNode q, List<TreeNode> ans) {\n if (root == null)\n return 0;\n int sum = 0;\n if (root.val == p.val || root.val == q.val)\n ++sum;\n int leftSum = helper(root.left, p, q, ans);\n int rightSum = helper(root.right, p, q, ans);\n sum += leftSum + rightSum;\n if (sum == 2 && leftSum < 2 && rightSum < 2)\n ans.add(root);\n return sum;\n }", "private void enumterateAnagramsUnderEHelper(String whatsLeft,\n\t\t\tString parent, Set<String> returnSet,\n\t\t\tTreeNode dictPointer, TreeNode myParent) {\n\t\tif (whatsLeft.length() == 0 && dictPointer.getIsWord()) {\n\t\t\treturnSet.add(parent);\n\t\t} else {\n\t\t\tHashSet<Character> iveTriedSoFar = new HashSet<Character>();\n\t\t\tfor (int i = 0; i < whatsLeft.length(); i++) {\n\t\t\t\t// Make move\n\t\t\t\t// For each chracter left in whats left, remove that character\n\t\t\t\t// from whats left, and append it to the end of parent\n\t\t\t\tString moveMadeWhatsLeft = whatsLeft;\n\t\t\t\tif (i == 0) {\n\t\t\t\t\tmoveMadeWhatsLeft = moveMadeWhatsLeft.substring(1,\n\t\t\t\t\t\t\tmoveMadeWhatsLeft.length());\n\t\t\t\t} else if (i == moveMadeWhatsLeft.length() - 1) {\n\t\t\t\t\tmoveMadeWhatsLeft = moveMadeWhatsLeft.substring(0,\n\t\t\t\t\t\t\tmoveMadeWhatsLeft.length() - 1);\n\t\t\t\t} else {\n\t\t\t\t\tmoveMadeWhatsLeft = moveMadeWhatsLeft.substring(0, i)\n\t\t\t\t\t\t\t+ moveMadeWhatsLeft.substring(i + 1,\n\t\t\t\t\t\t\t\t\tmoveMadeWhatsLeft.length());\n\t\t\t\t}\n\t\t\t\tString moveMadeParent = parent + whatsLeft.charAt(i);\n\n\t\t\t\t// call recursive\n\t\t\t\tif (dictPointer.getChildContaining(whatsLeft.charAt(i)) != null\n\t\t\t\t\t\t&& !iveTriedSoFar.contains(whatsLeft.charAt(i))) {\n\t\t\t\t\tiveTriedSoFar.add(whatsLeft.charAt(i));\n\t\t\t\t\tenumterateAnagramsUnderEHelper(\n\t\t\t\t\t\t\tmoveMadeWhatsLeft,\n\t\t\t\t\t\t\tmoveMadeParent,\n\t\t\t\t\t\t\treturnSet,\n\t\t\t\t\t\t\tdictPointer.getChildContaining(whatsLeft.charAt(i)),\n\t\t\t\t\t\t\tdictPointer);\n\t\t\t\t} else {\n\t\t\t\t\t// Do not call method (skip that subtree) PRUNING! .. like a\n\t\t\t\t\t// boss\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "private void doOneUpdateStep(){\r\n SparseFractalSubTree target = null; //stores the tree which will receive the update\r\n for (int i = 0; i < subTrees.length - 1; i++) { //top tree never receives an update (reason for -1)\r\n SparseFractalSubTree subTree = subTrees[i];\r\n if (!subTree.hasStopped()) { //not permanently or temporary finished\r\n if (target != null) { //are we the first tree who can receive an update\r\n if ((subTree.getTailHeight() < target.getTailHeight())) { //are we a better candidate then the last one?\r\n target = subTree;\r\n }\r\n } else { //we are the first not finished subtree, so we receive the update if no better candidate is found\r\n target = subTree;\r\n }\r\n\r\n }\r\n }\r\n assert (target != null);\r\n assert (check(target)); //check all the assumptions\r\n\r\n measureDynamicSpace(); //measure\r\n\r\n target.updateTreeHashLow(); //apply a update to the target\r\n }", "@Test\r\n\tpublic void test05_occurrencesOf() {\r\n\t\tRecursiveMethods rm = new RecursiveMethods();\r\n\r\n\t\tassertEquals(0, rm.occurrencesOf(\"\", 'a'));\r\n\t\tassertEquals(1, rm.occurrencesOf(\"a\", 'a'));\r\n\t\tassertEquals(0, rm.occurrencesOf(\"b\", 'a'));\r\n\t\tassertEquals(3, rm.occurrencesOf(\"baaba\", 'a'));\r\n\t\tassertEquals(2, rm.occurrencesOf(\"baaba\", 'b'));\r\n\t\tassertEquals(0, rm.occurrencesOf(\"baaba\", 'c'));\r\n\t}", "private boolean dfs(String word, TrieNode parent) {\n if (word.length() == 0) {//since it's parent node so idx cannot be len - 1\n return parent.isLeaf;\n }\n boolean firstMatch = word.length() > 0 && (parent.map.containsKey(word.charAt(0)) || word.charAt(0) == '.');\n if (word.length() > 1 && word.charAt(1) == '*') {\n if(word.charAt(0) == '.') {\n boolean tmp = false;\n for (TrieNode curr : parent.map.values()) {\n tmp = tmp || firstMatch && dfs(word, curr);\n }\n return tmp || firstMatch && dfs(word.substring(2), parent); //match || no match\n } else {\n return firstMatch && (dfs(word, parent.map.get(word.charAt(0))) || dfs(word.substring(2), parent.map.get(word.charAt(0))));\n }\n } else {\n if (word.charAt(0) == '.') {\n boolean tmp = false;\n for (TrieNode curr : parent.map.values()) {\n tmp = tmp || firstMatch && dfs(word.substring(1), curr);\n }\n return tmp;\n } else {\n return firstMatch && dfs(word.substring(1), parent.map.get(word.charAt(0)));\n }\n }\n }", "public static void findChain(long j) {\n\t\tif ((j<getCur()) && (results.get(((int)j)-1)!=0) && (j>0)){setChain(getChain()+results.get(((int)j)-1)); return;}\n\t\telse if (j==1L) return;\n\t\telse if ((j%2L)==0) {setChain(getChain()+1L); findChain(j/2L);}\n\t\telse {setChain(getChain()+1L); findChain(3L*j+1L);}\n\t\t//odd case will always be else ... right ... ?\n\t\t\n\t}", "int fact(int n) {\n if (n <= 1)\n return 1;\n else\n return n * fact(n-1);\n}", "private void findNext() {\n \tthis.find(true);\n }", "public static int foo3( int n )\r\n\t{\r\n\t\tif ( n == 0 )\r\n\t\t\treturn 0;\r\n\t\telse\r\n\t\t\treturn n + foo3( n - 1 );\r\n\t\t\r\n\t}", "private static boolean superCallOrFieldInitializer_0_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"superCallOrFieldInitializer_0_1\")) return false;\n superCallOrFieldInitializer_0_1_0(b, l + 1);\n return true;\n }", "public void levelOrderTraversalBruteForce(){\n System.out.println(\"levelOrderTraversalBruteForce\");\n\n for(int level = 1; level <=height(); level++){\n printLevel(level);\n }\n System.out.println();\n }", "private int leftChild(int i){return 2*i+1;}", "public static void main(String[] args) {\n\t\trecursion(1,5);\n\t\t\t}", "public String findCheese(Place startingPoint) {\nif (startingPoint==null)\n\treturn null;\n\nvisited.add(startingPoint);\nStack<Place> vstdstack=new Stack<Place>();\nvstdstack.add(startingPoint);\n//Stack<c> pather=\"start->\";\nwhile(!vstdstack.isEmpty())\n{\n\tPlace curpos=getNextPlace(vstdstack.peek());\n if (curpos==null)\n {\n vstdstack.pop();\n soln.deleteCharAt(soln.length()-1);\n continue;\n }\n if(curpos.isCheese())\n return soln.toString();\n else \n vstdstack.push(curpos);\n \n}\nreturn null;\n}", "public static void reduceByOne(int n) {\n if (n >= 0) {\n reduceByOne(n - 1); //recursion function\n }\n System.out.println(\"Completed call using rec:\" + n);\n }", "public boolean isHierarchical() {\n/* 2889 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void kk12() {\n\n\t}", "private void sub() {\n\n\t}", "private int parent(int i){return (i-1)/2;}", "private int parent ( int pos )\n\t{\n\t\treturn -1; // replace this with working code\n\t}", "private void level4() {\n }", "private void g()\r\n/* 30: */ {\r\n/* 31: 40 */ if (this.n) {\r\n/* 32: 41 */ return;\r\n/* 33: */ }\r\n/* 34: 45 */ if (this.l != null)\r\n/* 35: */ {\r\n/* 36: 47 */ if (this.f != null) {\r\n/* 37: 48 */ c();\r\n/* 38: */ }\r\n/* 39: 51 */ cuj.a(super.b(), this.l);\r\n/* 40: 52 */ this.n = true;\r\n/* 41: */ }\r\n/* 42: */ }", "public void printCombinationsRecurse(int value) {\r\n\t\tint stackPtr = 0;\r\n\t\tint[] stack = new int[LARGEST_NUMBER];\r\n\t\t// push each starting number from 1 to LARGEST_NUMBER\r\n\t\tfor (int a = 1; a <= LARGEST_NUMBER; a++) {\r\n\t\t\tstack[stackPtr] = a;\r\n\t\t\tprintRecursive(value, stack, stackPtr);\r\n\t\t}\r\n\t}", "static int recursiva2(int n)\n\t\t{\n\t\t\tif (n==0)\n\t\t\treturn 10; \n\t\t\tif (n==1)\n\t\t\treturn 20;\n\t\t\tif (n==2)\n\t\t\treturn 30;\n\t\t\t\n\t\t\treturn recursiva2(n-1) + recursiva2 (n-2) * recursiva2 (n-3); \n\t\t}", "public void getPermutation(String s1,int start,int end){\n\t\tif(start==end-1) {\n\t\t\tSystem.out.println(s1);\n\t\t}\n\t\telse {\n\t\t\tfor(int i=start;i<end;i++) {\n\t\t\t\ts1=swap(s1,start,i);\n\t\t\t\t//calling recursive function \n\t\t\t\tgetPermutation(s1,start+1,end);\n\t\t\t\ts1=swap(s1,start,i);\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}", "boolean getRecursiveNull();", "void constructSTUtil(int arr[], int ss, int se, int si)\n {\n if (ss == se) {\n st[si] = arr[ss];\n //return arr[ss];\n } else {\n\n // If there are more than one elements, then recur for left and\n // right subtrees and store the sum of values in this node\n int mid = getMid(ss, se);\n constructSTUtil(arr, ss, mid, si * 2 + 1);\n constructSTUtil(arr, mid + 1, se, si * 2 + 2);\n st[si] = Math.min(st[si*2+1] , st[si*2+ 2]);\n }\n }" ]
[ "0.5971519", "0.59656703", "0.5773581", "0.57656765", "0.56886286", "0.5663111", "0.56500024", "0.55950475", "0.55567414", "0.5554347", "0.55061394", "0.54970884", "0.54563665", "0.543598", "0.54356253", "0.5407361", "0.53521144", "0.53472394", "0.5342608", "0.5322067", "0.5311786", "0.52970576", "0.5293393", "0.5279498", "0.5266845", "0.52638453", "0.5262854", "0.52621937", "0.52586055", "0.52537084", "0.5249567", "0.52372533", "0.523044", "0.5230296", "0.52283573", "0.5217888", "0.5213183", "0.5209743", "0.5205403", "0.52003646", "0.51998746", "0.5194343", "0.5191087", "0.5185725", "0.51856774", "0.5185329", "0.5183139", "0.51821035", "0.51775885", "0.5176107", "0.51697224", "0.516651", "0.5157138", "0.5149054", "0.5148842", "0.51487297", "0.51389366", "0.51351184", "0.5108345", "0.51058847", "0.5099948", "0.5093696", "0.50911283", "0.5090053", "0.508974", "0.50890124", "0.5085841", "0.5079344", "0.50736564", "0.50736564", "0.50736564", "0.5067082", "0.5060982", "0.5059241", "0.5059037", "0.50577146", "0.50519985", "0.5051925", "0.50499904", "0.5049244", "0.5046596", "0.50448567", "0.5043661", "0.5042616", "0.5029336", "0.5027906", "0.50251174", "0.5018131", "0.5017782", "0.5016891", "0.5016651", "0.50079626", "0.5007789", "0.50033987", "0.49940714", "0.4989967", "0.49853837", "0.49773553", "0.49772543", "0.49742165", "0.49729392" ]
0.0
-1
shapes.forEach(s>s.draw(this)); shapes.add(0, new Circle()); //wrong
public void drawAll(List<? extends Shape> shapes) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void add(Shape aShape);", "public void add(Shape s)\n {\n shapes.add(s);\n }", "public void add(Shape shapes) {\n\t\tshapesList.add(shapes);\n\t}", "void drawShape(Shape s) {\n }", "public Paint() {\n shapes = new ArrayList<>();\n }", "ShapeGroup(){\n children = new ArrayList<IShape>();\n }", "public CircleOfFifths(){fillArrayLists();}", "public ShapeGraphics() {\r\n //A random object to set random measures for the shapes\r\n Random rn = new Random();\r\n //Creating two instances of every shape using the random object and adding them to the list\r\n for (int i = 0; i <2 ; i++) {\r\n MyLine line = new MyLine(rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE), Color.RED);\r\n MyRectangle rec = new MyRectangle (rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),Color.RED,true);\r\n MyOval oval = new MyOval (rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),Color.RED,true);\r\n list.add(line);\r\n list.add(oval);\r\n list.add(rec);\r\n\r\n }\r\n //Creating cloned shapes of this list and adding them to another array list\r\n ClonedShapes c = new ClonedShapes(list);\r\n clonedList = c.getClonedList();\r\n }", "void addShape(IShape shape);", "public Paint(){\n triangles = new ArrayList<>();\n rectangles = new ArrayList<>();\n circles = new ArrayList<>();\n }", "@Override\n\tpublic void BuildShape(Graphics g) {\n\t\t\n\t}", "public void paintComponent(Graphics g) {\n super.paintComponent(g);\n\n Iterator<Circle> circleIterator = circleArrayList.iterator();\n Circle drawCircle;\n\n // iterate through the ArrayList\n while (circleIterator.hasNext()) {\n drawCircle = circleIterator.next();\n drawCircle.draw(g); // draw each circle\n }\n\n }", "private static void addShaped()\n {}", "public void addShape(Shapes obj) {\n \tthis.listShapes.add(obj);\n W.repaint();\n }", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "public Shapes draw ( );", "public void addShape(Shape s){\n\t\tshapes.add(s);\n\t\tundoCommands.add(s);\n\t\tredoCommands.clear();\n\t\tthis.repaint();\n\t\tcounter++;\n\t\tnotifyObservers();\n\t}", "public void add(SceneShape s)\n {\n shapes.add(s);\n repaint();\n }", "public void addCircle(Circle circle){\n circles.add(circle);\n }", "public void addShape(TShape aShape){\r\n // fShapes.remove(aShape); // just in case it was already there\r\n\r\n /*unfortunately we need to have a front to back screen order, properties at the back\r\n (drawn first), then individuals, finally relations between individuals*/\r\n\r\n /* if (aShape instanceof TLine)\r\n fShapes.add(aShape); // add at the end\r\n else if (aShape instanceof TProperty)\r\n fShapes.add(0,aShape); // add at the beginning\r\n else {\r\n int insertIndex=0;\r\n if (fShapes.size() > 0) {\r\n Iterator iter = fShapes.iterator();\r\n\r\n while (iter.hasNext()) {\r\n if (! ((TShape) iter.next()instanceof TProperty))\r\n break; //put it after rectangles\r\n else\r\n insertIndex++;\r\n }\r\n }\r\n fShapes.add(insertIndex,aShape);\r\n }*/\r\n\r\n\r\n // aShape.setSemantics(fSemantics);\r\n\r\n aShape.addChangeListener(this); // and we'll listen for any of its changes, such as being selected\r\n\r\n addShapeToList(aShape,fShapes);\r\n\r\n if (aShape instanceof TInterpretationBoard)\r\n ((TInterpretationBoard)aShape).setSemantics(fSemantics);\r\n\r\n\r\n fPalette.check(); // some of the names may need updating\r\n\r\n repaint();\r\n }", "public static void main(String[] args) {\n\t\tArrayList<Shape> list = new ArrayList<Shape>();\r\n\t\tRectangle rt1 = new Rectangle(4, 7, 5);\r\n\t\tRectangle rt2 = new Rectangle(5, 4, 6);\r\n\t\tCircle cir1 = new Circle(6, 6, 7);\r\n\t\tCircle cir2 = new Circle(7, 8, 3);\r\n\t\t\r\n\t\tlist.add(rt1);\r\n\t\tlist.add(rt2);\r\n\t\tlist.add(cir1);\r\n\t\tlist.add(cir2);\r\n\t\t\r\n\t\tSystem.out.println(\"구분 \\t\\t 길이 \\tx좌표\\t y좌료\\t Area\\t Circumference\");\r\n\t\tfor(Shape s : list){\r\n\t\t\tif(s instanceof Rectangle){\r\n\t\t\t\tRectangle rt = (Rectangle)s;\r\n\t\t\tSystem.out.println(rt.getClass().getSimpleName()+ \"\\t\"+\r\n\t\t\t\t\trt.wideth+\"\\t\"+rt.point.x+\"\\t\"+rt.point.y+\r\n\t\t\t\t\t\"\\t\"+rt.getArea()+\"\\t\"+rt.getCircumference());\r\n\t\t\t}else if(s instanceof Circle){\r\n\t\t\t\tCircle cir = (Circle) s;\r\n\t\t\t\tSystem.out.println(cir.getClass().getSimpleName()+ \"\\t\\t\"+\r\n\t\t\t\t\t\tcir.radius+\"\\t\"+cir.point.x+\"\\t\"+cir.point.y+\r\n\t\t\t\t\t\t\"\\t\"+cir.getArea()+\"\\t\"+cir.getCircumference());\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tfor(Shape s : list){\r\n\t\t\tif(s instanceof Rectangle){\r\n\t\t\t\tRectangle rt = (Rectangle)s;\r\n\t\t\t\trt.move(10, 10);\r\n\t\t\t}else if(s instanceof Circle){\r\n\t\t\t\tCircle cir = (Circle) s;\r\n\t\t\t\tcir.move(10, 10);\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tfor(Shape s : list){\r\n\t\t\tif(s instanceof Rectangle){\r\n\t\t\t\tRectangle rt = (Rectangle)s;\r\n\t\t\tSystem.out.println(rt.getClass().getSimpleName()+ \"\\t\"+\r\n\t\t\t\t\trt.wideth+\"\\t\"+rt.point.x+\"\\t\"+rt.point.y);\r\n\t\t\t}else if(s instanceof Circle){\r\n\t\t\t\tCircle cir = (Circle) s;\r\n\t\t\t\tSystem.out.println(cir.getClass().getSimpleName()+ \"\\t\\t\"+\r\n\t\t\t\t\t\tcir.radius+\"\\t\"+cir.point.x+\"\\t\"+cir.point.y);\r\n\t\t\t}\t\r\n\t\t}\r\n\t}", "public void addShape(Shape shape)\n {\n shapes.add(shape);\n }", "public abstract ArrayList<Shape> getShapes();", "@Override\r\n\tpublic void visit(Shapes shapes) {\n\t\tSystem.out.println(\"my Shapes init\");\r\n\t}", "public void paintComponenet(){\r\n\t\tfor(DShape ds : shapes){\r\n\t\t\tds.draw();\r\n\t\t}\r\n\t}", "public CircleComponent()\n {\n circles = new ArrayList<>();\n circleCounter = 0;\n\n }", "public PseudoCircle( List<Point2D> ps){\n for( Point2D x: ps){\n this.addPoint(x);\n }\n }", "void addShape(IShape shape, int appear, int disappear);", "private void addCircle() {\n\t\tdouble r = getRadius();\n\t\tadd(new GOval(getWidth() / 2.0 - r, getHeight() / 2.0 - r, 2 * r, 2 * r));\n\t}", "@Override\r\n\tpublic void accept(ShapeElementVisitor visitor) {\n\t\tvisitor.visit(this);\r\n\t}", "private static void addShapeless()\n {}", "public void paint(Graphics g) {\r\n\t\tsuper.paint(g);\r\n\t\t// add code below\r\n\t\tGraphics g1 = drawingPanel.getGraphics();\r\n\t\tif (myLine != null && myLine.getIsAPerpendicular() == false) {\r\n\t\t\tShapes.add(myLine);\r\n\t\t\tfor (int i = 0; i < Shapes.size(); i++) {\r\n\t\t\t\tShapes.get(i).draw(g1);\r\n\t\t\t}\r\n\t\t}// End If to prevent null pointer exception\r\n\t\tif (myOval != null) {\r\n\t\t\tShapes.add(myOval);\r\n\t\t\tfor (int i = 0; i < Shapes.size(); i++) {\r\n\t\t\t\tShapes.get(i).draw(g1); // To make this legal an abstract method named draw which accepted graphics g need to be added to the shapes class\r\n\t\t\t}\r\n\t\t}// End If to prevent null pointer exception\r\n\t}", "public static void main(String arg[]) {\n Shape s ;\n s= new Shape() ;\n s.draw();\n s= new Rectange();\n s.draw();\n}", "@Override\r\n\tpublic void visit(Square shapes) {\n\t\tSystem.out.println(shapes.getName() + \"네모네모 움직영!\");\r\n\t}", "public void add(Shape c) {\n\t\tc.centerXProperty().addListener(doubleListener);\n\t\tc.centerYProperty().addListener(doubleListener);\n\t\tc.radiusProperty().addListener(doubleListener);\n\t\tc.colorProperty().addListener(colorListener);\n\t\tc.widthProperty().addListener(doubleListener);\n\t\tc.heightProperty().addListener(doubleListener);\n\t\tc.arcWidthProperty().addListener(doubleListener);\n\t\tc.arcHeightProperty().addListener(doubleListener);\n\t\tc.textProperty().addListener(textListener);\n\t\tc.typeProperty().addListener(typeListener);\n\t\tc.deleteProperty().addListener(deleteListener);\n\t\tdrawData.add(c);\n\t}", "public List<Shape> getDrawShapes();", "void add(Shape shape) throws IllegalArgumentException\n {\n // Checking if the shape is already part of the children list or if the\n // shape already has a parent\n if(contains(shape) || shape.parent()!=null)\n {\n // Then throw an error\n throw new IllegalArgumentException();\n }\n\n // If the shape to add is outside of the CarrierShape bounds\n // then throw an error\n if(shape._width+shape._x>_width || shape._height+shape._x>_height)\n {\n throw new IllegalArgumentException();\n }\n\n // Otherwise the shape is added to the children list\n children.add(shape);\n\n // The parent of the shape is set to this CarrierShape\n // to establish a two-way connection\n shape.setParent(this);\n }", "public void drawShape(Shape shape);", "static List<Shape> createShapeArray(){\n return Arrays.asList(new Rectangle(new Point(0,0),new Point(0,4),new Point(2,4), new Point(2,0)),\n new Rectangle(new Point(0,0),new Point(0,2),new Point(2,2), new Point(2,0)),\n new Rectangle(new Point(0,0),new Point(0,3),new Point(2,3), new Point(2,0)),\n new Circle(new Point(0,0),new Point(0,1)),\n new Circle(new Point(1,0),new Point(1,4)),\n new Circle(new Point(1,0),new Point(0,2)),\n new Triangle(new Point(0,0),new Point(0,2),new Point(2,0)),\n new Triangle(new Point(0,0),new Point(0,4),new Point(4,0)),\n new Triangle(new Point(0,0),new Point(0,1),new Point(1,0)));\n\n }", "public void drawAll(){\n for (Triangle triangle : triangles) {\n triangle.draw();\n }\n for (Circle circle : circles) {\n circle.draw();\n }\n for(Rectangle rectangle : rectangles){\n rectangle.draw();\n }\n }", "public void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\t\tfor(Shape s : shapes){\n\t\t\ts.paint(g);\n\t\t}\n\t}", "protected abstract void setShapes();", "public void paintComponent(Graphics g){\r\n super.paintComponent(g);\r\n\r\n for (int i = 0; i < list.size(); i++) {//draw the shapes of the original list\r\n list.get(i).draw(g);\r\n }\r\n for (int i = 0; i <clonedList.size() ; i++) {//draw the shapes of the cloned list\r\n clonedList.get(i).draw(g);\r\n }\r\n\r\n\r\n }", "public void draw(Graphics g, World world) {\n for (Shapes current : this.listShapes) {\n current.draw(g,world);\n }\n }", "public Group shapes() {\n Group group = new Group();\n\n Rectangle square = new Rectangle();\n square.setHeight(_size * 2.0);\n square.setWidth(_size * 2.0);\n square.setX(-_size);\n square.setY(-_size);\n square.setFill(_fill);\n square.setOpacity(0.2);\n group.getChildren().add(square);\n\n return group;\n }", "@Test\r\n public void testGetEnclosingShapes() {\r\n List<Shape> expectedOutput = new ArrayList<Shape>();\r\n expectedOutput.add(circle);\r\n expectedOutput.add(square);\r\n assertEquals(expectedOutput, screen.getEnclosingShapes(new Point(5, 5)));\r\n }", "public void paintComponent(Graphics g){\n super.paintComponent(g);\n for(int i = 0; i < count; i++){\n drawObjects[i].draw(g);\n } \n }", "public static void main(String[] args) {\n\t\t\r\n\t\tShape tri = new Triangle();\r\n\t\tShape tri1 = new Triangle();\r\n\t\tShape cir = new Circle();\r\n\t\t\r\n\t\tDraw drawing = new Draw();\r\n\t\tdrawing.add(tri1);\r\n\t\tdrawing.add(tri1);\r\n\t\tdrawing.add(cir);\r\n\t\t\r\n\t\tdrawing.drawShape(\"Red\");\r\n\t\t\r\n\t\tdrawing.clear();\r\n\t\t\r\n\t\tdrawing.add(tri);\r\n\t\tdrawing.add(cir);\r\n\t\tdrawing.drawShape(\"Green\");\r\n\r\n\t}", "public void add(String s) { \n\t\t\n\t\t//get list of values\n\t\tString[] values = s.split(\"[ ]*,[ ]*\"); \n\t\t\n\t\tif(values[0].equals(\"CIRCLE\")) {\n\t\t\tadd(new Shape(Double.parseDouble(values[1]), Double.parseDouble(values[2]),\n\t\t\t\t\tDouble.parseDouble(values[3]), new Color(Double.parseDouble(values[4]), Double.parseDouble(values[5]), Double.parseDouble(values[6]), 1),\n\t\t\t\t\t50, 50, 15, 15, \"\", ShapeType.CIRCLE));\n\t\t}\n\t\telse if (values[0].equals(\"RECTANGLE\")) {\n\t\t\tadd(new Shape(Double.parseDouble(values[1]), Double.parseDouble(values[2]),\n\t\t\t\t\t50, new Color(Double.parseDouble(values[5]), Double.parseDouble(values[6]), Double.parseDouble(values[7]), 1),\n\t\t\t\t\tDouble.parseDouble(values[3]), Double.parseDouble(values[4]), 15, 15, \"\", ShapeType.RECTANGLE));\n\t\t}\n\t\telse if (values[0].equals(\"OVAL\")) {\n\t\t\tadd(new Shape(Double.parseDouble(values[1]), Double.parseDouble(values[2]),\n\t\t\t\t\t50, new Color(Double.parseDouble(values[5]), Double.parseDouble(values[6]), Double.parseDouble(values[7]), 1),\n\t\t\t\t\tDouble.parseDouble(values[3]), Double.parseDouble(values[4]), 15, 15, \"\", ShapeType.OVAL));\n\t\t}\n\t\telse if (values[0].equals(\"ROUNDRECT\")) {\n\t\t\tadd(new Shape(Double.parseDouble(values[1]), Double.parseDouble(values[2]),\n\t\t\t\t\t50, new Color(Double.parseDouble(values[7]), Double.parseDouble(values[8]), Double.parseDouble(values[9]), 1),\n\t\t\t\t\tDouble.parseDouble(values[3]), Double.parseDouble(values[4]), \n\t\t\t\t\tDouble.parseDouble(values[5]), Double.parseDouble(values[6]), \"\", ShapeType.ROUNDRECT));\n\t\t}\n\t\telse if (values[0].equals(\"TEXT\")) {\n\t\t\tadd(new Shape(Double.parseDouble(values[1]), Double.parseDouble(values[2]),\n\t\t\t\t\t50, new Color(Double.parseDouble(values[3]), Double.parseDouble(values[4]), Double.parseDouble(values[5]), 1),\n\t\t\t\t\t50, 50, 15, 15, \"textex\", ShapeType.TEXT));\n\t\t}\n\t\telse{\n\t\t\tadd(new Shape(0, 0, 0, new Color(0, 0, 0, 1), 0, 0, 0, 0, \"\", ShapeType.UNKNOWN));\n\t\t}\n\t\t\t\n\t\n\t}", "@Override\r\n\tpublic Vector getShapes() {\r\n\t\treturn shapes;\r\n\t}", "public void draw(Graphics g) {\n\t\tGraphics2D graphic2d = (Graphics2D) g;\n\t\t//loop through and create circles\n\t\tint bool = 0;\n\t\t//makes 36 squares\n\t\tfor (int x=1; x < 37; x++) {\t\t\t\n\t\t\tRectangle2D shape = new Rectangle2D.Double(super.getX(), super.getY(), super.width/2, super.height/2);\n\t\t\tfinal AffineTransform saved = graphic2d.getTransform();\n\t\t\t//converts 10 to radians and rotates shape by 10 degrees\n\t\t\tfinal AffineTransform rotate = AffineTransform.getRotateInstance(Math.toRadians(x*10), super.getX(), super.getY());\n\t\t\tgraphic2d.transform(rotate);\n\t\t\t//paints a different square colour every 9 squares\n\t\t\tif (x%9 == 0) {\n\t\t\t\tif (bool == 0) {\n\t\t\t\t\tgraphic2d.setPaint(super.borderColor);\n\t\t\t\t\tbool = 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tgraphic2d.setPaint(super.fillColor);\n\t\t\t\t\tbool = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tgraphic2d.setPaint(super.fillColor);\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\tgraphic2d.fill(shape);\n\t\t\tgraphic2d.setTransform(saved);\n\t\t}\n\t\tdrawHandles(g);\n\t\t\n\t}", "public void paintShapeAll(RMShapePainter aPntr)\n{\n // Get graphics\n RMShapePainter pntr = aPntr;\n \n // If clipping, clip to shape\n if(getClipShape()!=null) {\n pntr = pntr.clone();\n pntr.clip(getClipShape());\n }\n \n // Have shape paint only itself\n pntr.sendPaintShape(this);\n \n // Have shape paint children\n paintShapeChildren(pntr);\n \n // Have shape paint over\n paintShapeOver(aPntr);\n \n // If graphics copied, dispose\n if(pntr!=aPntr) pntr.dispose();\n}", "public void paint(Graphics g) {\n\t\t\tsuper.paint(g); // don't remove - required for GUI widgets to draw correctly\n\t\t\t/************************\n\t\t\t * Late Binding Demo\n\t\t\t ************************/\n\t\t\tfor (int i = 0; i < myShapes.length; i++) {\n\t\t\t\t// which draw method is invoked here?\n\t\t\t\t// There are many forms of the method (polymorphic),\n\t\t\t\t// so which is chosen?\n\t\t\t\t// Java has RTTI (run-time type info)\n\t\t\t\t// about every object,\n\t\t\t\t// and it uses this info to choose\n\t\t\t\t// the correct method to invoke!\n\t\t\t\tmyShapes[i].draw(g);\n\t\t\t}\n\t\t}", "@Override\n\tpublic void getShape() {\n\n\t}", "public void draw(Shape s)\r\n\t{\r\n\t\tPathIterator path = s.getPathIterator(_g2.getTransform());\r\n\t\tfloat[] coords = new float[6];\r\n\r\n\t\tPoint lastPoint = null;\r\n\t\tPoint newPoint = null;\r\n\r\n\t\twhile (!path.isDone())\r\n\t\t{\r\n\t\t\tint type = path.currentSegment(coords);\r\n\r\n\t\t\tswitch (type)\r\n\t\t\t{\r\n\t\t\tcase PathIterator.SEG_MOVETO:\r\n\t\t\t{\r\n\t\t\t\tlastPoint = new Point((int) coords[0], (int) coords[1]);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase PathIterator.SEG_LINETO:\r\n\t\t\t{\r\n\t\t\t\tnewPoint = new Point((int) coords[0], (int) coords[1]);\r\n\t\t\t\tif (lastPoint != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.drawLine(lastPoint.x, lastPoint.y, newPoint.x, newPoint.y);\r\n\t\t\t\t}\r\n\t\t\t\tlastPoint = newPoint;\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t}\r\n\t\t\tcase PathIterator.SEG_QUADTO:\r\n\t\t\t{\r\n\t\t\t\tlastPoint = new Point((int) coords[0], (int) coords[1]);\r\n\t\t\t\tnewPoint = new Point((int) coords[2], (int) coords[3]);\r\n\t\t\t\tthis.drawLine(lastPoint.x, lastPoint.y, newPoint.x, newPoint.y);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t}\r\n\t\t\tcase PathIterator.SEG_CUBICTO:\r\n\t\t\t{\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t}\r\n\t\t\tcase PathIterator.SEG_CLOSE:\r\n\t\t\t{\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tpath.next();\r\n\t\t}\r\n\t}", "public void moveShapes() {\n\t\tfor (int i=0;i<4;i++) {\n\t\t\tshapes[i].move(1, 1);\n\t\t}\n\t}", "public void addSquaresToList(){\r\n int i = 0;\r\n while(i<8){\r\n sqList.add(new Square(0+(i*50),0,50,\"red\"));\r\n i++;\r\n } \r\n \r\n }", "@Override\n\tpublic void redo() {\n\t\tthis.list.add(shape);\n\n\t}", "void eachVirtualShapeDo (FunctionalParameter doThis){\r\n\r\n if (fShapes.size() > 0) {\r\n Iterator iter = fShapes.iterator();\r\n\r\n while (iter.hasNext())\r\n doThis.execute(iter.next());\r\n\r\n // more here on\r\n }\r\n\r\n\r\n }", "public static void main(String[] args) {\n Rectangle rectangle = new Rectangle(\"red \",4,3);\n// System.out.println(rectangle.area());\n\n Square square = new Square(\"green \",3);\n// System.out.println(square.area());\n Circle circle = new Circle(\"blue \", 4);\n\n// System.out.println(square.getColor());\n\n Shape[] shapes = {rectangle, square, circle};\n for (Shape shape: shapes) {\n shape.showColorAndArea();\n }\n\n }", "public abstract void visit(Circle circle);", "public void addShape(final Shape theShape) {\n if (myWidth > 0) {\n final Drawing newDrawing = new Drawing(theShape, myColor, myWidth);\n if (myDrawingArray.isEmpty()) {\n firePropertyChange(ARRAY_STRING, null, NOT_EMPTY_STRING);\n }\n myDrawingArray.add(newDrawing);\n repaint();\n } \n }", "public synchronized void add(WhiteboardShape s,Reference refInst)\t\n\t{\n\t\tshapes.add(s);\n\t\tfor(Reference r:clients)\t//broadcast to all connected clients\n\t\t{\n\t\t\tif(r!=refInst)\n\t\t\t\tr.sendShape(s);\n\t\t}\n\t}", "@Test\r\n\tpublic void testAddNewShapeToScreen() {\r\n\r\n\t\t// Create a shape square\r\n\t\tPoint origin = new Point(5,5); \t // Set origin for square\r\n\t\tList<Double> list = new ArrayList<Double>(); \t // Create a new list of parameters\r\n double side = 5.0; \t // Add side as parameter for shape square \r\n list.add(side); \t\t\t\t\t\t\t\t\t\t \t // Add to list\r\n\t\tShape shape = ShapeFactory.createShape(0, origin, list); \t // 0 for creation of square\r\n\t\t\r\n\t\tscreen.shapesOnScreen.add(shape);\t\t\t\t\t\t \t // Add shape to screen\r\n\t\tassertEquals( 1, screen.shapesOnScreen.size());\t\t\t \t // Check if size of list is 1 after addition of shape\r\n\t}", "public Circle getShape(){\n\t\treturn new Circle();\n\t}", "public static void drawAll(Vector<Shape> v, Graphics g)\r\n\t{\r\n\t\tint i; \r\n\r\n\t\tfor(i=0 ; i<v.size() ; i++)\r\n\t\t{\r\n\t\t\tdouble random = Math.random()*(v.size());\r\n\t\t\tint num = (int)random;\t\t\t\r\n\t\t\tif(i==0)\r\n\t\t\t\tg.setColor(Color.GREEN);\r\n\t\t\telse if(num%5==0)\r\n\t\t\t\tg.setColor(Color.ORANGE);\r\n\t\t\telse if(num%8==0)\r\n\t\t\t\tg.setColor(Color.BLUE);\r\n\t\t\telse if(num%7==0)\r\n\t\t\t\tg.setColor(Color.RED);\r\n\t\t\telse if(num%9==0)\r\n\t\t\t\tg.setColor(Color.GRAY);\r\n\t\t\t\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tif(i%3==0)\r\n\t\t\t\t\tg.setColor(Color.CYAN);\r\n\t\t\t\telse if(i%4 == 0)\r\n\t\t\t\t\tg.setColor(Color.magenta);\r\n\t\t\t\telse\r\n\t\t\t\t\tg.setColor(Color.LIGHT_GRAY);\r\n\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t(v.get(i)).draw(g);\r\n\t\t}\r\n\r\n\t}", "@Override\n public void remove(Shape[] shapes) {\n\n }", "public void paint(Graphics g )\n {\n super.paint(g); // is no super.paint(), then lines stay on screen \n \n for ( int i=0; i<allTheShapesCount; i++ )\n {\n allTheShapes[ i ] . drawMe(g);\n }\n }", "public void assignShape() {\n\t\t\n\t}", "public NewShape() {\r\n\t\tsuper();\r\n\t}", "@Override\n public void redo() {\n shapeList.add((newShape));\n }", "public void setShapes(Object shapes) {\r\n this.shapes = shapes;\r\n }", "private String drawAllShapes() {\n\n /*\n Have list of list for each shape and the motions of each shape\n Need to iterate through the frames and for each motion in a frame\n add it to the corresponding shape in the list of lists\n */\n StringBuilder shapeSVG = new StringBuilder();\n Map<Integer, List<Shape>> animationFrames = this.model.getFrames();\n List<List<Shape>> shapeStates = new ArrayList<>();\n for (Integer key : new TreeSet<>(animationFrames.keySet())) {\n List<Shape> singleFrame = animationFrames.get(key);\n for (Shape shape : singleFrame) {\n if (!this.containsShapeList(shapeStates, shape.getName())) {\n List<Shape> shapeMotions = new ArrayList<>();\n shapeMotions.add(singleFrame.get(singleFrame.indexOf(shape)));\n shapeStates.add(shapeMotions);\n } else {\n shapeStates.get(this.findShape(shapeStates, shape.getName()))\n .add(singleFrame.get(singleFrame.indexOf(shape)));\n }\n }\n }\n\n for (List<Shape> shape : shapeStates) {\n shapeSVG.append(this.drawSingleShape(shape.get(0).getName(), shape.get(0).getType(), shape))\n .append(\"\\n\");\n }\n\n return shapeSVG.toString();\n }", "void displayShape(Shape shape);", "public void setShapes(ArrayList<DrawableGUIShape> shapes) {\n if (shapes == null) {\n throw new IllegalArgumentException(\"invalid shape list\");\n } else {\n for (DrawableGUIShape s : shapes) {\n if (s == null) {\n throw new IllegalArgumentException(\"invalid shape list\");\n }\n }\n }\n this.shapes.clear();\n this.shapes.addAll(shapes);\n }", "@Override\n\tpublic void update() {\n\t\tfor (ShapeBase w : getChildren()) {\n\t\t\tw.update();\n\t\t}\n\t}", "public void run() {\n\n for (IDrawShape copiedShape : shapeList.getClipBoard() ) {\n newShape = copiedShape;\n //offset the shape, per Prof instructions\n newShape.addX(100);\n newShape.addY(100);\n\n CreateShapeCommand shape = new CreateShapeCommand(appState, shapeList, newShape.getShapeInfo());\n\n shapeList.add(shape.shapeFactory.createShape(newShape.getShapeInfo()));\n\n }\n CommandHistory.add(this);\n }", "@Override\r\n\tpublic void redo() {\n\t\tfor(IShape shape : tempList)\r\n\t\t\tshapeList.add(shape);\r\n\t}", "void visit(Circle circle);", "static public void collection(Shape2DCollection collection, float dx, float dy){\n for (Shape2D subShape:collection.items){\n shape(subShape,dx,dy);\n }\n }", "abstract Shape nodeShape(String node, Graphics2D g2d);", "public World(double width, double height) {\n this.width = width;\n this.height = height;\n\n\n shapes = new Shape[3]; // an array of references (change to non-zero size)\n // Create the actual Shape objects (sub types)\n // ....\n\n shapes[0] = new Line(50,100,50,50, Color.BLUE);\n shapes[1] = new Circle(75,75,30,Color.BLACK);\n shapes[2] = new Rectangle(40,50,40,40,Color.GREEN);\n\n\n }", "public void addShape(PhysicsShape shape) {\n\t\tshapes.add(shape);\n\t}", "void drawShape() {\n System.out.println(\"Drawing Triangle\");\n this.color.addColor();\n }", "private void createList() {\n /**\n * New design, split input in array list so we can directly call the shape factory and create the shape in there\n * The current design from assignment 1 will be too complicated to extend because it is optimised\n * for a polygon, I attempted to keep the same design, but had a check for the instance type, which worked\n * but if we added more shapes that required different reading in implementation then there will be a lot of if\n * statements which would be difficult to maintain.\n */\n\n /**\n * was using input.hasNextLine() but that only works if the data is following a point by line structure. What if a point\n * starts on the same line? This will break\n */\n\n String data = \"\";\n\n //Check if there is an input\n while(input.hasNext()) {\n System.out.print(\"Reading character by character: \");\n\n\n data = data.concat(input.next() + \" \");\n\n System.out.print(data + \"\\n\");\n\n //This if checks if there is a polygon, circle or semi-circle to be added\n //The last check ensures that the final shape to be added is not ignored\n if(input.hasNext(\"P\") || input.hasNext(\"C\") || input.hasNext(\"S\") || !input.hasNext()) {\n System.out.println(\"Next is a new shape\");\n unorderedList.append(shapeFactory(data));\n System.out.println(\"\\n\");\n data = \"\";\n }\n }\n\n\n\n\n\n// while(input.hasNext()) {\n// String value = input.next(); //set the value to the input.next so it can be reused later\n//\n// //Ignore space characters\n// if(value.equals(\" \")) {\n// continue;\n// }\n//\n// //Switch through the steps in the create process\n// //Each step will go onto the next process. e.g POLYGON -> SIZE\n// switch (inputType) {\n// case SHAPE:\n// System.out.println(\"CREATING A SHAPE: \" + value);\n// //Creates a new shape\n// shape = shapeFactory(value);\n//\n// //To keep the same flow, this checks if the type requires the size or not.\n// if(requireSize(shape)) {\n// System.out.println(\"\\t Shape is a polygon\");\n// inputType = InputType.SIZE;\n// } else {\n// System.out.println(\"\\t Shape is not a polygon\");\n// inputType = InputType.XCOORDINATE;\n// }\n//\n// break;\n// case SIZE:\n// //Sets the size of the array in polygon\n// shape.setSize(Integer.parseInt(value));\n// inputType = InputType.XCOORDINATE;\n// break;\n// case XCOORDINATE:\n// //Sets the x-coordinate of a point\n// System.out.println(\"\\t Adding x value: \" + value);\n// point.setXCoordinate(Float.parseFloat(value));\n// inputType = InputType.YCOORDINATE;\n// break;\n// case YCOORDINATE:\n// //Sets the y-coordinate of a point\n// System.out.println(\"\\t Adding y value: \" + value);\n// point.setYCoordinate(Float.parseFloat(value));\n//\n// System.out.println(\"\\t Adding point to the shape: \" + point.toString() + \", Pos: \"+ position);\n// //shapes.Point now has two values, so add to shape\n// shape.addPoint(point, position);\n//\n// //Reset point so we don't get any reference issues\n// point = new Point();\n// position++;\n//\n// if(!requireRadius(shape)) {\n// //Check if all points have been added or not\n// if (position == shape.getSize() - 1) {\n// //All points have been added, hence:\n//\n// shape.addFirstPoint(); //add the first point to the array\n// unorderedList.append(shape); //append polygon to the list\n//\n// //Set the input type back to polygon to add a new polygon\n// inputType = InputType.SHAPE;\n// position = 0; //reset position to add items to the start of the array\n// } else {\n// //More points to be added\n// inputType = InputType.XCOORDINATE;\n//\n// }\n// } else {\n// inputType = InputType.RADIUS;\n// }\n// break;\n// case RADIUS:\n// System.out.println(\"Adding radius: \" + value);\n// ((Circle)shape).addRadius(Float.parseFloat(value));\n//\n// unorderedList.append(shape);\n// inputType = InputType.SHAPE;\n// position = 0;\n// break;\n// }\n// }\n input.close();\n }", "public void drawCircle() {\n mMap.clear();\n // Generate the points\n mMap.addPolygon(new PolygonOptions().addAll(points).strokeWidth(5).strokeColor(Color.RED).fillColor(Color.TRANSPARENT));\n // Create and return the polygon\n for (int i=0;i<points.size();i++){\n Log.v(\"DrawCircle\",\"drwaakmdaskfmlsmn\"+points.get(i));\n }\n\n\n\n }", "@Override\n\tpublic void createCollisionShape() {\n\t\t\n\t}", "void visit(FilledCircle filledCircle);", "private void insertRandomShapes() {\n for (int i = 0; i < gameProperties.numShapes; i++) {\n trayFlowPane.getChildren().add(new CardBack());\n }\n\n for (int i = 0; i < gameProperties.numShapes; i++) {\n int shapeRand = random.nextInt(gameProperties.shapes.size());\n int colorRand = random.nextInt(gameProperties.colors.size());\n\n CardShape s = new CardShape(gameProperties.shapes.get(shapeRand).getImage(),\n gameProperties.colors.get(colorRand).getImage(), shapeRand, colorRand);\n\n setCardShapeOnClicked(s);\n\n correctShapeOrdering.add(s);\n }\n\n\n //apparently getChildren.sort() doesn't work, so here we have this silly workaround:\n ObservableList<Node> workingCollection = FXCollections.observableArrayList(correctShapeOrdering);\n Collections.sort(workingCollection, null);\n shapeFlowPane.getChildren().setAll(workingCollection);\n shapeFlowPane.getChildren().forEach(s -> {\n Timeline t = new Timeline(\n new KeyFrame(new Duration(200), new KeyValue(s.rotateProperty(), 0)),\n new KeyFrame(new Duration(1000), new KeyValue(s.rotateProperty(), 360))\n );\n t.playFromStart();\n });\n }", "public void groupShape() {\n\t\tif(currentShape != null && !(groupedShapes.contains(currentShape))) {\n\t\t\tgroupedShapes.add(currentShape);\n\t\t\tnotifyObservers();\n\t\t}\n\t}", "public interface Shape\n{\n void draw();\n}", "public void draw() {\n for (Point2D p: mPoints) {\n StdDraw.filledCircle(p.x(), p.y(), 0.002);\n }\n }", "void currentFrame(List<IShape> shapes);", "private void add() {\n\n\t}", "public ZPathLayoutManager(Shape s) {\n\tpath = new ArrayList();\n\tsetShape(s);\n }", "public Iterator<Shape> iterator(){\n\t\treturn shapes.iterator();\n\t}", "public abstract void visit(FilledCircle filledCircle);", "private void paintBeanMachine(){\n Line baseLine = new Line();\n\n baseLine.startXProperty().bind(widthProperty().multiply(0.2));\n baseLine.startYProperty().bind(heightProperty().multiply(0.8));\n baseLine.endXProperty().bind(widthProperty().multiply(0.8));\n baseLine.endYProperty().bind(heightProperty().multiply(0.8));\n\n // distance gap per circle\n double distance = (baseLine.getEndX() - baseLine.getStartX()) / SLOTS;\n ballRadius = distance / 2;\n\n //Draw pegs\n DoubleBinding dist = baseLine.endXProperty().subtract(baseLine.startXProperty()).divide(SLOTS);\n Circle[] pegs = new Circle[factorialSum(SLOTS)];\n int index = 0;\n\n for(int row = 0; row < SLOTS; row++){\n DoubleBinding y = baseLine.startYProperty().subtract(heightProperty().multiply(0.2).divide(row + 1));\n\n for(int col = 0; col < SLOTS - row; col++){\n Circle peg = new Circle(5, Color.BLUE);\n\n peg.centerXProperty().bind(baseLine.startXProperty()\n .add(dist.multiply(row).multiply(0.5))\n .add(dist.divide(2))\n .add(dist.multiply(row)));\n peg.centerYProperty().bind(y);\n\n //peg = new Circle(x, y, mWidth * 0.012, Color.BLUE);\n System.out.println(index);\n pegs[index++] = peg;\n\n Line line = new Line();\n line.startXProperty().bind(peg.centerXProperty());\n line.startYProperty().bind(peg.centerYProperty());\n line.endXProperty().bind(peg.centerXProperty());\n line.endYProperty().bind(baseLine.startYProperty());\n getChildren().add(line);\n }\n }\n\n /*\n for(int i = 1; i <= SLOTS; i++){\n double x = baseLine.getStartX() + (i * distance * 0.50) + distance / 2;\n double y = baseLine.getStartY() - (distance * i) - distance / 2;\n\n for(int j = 0; j <= SLOTS - i; j++){\n Circle peg = new Circle(5, Color.BLUE);\n DoubleBinding dist = baseLine.endXProperty().subtract(baseLine.startXProperty()).divide(SLOTS);\n\n peg.centerXProperty().bind(baseLine.startXProperty()\n .add(dist.multiply(i).multiply(0.5))\n .add(dist.divide(2)));\n peg.centerYProperty().bind(baseLine.startYProperty()\n .subtract(dist.multiply(i))\n .subtract(dist.divide(2)));\n\n //peg = new Circle(x, y, mWidth * 0.012, Color.BLUE);\n System.out.println(index);\n pegs[index++] = peg;\n x += distance;\n }\n }\n */\n\n distance = distance + (distance / 2) - pegs[0].getRadius();\n // Connect the base of the triangle with lowerLine\n // NOT including left most and right most line\n Line[] lines = new Line[SLOTS - 1];\n for (int i = 0; i < SLOTS - 1; i++) {\n double x1 = pegs[i].getCenterX() + pegs[i].getRadius() * Math.sin(Math.PI);\n double y1 = pegs[i].getCenterY() - pegs[i].getRadius() * Math.cos(Math.PI);\n lines[i] = new Line(x1, y1, x1, y1 + distance);\n\n }\n // Draw right most and left most most line\n Line[] sides = new Line[6];\n sides[0] = new Line(\n baseLine.getEndX(), baseLine.getEndY(),\n baseLine.getEndX(), baseLine.getEndY() - distance);\n sides[1] = new Line(\n baseLine.getStartX(), baseLine.getStartY(),\n baseLine.getStartX(), baseLine.getStartY() - distance);\n\n //Draw left side line\n /*\n for(int i = 2; i < 4; i++){\n double x = pegs[pegs.length - i].getCenterX();\n double y = pegs[pegs.length - i].getCenterY() - distance;\n sides[i] = new Line(x, y, sides[i - 2].getEndX(), sides[i - 2].getEndY());\n }\n */\n\n // Draw the upper 2 lines on top of the triangle\n /*\n for (int i = 4; i < sides.length; i++){\n sides[i] = new Line(\n sides[i-2].getStartX(), sides[i-2].getStartY(),\n sides[i-2].getStartX(), sides[i-2].getStartY() - (distance * 0.6)\n );\n }\n */\n\n getChildren().addAll(baseLine);\n getChildren().addAll(pegs);\n //getChildren().addAll(lines);\n //getChildren().addAll(sides);\n }" ]
[ "0.7270528", "0.69397044", "0.6787441", "0.6769951", "0.670287", "0.66671485", "0.66288465", "0.6576028", "0.65357804", "0.6503285", "0.6493606", "0.64604044", "0.6436973", "0.6408194", "0.6386848", "0.6386848", "0.6386848", "0.6385728", "0.6378396", "0.6357351", "0.6354815", "0.63114625", "0.6296232", "0.62605435", "0.6235937", "0.62262034", "0.6189793", "0.6183639", "0.61731404", "0.6134145", "0.6130807", "0.6051974", "0.6019572", "0.6005387", "0.6004791", "0.5982435", "0.59784865", "0.5975214", "0.5974772", "0.5972648", "0.5957398", "0.59539235", "0.5944067", "0.59393185", "0.5923877", "0.5907349", "0.589668", "0.58890295", "0.588243", "0.5862733", "0.5860007", "0.5848382", "0.5834367", "0.58143413", "0.58073324", "0.5805745", "0.57951427", "0.5790157", "0.57811064", "0.5765372", "0.5759768", "0.5759568", "0.5755855", "0.5748655", "0.5743904", "0.5736529", "0.5717151", "0.5708099", "0.5708077", "0.57010543", "0.569478", "0.5691193", "0.5690072", "0.56882054", "0.5684935", "0.56834984", "0.56782514", "0.565772", "0.565492", "0.56532335", "0.5649099", "0.5647047", "0.5643124", "0.56430477", "0.5641965", "0.5640818", "0.564036", "0.56401443", "0.5636243", "0.56360734", "0.5630386", "0.5624998", "0.56111705", "0.5607313", "0.56049347", "0.559585", "0.55937785", "0.55934983", "0.5590729", "0.55906725" ]
0.66731405
5
Called when the database is created for the first time. This is where the creation of tables and the initial population of the tables should happen.
@Override public void onCreate(SQLiteDatabase db) { String sql = "CREATE TABLE IF NOT EXISTS "+TABLE_PLAYERS+" ("+COL_PLAYER_ID+" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL," + ""+COL_NAME+" TEXT NOT NULL,"+COL_COMMANDER+" TEXT NOT NULL,"+COL_PLAYED+" INTEGER)"; db.execSQL(sql); sql = "CREATE TABLE IF NOT EXISTS "+TABLE_COMMANDERS+" ("+COL_COMMANDER_ID+" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL," + ""+COL_COMMANDER+" TEXT NOT NULL," + ""+COL_COST+" TEXT NOT NULL,"+COL_IMAGE+" TEXT)"; db.execSQL(sql); initTables(db); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setupDB()\r\n\t{\n\tjdbcTemplateObject.execute(\"DROP TABLE IF EXISTS employee1 \");\r\n\r\n\tjdbcTemplateObject.\r\n\texecute(\"CREATE TABLE employee1\"\r\n\t+ \"(\" + \"name VARCHAR(255), id SERIAL)\");\r\n\t}", "public void initDb() {\n String createVac = \"create table if not exists vacancies(id serial primary key,\"\n + \"name varchar(1500) NOT NULL UNIQUE, url varchar (1500), description text, dateVac timestamp);\";\n try (Statement st = connection.createStatement()) {\n st.execute(createVac);\n } catch (SQLException e) {\n LOG.error(e.getMessage());\n }\n }", "void go() {\n\t\tthis.conn = super.getConnection();\n\t\tcreateCustomersTable();\n\t\tcreateBankersTable();\n\t\tcreateCheckingAccountsTable();\n\t\tcreateSavingsAccountsTable();\n\t\tcreateCDAccountsTable();\n\t\tcreateTransactionsTable();\n\t\tcreateStocksTable();\n\t\tif(createAdminBanker) addAdminBanker();\n\t\tSystem.out.println(\"Database Created\");\n\n\t}", "@Override\n\t\tpublic void onCreate(SQLiteDatabase database) {\n\t\t\tcreateTable(database);\n\n\t\t}", "private void setupDatabase() {\r\n\t\tDatabaseHelperFactory.init(this);\r\n\t\tdatabase = DatabaseHelperFactory.getInstance();\r\n\t}", "@Override\n\tpublic void onCreate(SQLiteDatabase database) {\n\t\tAppDBTableCreation.onCreate(database);\n\t}", "@Override\n\tpublic void onCreate(SQLiteDatabase database) {\n\t\tcreateTables(database);\n\t}", "protected void createInitialTables() throws SQLException {\n\t\n\t\t// create one table per type with the corresponding attributes\n\t\tfor (String type: entityType2attributes.keySet()) {\n\t\t\tcreateTableForEntityType(type);\n\t\t}\n\t\t\n\t\t// TODO indexes !\n\t\t\n\t}", "public void init() {\n\n\t\tConnection connection = null;\n\t\tStatement statement = null;\n\n\t\ttry {\n\n\t\t\tconnection = DatabaseInteractor.getConnection();\n\t\t\tstatement = connection.createStatement();\n\n\t\t} catch (SQLException exception) {\n\t\t\texception.printStackTrace();\n\t\t\treturn;\n\t\t} catch (ClassNotFoundException exception) {\n\t\t\texception.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\n\t\t\tDatabaseInteractor.createTable(StringConstants.USERS_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.QUESTIONS_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.ANSWERS_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.TOPICS_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.USER_QUESTION_VOTES_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.USER_ANSWER_VOTES_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.USER_TOPIC_RANKS_TABLE, statement);\n\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\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}", "private void creates() {\n \tDBPeer.fetchTableColumns();\n \tDBPeer.fetchTableRows();\n \tDBPeer.fetchTableIndexes();\n \t\n for (int i = 0; i < creates.size(); i++) {\n creates.get(i).init();\n }\n \n DBPeer.updateTableColumns();\n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n }", "protected void setupDB() {\n\t\tlog.info(\"------------------------------------------\");\n\t\tlog.info(\"Initialization database started\");\n\t\tlog.info(\"ddl: db-config.xml\");\n\t\tlog.info(\"------------------------------------------\");\n\t\ttry {\n\t\t\tfinal List<String> lines = Files.readAllLines(Paths.get(this.getClass()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getClassLoader()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getResource(\"create-campina-schema.sql\")\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toURI()), Charset.forName(\"UTF-8\"));\n\n\t\t\tfinal List<String> statements = new ArrayList<>(lines.size());\n\t\t\tString statement = \"\";\n\t\t\tfor (String string : lines) {\n\t\t\t\tstatement += \" \" + string;\n\t\t\t\tif (string.endsWith(\";\")) {\n\t\t\t\t\tstatements.add(statement);\n\t\t\t\t\tstatement = \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry (final Connection con = conManager.getConnection(Boolean.FALSE)) {\n\t\t\t\ttry (final PreparedStatement pstmt = con.prepareStatement(\"DROP SCHEMA IF EXISTS campina\")) {\n\t\t\t\t\tpstmt.executeUpdate();\n\t\t\t\t}\n\t\t\t\tfor (String string : statements) {\n\t\t\t\t\tlog.info(\"Executing ddl: \" + string);\n\t\t\t\t\ttry (final PreparedStatement pstmt = con.prepareStatement(string)) {\n\t\t\t\t\t\tpstmt.executeUpdate();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tthrow new IllegalStateException(\"Could not setup db\", e);\n\t\t\t}\n\t\t} catch (Throwable e) {\n\t\t\tlog.error(\"Could not setup database\", e);\n\t\t\tthrow new IllegalStateException(\"ddl file load failed\", e);\n\t\t}\n\t\tlog.info(\"------------------------------------------\");\n\t\tlog.info(\"Initialization database finished\");\n\t\tlog.info(\"------------------------------------------\");\n\t}", "private void initTables() {\n try (Connection connection = this.getConnection();\n Statement statement = connection.createStatement()) {\n statement.execute(INIT.CREATE_CITIES.toString());\n statement.execute(INIT.CREATE_ROLES.toString());\n statement.execute(INIT.CREATE_MUSIC.toString());\n statement.execute(INIT.CREATE_ADDRESS.toString());\n statement.execute(INIT.CREATE_USERS.toString());\n statement.execute(INIT.CREATE_USERS_TO_MUSIC.toString());\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }", "public static void SetupDB() {\n\t\tdb.execSQL(\"CREATE TABLE IF NOT EXISTS User(email TEXT,name TEXT, displayPic BLOB);\");\n\t\tdb.execSQL(\"CREATE TABLE IF NOT EXISTS FriendList(ID INTEGER PRIMARY KEY, email TEXT,name TEXT, displayPic BLOB);\");\n\t\tdb.execSQL(\"CREATE TABLE IF NOT EXISTS Category(ID INTEGER PRIMARY KEY,name TEXT);\");\n\t}", "private void createTables() {\n\n\t\tAutoDao.createTable(db, true);\n\t\tAutoKepDao.createTable(db, true);\n\t\tMunkaDao.createTable(db, true);\n\t\tMunkaEszkozDao.createTable(db, true);\n\t\tMunkaKepDao.createTable(db, true);\n\t\tMunkaTipusDao.createTable(db, true);\n\t\tPartnerDao.createTable(db, true);\n\t\tPartnerKepDao.createTable(db, true);\n\t\tProfilKepDao.createTable(db, true);\n\t\tSoforDao.createTable(db, true);\n\t\tTelephelyDao.createTable(db, true);\n\t\tPushMessageDao.createTable(db, true);\n\n\t}", "public void onCreate() {\r\n\t\tcreatorClass.onCreate(table);\r\n\t}", "@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n String sql = \"drop table \" + MelodyData.CreateDB._TABLENAME;\n sqLiteDatabase.execSQL(AccompanimentData.CreateDB._CREATE);\n sqLiteDatabase.execSQL(MelodyData.CreateDB._CREATE);\n }", "private void initDatabase() {\n\n String sql = \"CREATE TABLE IF NOT EXISTS books (\\n\"\n + \"\tISBN integer PRIMARY KEY,\\n\"\n + \"\tBookName text NOT NULL,\\n\"\n + \" AuthorName text NOT NULL, \\n\"\n + \"\tPrice integer\\n\"\n + \");\";\n\n try (Connection conn = DriverManager.getConnection(urlPath);\n Statement stmt = conn.createStatement()) {\n System.out.println(\"Database connected\");\n stmt.execute(sql);\n\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "@Override\n\tpublic void onCreate(SQLiteDatabase db, ConnectionSource connectionSource) {\n\t\tthis.connectionSource = connectionSource;\n\t\tcreateTable();\n\t}", "private void createDB() {\n try {\n Statement stat = conn.createStatement();\n stat.execute(\"CREATE TABLE settings (name TEXT, state);\");\n stat.execute(\"CREATE TABLE expressions (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n stat.execute(\"CREATE TABLE summaries (id INTEGER PRIMARY KEY ASC, expression_id INTEGER, title TEXT, abstract TEXT);\");\n stat.execute(\"CREATE TABLE history (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n } catch (SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n System.exit(0);\n }\n }", "@Override\n\tpublic void onCreate(SQLiteDatabase db, ConnectionSource connectionSource) {\n\t\ttry {\n\t\t\tLog.i(DatabaseHelper.class.getName(), \"onCreate\");\n\t\t\tTableUtils.createTable(connectionSource, Place.class);\n\t\t\tTableUtils.createTable(connectionSource, Lock.class);\n\t\t\tTableUtils.createTable(connectionSource, User.class);\n\t\t\tTableUtils.createTable(connectionSource, Locator.class);\n\t\t} catch (SQLException e) {\n\t\t\tLog.e(DatabaseHelper.class.getName(), \"Can't create database\", e);\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "@Override\r\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tcreateDataTable(db);\r\n\t\tcreateTableNote(db);\r\n\t}", "private void onCreate() {\n\n\n if (!db.hasTable(DbTables.PLAYER)) {\n db.execSQL(CREATE_PLAYER_TABLE);\n }\n\n if (!db.hasTable(DbTables.SHIP)) {\n db.execSQL(CREATE_SHIP_TABLE);\n }\n\n if (!db.hasTable(DbTables.CARGO)) {\n db.execSQL(CREATE_CARGO_TABLE);\n }\n }", "@Override\n\t\tpublic void onCreate(SQLiteDatabase db) {\n\t\t\ttry {\n\t\t\t\tdb.execSQL(TABLE_CREATE);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t\n\t\t\t}\n\t\t}", "public void initialize()\r\n\t{\r\n\t\tdatabaseHandler = DatabaseHandler.getInstance();\r\n\t\tfillPatientsTable();\r\n\t}", "@Override\n public void onCreate(SQLiteDatabase database, ConnectionSource connectionSource) {\n\n try {\n TableUtils.createTableIfNotExists(connectionSource, MessageBoard.class);\n TableUtils.createTableIfNotExists(connectionSource, User.class);\n TableUtils.createTableIfNotExists(connectionSource, ChatServerBean.class);\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "private void setupDb(){\n try {\n openConnection();\n s.executeUpdate(\"CREATE TABLE IF NOT EXISTS LIB (NAME text UNIQUE , TYPE text, LANGUAGE text, INTRUSIVE text, OPENSOURCE text)\");\n }catch (SQLException e) {\n System.err.println(e.getMessage());\n }finally {\n if (c != null){\n close(c);\n }\n }\n }", "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tLog.v(\"open onCreate\", \"Creating all the tables\");\n\n\t\ttry {\n\t\t\n\t\t\tdb.execSQL(CREATE_TABLE1);\n\t\t} catch (SQLiteException ex) {\n\t\t\tLog.v(\"open exception caught\", ex.getMessage());\n\n\t\t}\n\t}", "@Override\r\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tFormDAO.createTable(db);\r\n//\t\tCreate table ENumber\r\n\t\tENumberDAO.createTable(db);\r\n\t\t\r\n\r\n\t}", "@Override\n\tpublic void onCreate(SQLiteDatabase sdb) {\n\t\tsdb.execSQL(CREATE_QUERY);\n\t\tLog.d(\"Database operations\", \"table created\");\n\t}", "public void dbCreate() {\n Logger.write(\"INFO\", \"DB\", \"Creating database\");\n try {\n if (!Database.DBDirExists())\n Database.createDBDir();\n dbConnect(false);\n for (int i = 0; i < DBStrings.createDB.length; i++)\n execute(DBStrings.createDB[i]);\n } catch (Exception e) {\n Logger.write(\"FATAL\", \"DB\", \"Failed to create databse: \" + e);\n }\n }", "@Override\n\tpublic void onCreate(SQLiteDatabase sdb) {\n\t\tsdb.execSQL(CREATE_QUERY);\n\t\tLog.d(\"DB ops: \", \"Table Created \");\n\t}", "public void initialize() {\n for (TableInSchema tableInSchema : initialTables()) {\n addTable(tableInSchema);\n }\n }", "private void createTables() throws SQLException\r\n {\r\n createTableMenuItems();\r\n createTableOrdersWaiting();\r\n }", "public Database()\r\n\t{\r\n\t\tinitializeDatabase();\r\n\t\t\r\n\t}", "public void createTable() {\r\n\t\tclient.createTable();\r\n\t}", "@Override\n public void onCreate(SQLiteDatabase db){\n //execute the SQL statements to actually create the specified tables\n db.execSQL(SQL_CREATE_PRODUCTS_TABLE);\n db.execSQL(SQL_CREATE_SUPPLIERS_TABLE);\n db.execSQL(SQL_CREATE_CATEGORIES_TABLE);\n }", "@Override\n //\n public void onCreate(SQLiteDatabase db)\n {\n db.execSQL(DATABASE_CREATE);\n }", "@Before\n public void createDatabase() {\n dbService.getDdlInitializer()\n .initDB();\n kicCrud = new KicCrud();\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n new Tables(db).makeContactTable();\n new Tables(db).makeTalkTable();\n new Tables(db).makeConferenceTable();\n new Tables(db).makeNotificationTable();\n }", "@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n\n db.execSQL(CategoryTable.getCreateTableSqlString());\n db.execSQL(ReminderTable.getCreateTableSqlString());\n }", "@Override\n public void onCreate(SQLiteDatabase _db) {\n _db.execSQL(DATABASE_CREATE);\n }", "@Override\n public void setUp() throws SQLException {\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"ENTRY\\\" (\" +\n \"\\\"SHARED_ID\\\" SERIAL PRIMARY KEY, \" +\n \"\\\"TYPE\\\" VARCHAR, \" +\n \"\\\"VERSION\\\" INTEGER DEFAULT 1)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"FIELD\\\" (\" +\n \"\\\"ENTRY_SHARED_ID\\\" INTEGER REFERENCES \\\"ENTRY\\\"(\\\"SHARED_ID\\\") ON DELETE CASCADE, \" +\n \"\\\"NAME\\\" VARCHAR, \" +\n \"\\\"VALUE\\\" TEXT)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"METADATA\\\" (\"\n + \"\\\"KEY\\\" VARCHAR,\"\n + \"\\\"VALUE\\\" TEXT)\");\n }", "@Override\n\tpublic void onCreate(SQLiteDatabase db, ConnectionSource source) {\n\n\t\ttry {\n\t\t\tTableUtils.createTable(source, Priority.class);\n\t\t\tTableUtils.createTable(source, Category.class);\n\t\t\tTableUtils.createTable(source, Task.class);\n\t\t} catch (SQLException ex) {\n\t\t\tLog.e(LOG, \"error creating tables\", ex);\n\t\t}\n\n\t}", "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tString[] tables = CREATE_TABLES.split(\";\");\n\t\tfor(String SQL : tables){\n\t\t db.execSQL(SQL);\n\t\t}\n\t}", "public void onCreate(SQLiteDatabase sqliteDB) \n \t\t{\n \t\t\tsqliteDB.execSQL(sqlStatement_CreateTable); // creates a table\n \t\t\tLog.e(\"pigtail\",\"CREATING TABLE\");\n \t\t}", "@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(DATABASE_CREATE);\n }", "private void initTables() {\n insert(\"CREATE TABLE IF NOT EXISTS `player_info` (`player` VARCHAR(64) PRIMARY KEY NOT NULL, `json` LONGTEXT)\");\n }", "public void createNewDataBase() {\n try (Connection conn = DriverManager.getConnection(url)) {\n if (conn != null) {\n DatabaseMetaData meta = conn.getMetaData();\n createNewTable();\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "@Override\n public void onCreate(SQLiteDatabase database) {\n ShoulderWatchTable.onCreate(database);\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(CREATE_TABLE);\n }", "Database createDatabase();", "@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(DATABASE_CREATE);\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n // Create the table.\n db.execSQL(SQL_CREATE);\n }", "public FakeDatabase() {\n\t\t\n\t\t// Add initial data\n\t\t\n//\t\tSystem.out.println(authorList.size() + \" authors\");\n//\t\tSystem.out.println(bookList.size() + \" books\");\n\t}", "public void init() throws SQLException {\n EventBusInstance.getInstance().register(new BestEffortsDeliveryListener());\n if (TransactionLogDataSourceType.RDB == transactionConfig.getStorageType()) {\n Preconditions.checkNotNull(transactionConfig.getTransactionLogDataSource());\n createTable();\n }\n }", "@Before\n public void initDb() {\n mDatabase = Room.inMemoryDatabaseBuilder(InstrumentationRegistry.getContext(),\n ToDoDatabase.class).build();\n }", "DatabaseTable_DataSource(SQLiteDatabase db) {\n createIfNotExists(db);\n }", "public void CreateTables() {\n\t\ttry {\n\t\t\tString schema = Schema.META;\n\t\t\tInstall_DBMS_MetaData(schema.getBytes(),0);\n\n\t\t\t// load and install QEPs\n\t\t\tClass<?>[] executionPlans = new Class[] { QEP.class };\n\t\t\tQEPng.loadExecutionPlans(TCell_QEP_IDs.class, executionPlans);\n\t\t\tQEPng.installExecutionPlans(db);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void initialize() {\n if (databaseExists()) {\n SharedPreferences prefs = PreferenceManager\n .getDefaultSharedPreferences(mContext);\n int dbVersion = prefs.getInt(SP_KEY_DB_VER, 1);\n if (DATABASE_VERSION != dbVersion) {\n File dbFile = mContext.getDatabasePath(DBNAME);\n if (!dbFile.delete()) {\n Log.w(TAG, \"Unable to update database\");\n }\n }\n }\n if (!databaseExists()) {\n createDatabase();\n }\n }", "private void initDb() throws SQLException {\n statement = conn.createStatement();\n for (String sql : TABLES_SQL) {\n statement.executeUpdate(sql);\n }\n }", "public void onCreate(SQLiteDatabase db) {\n Cursor cursor = db.rawQuery(\n \"SELECT name FROM sqlite_master \" +\n \"WHERE type='table' AND name='\" +\n SymptomCheckinTable.TABLE_NAME + \"' \", null);\n try {\n if (cursor.getCount()==0) {\n db.execSQL(SymptomCheckinTable.DATABASE_CREATE);\n db.execSQL(MedicationIntakeTable.DATABASE_CREATE);\n }\n }\n finally {\n cursor.close();\n }\n }", "public void createTable()\n throws DBException\n {\n try {\n DBProvider.createTable(this);\n } catch (SQLException sqe) {\n throw new DBException(\"Table creation\", sqe);\n }\n }", "public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }", "private static void initializeDatabase()\n\t{\n\t\tResultSet resultSet = dbConnect.getMetaData().getCatalogs();\n\t\tStatment statement = dbConnect.createStatement();\n\t\t\n\t\tif (resultSet.next())\n\t\t{\n\t\t\tstatement.execute(\"USE \" + resultSet.getString(1));\n\t\t\tstatement.close();\n\t\t\tresultSet.close();\n\t\t\treturn; //A database exists already\n\t\t}\n\t\tresultSet.close();\n\t\t//No database exists yet, create it.\n\t\t\n\t\tstatement.execute(\"CREATE DATABASE \" + dbName);\n\t\tstatement.execute(\"USE \" + dbName);\n\t\tstatement.execute(createTableStatement);\n\t\tstatement.close();\n\t\treturn;\n\t}", "@Override\n\t\tpublic void onCreate(SQLiteDatabase db) {\n\t\t\tEventData.create(db);\n\t\t\tTriggerData.create(db);\n\t\t\tHostData.create(db);\n\t\t\tHostGroupData.create(db);\n\t\t\tItemData.create(db);\n\t\t\tApplicationData.create(db);\n\t\t\tCacheData.create(db);\n\t\t\tApplicationItemRelationData.create(db);\n\t\t\tHistoryDetailData.create(db);\n\t\t\tScreenData.create(db);\n\t\t\tScreenItemData.create(db);\n\t\t\tGraphData.create(db);\n\t\t\tGraphItemData.create(db);\n\t\t}", "@Override\r\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(CREATE_TABLE);\r\n db.execSQL(CREATE_TABLE1);\r\n\r\n }", "protected void createTable() throws Exception {\n startService();\n assertEquals(true, sqlDbManager.isReady());\n\n Connection conn = sqlDbManager.getConnection();\n assertNotNull(conn);\n assertFalse(sqlDbManager.tableExists(conn, \"testtable\"));\n assertTrue(sqlDbManager.createTableIfMissing(conn, \"testtable\",\n\t\t\t\t\t TABLE_CREATE_SQL));\n assertTrue(sqlDbManager.tableExists(conn, \"testtable\"));\n sqlDbManager.logTableSchema(conn, \"testtable\");\n assertFalse(sqlDbManager.createTableIfMissing(conn, \"testtable\",\n\t\t\t\t\t TABLE_CREATE_SQL));\n }", "@Override\n\tpublic void createTable() {\n\t\tSystem.out.println(\"++++++++++++++++++++++++++++++++++++++++++++++\");\n\t\ttry {\n\t\t\tTableUtils.createTable(connectionSource, UserEntity.class);\n\t\t\tTableUtils.createTable(connectionSource, Downloads.class);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\");\n\t\t}\n\t}", "private void initDB() {\n dataBaseHelper = new DataBaseHelper(this);\n }", "@BeforeAll\n public void init() throws SQLException, IOException {\n dataSource = DBCPDataSource.getDataSource();\n\n DatabaseUtil databaseUtil = new DatabaseUtil(dataSource);\n databaseUtil.dropTables();\n\n String initUsersTable = \"create table users (id serial primary key, email varchar not null, password varchar not null, birthday date);\";\n String initPostsTable = \"create table posts (id serial primary key, image varchar not null, caption varchar, likes integer not null default 0, userId integer not null references users(id));\";\n\n try (Connection connection = dataSource.getConnection()) {\n Statement statement = connection.createStatement();\n\n statement.execute(initUsersTable);\n statement.execute(initPostsTable);\n\n addUser(\"[email protected]\", \"HASHED_PASSWORD\", new Date(2001, 07, 24));\n addUser(\"[email protected]\", \"HASHED_PASSWORD\", new Date(2000, 01, 01));\n addUser(\"[email protected]\", \"HASHED_PASSWORD\", new Date(2001, 02, 01));\n addUser(\"[email protected]\", \"HASHED_PASSWORD\", new Date(2000, 05, 06));\n addUser(\"[email protected]\", \"HASHED_PASSWORD\", new Date(2001, 07, 24));\n }\n\n loggerUtil = new LoggerUtil();\n logFilePath = Paths.get(logDirectory, name + \".log\");\n logger = loggerUtil.initFileLogger(logFilePath.toAbsolutePath().toString(), name);\n\n Migrate migrate = new Migrate(dataSource);\n migrate.up(name);\n }", "public void initialProductTable() {\r\n\t\tString sqlCommand = \"CREATE TABLE IF NOT EXISTS ProductTable (\\n\" + \"Barcode integer PRIMARY KEY,\\n\"\r\n\t\t\t\t+ \"Product_Name VARCHAR(30) NOT Null,\\n\" + \"Delivery_Time integer NOT NULL,\\n\"\r\n\t\t\t\t+ \"Quantity_In_Store integer NOT NULL,\\n\" + \"Quantity_In_storeroom integer NOT NULL,\\n\"\r\n\t\t\t\t+ \"Supplier_Name VARCHAR(30) NOT NUll,\\n\" + \"Average_Sales_Per_Day integer DEFAULT 0,\\n\"\r\n\t\t\t\t+ \"Location_In_Store VARCHAR(30) NOT NULL,\\n\" + \"Location_In_Storeroom VARCHAR(30) NOT NULL,\\n\"\r\n\t\t\t\t+ \"Faulty_Product_In_Store integer DEFAULT 0,\\n\" + \"Faulty_Product_In_Storeroom integer DEFAULT 0,\\n\"\r\n\t\t\t\t+ \"Category integer DEFAULT 0,\\n\"\r\n\t\t\t\t+ \" FOREIGN KEY (Category) REFERENCES CategoryTable(CategoryID) ON UPDATE CASCADE ON DELETE CASCADE\"\r\n\t\t\t\t+ \");\";// create the fields of the table\r\n\t\ttry (Connection conn = DriverManager.getConnection(dataBase); Statement stmt = conn.createStatement()) {\r\n\t\t\tstmt.execute(sqlCommand);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"initialProductTable: \"+ e.getMessage());\r\n\t\t}\r\n\t}", "@Override\n public void onCreate(SQLiteDatabase db) {\n setCreateCourseTable(db);\n setCreateAssignmentTable(db);\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n Log.d(TAG, \"onCreate: Creating Database\");\n db.execSQL(SQL_CREATE_TABLE); //This statement will execute anything in SQL.\n }", "protected abstract void initialiseTable();", "private void initializeDatabase() {\n fbProfile = Profile.getCurrentProfile();\n String userId = fbProfile.getId();\n user = new User();\n user.name = fbProfile.getName();\n database.getReference(\"Users\").child(userId).setValue(user);\n userRef = database.getReference(\"Users\").child(userId);\n populateDatabase(database, userRef);\n listenForUpdates(database, userRef);\n }", "@Override\r\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tdb.execSQL(CREATETAB);\r\n\t}", "public void start(){\n dbConnector = new DBConnector();\n tables = new HashSet<String>();\n tables.add(ALGORITHMS_TABLE);\n tables.add(DATA_STRUCTURES_TABLE);\n tables.add(SOFTWARE_DESIGN_TABLE);\n tables.add(USER_TABLE);\n }", "public void setUp() {\n deleteTheDatabase();\n }", "public void setUp() {\n deleteTheDatabase();\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n\n db.execSQL(CREATE_TABLE);\n Log.d(\"TAG\",\"DATABASE TABLE1 CREATED\");\n\n }", "public void createDB() {\n\t\ttry {\n\t\t\tBufferedReader br= new BufferedReader(new FileReader(\"db_schema.txt\"));\n\t\t\tString line= null;\n\t\t\tStringBuilder sb= new StringBuilder();\n\t\t\twhile ((line=br.readLine())!=null){\n\t\t\t\tsb.append(line);\n\t\t\t\tif(sb.length()>0 && sb.charAt(sb.length()-1)==';'){//see if it is the end of one line of command\n\t\t\t\t\tstatement.executeUpdate(sb.toString());\n\t\t\t\t\tsb= new StringBuilder();\n\t\t\t\t}\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void initDb() {\n\t\tif (dbHelper == null) {\n\t\t\tdbHelper = new DatabaseOpenHelper(this);\n\t\t}\n\t\tif (dbAccess == null) {\n\t\t\tdbAccess = new DatabaseAccess(dbHelper.getWritableDatabase());\n\t\t}\n\t}", "public static void initDB() {\r\n\t\tboolean ok = false;\r\n\t\ttry(Connection c = DriverManager.getConnection(\"jdbc:hsqldb:file:burst_db\", \"SA\", \"\")) {\r\n\t\t\tString testSQL = \"select count(*) from TB_USERS;\";\r\n\t\t\ttry(PreparedStatement s = c.prepareStatement(testSQL)) {\r\n\t\t\t\ttry(ResultSet rs = s.executeQuery()) {\r\n\t\t\t\t\trs.next();\r\n\t\t\t\t\tSystem.out.println(\"There are \"+rs.getInt(1)+\" known users.\");\r\n\t\t\t\t\tok = true;\r\n\t\t\t\t}\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t//Don't panic, table doesn't exist\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t//Panic! Cannot connect to DB\r\n\t\t}\r\n\t\t\r\n\t\tif(!ok) {\r\n\t\t\tSystem.out.println(\"Creating Database\");\r\n\t\t\t\r\n\t\t\ttry(Connection c = DriverManager.getConnection(\"jdbc:hsqldb:file:burst_db\", \"SA\", \"\")) {\r\n\t\t\t\tString createSQL = \"create table TB_USERS (USERID varchar(255),BURSTADDRESS varchar(255), BURSTNUMERIC varchar(255));\";\r\n\t\t\t\ttry(Statement s = c.createStatement()) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\ts.execute(createSQL);\r\n\t\t\t\t\t\tok = true;\r\n\t\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(Race.createTableSql());\n Log.d(TAG, \"Created race data table\");\n }", "@Override\n public void onCreate(SQLiteDatabase database) {\n database.execSQL(DATABASE_CREATE);\n }", "@Override\n public void onCreate(SQLiteDatabase database) {\n database.execSQL(DATABASE_CREATE);\n }", "@Override\n\tpublic void initDemoDB() {\n\t}", "public void initializeCategory() {\n try {\n Connection connection = connect();\n PreparedStatement createCategoryTable = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS category (\"\n + \"id INTEGER PRIMARY KEY,\"\n + \"categoryUser varchar,\"\n + \"name varchar(100),\"\n + \"FOREIGN KEY (categoryUser) REFERENCES user(username));\"\n );\n createCategoryTable.execute();\n createCategoryTable.close();\n\n connection.close();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase)\n {\n sqLiteDatabase.execSQL(CREATE_TABLE_Address);\n sqLiteDatabase.execSQL(CREATE_TABLE_USERS);\n }", "public static void createDataBase() {\n final Configuration conf = new Configuration();\n\n addAnnotatedClass(conf);\n\n conf.configure();\n new SchemaExport(conf).create(true, true);\n }", "@Override\n public void onDbStarted() {\n }", "private void createDatabase() throws SQLException\r\n {\r\n myStmt.executeUpdate(\"create database \" + dbname);\r\n }", "public void dbCreate() throws IOException\n {\n boolean dbExist = dbCheck();\n\n if(!dbExist)\n {\n //By calling this method an empty database will be created into the default system patt\n //of the application so we can overwrite that db with our db.\n this.getReadableDatabase(); // create a new empty database in the correct path\n try\n {\n //copy the data from the database in the Assets folder to the new empty database\n copyDBFromAssets();\n }\n catch(IOException e)\n {\n throw new Error(\"Error copying database\");\n }\n }\n }", "public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }", "public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "@Override\n public void onCreate(SQLiteDatabase db) {\n\n try {\n db.execSQL(CREATE_TABLE);\n Toast.makeText(context,\"onCreate was called \", Toast.LENGTH_SHORT).show();\n }\n catch (SQLException e){\n\n Toast.makeText(context,\" \"+e, Toast.LENGTH_SHORT).show();\n }\n\n }", "@Override\n public void onCreate(SQLiteDatabase db) throws SQLException {\n db.execSQL(DATABASE_CREATE);\n //Log.d(\"OnCreate\",\"Database on create method\");\n }", "public void initDatabase() {\n Datastore mongoDataStore = DatabaseHandler.getInstance().getMongoDataStore();\n initUsers();\n initAccounts();\n mongoDataStore.save(users);\n }", "public void initializeUser() {\n try {\n Connection connection = connect();\n\n PreparedStatement createCategoryTable = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS user (\"\n + \"id INTEGER PRIMARY KEY, \"\n + \"username VARCHAR(100),\"\n + \"password VARCHAR(100),\"\n + \"UNIQUE(username, password)\"\n + \");\"\n );\n createCategoryTable.execute();\n createCategoryTable.close();\n\n connection.close();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public static void init_traffic_table() throws SQLException{\n\t\treal_traffic_updater.create_traffic_table(Date_Suffix);\n\t\t\n\t}" ]
[ "0.769045", "0.7478457", "0.74183893", "0.7317523", "0.7280455", "0.727844", "0.72588336", "0.7243045", "0.723998", "0.7219534", "0.71882147", "0.71731895", "0.7158259", "0.70844376", "0.70779943", "0.70615256", "0.7021818", "0.7014383", "0.6995425", "0.6974936", "0.6972034", "0.69713706", "0.69595975", "0.6959168", "0.6956", "0.6947253", "0.6942527", "0.69409704", "0.6940145", "0.6938238", "0.6926728", "0.69245464", "0.6918068", "0.6889882", "0.6888353", "0.6875373", "0.6856844", "0.6856764", "0.68495935", "0.68438566", "0.68415195", "0.6811348", "0.68081427", "0.6796749", "0.6795916", "0.6776043", "0.6774967", "0.6767265", "0.6762485", "0.67608404", "0.6748805", "0.6741316", "0.6734962", "0.6732825", "0.6725999", "0.6722399", "0.67119914", "0.6711507", "0.6706756", "0.6706585", "0.67062664", "0.66930956", "0.66810113", "0.6666745", "0.66661066", "0.6665786", "0.6655095", "0.6651666", "0.66513044", "0.66421604", "0.6641634", "0.66399133", "0.66196305", "0.6617841", "0.6607388", "0.66055346", "0.6604504", "0.6603757", "0.6591562", "0.6591562", "0.6568505", "0.6567892", "0.6562863", "0.65602106", "0.6559644", "0.6547908", "0.6547908", "0.65416604", "0.6537664", "0.6536908", "0.6531658", "0.6530839", "0.65300304", "0.65206516", "0.6519937", "0.65173733", "0.6510603", "0.65082896", "0.6492392", "0.648853", "0.64802384" ]
0.0
-1
Called when the database needs to be upgraded. The implementation should use this method to drop tables, add tables, or do anything else it needs to upgrade to the new schema version. The SQLite ALTER TABLE documentation can be found This method executes within a transaction. If an exception is thrown, all changes will automatically be rolled back.
@Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL("DROP TABLE IF EXISTS "+TABLE_PLAYERS); db.execSQL("DROP TABLE IF EXISTS "+TABLE_COMMANDERS); onCreate(db); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void doUpgrade() {\n // implement the database upgrade here.\n }", "public void upgrade() {\n\t\t\tLog.w(\"\" + this, \"Upgrading database \"+ db.getPath() + \" from version \" + db.getVersion() + \" to \"\n\t + DATABASE_VERSION + \", which will destroy all old data\");\n\t db.execSQL(\"DROP TABLE IF EXISTS agencies\");\n\t db.execSQL(\"DROP TABLE IF EXISTS stops\");\n\t create();\n\t\t}", "@Override\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\ttry {\n\t\t\t\tdb.execSQL(TABLE_DROP);\n\t\t\t\tonCreate(db);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t\n\t\t\t}\n\t\t}", "@Override\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\t// TODO: upgrade is not supported yet\n\t\t\t//\n\t\t\tLogger.i(\"Upgrade not yet supported\");\n\n\t\t\tfor (SQLTableLayout layout : m_db_tables) {\n\t\t\t\t//\n\t\t\t\t// construct drop table statement\n\t\t\t\t//\n\t\t\t\tString sql_stmt = \"DROP TABLE IF EXISTS \" + layout.m_table_name;\n\t\t\t\tLogger.i(\"STMT: \" + sql_stmt);\n\t\t\t\t//\n\t\t\t\t// execute statement\n\t\t\t\t//\n\t\t\t\tdb.execSQL(sql_stmt);\n\t\t\t}\n\n\t\t\t//\n\t\t\t// construct tables\n\t\t\t//\n\t\t\tonCreate(db);\n\t\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n try {\n db.execSQL(DROP_TABLE); //drop/remove old table\n onCreate(db); //create new table using updated parameters\n ToastMessage.message(context, \"Change to database has been made!\");\n } catch (SQLException e) {\n //add toast message\n }\n }", "public void onUpgrade() {\r\n\t\t// Create New table\r\n\t\tDataBaseCreatorTable newt = new DataBaseCreatorTable();\r\n\t\t// Update Table Items\r\n\t\tcreatorClass.onCreate(newt);\r\n\t\t// Update Data Base\r\n\t\t//...\r\n\t\ttable = newt;\r\n\t}", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdrop();\n\t\tonCreate(db);\n\t}", "@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TB_NAME);\r\n\t\tonCreate(db);\r\n\t\r\n\t\tLog.e(\"Database\", \"onUpgrade\");\r\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase sqLiteDatabase, int oldVersion, int newVersion) {\n try {\n Message.logMessages(\"onUpgrade :\",\"onUpgrade() called\");\n sqLiteDatabase.execSQL(DROP_TABLE);\n onCreate(sqLiteDatabase);\n } catch (SQLException e) {\n Message.logMessages(\"Error in onUpgrade :\",\"\"+e);\n }\n }", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tString[] queries = DROP_TABLES.split(\";\");\n\t\tfor(String query : queries){\n\t\t db.execSQL(query);\n\t\t}\n\t\t\n\t\tString[] drops = CREATE_TABLES.split(\";\");\n\t\tfor(String drop : drops){\n\t\t db.execSQL(drop);\n\t\t}\n\t}", "@Override\n public void upgrade() throws Exception {\n // all old CDAP tables used to be in the default database\n LOG.info(\"Checking for tables that need upgrade...\");\n List<TableNameInfo> tables = getTables(\"default\");\n\n for (TableNameInfo tableNameInfo : tables) {\n String tableName = tableNameInfo.getTableName();\n TableInfo tableInfo = getTableInfo(tableNameInfo.getDatabaseName(), tableName);\n if (!requiresUpgrade(tableInfo)) {\n continue;\n }\n\n // wait for dataset service to come up. it will be needed when creating tables\n waitForDatasetService(600);\n\n String storageHandler = tableInfo.getParameters().get(\"storage_handler\");\n if (StreamStorageHandler.class.getName().equals(storageHandler) && tableName.startsWith(\"cdap_\")) {\n LOG.info(\"Upgrading stream table {}\", tableName);\n upgradeStreamTable(tableInfo);\n } else if (DatasetStorageHandler.class.getName().equals(storageHandler) && tableName.startsWith(\"cdap_\")) {\n LOG.info(\"Upgrading record scannable dataset table {}.\", tableName);\n upgradeRecordScannableTable(tableInfo);\n } else if (tableName.startsWith(\"cdap_\")) {\n LOG.info(\"Upgrading file set table {}.\", tableName);\n // handle filesets differently since they can have partitions,\n // and dropping the table will remove all partitions\n upgradeFilesetTable(tableInfo);\n }\n }\n }", "@Override\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\tLog.w(\"DatabaseAdapter\", \"Upgrading database from version \"\n\t\t\t\t\t+ oldVersion + \" to version \" + newVersion);\n\t\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_MESSAGES);\n\t\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_CHATS);\n\t\t\tcreateTable(db);\n\n\t\t}", "@Override\r\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\tdb.execSQL(\"DROP TABLE IF EXITS \" + TABLE_NAME);\r\n\t\t\tonCreate(db);\r\n\t\t}", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_FILE);\n\t\t// Create tables again\n\t\tonCreate(db);\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase database, ConnectionSource connectionSource,\n int oldVersion, int newVersion) {\n try {\n TableUtils.dropTable(connectionSource, DiaryEntry.class, true);\n onCreate(database, connectionSource);\n } catch (SQLException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.execSQL(\"drop table if exist \" + mDbTableName);\n\t\tonCreate(db);\n\t}", "@Override\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + DATABASE_TABLE);\n\t\t\tonCreate(db);\n\t\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_JOURNAL);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_TASKS);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_LIST);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_WISH);\n\n // create new tables\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n if (oldVersion > 3) {\n switch (oldVersion) {\n case 4:\n new Tables(db).makeConferenceTable();\n case 5:\n new Tables(db).makeTalkTable();\n new Tables(db).makeNotificationTable();\n db.execSQL(\"DROP TABLE IF EXISTS 'table_log'\"); //Removing log table from this version\n db.execSQL(\"DROP TABLE IF EXISTS 'table_database'\"); //Removing JC database table from this version\n db.execSQL(\"DROP TABLE IF EXISTS 'table_external'\"); //Removing External database table from this version\n }\n }\n //Remove support from previous databases\n else {\n new Tables(db).dropAllTables();\n onCreate(db);\n }\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(DROP_USER_TABLE);\n db.execSQL(DROP_MONTH_TABLE);\n db.execSQL(DROP_EXPECTED_TABLE);\n db.execSQL(DROP_PERIOD_TABLE);\n db.execSQL(DROP_TRANSACT_TABLE);\n db.execSQL(DROP_TYPE_TABLE);\n db.execSQL(DROP_CATEGORY_TABLE);\n // Create tables again\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n //Drop the old table if exists\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n // Create tables again\n onCreate(db);\n }", "@Override\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + DATABASE_TABLE + \";\");\n\t\t\tonCreate(db);\n\t\t}", "@Override\n public void onUpgrade(SQLiteDatabase database, ConnectionSource connectionSource, int oldVersion, int newVersion) {\n try {\n\n TableUtils.dropTable(connectionSource, Comanda_Item.class, true);\n TableUtils.dropTable(connectionSource, Comanda.class, true);\n\n TableUtils.dropTable(connectionSource, Produto.class, true);\n TableUtils.dropTable(connectionSource, Mesa.class, true);\n\n\n onCreate(database, connectionSource);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLENAME);\n\t\tonCreate(db);\n\t}", "@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tString dropquery;\r\n\t\tdropquery = \"DROP TABLE IF EXISTS EMPLOYEE\";\r\n db.execSQL(dropquery);\r\n onCreate(db);\r\n\t}", "@Override\n\t\t\tpublic void onUpgrade(SQLiteDatabase arg0, int arg1, int arg2) {\n\t\t\t\targ0.execSQL(\"drop table if exists \"+TB_NAME);\n\t\t\t\tonCreate(arg0);\n\t\t\t}", "@Override\n public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {\n sqLiteDatabase.execSQL(\"drop table if exists \" + TABLE_NAME + \"\");\n onCreate(sqLiteDatabase);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)\n {\n\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n\n\t// Create tables again\n\tonCreate(db);\n\n }", "@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\r\n\t\tonCreate(db);\r\n\t}", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n\t\tonCreate(db);\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n\n // Create tables again\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n // Create tables again\n onCreate(db);\n }", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n\t\tonCreate(db);\n\n\t}", "public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)\r\n {\r\n // This database is only a cache for online data, so its upgrade policy is\r\n // to simply to discard the data and start over\r\n\r\n Log.i(\"oncreatecall\",\"onupgradecalled\");\r\n db.execSQL(\"DROP TABLE IF EXISTS \" + DatabaseContract.tableDefinition.TABLE_NAME);\r\n onCreate(db);\r\n\r\n Toast.makeText(null,\"upgrade is called\",Toast.LENGTH_SHORT).show();\r\n //basically delete and start over.\r\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, \n int newVersion) {\n // Log the version upgrade.\n Log.w(\"TaskDBAdapter\", \"Upgrading from version \" +\n oldVersion + \" to \" +\n newVersion + \", which will destroy all old data\");\n\n // Upgrade the existing database to conform to the new \n // version. Multiple previous versions can be handled by \n // comparing oldVersion and newVersion values.\n\n // The simplest case is to drop the old table and create a new one.\n db.execSQL(\"DROP TABLE IF IT EXISTS \" + DATABASE_TABLE);\n // Create a new one.\n onCreate(db);\n }", "@Override\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\t// Log the version upgrade.\n\t\t\tLog.w(TAG, \"Upgrading from version \" + oldVersion + \" to \"\n\t\t\t\t\t+ newVersion + \", which will destroy all old data\");\n\n\t\t\t// Upgrade the existing database to conform to the new version.\n\t\t\t// Multiple\n\t\t\t// previous versions can be handled by comparing _oldVersion and\n\t\t\t// _newVersion\n\t\t\t// values.\n\n\t\t\t// The simplest case is to drop the old table and create a new one.\n\t\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + CHECKLISTITEM_TABLE + \";\");\n\t\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + MEDIAITEM_TABLE + \";\");\n\t\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + POLLINGPLACE_TABLE + \";\");\n\t\t\t// Create a new one.\n\t\t\tonCreate(db);\n\t\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE);\n // Creating tables again\n onCreate(db);\n }", "@Override\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\t// Log the version upgrade.\n\t\t\tLog.w(TAG, \"Upgrading from version \" +\n\t\t\t\toldVersion + \" to \" +\n\t\t\t\tnewVersion + \", which will destroy all old data\");\n\n\t\t\t// Upgrade the existing database to conform to the new version. Multiple\n\t\t\t// previous versions can be handled by comparing _oldVersion and _newVersion\n\t\t\t// values.\n\n\t\t\t// The simplest case is to drop the old table and create a new one.\n\t\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE + \";\");\n\n\t\t\t// Create a new one.\n\t\t\tonCreate(db);\n\t\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion,\n int newVersion) {\n // Log the version upgrade.\n Log.w(\"TaskDBAdapter\", \"Upgrading from version \" +\n oldVersion + \" to \" +\n newVersion + \", which will destroy all old data\");\n\n // Upgrade the existing database to conform to the new\n // version. Multiple previous versions can be handled by\n // comparing oldVersion and newVersion values.\n\n // The simplest case is to drop the old table and create a new one.\n // db.execSQL(\"DROP TABLE IF IT EXISTS \" + DATABASE_TABLE);\n // Create a new one.\n onCreate(db);\n }", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, ConnectionSource connectionSource,\n\t\t\tint arg2, int arg3) {\n\t\tthis.connectionSource = connectionSource;\n\t\tdropTable();\n\t\tonCreate(db, connectionSource);\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"drop table if exists \" + TABLE_NAME + \";\") ;\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_PUSH);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_PULL);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_LEGS);\n\n // create new tables\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_DEBITOS);\n\n // create new tables\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(DROP_USER_TABLE);\n db.execSQL(SQL_DELETE_ENTRIES);\n\n // Create tables again\n onCreate(db);\n\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(DROP_PROFILE_TABLE);\n //db.execSQL(DROP_CUSTOMER_TABLE);\n db.execSQL(DROP_REQUEST_TABLE);\n db.execSQL(DROP_SOUVENIR_TABLE);\n\n // Create tables again\n onCreate(db);\n }", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVer, int newVer) {\n\t\tLog.w(SQLiteHelperAbilityScores.class.getName(),\n\t\t\t\t\"Upgrading database from version \" + oldVer + \" to \"\n\t\t\t\t\t\t+ newVer + \", which will destroy all old data\");\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n\t\tonCreate(db);\n\t}", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \"+TABLE);\n\t\tonCreate(db);\n\t}", "@Override\n\tpublic void onUpgrade(SQLiteDatabase database, int oldVersion, int newVersion) {\n\t\tAppDBTableCreation.onUpgrade(database, oldVersion, newVersion);\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_USERS);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_CONF);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_CONF_USERS);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_TOPICS);\n\n // create new tables\n onCreate(db);\n }", "@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\r\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\r\n\t\t\r\n\t\tonCreate(db);\r\n\t\t\r\n\r\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NODE);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_SECTION);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_GPS);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_MARKER);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_STATS);\n // create new tables\n onCreate(db);\n }", "private void doUpgrade() {\n // implement the database upgrade here.\n Log.w(\"ACTUALIZANDO\",\"se actualizara la base de datos\");\n updateDatabase();\n }", "@Override\n public void onUpgrade(SQLiteDatabase _db, int _oldVersion, int _newVersion) {\n // Log the version upgrade.\n Log.w(\"TaskDBAdapter\", \"Upgrading from version \" +\n _oldVersion + \" to \" +\n _newVersion + \", which will destroy all old data\");\n\n // Upgrade the existing database to conform to the new version. Multiple\n // previous versions can be handled by comparing _oldVersion and _newVersion\n // values.\n\n // The simplest case is to drop the old table and create a new one.\n _db.execSQL(\"DROP TABLE IF IT EXISTS \" + DATABASE_TABLE);\n // Create a new one.\n onCreate(_db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(DROP_USERS_TABLE_QUERY);\n db.execSQL(DROP_ACCOUNTS_TABLE_QUERY);\n // Create tables again\n onCreate(db);\n }", "public static void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n try {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TableDefinition.TABLE_NAME);\n onCreate(db);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.beginTransaction();\n\t\ttry {\n\t\t\tdb.execSQL(ConverterEntry.SQL_DELETE_ENTRIES);\n\t\t\tonCreate(db);\n\t\t}finally {\n\t\t\tdb.endTransaction();\n\t\t}\n\t}", "@Override\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\tif(oldVersion >= 4 && newVersion <= 10) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tLog.w(TAG, \"Upgrading database from version \" + oldVersion + \" to \"\n\t\t\t\t\t+ newVersion + \", which will destroy all old data\");\n\t\t\tdb.execSQL(\"DROP TABLE IF EXISTS \"+DATABASE_TABLE);\n\t\t\tonCreate(db);\n\t\t}", "public void onUpgrade(Context ctx,SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + this.TABLE_NAME);\n\n // Create tables again\n onCreate(ctx,db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)\n {\n db.execSQL(SQL_DELETE_ENTRIES);\n\n // create fresh books table\n this.onCreate(db);\n // This database is only a cache for online data, so its upgrade policy is\n // to simply to discard the data and start over db.execSQL(SQL_DELETE_ENTRIES); onCreate(db);\n }", "@Override\n public void onDowngrade(SQLiteDatabase db, int oldV, int newV ){\n db.execSQL(\"DROP TABLE IF EXISTS \" + DAILY_ACCOUNT_TABLE);\n db.execSQL(\"DROP TABLE IF EXISTS \" + JOURNEY_ACCOUNT_TABLE);\n db.execSQL(\"DROP TABLE IF EXISTS \" + JOURNEY_TABLE);\n // Drop older table if existed\n db.execSQL(\"DROP TABLE IF EXISTS data\");\n // Create tables again\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLENAME);\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n\n //create new table\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(DROP_VEHICLE_TABLE);\n\n // Create tables again\n onCreate(db);\n\n }", "@Override\n public void onUpgrade(SQLiteDatabase database, int oldVersion, int newVersion)\n {\n database.execSQL(DropExerciseCacheTableSqlStatement);\n onCreate(database);\n }", "@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tupgradeDatabase = true;\r\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n // The database is still at version 1, so there's nothing to do be done here.\n Log.e(LOG_TAG, \"Updating table from \" + oldVersion + \" to \" + newVersion);\n\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(CoffeeShopDatabase.CoffeeShopTable.SQL_DELETE_ENTRIES);\n\n //drop coffee shop image table\n db.execSQL(CoffeeShopDatabase.CoffeeShopImageTable.SQL_DELETE_ENTRIES);\n\n //drop drinks table\n db.execSQL(CoffeeShopDatabase.DrinksTable.SQL_DELETE_ENTRIES);\n\n //drop drink image table\n db.execSQL(CoffeeShopDatabase.DrinkImageTable.SQL_DELETE_ENTRIES);\n\n //drop drink order table\n db.execSQL(CoffeeShopDatabase.DrinkOrderTable.SQL_DELETE_ENTRIES);\n\n //drop order detail table\n db.execSQL(CoffeeShopDatabase.OrderDetailTable.SQL_DELETE_ENTRIES);\n\n //recreate coffee shop database\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n // drop original table and create new ones\n final String DROP_TABLE_FAVOURITES_COMMAND = \"DROP TABLE IF EXISTS \" + FavouritesDatabaseContract.FavouriteEntry.TABLE_NAME + \";\";\n\n db.execSQL(DROP_TABLE_FAVOURITES_COMMAND);\n\n // recreate new table with updated schemas\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_ACTIVITY);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_VITAL);\n // create new tables\n onCreate(db);\n }", "@Override\r\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_MACHINE);\r\n\r\n // Create tables again\r\n onCreate(db);\r\n }", "@Override\n public void onUpgrade(SQLiteDatabase database, int old, int updated) {\n database.execSQL(\"DROP TABLE IF EXISTS \" + PRODUCT_TABLE);\n onCreate(database);\n }", "@Override\n public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {\n String sql = \"DROP TABLE IF EXISTS \" + TABLE_NAME + \";\";\n sqLiteDatabase.execSQL(sql);\n onCreate(sqLiteDatabase);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_ESTABLISHMENT);\n\n // Create Tables again\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_ACCELEROMETER);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_GYROSCOPE);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_MAGNETIC);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_ORIENTATION);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_GPS);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_EVENT);\n // create new tables\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n // Delete the existing tables.\n db.execSQL(\"DROP TABLE IF EXISTS \" + SelfieContract.SelfieTable.TABLE_NAME);\n // Create the new tables.\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n //do this on upgrade - drop the old tables\n db.execSQL(\"DROP TABLE IF EXISTS \" + ProductEntry.TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + SupplierEntry.TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + CategoryEntry.TABLE_NAME);\n\n //create the new tables\n onCreate(db);\n }", "@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.execSQL(DROP_SCHEDULE_TABLE);\r\n\t\tonCreate(db);\r\n\t}", "@Override\n\t\t\t\t\tpublic void onUpgrade(DbManager db, int oldVersion, int newVersion) {\n\t\t\t\t\t}", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t db.execSQL(\"DROP TABLE IF EXISTS \" + DATABASE_TABLE1);\n\t\t onCreate(db);\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(DROP_KAFSH_TABLE);\n db.execSQL(DROP_DARMANI1_TABLE);\n db.execSQL(DROP_DARMANI2_TABLE);\n // Create tables again\n onCreate(db);\n\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)\n {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n if (oldVersion != newVersion) {\n // Simplest implementation is to drop all old tables and recreate them\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_TODOS);\n onCreate(db);\n }\n }", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, ConnectionSource connectionSource, int oldVersion, int newVersion) {\n\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(DROP_USER_TABLE);\n // db.execSQL(DR);\n\n // Create tables again\n onCreate(db);\n\n }", "@Override\r\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t}", "@Override\n public void onUpgrade(DbManager db, int oldVersion, int newVersion) {\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TODO_TABLE);\n //Create tables again\n onCreate(db);\n }", "@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.execSQL(\" DROP TABLE IF EXISTS \" + NOTE_NAME);\r\n\t\tonCreate(db);\r\n\t}", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tLog.d(\"TEST\", \"Upgrading from version \" +\n oldVersion + \" to \" +\n newVersion);\n\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + Constants.SPOT_TABLE_NAME);\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + Constants.USER_RATING_TABLE_NAME);\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + Constants.SPOT_IMAGE_URI_TABLE_NAME);\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + Constants.IMAGE_COMMENTS_TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + Constants.NEWS_ITEM_TABLE_NAME);\n\t\tonCreate(db);\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \"+TABLE_NAME);\n\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS '\" + TABLE_NAME + \"'\");\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_LINEAS_OFERTA);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_CABECERAS_OFERTA);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_TARIFAS);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_PUNTOS);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_EXTRACOMISION);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_CLIENTES);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_TERMINALES_SMART);\n\n // create new tables\n onCreate(db);\n }", "@Override\r\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\r\n Log.w(TAG, \"Upgrading database from version \" + oldVersion + \" to \"\r\n + newVersion + \", which will destroy all old data\");\r\n db.execSQL(\"DROP TABLE IF EXISTS \"+DATABASE_TABLE);\r\n onCreate(db);\r\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS tasks\");\n\n // create fresh tasks table\n this.onCreate(db);\n }", "abstract public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion);", "@Override\r\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\t\r\n\t\t}" ]
[ "0.75007", "0.745845", "0.7430778", "0.73865575", "0.7322902", "0.72165036", "0.720459", "0.7156422", "0.7147413", "0.71412134", "0.709229", "0.7087462", "0.70865774", "0.70771444", "0.7069004", "0.7057889", "0.70470905", "0.7032843", "0.70315135", "0.701447", "0.7000805", "0.69884133", "0.69822854", "0.69758976", "0.69594824", "0.69571716", "0.6943582", "0.69427073", "0.6942619", "0.6940014", "0.69390833", "0.69385916", "0.69383943", "0.6919689", "0.6910146", "0.6908207", "0.6907636", "0.6906843", "0.69046545", "0.6895791", "0.68890727", "0.6876178", "0.6873783", "0.6872659", "0.68698126", "0.68676937", "0.6861543", "0.68552005", "0.6844865", "0.68441427", "0.6840628", "0.6840601", "0.6840464", "0.6831059", "0.6823197", "0.681699", "0.6811079", "0.68110675", "0.6803595", "0.67991775", "0.6797672", "0.6795302", "0.67927504", "0.6791193", "0.67892176", "0.67872655", "0.6778794", "0.67774785", "0.6775221", "0.6775221", "0.6775221", "0.6775221", "0.6775221", "0.677403", "0.6771803", "0.67689854", "0.676784", "0.6767006", "0.67647606", "0.6762629", "0.67543656", "0.6753775", "0.6744336", "0.67394644", "0.6739273", "0.67308235", "0.67282933", "0.67274535", "0.672613", "0.67253584", "0.6724636", "0.67242944", "0.67184937", "0.6715173", "0.6713406", "0.6712296", "0.6711419", "0.67103904", "0.67067283", "0.67055774", "0.67022383" ]
0.0
-1
slanje obicne tekstualne poruke
void sendTemplateMessage (EmailObject object) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String dohvatiKontakt();", "public void tulostaKomennot() {\n this.io.tulostaTeksti(\"Komennot: \");\n for (int i = 1; i <= this.komennot.keySet().size(); i++) {\n this.io.tulostaTeksti(this.komennot.get(i).toString());\n }\n this.io.tulostaTeksti(\"\");\n }", "private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }", "public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }", "@Override\n\tpublic String dohvatiKontakt() {\n\t\treturn \"Naziv tvrtke: \" + naziv + \", mail: \" + getEmail() + \", tel: \" + getTelefon() + \", web: \" + web;\n\t}", "private String tulostuksenApu(){\r\n String apu = \"Rivitiedosto: \";\r\n for(int i = 0; i<rivitiedot.length; i++){\r\n apu = apu + i+\": \";\r\n for(int k = 1; k <= rivitiedot[i].getKoko(); k++){\r\n apu = apu + \" \"+rivitiedot[i].get(k);\r\n }\r\n apu = apu + \" \";\r\n }\r\n\r\n return apu;\r\n }", "@Test\n public void yksiVasemmalle() {\n char[][] kartta = Labyrintti.lueLabyrintti(\"src/main/resources/labyrinttiTestiVasen.txt\");\n assertFalse(kartta == null);\n Labyrintti labyrintti = new Labyrintti(kartta);\n RatkaisuLeveyshaulla ratkaisuSyvyyshaulla = new RatkaisuLeveyshaulla(labyrintti);\n String ratkaisu = ratkaisuSyvyyshaulla.ratkaisu();\n assertTrue(Tarkistaja.tarkista(ratkaisu, labyrintti));\n }", "public void vaaraSyote() {\n System.out.println(\"En ymmärtänyt\");\n kierros();\n }", "@Test\n public void kaasunKonstruktoriToimiiOikeinTest() {\n assertEquals(rikkihappo.toString(),\"Rikkihappo Moolimassa: 0.098079\\n tiheys: 1800.0\\n lämpötila: 298.15\\n diffuusiotilavuus: 50.17\\npitoisuus: 1.0E12\");\n }", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "public void stampajSpisak() {\n\t\t\n\t\tif (prviFilm != null) {\n\t\t\t\n\t\t\tFilm tekuciFilm = prviFilm;\n\t\t\tint count = 0;\n\t\t\t\n\t\t\tSystem.out.println(\"Filmovi: \");\n\t\t\t\n\t\t\twhile (tekuciFilm != null) {\n\t\t\t\t\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\"Film #\" + count + \": '\" + tekuciFilm.naziv + \"'\");\n\t\t\t\t\n\t\t\t\tif (tekuciFilm.sadrzaj == null) {\n\t\t\t\t\tSystem.out.println(\"\\tNema unetih glumaca.\");\n\t\t\t\t} else {\n\t\t\t\t\tGlumac tekuciGlumac = tekuciFilm.sadrzaj;\n\t\t\t\t\t\n\t\t\t\t\twhile (tekuciGlumac != null) {\n\t\t\t\t\t\tSystem.out.println(\"\\t\" + tekuciGlumac);\n\t\t\t\t\t\ttekuciGlumac = tekuciGlumac.veza;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttekuciFilm = tekuciFilm.veza;\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\tSystem.out.println(\"Spisak je prazan.\");\n\t\t}\n\t}", "public void skrivUt(){\n System.out.println(this.fornavn + \" \" + this.etternavn + \" \" + this.adresse + \" \" + this.telefonnr + \" \" + this.alder);\n }", "public String vystiskniCestu(){\n\t\t\n\t\tString vypis = \"Euleruv tah : \" + cesta.get(cesta.size()-1);\n\t\tfor(int i = cesta.size()-2 ; i >= 0;i--){\n\t\t\tvypis += \" -> \" + cesta.get(i);\n\t\t}\n\t\t\n\t\treturn vypis;\n\t}", "TipeLayanan(String deskripsi)\r\n {\r\n this.deskripsi = deskripsi;\r\n }", "private String tallenna() {\n Dialogs.showMessageDialog(\"Tallennetaan!\");\n try {\n paivakirja.tallenna();\n return null;\n } catch (SailoException ex) {\n Dialogs.showMessageDialog(\"Tallennuksessa ongelmia!\" + ex.getMessage());\n return ex.getMessage();\n }\n }", "public void sendeSpielfeld();", "public void asetaTeksti(){\n }", "public void tekst_ekranu(Graphics dbg)\n {\n dbg.setColor(Color.BLACK);\n int y=(int)Math.round(getHeight()*0.04);\n dbg.setFont(new Font(\"TimesRoman\",Font.PLAIN,y));\n dbg.drawString(\"zycie \"+liczba_zyc,(int)Math.round(getWidth()*0.01),y);\n dbg.drawString(\"punkty \"+liczba_punktow,(int)Math.round(getWidth()*0.2),y);\n dbg.drawString(\"czas \"+(int)Math.round(czas_gry),(int)Math.round(getWidth()*0.4),y);\n dbg.drawString(\"naboje \"+liczba_naboi,(int)Math.round(getWidth()*0.6),y);\n dbg.drawString(\"poziom \"+poziom,(int)Math.round(getWidth()*0.8),y);\n }", "public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }", "private void skrivOversikt() {\n System.out.println(\"\\n- Leger -\\n\");\n for (Lege lege : leger){\n System.out.println(lege);\n }\n\n System.out.println(\"\\n- Pasienter -\");\n for (Pasient pasient : pasienter){\n System.out.println(\"\\n\" + pasient);\n }\n\n System.out.println(\"\\n- Legemidler -\");\n for (Legemiddel legemiddel : legemidler){\n System.out.println(\"\\n\" + legemiddel);\n }\n\n System.out.println(\"\\n- Resepter -\");\n for (Resept resept : resepter){\n System.out.println(\"\\n\" + resept);\n }\n }", "private void yas(){\n System.out.println(namn);\n \n try{\n String fraga = \"SELECT TEXT FROM INLAGG WHERE RUBRIK = 'Borttappad strumpa'\";\n String XD = db.fetchSingle(fraga);\n System.out.println(XD);\n txtInlagg.append(XD);\n }\n catch(InfException e){\n JOptionPane.showMessageDialog(null, \"Kunde ej hämta inlägg\");\n }\n }", "protected void FileTartKiir()\r\n {\n String sSzoveg = null ;\r\n \r\n sSzoveg = m_cHRMFile.GetDatum() + \"\\n\" ;\r\n sSzoveg = sSzoveg + m_cHRMFile.GetMegjegyzes() + \"\\n\" ;\r\n \r\n sSzoveg = sSzoveg + IKonstansok.sVanSpeedAdat + m_cHRMFile.VanSpeedAdat() + \"\\n\" ;\r\n sSzoveg = sSzoveg + IKonstansok.sVanCadenceAdat + m_cHRMFile.VanCadenceAdat() + \"\\n\" ;\r\n sSzoveg = sSzoveg + IKonstansok.sVanHeartRateAdat + m_cHRMFile.VanHeartRateAdat() + \"\\n\" ;\r\n sSzoveg = sSzoveg + IKonstansok.sVanAltitudeAdat + m_cHRMFile.VanAltitudeAdat() + \"\\n\" ;\r\n sSzoveg = sSzoveg + IKonstansok.sGetInterval + m_cHRMFile.GetInterval() ;\r\n \r\n// m_jFileTartTxtArea.append( sSzoveg) ;\r\n m_jFileTartTxtArea.setText( sSzoveg) ;\r\n }", "public String toString(){\r\n\t\treturn \"KORISNIK:\"+korisnik+\" PORUKA:\"+poruka;\r\n\t}", "protected String decrisToi(){\r\n return \"\\t\"+this.nomVille+\" est une ville de \"+this.nomPays+ \", elle comporte : \"+this.nbreHabitants+\" habitant(s) => elle est donc de catégorie : \"+this.categorie;\r\n }", "public String toString(){\r\n\treturn \"KORISNIK:\"+korisnik+\" PORUKA:\"+poruka;\r\n\t}", "public Tura() {\n\t\tLicznikTur = 0;\n\t}", "public static void pocetniMeni() {\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"***********************************************\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 1 ako zelite vidjeti kalendar(za dati mjesec i godinu)\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 2 za pregled podsjetnika za dati mjesec i godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 3 da pregledate podsjetnik za datu godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 4 ako zelite da pogledate sve podsjetnike!\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 5 ako zelite da upisete neki podsjetnik!\\n\"\r\n\t\t\t\t\t\t+ \":::::::::::::::::::::::::::::::::::::::::::::::\");\r\n\t}", "private String creaElenco() {\n String testoTabella ;\n String riga = CostBio.VUOTO;\n ArrayList listaPagine = new ArrayList();\n ArrayList listaRiga;\n HashMap mappaTavola = new HashMap();\n String cognomeText;\n int num;\n int taglioPagine = Pref.getInt(CostBio.TAGLIO_COGNOMI_PAGINA);\n String tag = \"Persone di cognome \";\n ArrayList titoli = new ArrayList();\n titoli.add(LibWiki.setBold(\"Cognome\"));\n titoli.add(LibWiki.setBold(\"Voci\"));\n\n for (Map.Entry<String, Integer> mappa: mappaCognomi.entrySet()) {\n\n cognomeText = mappa.getKey();\n num = mappa.getValue();\n if (num >= taglioPagine) {\n cognomeText = tag + cognomeText + CostBio.PIPE + cognomeText;\n cognomeText = LibWiki.setQuadre(cognomeText);\n cognomeText = LibWiki.setBold(cognomeText);\n }// end of if cycle\n\n listaRiga = new ArrayList();\n listaRiga.add(cognomeText);\n listaRiga.add(num);\n listaPagine.add(listaRiga);\n\n }// end of for cycle\n mappaTavola.put(Cost.KEY_MAPPA_SORTABLE_BOOLEAN, true);\n mappaTavola.put(Cost.KEY_MAPPA_TITOLI, titoli);\n mappaTavola.put(Cost.KEY_MAPPA_RIGHE_LISTA, listaPagine);\n testoTabella = LibWiki.creaTable(mappaTavola);\n\n return testoTabella;\n }", "public static void Latihan() {\n Model.Garis();\n System.out.println(Model.subTitel[0]);\n Model.Garis();\n\n System.out.print(Model.subTitel[1]);\n Model.nilaiTebakan = Model.inputUser.nextInt();\n\n System.out.println(Model.subTitel[2] + Model.nilaiTebakan);\n\n // Operasi Logika\n Model.statusTebakan = (Model.nilaiTebakan == Model.nilaiBenar);\n System.out.println(Model.subTitel[3] + Model.hasilTebakan(Model.TrueFalse) + \"\\n\\n\");\n }", "public Pont ertesit(Pont innenlep, Szereplo sz);", "public RuimteFiguur() {\n kleur = \"zwart\";\n }", "private void srediTekst() throws SmartScriptParserException {\n\t\tif (stog.isEmpty()) {\n\t\t\tthrow new SmartScriptParserException(\"Too much 'END's.\");\n\t\t}\n\t\telse {\n\t\t\t((Node) stog.peek()).addChildNode(new TextNode(gradiTekst.toString()));\n\t\t}\n\n\t}", "public void anazitisiSintagisVaseiGiatrou() {\n\t\tString doctorName = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tdoctorName = sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \"); // Zitaw apo ton xrhsth na mou dwsei to onoma tou giatrou pou exei grapsei thn sintagh pou epithumei\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tif(doctorName.equals(prescription[i].getDoctorLname())) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou exei grapsei o giatros\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t// Emfanizw thn/tis sintagh/sintages pou exoun graftei apo ton sygkekrimeno giatro\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON IATRO ME EPWNYMO: \" + doctorName);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "@Override // prekrytie danej metody predka\r\n public String toString() {\r\n return super.toString()\r\n + \" vaha: \" + String.format(\"%.1f kg,\", dajVahu())\r\n + \" farba: \" + dajFarbu() + \".\";\r\n }", "private String getDuzMetinSozlukForm(Kok kok) {\n String icerik = kok.icerik();\r\n if (kok.asil() != null)\r\n icerik = kok.asil();\r\n\r\n StringBuilder res = new StringBuilder(icerik).append(\" \");\r\n\r\n // Tipi ekleyelim.\r\n if (kok.tip() == null) {\r\n System.out.println(\"tipsiz kok:\" + kok);\r\n return res.toString();\r\n }\r\n\r\n if (!tipAdlari.containsKey(kok.tip())) {\r\n System.out.println(\"tip icin dile ozel kisa ad bulunamadi.:\" + kok.tip().name());\r\n return \"#\" + kok.icerik();\r\n }\r\n\r\n res.append(tipAdlari.get(kok.tip()))\r\n .append(\" \")\r\n .append(getOzellikString(kok.ozelDurumDizisi()));\r\n return res.toString();\r\n }", "@Override\n protected String elaboraBody() {\n String text = CostBio.VUOTO;\n int numCognomi = mappaCognomi.size();\n int numVoci = Bio.count();\n int taglioVoci = Pref.getInt(CostBio.TAGLIO_NOMI_ELENCO);\n\n text += A_CAPO;\n text += \"==Cognomi==\";\n text += A_CAPO;\n text += \"Elenco dei \";\n text += LibWiki.setBold(LibNum.format(numCognomi));\n text += \" cognomi '''differenti''' utilizzati nelle \";\n text += LibWiki.setBold(LibNum.format(numVoci));\n text += \" voci biografiche con occorrenze maggiori di \";\n text += LibWiki.setBold(taglioVoci);\n text += A_CAPO;\n text += creaElenco();\n text += A_CAPO;\n\n return text;\n }", "void tampilKarakterA();", "public void tampilBuku() {\n System.out.println(\"ID : \" + this.id);\n System.out.println(\"Judul : \" + this.judul);\n System.out.println(\"Tahun Terbit: \" + this.tahun);\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Tạp Chí: \"+\" Tựa đề: \"+ tuaDe+\", Số Trang: \"+soTrang+\", Nhà xuất bản: \"+nxb+\", Số Bài Viết: \"+soBaiViet;\n\t}", "public void PedirSintomas() {\n\t\t\r\n\t\tSystem.out.println(\"pedir sintomas del paciente para relizar el diagnosticoa\");\r\n\t}", "private String nalozZvieraNaVozidlo() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz cislo zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Prepravitelny z = (Prepravitelny) zoo.getZvierataZOO(pozicia - 1);\r\n zoo.nalozZivocicha(z);\r\n zoo.odstranZivocicha(pozicia - 1);\r\n return \"Zviera \" + z + \"\\n\\tbolo nalozene na prepravne vozidlo\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nemozno prepravit\\n\\t\";\r\n } catch (NullPointerException exNP) {\r\n return \"Zviera c. \" + pozicia + \" nie je v ZOO\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "@Test\n public void testTarkistaVastaus() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n\n\n assertEquals(\"Sanan tarkastus ei toimi\", true, k.tarkistaVastaus(\"vastine\"));\n }", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "public void affiche() {\n System.out.println(\"le tapis porte \"+this.tapis.size()+\" caisse(s)\");\n for (Iterator it = this.tapis.iterator(); it.hasNext(); ) {\n System.out.println(it.next().toString());\n } \n }", "public void anazitisiSintagisVaseiHmerominias() {\n\t\tDate firstDt = null, lastDt = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t\t\t\tprescription[j].print();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\t// Zitaw apo ton xrhsth to xroniko euros kata to opoio exei graftei sintagh\n\t\t\tfirstDt = sir.readDate(\"DWSTE ARXIKH HMEROMHNIA: \");\n\t\t\tlastDt = sir.readDate(\"DWSTE TELIKH HMEROMHNIA: \");\n\t\t\tSystem.out.println();\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t// An h hmeromhnia eggrafhs ths syntaghs einai anamesa sta xronika oria pou exei dwsei o xrhsths ektypwnetai\n\t\t\t\tif(firstDt.before(prescription[i].getDate()) && (lastDt.after(prescription[i].getDate()))) \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH METAKSY:\" + firstDt + \" KAI: \" + lastDt);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void ektypwsiSintagis() {\n\t\t// Elegxw an yparxoun syntages\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR PRESCRIPTION No.\" + (i+1) + \":\");\n\t\t\t\tprescription[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "public void zeichnen_kavalier() {\n /**\n * Abrufen der Koordinaten aus den einzelnen\n * Point Objekten des Objekts Tetraeder.\n */\n double[] A = t1.getTetraeder()[0].getPoint();\n double[] B = t1.getTetraeder()[1].getPoint();\n double[] C = t1.getTetraeder()[2].getPoint();\n double[] D = t1.getTetraeder()[3].getPoint();\n\n /**\n * Aufrufen der Methode sortieren\n */\n double[][] sP = cls_berechnen.sortieren(A, B, C, D);\n\n A = sP[0];\n B = sP[1];\n C = sP[2];\n D = sP[3];\n\n /**Wenn alle z Koordinaten gleich sind, ist es kein Tetraeder. */\n if (A[2] == D[2] || (A[2]==B[2] && C[2]==D[2])) {\n System.out.println(\"kein Tetraeder\");\n return;\n }\n\n /** Transformiert x,y,z Koordinaten zu x,y Koordinaten */\n double ax, ay, bx, by, cx, cy, dx, dy;\n ax = (A[0] + (A[2] / 2));\n ay = (A[1] + (A[2] / 2));\n bx = (B[0] + (B[2] / 2));\n by = (B[1] + (B[2] / 2));\n cx = (C[0] + (C[2] / 2));\n cy = (C[1] + (C[2] / 2));\n dx = (D[0] + (D[2] / 2));\n dy = (D[1] + (D[2] / 2));\n\n tetraederzeichnen(ax, ay, bx, by, cx, cy, dx, dy);\n }", "@Override\n public String toString() {\n return tla;\n }", "public String afficherTout()\n\t{\n\t\tString total = \"\";\n\t\tfor(Joueur j : ListJoueur)\n\t\t{\n\t\t\ttotal += \"\\n\" + j.afficherJoueur();\n\t\t}\n\t\treturn total;\n\t}", "public void setarText() {\n txdata2 = (TextView) findViewById(R.id.txdata2);\n txdata1 = (TextView) findViewById(R.id.txdata3);\n txCpf = (TextView) findViewById(R.id.cpf1);\n txRenda = (TextView) findViewById(R.id.renda1);\n txCpf.setText(cpf3);\n txRenda.setText(renda.toString());\n txdata1.setText(data);\n txdata2.setText(data2);\n\n\n }", "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}", "public void urciStupneVrcholu(){\n\t\tfor(int i = 0;i < vrchP.length; i++){\n\t\t\tstupenVrcholu(vrchP[i].klic);\n\t\t}\n\t}", "@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }", "protected String elaboraTemplateAvviso() {\n String testo = VUOTA;\n String dataCorrente = date.get();\n String personeTxt = \"\";\n personeTxt = text.format(numVoci);\n\n if (usaHeadTemplateAvviso) {\n testo += tagHeadTemplateAvviso;\n testo += \"|bio=\";\n testo += personeTxt;\n testo += \"|data=\";\n testo += dataCorrente.trim();\n testo += \"|progetto=\";\n testo += tagHeadTemplateProgetto;\n testo = LibWiki.setGraffe(testo);\n }// end of if cycle\n\n return testo;\n }", "private void kasvata() {\n T[] uusi = (T[]) new Object[this.arvot.length * 3 / 2 + 1];\n for (int i = 0; i < this.arvot.length; i++) {\n uusi[i] = this.arvot[i];\n }\n this.arvot = uusi;\n }", "public void sendeSpielerWeg(String spieler);", "private void naolopkhachhangtrvaotextfield() {\n\t\t\n\t\tint row=table.getSelectedRow();\n\t\ttry {\n\t\t\ttxtmakhhm.setText(table.getValueAt(row, 0).toString());\n\t\t\tjava.util.Date date=new SimpleDateFormat(\"yyyy-MM-dd\").parse((String) table.getValueAt(row, 5).toString());\n\t\t\tjdcNgaytra.setDate(date);\n\t\t\t\n\t\t\ttxtTinhtrang.setText(table.getValueAt(row, 6).toString());\n\t\t\tif(txtTinhtrang.getText().equalsIgnoreCase(\"\"))\n\t\t\t\ttxtTinhtrang.setText(\"\");\n\t\t\t\n\t\t\ttxtGhichu.setText(table.getValueAt(row, 7).toString());\n\t\t\tif(txtGhichu.getText().equalsIgnoreCase(\"\"))\n\t\t\t\ttxtGhichu.setText(\"\");\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\t//JOptionPane.showMessageDialog(this,\"bạn cần chọn dòng cần sửa !\");\n\t\t\treturn ;\n\t\t}\n\t}", "@Test\n public void testGetYhteensa() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n k.tarkistaVastaus(\"vaarav vastaus\");\n k.tarkistaVastaus(\"trololololoo\");\n int virheita = k.getYhteensa();\n\n assertEquals(\"Sanan tarkastus ei toimi\", 2, virheita);\n }", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "public IzvajalecZdravstvenihStoritev() {\n\t}", "public void test2(){\r\n\t\tZug zug1 = st.zugErstellen(2, 2, \"Zug 1\");\r\n\t\tst.fahren();\r\n\t}", "public static void TroskoviPredjenogPuta() {\n\t\tUtillMethod.izlistavanjeVozila();\n\t\tSystem.out.println(\"Unesite redni broj vozila za koje zelite da racunate predjeni put!\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tif (!Main.getVozilaAll().get(redniBroj).isVozObrisano()) {\n\t\t\t\tSystem.out.println(\"Unesite broj kilometara koje ste presli sa odgovarajucim vozilom\");\n\t\t\t\tdouble km = UtillMethod.unesiteBroj();\n\t\t\t\tVozilo v = Main.getVozilaAll().get(redniBroj);\n\t\t\t\tdouble rezultat;\n\t\t\t\tif(v.getGorivaVozila().size()>1) {\n\t\t\t\t\tGorivo g = UtillMethod.izabirGoriva();\n\t\t\t\t\trezultat = cenaTroskaVoz(v,km,g);\n\t\t\t\t}else {\n\t\t\t\t\t rezultat = cenaTroskaVoz(v,km,v.getGorivaVozila().get(0));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Cena troskova za predjeni put je \" + rezultat + \"Dinara!\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Ovo vozilo je obrisano i ne moze da se koristi!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t}\n\t}", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "public void ausgabe() {\n\t\tthis.streamKoordinierung.koordiniereAnhandDerEingabedaten();\n\t\tthis.streamKoordinierung.schreibeEndtextInDatei();\n\t\tSystem.out.println(\"\\n\\nAlles erfolgreich abgelaufen, herzlichen Glueckwunsch!\");\n\t}", "public void setKelas(String sekolah){\n\t\ttempat = sekolah;\n\t}", "public String saveText() {\n\n return \"!Základ!\\n\\n\" + \"Hrubá mzda : \" + wage + \"Kč\\n\" + \"Sleva poplatníka : \" + saveTextChoose + \"\\nSuperhrubá mzda : \" + calc.superGrossWage(wage) + \" Kč\\n\" + \"\\n!Zaměstnavatel odvody z mzdy!\\n\\n\" + \"Socialní pojištění : \" + calc.socialInsuranceEmployer(wage) + \" Kč\\n\" + \"Zdravotní pojištění: \" + calc.healthInsuranceEmployer(wage) + \" Kč\\n\" +\n \"\\n!Zaměstnanec odvody z mzdy!\\n\" + \"\\nSocialní pojištění : \" + calc.socialInsuranceEmployee(wage) + \" Kč\\n\" + \"Zdravotní pojištění : \" + calc.healthInsuranceEmployee(wage) + \" Kč\\n\" +\n \"\\n!Daň ze závislé činnosti!\\n\" + \"\\nZáklad daní :\" + calc.round(wage) + \" Kč\\n\" + \"Daň : \" + calc.tax(wage) + \" Kč \\n\" + \"Daň po odpoču slevy : \" + calc.afterDeductionOfDiscounts(wage, choose) + \" Kč\\n\" +\n \"\\nČistá mzda : \" + calc.netWage(wage, choose) + \" Kč\";\n }", "private String elaboraRitorno() {\n String testo = VUOTA;\n String titoloPaginaMadre = getTitoloPaginaMadre();\n\n if (usaHeadRitorno) {\n if (text.isValid(titoloPaginaMadre)) {\n testo += \"Torna a|\" + titoloPaginaMadre;\n testo = LibWiki.setGraffe(testo);\n }// fine del blocco if\n }// fine del blocco if\n\n return testo;\n }", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "public void test6(){\r\n\t\tZug zug1 = st.zugErstellen(2, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(2, 0, \"Zug 2\");\r\n\t\tst.fahren();\r\n\t}", "public void tallenna() throws SailoException {\r\n if (!muutettu) return;\r\n \r\n File fbak = new File(getBakNimi());\r\n File ftied = new File(getTiedostonNimi());\r\n fbak.delete();\r\n ftied.renameTo(fbak);\r\n\r\n try ( PrintStream fo = new PrintStream(new FileOutputStream(ftied.getCanonicalPath())) ) {\r\n for (Aika aika : this) {\r\n fo.println(aika.toString());\r\n }\r\n } catch ( FileNotFoundException ex ) {\r\n throw new SailoException(\"Tiedosto \" + ftied.getName() + \" ei aukea\");\r\n } catch ( IOException ex ) {\r\n throw new SailoException(\"Tiedoston \" + ftied.getName() + \" kirjoittamisessa ongelmia\");\r\n }\r\n\r\n muutettu = false;\r\n }", "@Override\npublic String toString() {// PARA MOSTRAR LOS DATOS DE ESTA CLASE\n// TODO Auto-generated method stub\nreturn MuestraCualquiera();\n}", "public void xuLyThemPhieuThanhToan(){\n //Ngat chuoi\n String strTongTien = txtTongTien.getText().trim();\n String[] tongTien = strTongTien.split(\"\\\\s\");\n String strTienPhaiTra = txtTienPhaiTra.getText().trim();\n String[] tienPhaiTra = strTienPhaiTra.split(\"\\\\s\");\n\n //xu ly them vao data base\n PhieuThanhToanSevice phieuThanhToanSevice = new PhieuThanhToanSevice();\n int x = phieuThanhToanSevice.themPhieuThanhToan(txtMaPTT.getText().trim(),\n cbbMaPDK.getSelectedItem().toString(),\n Integer.valueOf(txtSoThang.getText().trim()),\n txtNgayTT.getText().trim(), Float.valueOf(tongTien[0]), Float.valueOf(tienPhaiTra[0]));\n\n if (x > 0) {\n JOptionPane.showMessageDialog(null, \"Thanh toán thành công\");\n } else {\n JOptionPane.showMessageDialog(null, \"Thanh toán thất bại\");\n return;\n }\n\n }", "public void trenneVerbindung();", "protected String getTitoloPaginaMadre() {\n return VUOTA;\n }", "String getVorlesungKennung();", "public void anazitisiSintagisVaseiAstheni() {\n\t\tint amkaCode = 0;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tamkaCode = sir.readPositiveInt(\"EISAGETAI TO AMKA TOU ASTHENH: \"); // Zitaw apo ton xrhsth na mou dwsei ton amka tou asthenh pou thelei\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t\tif(amkaCode == prescription[i].getPatientAmka()) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou proorizetai gia ton sygkekrimeno asthenh\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t\tprescription[i].print(); // Emfanizw thn/tis sintagh/sintages oi opoies proorizontai gia ton sigkekrimeno asthenh\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\ttmp_2++;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON ASTHENH ME AMKA: \" + amkaCode);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void klikkaa(Tavarat tavarat, Klikattava klikattava);", "public String toString() {\n\t\treturn \"Kori \" + malli + \". Omenien yhteispaino: \" + Omena.kokopaino +\"g.\\n\"\r\n\t\t\t\t+ \"Omenia korissa \" + Omena.nimi +\", \"+Omena.paino;\r\n\t\r\n\t\t\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn this.getsTenkhoanquy() + \" : \" + this.fSotienconlai\n\t\t\t\t+ this.sLoaitiente;\n\t}", "public void teken(){\n removeAll();\n \n //eerste tekening\n if(tekenEerste != false){\n tekenMuur();\n tekenSleutel();\n veld[9][9] = 6;\n tekenEerste = false;\n tekenBarricade();\n }\n \n //methode die de speler de waarde van de sleutel geeft aanroepen\n sleutelWaarde();\n \n //de methode van het spel einde aanroepen\n einde();\n \n //vernieuwd veld aanroepen\n veld = speler.nieuwVeld(veld);\n \n //het veld tekenen\n for(int i = 0; i < coordinaten.length; i++) {\n for(int j = 0; j < coordinaten[1].length; j++){\n switch (veld[i][j]) {\n case 1: //de sleutels\n if(i == sleutel100.getY() && j == sleutel100.getX()){\n coordinaten[i][j] = new SleutelVakje(100);\n }\n else if (i == sleutel1002.getY() && j == sleutel1002.getX()){\n coordinaten[i][j] = new SleutelVakje(100);\n }\n else if (i == sleutel200.getY() && j == sleutel200.getX()){\n coordinaten[i][j] = new SleutelVakje(200);\n }\n else if (i == sleutel300.getY() && j == sleutel300.getX()){\n coordinaten[i][j] = new SleutelVakje(300);\n } break;\n case 2: //de muren\n coordinaten[i][j] = new MuurVakje();\n break;\n // de barricades\n case 3:\n coordinaten[i][j] = new BarricadeVakje(100);\n break;\n case 4:\n coordinaten[i][j] = new BarricadeVakje(200);\n break;\n case 5:\n coordinaten[i][j] = new BarricadeVakje(300);\n break;\n case 6: // het eindveld vakje\n coordinaten[i][j] = new EindveldVakje();\n break;\n default: // het normale vakje\n coordinaten[i][j] = new CoordinaatVakje();\n break;\n }\n //de speler\n coordinaten[speler.getY()][speler.getX()] = new SpelerVakje();\n \n //het veld aan de JPanel toevoegen\n add(coordinaten[i][j]);\n }\n }\n System.out.println(\"Speler waarde = \" + speler.getSleutelWaarde());\n revalidate();\n repaint();\n }", "private void atualizarTela() {\n\t\tif(this.primeiraJogada == true) {//SE FOR A PRIMEIRA JOGADA ELE MONTA O LABEL DOS NUMEROS APOS ESCOLHER A POSICAO PELA PRIMEIRA VEZ\r\n\t\t\tthis.primeiraJogada = false;\r\n\t\t\tthis.montarLabelNumeros();\r\n\t\t}\r\n\r\n\t\tthis.esconderBotao();\r\n\t\t\r\n\t\tthis.acabarJogo();\r\n\t}", "@Test\n public void konstruktoriAsettaaSateenOikein() {\n assertEquals(3.0, lierio.getSade(), 1);\n }", "private void berechneNeuenWert () {\r\n try {\r\n double ergebnis = 0d;\r\n for (JTextComponent wert : this.wertOperator.keySet()) {\r\n if (this.ignoriereWhitespaceEingabefelder && wert.getText().trim().length() == 0) {\r\n continue;\r\n }\r\n final char operator = this.wertOperator.get(wert);\r\n final double operand = Double.parseDouble(wert.getDocument().getText(0, wert.getDocument().getLength()).trim());\r\n switch (operator) {\r\n case '*':\r\n ergebnis *= operand;\r\n break;\r\n case '/':\r\n ergebnis /= operand;\r\n break;\r\n case '-':\r\n ergebnis -= operand;\r\n break;\r\n case '+':\r\n ergebnis += operand;\r\n break;\r\n case '=':\r\n ergebnis = operand;\r\n break;\r\n }\r\n }\r\n String text = Double.toString(ergebnis);\r\n if (this.anzahlDerNachkommastellen <= 0 && text.indexOf('.') != -1) {\r\n text = text.substring(0,text.indexOf('.'));\r\n }\r\n else {\r\n // Kommastellen hinzufügen\r\n if (text.indexOf('.') == -1) {\r\n text += '.';\r\n }\r\n // ggf. mit Nullen hinten auffüllen\r\n while (text.indexOf('.') + anzahlDerNachkommastellen > text.length() -1) {\r\n text += '0';\r\n }\r\n // Abschneiden zuviel vorhandener Stellen\r\n if (text.length() - 1 > text.indexOf('.') +anzahlDerNachkommastellen) {\r\n text = text.substring(0,text.indexOf('.')+anzahlDerNachkommastellen+1);\r\n }\r\n }\r\n this.setText(text);\r\n }\r\n catch (final Exception berechnungsProblem) {\r\n this.setText(this.zeigeFehlerAn ? \"#WERT!\" : \"\");\r\n }\r\n }", "public final String dataTauluMerkkiJonoksi() {\r\n String data = \"\";\r\n\r\n for (int i = 0; i < this.riviAsteikko.length; i++) {\r\n for (int j = 0; j < this.sarakeAsteikko.length; j++) {\r\n if (this.dataTaulukko[i][j] < 10) {\r\n data = data + \" \" + dataTaulukko[i][j];\r\n } else if (this.dataTaulukko[i][j] >= 10\r\n && this.dataTaulukko[i][j] < 100) {\r\n data = data + \" \" + this.dataTaulukko[i][j];\r\n } else {\r\n data = data + \" \" + this.dataTaulukko[i][j];\r\n }\r\n }\r\n data = data + System.lineSeparator();\r\n }\r\n return data;\r\n }", "public String dajPopis() {\n return super.dajPopis() + \"KUZLO \\nJedna tebou vybrata jednotka ziska 3-nasobnu silu\";\n }", "public String kalkulatu() {\n\t\tString emaitza = \"\";\n\t\tDouble d = 0.0;\n\t\ttry {\n\t\t\td = Double.parseDouble(et_sarrera.getText().toString());\n\t\t} catch (NumberFormatException e) {\n\t\t\tet_sarrera.setText(\"0\");\n\t\t}\n\t\tif (st_in.compareTo(\"m\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1000.0);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 100.0);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1000.0);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1609.344);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 0.0254);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"km\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1000.0);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 100000.0);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1000000.0);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1.609344);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 0.0000254);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"cm\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 100000.0);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 100.0);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 10.0);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 160934.4);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 2.54);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"mm\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1000000.0);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1000.0);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 10.0);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1609344);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 25.4);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"ml\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1.609344);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1609.344);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 160934.4);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1609344);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 0.000015782828);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"inch\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 0.0000254);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 0.0254);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 2.54);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 25.4);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 0.000015782828);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t}\n\t\t}\n\t\treturn emaitza;\n\t}", "@Override\r\n\tpublic void 자기() {\n\t\tSystem.out.println(\"잠을 잔다\");\r\n\t}", "@Test\n public void WertZuweisung (){\n String bez = \"Test\";\n String matGr = \"Test\";\n String zeichNr = \"Test\";\n float preis = 3;\n int ve = 1;\n try {\n Teilebestand teil = new Teilebestand();\n teil.setBezeichnung(bez);\n teil.setMaterialgruppe(matGr);\n teil.setPreis(preis);\n teil.setTyp(Teilebestand.Typ.kaufteile);\n teil.setZeichnungsnummer(zeichNr);\n teil.setVe(ve);\n \n teil.save();\n \n assertEquals(teil.getBezeichnung(), bez);\n assertEquals(teil.getMaterialgruppe(), matGr);\n assertEquals(teil.getPreis(), preis, 0.1);\n assertNotNull(preis);\n assertEquals(teil.getTyp(), Teilebestand.Typ.kaufteile);\n assertEquals(teil.getVe(), ve);\n assertNotNull(ve);\n assertEquals(teil.getZeichnungsnummer(), zeichNr);\n \n } catch (SQLException ex) {\n fail(ex.getSQLState());\n }\n \n \n \n \n }", "protected void pretragaGledalac() {\n\t\tString Gledalac=tfPretraga.getText();\r\n\r\n\t\tObject[]redovi=new Object[9];\r\n\t\tdtm.setRowCount(0);\r\n\t\t\r\n\t\tfor(Rezervacije r:Kontroler.getInstanca().vratiRezervacije()) {\r\n\t\t\tif(r.getImePrezime().toLowerCase().contains(Gledalac.toLowerCase())) {\r\n\t\t\t\r\n\t\t\t\tredovi[0]=r.getID_Rez();\r\n\t\t\t\tredovi[1]=r.getImePrezime();\r\n\t\t\t\tredovi[2]=r.getImePozorista();\r\n\t\t\t\tredovi[3]=r.getNazivPredstave();\r\n\t\t\t\tredovi[4]=r.getDatumIzvodjenja();\r\n\t\t\t\tredovi[5]=r.getVremeIzvodjenja();\r\n\t\t\t\tredovi[6]=r.getScenaIzvodjenja();\r\n\t\t\t\tredovi[7]=r.getBrRezUl();\r\n\t\t\t\tredovi[8]=r.getCenaUlaznica();\r\n\t\t\t\tdtm.addRow(redovi);\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "String getTitolo();", "public void tetraederzeichnen(double ax,double ay,double bx,double by,double cx,double cy,double dx,double dy){\n double[][] arr_koordinaten_2d ={{ax,ay},{bx,by},{cx,cy},{dx,dy}};\n /**\n * Aufruf der Methode gestricheltodernicht\n *\n * Überprüft, welche Strecken von Punkt D sichtbar sind oder nicht.\n */\n\n boolean[] strichelnodernicht = cls_berechnen.gestricheltodernicht(arr_koordinaten_2d);\n\n /**Skaliert die Koordinaten zum Pixelformat mit Koordinatenursprung\n * ca in der Mitte der Zeichenfläche*/\n int sw=9; //skalierungswert\n ax= (sw+ax)*50;\n ay=(sw-ay)*50;\n bx= (sw+bx)*50;\n by=(sw-by)*50;\n cx= (sw+cx)*50;\n cy=(sw-cy)*50;\n dx= (sw+dx)*50;\n dy=(sw-dy)*50;\n\n /**\n * Erstellt Linienobjekte für die Kanten des Tetraeder Objekts...\n */\n Line line1 = new Line();\n Line line2 = new Line();\n Line line3 = new Line();\n Line line4 = new Line();\n Line line5 = new Line();\n Line line6 = new Line();\n\n /**\n * ... weißt ihnen die Koordinaten zu...\n */\n line1.setStartX(ax);\n line1.setStartY(ay);\n line1.setEndX(bx);\n line1.setEndY(by);\n\n line2.setStartX(ax);\n line2.setStartY(ay);\n line2.setEndX(cx);\n line2.setEndY(cy);\n\n line3.setStartX(bx);\n line3.setStartY(by);\n line3.setEndX(cx);\n line3.setEndY(cy);\n \n line4.setStartX(dx);\n line4.setStartY(dy);\n line4.setEndX(ax);\n line4.setEndY(ay);\n\n line5.setStartX(dx);\n line5.setStartY(dy);\n line5.setEndX(bx);\n line5.setEndY(by);\n\n line6.setStartX(dx);\n line6.setStartY(dy);\n line6.setEndX(cx);\n line6.setEndY(cy);\n \n if(!strichelnodernicht[0]){\n line4.getStrokeDashArray().addAll(5d,5d);}\n\n if(!strichelnodernicht[1]){\n line5.getStrokeDashArray().addAll(5d,5d);}\n\n if(!strichelnodernicht[2]){\n line6.getStrokeDashArray().addAll(5d,5d);}\n\n /**\n * ... und fügt die Linien Objekte der Zeichenfläche hinzu\n */\n canvaspane.getChildren().add(line1);\n canvaspane.getChildren().add(line2);\n canvaspane.getChildren().add(line3);\n canvaspane.getChildren().add(line4);\n canvaspane.getChildren().add(line5);\n canvaspane.getChildren().add(line6);\n\n //zeichnet den Koordinatenursprung neu\n canvaspane.getChildren().add(l1);\n canvaspane.getChildren().add(l2);\n }", "public TrasaPunktowana(String start, String koniec, GrupaGorska gr, PodgrupaGorska pd, StopienTrudnosci st, boolean niepelnosprawny, int pktwej, int pktzej){\n miejscePoczatkowe = start;\n miejsceKoncowe = koniec;\n grupaGorska = gr;\n podgrupaGorska = pd;\n stopienTrudnosci = st;\n czyDlaNiepelnosprawnych = niepelnosprawny;\n punktyZaWejscie = pktwej;\n punktyZaZejscie = pktzej;\n }", "public void trykkPaa() throws TrykketPaaBombe {\n // Ingenting skal skje dersom en av disse er true;\n if (brettTapt || trykketPaa || flagget) {\n return;\n }\n\n // Om ruten er en bombe taper man brettet\n if (bombe) {\n trykketPaa = true;\n setText(\"x\");\n setBackground(new Background(new BackgroundFill(Color.RED, CornerRadii.EMPTY, Insets.EMPTY)));\n throw new TrykketPaaBombe();\n }\n // Om ruten har null naboer skal et stoerre omraade aapnes\n else if (bombeNaboer == 0) {\n Lenkeliste<Rute> besokt = new Lenkeliste<Rute>();\n Lenkeliste<Rute> aapneDisse = new Lenkeliste<Rute>();\n aapneDisse.leggTil(this);\n // Rekursiv metode som fyller aapneDisse med riktige ruter\n finnAapentOmraade(besokt, aapneDisse);\n for (Rute r : aapneDisse) {\n r.aapne();\n }\n } else {\n aapne();\n }\n }", "private String vylozZvieraZVozidla() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz index zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Zivocich ziv = zoo.vylozZivocicha(pozicia-1);\r\n if (ziv == null) {\r\n return \"Zviera c. \" + pozicia + \" nie je na vozidle\\n\\t\";\r\n }\r\n zoo.pridajZivocicha(ziv);\r\n return \"Zviera \" + ziv\r\n + \"\\n\\tbolo vylozene z prepravneho vozidla\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nie je na vozidle\\n\\t\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "static void citajSveRedoveAlt(String imeFajla) {\n\n /* Koriste se pogodnosti biblioteke za citanje svih redova odjednom */\n Svetovid.out.println(Svetovid.in(imeFajla).readAll());\n\n }", "public void wuerfeln() {\n if (istGefängnis) {\n setIstGefängnis(false);\n if (aktuellesFeldName instanceof GefängnisFeld && !(aktuellesFeldName instanceof NurZuBesuchFeld)) {\n GefängnisFeld g = (GefängnisFeld) aktuellesFeldName;\n g.gefaengnisAktion(this);\n \n return;\n }\n\n } else {\n String[] worte = {\"Eins\", \"Zwei\", \"Drei\", \"Vier\", \"Fünf\", \"Sechs\", \"Sieben\", \"Acht\", \"Neun\", \"Zehn\", \"Elf\", \"Zwölf\"};\n\n wuerfelZahl = getRandomInteger(12, 1);\n\n this.aktuellesFeld = this.aktuellesFeld + wuerfelZahl + 1;\n if (this.aktuellesFeld >= 40) {\n setAktuellesFeld(0);\n\n }\n\n System.out.println(worte[wuerfelZahl] + \" gewürfelt\");\n\n aktuellesFeldName = spielfigurSetzen(this.aktuellesFeld);\n System.out.println(\"Du befindest dich auf Feld-Nr: \" + (this.aktuellesFeld));\n boolean check = false;\n for (Spielfelder s : felderInBesitz) {\n if (aktuellesFeldName.equals(s)) {\n check = true;\n }\n }\n\n if (!check) {\n aktuellesFeldName.spielfeldAktion(this, aktuellesFeldName);\n } else {\n System.out.println(\"Das Feld: \" + aktuellesFeldName.getFeldname() + \"(Nr: \" + aktuellesFeldName.getFeldnummer() + \")gehört dir!\");\n if (aktuellesFeldName instanceof Straße) {\n Straße strasse = (Straße) aktuellesFeldName;\n System.out.println(\"Farbe: \" + strasse.getFarbe());\n try {\n strasse.hausBauen(this, strasse);\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }\n }\n }", "public void test5(){\r\n\t\tZug zug1 = st.zugErstellen(1, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(0, 3, \"Zug 2\"); \r\n\t}", "public void ustawPojazdNaPoczatek()\n\t{\n\t\tSciezka pierwszaSc = droga.get(0);\n\t\tfinal double y = 10;\n\t\tpojazd.zmienPozycje(pierwszaSc.getCenterDownX(), y);\n\t}", "public void presenta_Estudiante(){\r\n System.out.println(\"Universidad Técnica Particular de Loja\\nInforme Semestral\\nEstudiante: \"+nombre+\r\n \"\\nAsignatura: \"+nAsignatura+\"\\nNota 1 Bimestre: \"+nota1B+\"\\nNota 2 Bimestre: \"+nota2B+\r\n \"\\nPromedio: \"+promedio()+\"\\nEstado de la Materia: \"+estado());\r\n }" ]
[ "0.69023865", "0.6822972", "0.66528094", "0.6512834", "0.64692295", "0.636709", "0.63293993", "0.6322326", "0.63118106", "0.62741864", "0.6272893", "0.61715937", "0.61465794", "0.613849", "0.61214507", "0.60909426", "0.6076348", "0.6075875", "0.6050527", "0.60488015", "0.60448295", "0.60239047", "0.6013736", "0.59967935", "0.59920037", "0.59904814", "0.5986971", "0.59838945", "0.5976164", "0.5974594", "0.59728533", "0.5972402", "0.59705806", "0.5967929", "0.5959554", "0.5959186", "0.5941354", "0.5932419", "0.59256613", "0.5921744", "0.5918216", "0.5918145", "0.59090245", "0.590861", "0.5896874", "0.5895808", "0.58946323", "0.5885595", "0.5884317", "0.5858546", "0.58552754", "0.58395857", "0.5839376", "0.5839279", "0.5830462", "0.5828467", "0.58205193", "0.58203244", "0.58067834", "0.580116", "0.5799265", "0.5789996", "0.57845855", "0.5781415", "0.5777008", "0.57718927", "0.5766121", "0.57591265", "0.57570016", "0.5755514", "0.57514495", "0.57454157", "0.57428336", "0.57414067", "0.57393974", "0.5729931", "0.5729312", "0.57276076", "0.5726152", "0.5725329", "0.5722573", "0.57217366", "0.5709498", "0.57087487", "0.5705377", "0.5698949", "0.5695864", "0.56946677", "0.5693713", "0.5687509", "0.56864464", "0.5686069", "0.56845325", "0.56838655", "0.5681559", "0.5681018", "0.56778336", "0.567587", "0.5671949", "0.56677926", "0.56663907" ]
0.0
-1
slanje poruke i html sadrzaja
void sendMessageWithAttachment (EmailObject object, String pathToAttachment) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PoaMaestroMultivaloresHTML() {\n/* 253 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 255 */ buildDocument();\n/* */ }", "@GET\r\n @Produces(\"text/html\")\r\n public String getHtml() {\r\n return \"<html><body>the solution is :</body></html> \";\r\n }", "String renderHTML();", "private static void nekoTest() {\n\t\t\t\t DOMParser parser = new DOMParser();\n\t\t\t\t try {\n\t\t\t\t parser\n\t\t\t\t .setFeature(\n\t\t\t\t \"http://cyberneko.org/html/features/scanner/allow-selfclosing-iframe\",\n\t\t\t\t true);\n\t\t\t\t parser.setFeature(\"http://cyberneko.org/html/features/augmentations\",\n\t\t\t\t true);\n\t\t//\t\t parser.setProperty(\n\t\t//\t\t \"http://cyberneko.org/html/properties/default-encoding\",\n\t\t//\t\t defaultCharEncoding);\n\t\t\t\t parser\n\t\t\t\t .setFeature(\n\t\t\t\t \"http://cyberneko.org/html/features/scanner/ignore-specified-charset\",\n\t\t\t\t true);\n\t\t\t\t parser\n\t\t\t\t .setFeature(\n\t\t\t\t \"http://cyberneko.org/html/features/balance-tags/ignore-outside-content\",\n\t\t\t\t false);\n\t\t\t\t parser.setFeature(\n\t\t\t\t \"http://cyberneko.org/html/features/balance-tags/document-fragment\",\n\t\t\t\t true);\n\t\t//\t\t parser.setFeature(\"http://cyberneko.org/html/features/report-errors\",\n\t\t\t\t\t\tString url=\"http://et.21cn.com/movie/xinwen/huayu/2004/05/20/1571743.shtml\";\n\t\t\t\t Document document = Jsoup.connect(url).get();\n\t\t\t\t W3CDom wad= new W3CDom();\n\t\t\t\t org.w3c.dom.Document fromJsoup = wad.fromJsoup(document);\n\t\t//\t\t parser.parse(new InputSource(new StringReader(document.html())));\n\t\t//\t\t org.w3c.dom.Document document2 = parser.getDocument();\n\t\t\t\t XpathV3Selector selector = XpathV3Selector.selector(new DOMSource(fromJsoup));\n\t\t\t\t \tString string = selector.evaluate(\"//div[@class='texttit_m1']\");\n\t\t\t\t\tSystem.out.println(string);\n\t\t//\t\t DOMSource\n\t\t\t\t } catch (Exception e) {\n\t\t\t\t \te.printStackTrace();\n\t\t\t\t }\n\t}", "public IndicadoresEficaciaHTML() {\n/* 163 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 165 */ buildDocument();\n/* */ }", "HTML createHTML();", "public AdmClientePreferencialHTML() {\n/* 191 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 193 */ buildDocument();\n/* */ }", "public abstract String dohvatiKontakt();", "public void prenderVehiculo();", "public void run() {\n\t\t\t\tVerticalPanel panelCompteRendu = new VerticalPanel();\r\n\t\t\t\thtmlCompteRendu = new HTML();\r\n\t\t\t\tpanelCompteRendu.add(htmlCompteRendu);\r\n\t\t\t\tRootPanel.get(\"compteRendu\").add(panelCompteRendu);\r\n\t\t\t\t\r\n\t\t\t\tVerticalPanel panelLegende = new VerticalPanel();\r\n\t\t\t\thtmlLegende = new HTML();\r\n\t\t\t\tpanelLegende.add(htmlLegende);\r\n\t\t\t\tRootPanel.get(\"legende\").add(htmlLegende);\r\n\t\t\t\t\r\n\t\t\t\t// temps d'intˇgration restant\r\n\t\t\t\tLabel tempsDIntegrationRestant = new Label();\r\n\t\t\t\tRootPanel.get(\"tempsDIntegrationRestant\").add(tempsDIntegrationRestant);\r\n\t\t\t\t\r\n\t\t\t\t// ajout de la carte\r\n\t\t\t\twMap = new MapFaWidget2(htmlCompteRendu);\r\n\t\t\t\tRootPanel.get(\"carte\").add(wMap);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// ajout du bouton reset\r\n\t\t\t\tButton boutonReset = new Button(\"Nettoyer la carte\");\r\n\t\t\t\tboutonReset.addClickHandler(actionBoutonReset());\r\n\t\t\t\tRootPanel.get(\"boutonReset\").add(boutonReset);\r\n\r\n\t\t\t\t// ajout du formulaire d'intˇgration\r\n\t\t\t\tnew FileUploadView(wMap,htmlLegende, htmlCompteRendu,tempsDIntegrationRestant);\r\n\r\n\t\t\t}", "public void sendeSpielfeld();", "private void dibujar() {\n\n\t\tdiv.setWidth(\"99%\");\n\t\tdiv.setHeight(\"99%\");\n\t\treporte.setWidth(\"99%\");\n\t\treporte.setHeight(\"99%\");\n\t\treporte.setType(type);\n\t\treporte.setSrc(url);\n\t\treporte.setParameters(parametros);\n\t\treporte.setDatasource(dataSource);\n\n\t\tdiv.appendChild(reporte);\n\n\t\tthis.appendChild(div);\n\n\t}", "public static void makeHtmlFile(String s,PrintWriter pw,String first,String second,String third)\n \t{\n \t pw.println(\"<!DOCTYPE html><html lang=\\\"en\\\"><head><meta charset=\\\"UTF-8\\\"><title>\"+s+\"</title><link rel=\\\"stylesheet\\\" href=\\\"https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css\\\"></head>\");\n \t pw.println(\"<body id=\\\"body\\\"><div class=main id=\\\"main\\\"> </div>\");\n \t pw.println(\"<div id=\\\"\"+ first+\"\\\" class=\"+\"\\\"#\"+first+\"\\\"><h3>\"+first+\"</h3></div>\");\n \t pw.println(\"<div id=\\\"\"+second+\"\\\" class=\\\"#\"+second+\"\\\"><h3>\"+second+\"</h3></div>\");\n \t pw.println(\"<div id=\\\"\"+third+\"\\\" class=\\\"#\"+third+\"\\\"><h3>\"+third+\"</h3></div>\");\n \t pw.println(\"<script src=\\\"Main.js\\\"></script>\");\n \t pw.println(\"</body></html>\");\n\t \t pw.close();\n\t }", "public String getHTMLPage() {\r\n String s = \"<html><body>\" + MySystem.lineBreak;\r\n s += \"<h1>Room Control module</h1>\" + MySystem.lineBreak;\r\n s += \"<p>This module controls any on/off-node connected to ARNE bus.</p>\" + MySystem.lineBreak;\r\n s += \"<h2>Controls:</h2>\";\r\n s += \"<center><p><table border=\\\"1\\\" cellpadding=\\\"3\\\" cellspacing=\\\"0\\\">\";\r\n Iterator it = roomObjects.keySet().iterator();\r\n while (it.hasNext()) {\r\n GenRoomObject o = (GenRoomObject)roomObjects.get(it.next());\r\n if (o!=null) {\r\n if (o.displHTML) { //if display this object (configured in modGenRoomControl.xml)\r\n s += \"<tr><td>\" + o.name + \"</td><td>[<a href=\\\"toggle:\" + o.name + \"\\\">toggle</a>]</td><td>[<a href=\\\"on:\" + o.name + \"\\\">ON</a>]</td><td>[<a href=\\\"off:\" + o.name + \"\\\">OFF</a>]</td></tr></tr>\";\r\n }\r\n }\r\n }\r\n s += \"</table></center>\";\r\n s += \"</body></html>\";\r\n return s;\r\n }", "private void getHtmlCode() {\n\t try {\n\t Document doc = Jsoup.connect(\"http://www.example.com/\").get();\n\t Element content = doc.select(\"a\").first();\n//\t return content.text();\n\t textView.setText(content.text());\n\t } catch (IOException e) {\n\t // Never e.printStackTrace(), it cuts off after some lines and you'll\n\t // lose information that's very useful for debugging. Always use proper\n\t // logging, like Android's Log class, check out\n\t // http://developer.android.com/tools/debugging/debugging-log.html\n\t Log.e(TAG, \"Failed to load HTML code\", e);\n\t // Also tell the user that something went wrong (keep it simple,\n\t // no stacktraces):\n\t Toast.makeText(this, \"Failed to load HTML code\",\n\t Toast.LENGTH_SHORT).show();\n\t }\n\t }", "protected void elaboraPagina() {\n testoPagina = VUOTA;\n\n //header\n testoPagina += this.elaboraHead();\n\n //body\n testoPagina += this.elaboraBody();\n\n //footer\n //di fila nella stessa riga, senza ritorno a capo (se inizia con <include>)\n testoPagina += this.elaboraFooter();\n\n //--registra la pagina principale\n if (dimensioniValide()) {\n testoPagina = testoPagina.trim();\n\n if (pref.isBool(FlowCost.USA_DEBUG)) {\n testoPagina = titoloPagina + A_CAPO + testoPagina;\n titoloPagina = PAGINA_PROVA;\n }// end of if cycle\n\n //--nelle sottopagine non eseguo il controllo e le registro sempre (per adesso)\n if (checkPossoRegistrare(titoloPagina, testoPagina) || pref.isBool(FlowCost.USA_DEBUG)) {\n appContext.getBean(AQueryWrite.class, titoloPagina, testoPagina, summary);\n logger.info(\"Registrata la pagina: \" + titoloPagina);\n } else {\n logger.info(\"Non modificata la pagina: \" + titoloPagina);\n }// end of if/else cycle\n\n //--registra eventuali sottopagine\n if (usaBodySottopagine) {\n uploadSottoPagine();\n }// end of if cycle\n }// end of if cycle\n\n }", "@POST\r\n @Produces(MediaType.TEXT_HTML)\r\n @Consumes(MediaType.TEXT_HTML)\r\n public Boolean getHtml(@QueryParam(\"esquema\")String esquema,@QueryParam(\"nombre\")String nombre,@QueryParam(\"idusuario\")int idusuario) {\r\n try {\r\n return creaTabla(esquema, nombre, idusuario);\r\n } catch (Exception ex) {\r\n Logger.getLogger(NuevaTablaResource.class.getName()).log(Level.SEVERE, null, ex);\r\n return false;\r\n }\r\n }", "@Test\n public void parserHtml() throws JSONException, IOException {\n }", "public static void main(String[] args) {\n\t\tDocument Html = null;\n\t\ttry {\n\t\t\t// hacemos un connect de Jsoup\n\t\t\t Html = Jsoup.connect(\"http://www.pccomponentes.com/\").get();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"la página no fue encontrada\");\n\t\t}\n\t\t\n\t\t//sacamos el titulo del html\n\t\tString titulo = Html.title();\n\t\tSystem.out.println(titulo);\n\t\t \n\t\t//con select selecionamos la parte de la página html que queremos\n\t\t Elements articulos = Html.select(\"div[class=col-xs-6 col-sm-4 col-md-3 col-lg-3 article-block]\");\n\t\t \n\t\t //recorremos con un for each los Elementos de div\n\t\t for(Element art: articulos) {\n\t\t\t //cogemos el atributo de los prodcutos\n\t\t\t Elements productos = art.getElementsByAttribute(\"data-loop\");\n\t\t\t //cogemos el precio actual del atributo class y su valor\n\t\t\t Elements precio = art.getElementsByAttributeValue(\"class\",\"tarjeta-articulo__precio-actual\");\n\t\t\t //cogemos el descuento que tienen los prodcutos del atributo class y su valor, ademas comprobamos\n\t\t\t //si tienen texto\n\t\t\t boolean descuento = art.getElementsByAttributeValue(\"class\",\"tarjeta-articulo__descuento\").hasText();\n\t\t\t //guardamos en un string los atributos que tengan texto en descuento\n\t\t\t String descuento1 = art.getElementsByAttributeValue(\"class\",\"tarjeta-articulo__descuento\").text();\n\t\t\t //cogemos el texto del precio que tenia el producto antes del descuento\n\t\t\t Elements precioAntiguo = art.getElementsByAttributeValue(\"class\",\"tarjeta-articulo__pvp\");\n\t\t\t if (descuento==true) {\n\t\t\t\t System.out.println(\"\\nProducto: \"+productos.text()+\"/Antes: \"+precioAntiguo.text()+\", Descuento: \"+descuento1+\", Ahora: \"+precio.text());\n\t\t\t }else\n\t\t\t System.out.println(\"\\nProducto: \"+productos.text()+\"/Precio: \"+precio.text());\n\t\t }\n\t}", "@Test\n\tpublic void run() {\n\t\tWebDriver webdriver = WebDriverManager.getWebDriver();\n\t\twebdriver.get(WikiPag.url);\n\t\t\n\t\t//pesquisa pelo termo\n\t\tBy byInputSearch = By.id(\"searchInput\");\n\t\tWebElement elementInputSearch = webdriver.findElement(byInputSearch);\n\t\telementInputSearch.sendKeys(termo);\n\t\twebdriver.findElement(By.id(\"searchButton\")).click();\n\t\t\n\t\tString xpath = \"(.//div[@id='p-lang']/div/ul)\";\n\t\tSystem.out.println(webdriver.findElement(By.xpath(xpath)).getText());\n\t\t\n\t\t\n\t}", "public String generar(String id) throws FileNotFoundException, ZipException {\n\t\t//Inicializar las variables con la plantilla\n\t\tString index = this.index,\n\t\t\t\thtml = content.html,\n\t\t\t\thead = content.head,\n\t\t\t\tbody = content.body, \n\t\t\t\theader = content.header, \n\t\t\t\tmenu = content.menu, \n\t\t\t\tmain = content.main, \n\t\t\t\tsection = content.section, \n\t\t\t\tactividad = content.actividad, \n\t\t\t\trecurso = content.recursootro,\n\t\t\t\tfooter = content.footer,\n\t\t\t\textra = content.extra;\n\t\t\n\t\t//Adecuar index.html\n\t\tindex = index.replace(\"[titulo]\", titulo);\n\t\tindex = index.replace(\"[descripcion]\", descripcion);\n\t\t\n\t\t//Adecuar content.html\n\t\tfor (Actividad i : content.actividades) {\n\t\t\tactividad = content.actividad;\n\t\t\tmenu = content.menu;\n\t\t\t//Agregar la informacion del elemento menu para la actividad i\n\t\t\tmenu = menu.replace(\"[actividad]\", i.titulo);\n\t\t\tmenu = menu.replace(\"[idactividad]\", i.id);\n\t\t\t//Agregar la informacion de la seccion de la actividad i\n\t\t\tactividad = actividad.replace(\"[idactividad]\", i.id);\n\t\t\tactividad = actividad.replace(\"[actividad]\", i.titulo);\n\t\t\tactividad = actividad.replace(\"[descactividad]\", i.descactividad);\n\t\t\tfor(Recurso j : i.recursos) {\n\t\t\t\t//Adecuar segun el tipo de recurso\n\t\t\t\tswitch (j.type.split(\"/\")[0]) {\n\t\t\t\tcase \"audio\":\n\t\t\t\t\trecurso = content.recursoaudio;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"video\":\n\t\t\t\t\trecurso = content.recursovideo;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"imagen\":\n\t\t\t\t\trecurso = content.recursoimagen;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\trecurso = content.recursootro;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t//Llenar el recurso j con su informacion\n\t\t\t\trecurso = recurso.replace(\"[recurso]\", j.titulo);\n\t\t\t\trecurso = recurso.replace(\"[descrecurso]\", j.descrecurso);\n\t\t\t\trecurso = recurso.replace(\"[path]\", j.path);\n\t\t\t\trecurso = recurso.replace(\"[type]\", j.type);\n\t\t\t\trecurso = recurso.replace(\"[name]\", j.name);\n\t\t\t\t//Agregar el recurso j a la actividad i (se vuelve agregar la etiqueta recurso para seguir añadiendo)\n\t\t\t\tactividad = actividad.replace(\"<!--recurso-->\", recurso+\" <!--recurso--> \\r\\n\");\n\t\t\t}\n\t\t\t//Se agrega el menu de la actividad i para que aparezca en la barra de navegacion\n\t\t\theader = header.replace(\"<!--item-->\", menu+\" <!--item--> \\r\\n\");\n\t\t\t//Agregar la seccion de la actividad i que ya tiene toda su informacion para ser mostrada\n\t\t\tmain = main.replace(\"<!--sectionactividad-->\",actividad+\" <!--sectionactividad--> \\r\\n\");\n\t\t}\n\t\t//Se llena la informacion de la seccion principal\n\t\tsection = section.replace(\"[titulo]\", content.titulo);\n\t\tsection = section.replace(\"[descripcion]\", content.descripcion);\n\t\t//Se agrega la seccion principal para mostrar\n\t\tmain = main.replace(\"<!--sectioninicio-->\", section);\n\t\t//Se agregan los elementos en su orden que van construyendo la pagina de forma incremental\n\t\tbody = body.replace(\"<!--header-->\", header);\n\t\tbody = body.replace(\"<!--main-->\", main);\n\t\tbody = body.replace(\"<!--footer-->\", content.footer);\n\t\tbody = body.replace(\"<!--extra-->\", content.extra);\n\t\thtml = html.replace(\"<!--head-->\", content.head);\n\t\thtml = html.replace(\"<!--body-->\", body);\n\t\t\n\t\t//Crear el archivo index.html y escribir el contenido\n\t\tPrintWriter indexhtml = new PrintWriter(new File(path+\"/index.html\"));\n\t\tindexhtml.print(index);\n\t\tindexhtml.close();\n\t\t\n\t\t//Crear el archivo content.html y escribir el contenido\n\t\tPrintWriter contenthtml = new PrintWriter(new File(path+\"/content.html\"));\n\t\tcontenthtml.print(html);\n\t\tcontenthtml.close();\n\t\t\n\t\t//Generar el .zip\n\t\tString scorm = path;\n\t\tString scormZip = path+id+\".zip\";\n\t\tconvertToZip(scorm, scormZip);\n\t\t\n\t\treturn scormZip;\n\t}", "public PoaMaestroMultivaloresHTML(PoaMaestroMultivaloresHTML src) {\n/* 271 */ this.fDocumentLoader = src.getDocumentLoader();\n/* */ \n/* 273 */ setDocument((Document)src.getDocument().cloneNode(true), src.getMIMEType(), src.getEncoding());\n/* */ \n/* 275 */ syncAccessMethods();\n/* */ }", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "@Override\n protected Void doInBackground(Void... params) {\n try {\n documentoHtml = Jsoup.connect(\"http://eldolarenmexico.com/\").get();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public static void main (String[] args) {\r\n try {\r\n BufferedReader in = new BufferedReader(\r\n new InputStreamReader(\r\n new FileInputStream(new File(\"D:\\\\bitext.html\")), \"UTF-8\"));\r\n\r\n String s;\r\n StringBuffer b = new StringBuffer();\r\n while( (s = in.readLine()) != null) {\r\n b.append(s );\r\n }\r\n String page= b.toString();\r\n HTMLParser parser = new HTMLParser(page.getBytes(\"UTF-8\"));\r\n //parser.getTagValue (\"meta\");\r\n //System.out.println();\r\n\r\n System.out.println(parser.htmlParsing (false, null, null, false));\r\n //System.out.println(htmlParsing (page3, \"euc-kr\"));\r\n\r\n\r\n } catch (Throwable t) {\r\n t.printStackTrace ();\r\n }\r\n }", "public abstract String visualizar();", "public static void htmlExtractor() throws IOException {\t\n\t\tString inizio=\"Inizio:\"+new Date();\n\t\tfinal File sourceDocDir = new File(\"datasetWarc\");\n\t\tif (sourceDocDir.canRead()) {\n\t\t\tif (sourceDocDir.isDirectory()) {\n\t\t\t\tString[] files = sourceDocDir.list();\n\t\t\t\t// an IO error could occur\n\t\t\t\tif (files != null) {\n\t\t\t\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\t\t\t\tSystem.out.println(files[i]);\n\t\t\t\t\t\tFromWarcToHtml.WarcExtractor(new File(sourceDocDir, files[i]));\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\n\n\n\t\t}\n\n\t\tSystem.out.println(\"Tempo Estrazione HTML:\"+\"Inizio: \"+inizio+\"Fine: \"+new Date());\n\n\t}", "@Override\r\n public void prenderVehiculo() {\r\n System.out.println(\"___________________________________________________\");\r\n System.out.println(\"prender Jet\");\r\n }", "protected String elaboraTemplateAvviso() {\n String testo = VUOTA;\n String dataCorrente = date.get();\n String personeTxt = \"\";\n personeTxt = text.format(numVoci);\n\n if (usaHeadTemplateAvviso) {\n testo += tagHeadTemplateAvviso;\n testo += \"|bio=\";\n testo += personeTxt;\n testo += \"|data=\";\n testo += dataCorrente.trim();\n testo += \"|progetto=\";\n testo += tagHeadTemplateProgetto;\n testo = LibWiki.setGraffe(testo);\n }// end of if cycle\n\n return testo;\n }", "private String generateHtmlLayout(String title, List<HtmlData> data) {\n return html(\n head(\n title(title),\n link().withRel(\"stylesheet\").withHref(\"asciidoctor.css\")\n ),\n body(\n generateHeader(title),\n generateBody(data)\n )\n ).withStyle(\"padding: 10px 30px\").renderFormatted();\n }", "private void setWebContent() {\r\n\t\tsetDataContent();\r\n\t\twebContent.addComponent(new Label(\"Concesionario\"));\r\n\t\twebContent.addComponent(dataContent);\r\n\t}", "@Test\n\tpublic void testHTML(){\n \tFile xml = new File(testData,\"html/htmlsidekick.html\");\n \t\n \tBuffer b = TestUtils.openFile(xml.getPath());\n\t\t\n \t// wait for end of parsing\n \tdoInBetween(new Runnable(){\n \t\t\tpublic void run(){\n \t\t\t\taction(\"sidekick-parse\",1);\n \t\t}}, \n \t\tmessageOfClassCondition(sidekick.SideKickUpdate.class),\n \t\t10000);\n\t\t\n \taction(\"sidekick-tree\");\n \tPause.pause(2000);\n\n \tHyperlinkSource src = HTMLHyperlinkSource.create();\n\t\tfinal Hyperlink h = src.getHyperlink(TestUtils.view().getBuffer(), 3319);\n\t\tassertNotNull(h);\n\t\tassertTrue(h instanceof jEditOpenFileHyperlink);\n\t\tassertEquals(67, h.getStartLine());\n\t\tassertEquals(67, h.getEndLine());\n\t\tGuiActionRunner.execute(new GuiTask() {\n\t\t\t\n\t\t\t@Override\n\t\t\tprotected void executeInEDT() throws Throwable {\n\t\t\t\th.click(TestUtils.view());\n\t\t\t}\n\t\t});\n\t\t\n\t\tassertEquals(\"jeditresource:/SideKick.jar!/index.html\",TestUtils.view().getBuffer().getPath());\n\t\t\n\t\tTestUtils.close(TestUtils.view(), TestUtils.view().getBuffer());\n\t\tTestUtils.close(TestUtils.view(), b);\n\t}", "public String toHTML(String page) {\n String htm = \"<tr><td> \" + name + \" </td><td> \" + artist.getName() +\n \" </td><td> \" + album.getName() + \" </td><td style=\\\"text-align:justify\\\"> \";\n if (page ==\"description\") {\n htm += description + \"</td>\";\n } else {\n htm += \"<div class= \\\"menu\\\"><form action=\\\"/description\\\" method=\\\"POST\\\"><button name=\\\"descSongID\\\" value=\\\"\" + id +\n \"\\\" type=\\\"submit\\\">Show Description</button></form></td></div>\\n\";\n }\n if (page.equals(\"playlist\")) {\n htm += \"<div class= \\\"menu\\\"><td><form action=\\\"/playlist\\\" method=\\\"POST\\\"><button name=\\\"DeleteSongID\\\" value=\\\"\" + id +\n \"\\\" type=\\\"submit\\\">Delete</button></form></td></div>\\n\";\n } else if (page.equals(\"allSongs\")) {\n htm += \"<div class= \\\"menu\\\"><td><form action=\\\"/playlist\\\" method=\\\"POST\\\"><button name=\\\"AddSongID\\\" value=\\\"\" + id +\n \"\\\" type=\\\"submit\\\">Add</button></form></td></div>\\n\";\n }\n htm += \"</tr>\";\n return htm;\n }", "@Produces(MediaType.TEXT_HTML)\n\t//Metodo http al cual va a responder el metodo saludar\n\t@GET\n\tpublic String saludar(@QueryParam(\"nombre\")String nombreCompleto){\n\t\treturn \"Buenas tardes \"+nombreCompleto;\n\t}", "private void setTexto() {\n textViewPolitica.setText(Html.fromHtml(politica));\n }", "private void createDOMTree(){\n\t\t\tElement rootEle = dom.createElement(\"html\");\r\n\t\t\tdom.appendChild(rootEle);\r\n\t\t\t\r\n\t\t\t//\t\t\tcreates <head> and <title> tag\r\n\t\t\tElement headEle = dom.createElement(\"head\");\r\n\t\t\tElement titleEle = dom.createElement(\"title\");\r\n\t\t\t\r\n\t\t\t//\t\t\tset value to <title> tag\r\n\t\t\tText kuerzelText = dom.createTextNode(\"Auswertung\");\r\n\t\t\ttitleEle.appendChild(kuerzelText);\r\n\t\t\theadEle.appendChild(titleEle);\r\n\t\t\t\r\n\t\t\tElement linkEle = dom.createElement(\"link\");\r\n\t\t\tlinkEle.setAttribute(\"rel\", \"stylesheet\");\r\n\t\t\tlinkEle.setAttribute(\"type\", \"text/css\");\r\n\t\t\tlinkEle.setAttribute(\"href\", \"./format.css\");\r\n\t\t\theadEle.appendChild(linkEle);\r\n\t\t\t\r\n\t\t\trootEle.appendChild(headEle);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tElement bodyEle = dom.createElement(\"body\");\r\n\t\t\tElement divEle = dom.createElement(\"div\");\r\n\t\t\tdivEle.setAttribute(\"id\", \"cont\");\r\n\t\t\t\r\n\t\t\tVector<String> tmp = myData.get(0);\r\n\t\t\tElement h2Ele = dom.createElement(\"h2\");\r\n\t\t\tString h1Str = \"\";\r\n\t\t\tfor(Iterator i = tmp.iterator(); i.hasNext(); )\r\n\t\t\t{\r\n\t\t\t\th1Str = h1Str + (String)i.next() + \" \";\r\n\t\t\t}\r\n\t\t\tText aText = dom.createTextNode(h1Str);\r\n\t\t\th2Ele.appendChild(aText);\r\n\t\t\tdivEle.appendChild(h2Ele);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tElement tableEle = dom.createElement(\"table\");\r\n//\t\t\ttableEle.setAttribute(\"border\", \"1\");\r\n\t\t\t\r\n\t\t\ttmp = myData.get(0);\r\n\t\t\tElement trHeadEle = createTrHeadElement(tmp);\r\n\t\t\ttableEle.appendChild(trHeadEle);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tIterator it = myData.iterator();\r\n\t\t\twhile(it.hasNext()) {\r\n\t\t\t\ttmp = (Vector<String>)it.next();\r\n\t\t\t\tElement trEle = createTrElement(tmp);\r\n\t\t\t\ttableEle.appendChild(trEle);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdivEle.appendChild(tableEle);\r\n\t\t\tbodyEle.appendChild(divEle);\r\n\t\t\trootEle.appendChild(bodyEle);\r\n\t\t\t\r\n\t\t}", "private static void go2(){\n\t\tString concreateURL = \"http://www.yixinhealth.com/%E5%8C%96%E9%AA%8C%E5%92%8C%E6%A3%80%E6%9F%A5/%E5%BF%83%E7%94%B5%E5%9B%BE/\"; \n\t\tConnection c = Jsoup.connect(concreateURL); \n\t\tc.timeout(10000);\n\t\ttry {\n\t\t\tDocument doc = c.get();\n\t\t\t//System.out.println(doc.html()); \n\t\t\t//System.out.println(doc.getElementById(\"content_area\").html());\n\t\t\t//Element eles = doc.getElementById(\"content_area\");\n\t\t\t//System.out.println(eles.html());\n\t\t\t\n\t\t\t//Below code is for the multiple link page\n\t\t\t//Elements eles2 = eles.getElementsByAttributeValue(\"style\", \"text-align: center;\");\n\t\t\t//System.out.println(eles2.html());\n\t\t\t/*for(Element ele: eles2){\n\t\t\t\tElements link = ele.getElementsByTag(\"a\");\n\t\t\t\t//System.out.println(link.html());\n\t\t\t\tfor (int i=0;i<link.size();i++) {\n\t\t\t\t\tSystem.out.println(link.get(i).attr(\"href\"));\n\t\t\t\t}\n\t\t\t}*/\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(eles2.html());\n\t\t\tElement eles = doc.getElementById(\"content_area\");\n\t\t\tElements eles2 = eles.getElementsByTag(\"img\");\n\t\t\tfor(int i=0;i<eles2.size();i++){\n\t\t\t\teles2.get(i).parent().attr(\"style\", \"text-align:center\");\n\t\t\t\teles2.get(i).parent().parent().nextElementSibling().attr(\"style\", \"text-align:center\");\n\t\t\t\teles2.get(i).attr(\"style\", \"width:50%\");\n\t\t\t}\n\t\t\t\n\t\t\tElements eles3 = eles.getElementsByClass(\"j-header\");\n\t\t\tfor (Element ele : eles3) {\n\t\t\t\tElements eleHeader = ele.getElementsByTag(\"h2\");\n\t\t\t\teleHeader.attr(\"style\", \"text-align:center\");\n\t\t\t}\n\t\t\tSystem.out.println(eles.html());\n\t\t\t\n\t\t\t//Below code is help to clear out the share icon to like Sina weibo\n\t\t\tElements eles4 = eles.getElementsByClass(\"bshare-custom\");\n\t\t\t//eles4.remove();\n\t\t\t\n\t\t\t//Elements eles3 = eles.getElementsByClass(\"n*j-imageSubtitle\");\n\t\t\t//System.out.println(eles3.size());\n\t\t\t/*for(int i=0;i<eles3.size();i++){\n\t\t\t\teles3.get(i).attr(\"style\", \"text-align:center;width:50%\");\n\t\t\t}\n\t\t\tSystem.out.println(eles.html());*/\n\t\t\t//System.out.println(eles2.get(0).attr(\"src\"));\n\t\t\t/*Element eles = doc.getElementById(\"content_area\");\n\t\t\tElements eles2 = eles.getElementsByClass(\"j-header\");\n\t\t\tfor (Element ele : eles2) {\n\t\t\t\tElements eleHeader = ele.getElementsByTag(\"h2\");\n\t\t\t\tSystem.out.println(\"Title---->\"+eleHeader.html()); \n\t\t\t}\n\t\t\tElements elesBody = eles.getElementsByClass(\"j-text\");\n\t\t\tSystem.out.println(\"Body---->\"+elesBody.html()); */\n\t\t\t//System.out.println(eles2.html()); \n /*List<String> nameList = new ArrayList<String>(); \n for (Element ele : eles) {\n \tString text = ele.select(\"h*\").text();\n \tSystem.out.println(text); \n String text = ele.select(\"span\").first().text(); \n if (text.length() > 1 && text.startsWith(\"▲\")) { \n \n if (Integer.parseInt(text.substring(1)) > 30) { \n // 在这里.html()和.text()方法获得的内容是一样的 \n System.out.println(ele.select(\"a\").first().html()); \n nameList.add(ele.select(\"a\").first().text()); \n } \n } \n } */\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private DefaultHTMLs(String contents){\r\n\t\tthis.contents = contents;\r\n\t}", "public void ajouterTexteAide(String texte) {\r\n\t\tif (bulleAide != null)\r\n\t\t\tbulleAide.setText(\"<HTML><BODY>\" + texte + \"</HTML></BODY>\");\r\n\t}", "@RequestMapping(method=RequestMethod.GET, path=\"/p\")\n\tpublic String goToContentNegotiation(Model model){\n\t\t\n\t\tList<String> books = new ArrayList<>();\n\t\tbooks.add(\"Las mil y una noches\");\n\t\tbooks.add(\"Divina Comedia\");\n\t\tbooks.add(\"Don Quijote de la Mancha\");\n\t\tbooks.add(\"Cien años de soledad\");\n\t\tbooks.add(\"Odisea\");\n\t\tmodel.addAttribute(books);\n\t\t\n\t\treturn \"simple/contentNegotiationView\";\n\t}", "private void mostrarEmenta (){\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint editorId = Integer.parseInt(request.getParameter(\"editor\"));\n\t\tEditor E = webpicture.getEditorById(editorId);\n\t\tArrayList<Diagram> diagrams = webpicture.getAllDiagramsForEditor(E);\n\t\tDiagram current = null;\n\t\tString strDiagrams = \"\";\n\t\t\n\t\tif (diagrams.isEmpty()) {\n\t\t\tstrDiagrams = \"<div class=\" + '\"' + \"hero-titles\" + '\"' + \">\" + \"\\n\" + \"<h3 class=\" + '\"' + \"marketing-header\" + '\"' + \" style=\" + '\"' + \"text-align:center; margin-top:50px\" + '\"' + \">\" + \"There's no available diagrams to display\" + \"</h3>\" + \"\\n\" + \"</div>\";\n\t\t\t\n\t\t} else {\n\t\t\tfor (int i = 0; i < diagrams.size(); i++) {\n\t\t\t\tcurrent = diagrams.get(i);\n\t\t\t\tstrDiagrams += current.toString(\n\t\t\t\t\t\tdateParser.dateToString(current.getCreated()),\n\t\t\t\t\t\tdateParser.dateToString(current.getLastModified()));\n\t\t\t}\n\t\t}\n\t\tresponse.setContentType(\"text/html\");\n\t\tout = response.getWriter();\n\t\tString html = \"<! DOCTYPE html><meta charset='UTF-8'><html lang='en'><link rel='icon' href='resources/res/siteIcon.png' type='image/x-icon'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <meta name='description' content='Index web site for WebPicture online DSL model editor'> <head><title>WebPicture</title><link rel='icon' href='resources/res/siteIcon.png' type='image/x-icon'><!-- JQuery --><script src='http://code.jquery.com/jquery-2.1.1.js'></script> <script src='http://code.jquery.com/ui/jquery-ui-git.js'></script><!-- Bootstrap --> <script src='http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js'></script> <link rel='stylesheet' href='http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css'> <!-- Bootbox --> <script src='resources/bootbox/bootbox.js'></script> <!-- Hojas de estilo --> <link rel='stylesheet' href='http://yui.yahooapis.com/pure//pure.css'> <link rel='stylesheet' href='http://yui.yahooapis.com/pure/0.5.0/pure-min.css'> <link rel='stylesheet' href='http://yui.yahooapis.com/pure//grids-responsive.css'> <link rel='stylesheet' href='resources/pure-css/css/layouts/marketing.css'> <link rel='stylesheet' href='http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css'> <link rel='stylesheet' href='resources/pure-css/css/layouts/headers.css'></head> <body> <div class='header'> <div class='home-menu pure-menu pure-menu-open pure-menu-horizontal pure-menu-fixed' style='background-color:#181818'> <a class='pure-menu-heading' href='welcome'> <img src='resources/res/logo.png' class='pure-img' /> </a> </div> </div> <div class='pure-g'><!-- Informacion del editor -->\"\n\t\t\t\t+ E.dataToString(dateParser.dateToString(E.getCreated()))\n\t\t\t\t+ \"<div id='diagrams' class='pure-u-2-3' style='text-align:center; height:100%; overflow-y: auto'> <div class='hero-titles'><h3 class='hero-tagline' style='text-align:center; margin-top:50px'>Available diagrams</h3> </div> <form id='editorDetailForm' name='editorDetailForm' method='post' action='review_models_for_editor'><!-- Inicio plantilla de celda de tabla para un editor-->\" \n\t\t\t\t+ strDiagrams \n\t\t\t\t+ \"<!-- Fin plantilla--> <!-- Fin acceso a diagramas existentes --> </div>\"\n\t\t\t\t+ \"<input id='editorModel' type='hidden' value='' name='editor' /></form>\"\n\t\t\t\t+ \"</div><div class='footer l-box is-center' style='background-color:#181818; margin-top:0px'><p>All rights reserved Uniandes 2014</p><p>Universidad de los Andes - Computer engineering department - Engineering Faculty</p></div>\"\n\t\t\t\t+ \"<!-- Script de referencia para llamar la funcion de acuerdo al comando y al editor seleccionado-->\"\n\t\t\t\t+ \"<script> \"\n\t\t\t\t+ \"var form = $('#editorDetailForm'); \"\n\t\t\t\t+ \"function getSelectedActionForEditor(action, editor) {if (action == 'delete') {bootbox.dialog({message: 'Current editor will be deleted, would you like to continue?',buttons: {success: {label: 'Yes',className: 'btn-primary',callback: function () { $('#editorModel').val(editor);form.attr('action', 'available_editors');console.log('entro');form.on('submit', function (e) {$.ajax({url: form.attr('action'),type: form.attr('method'),data: form.serialize(),success: function (data) {},error: function (jXHR, textStatus, errorThrown) {alert(errorThrown);}});return false;});form.submit();window.location = 'all_editors';}},danger: {label: 'No',className: 'btn-danger',callback: function () {}}}});}else if (action == 'newModel') {$('#editorModel').val(editor);form.attr('action', 'new_diagram');form.on('submit', function (e) {$.ajax({url: $(this).attr('action'),type: $(this).attr('method'),data: $(this).serialize(),success: function (data) {},error: function (jXHR, textStatus, errorThrown) {alert(errorThrown);}});return true;});form.submit();}}\"\n\t\t\t\t+ \"function getSelectedActionForModel(action, model) { if (action == 'delete') {bootbox.dialog({message: 'Selected item will be deleted, would you like to continue?',buttons: {success: {label: 'Yes',className: 'btn-primary',callback: function () {$('#diagram_' + model).fadeOut(500, function () {$(this).remove();});$('#pad_' + model).fadeOut(500, function () {$(this).remove();});$('#editorModel').val(model);console.log($('#editorModel').val());form.attr('action', 'review_models_for_editor');form.on('submit', function (e) {$.ajax({url: form.attr('action'),type: form.attr('method'),data: form.serialize(),success: function (data) {},error: function (jXHR, textStatus, errorThrown) {alert(errorThrown);}});});form.submit();checkState();form.attr('action','editor_information');$('#editorModel').val(\" + E.getId() + \");form.submit();}},danger: {label: 'No',className: 'btn-danger',callback: function () {}}}});}else if (action == 'editDiagram') {$('#editorModel').val(model);console.log('new model');form.attr('action', 'get_diagram');form.on('submit', function (e) {$.ajax({url: $(this).attr('action'),type: $(this).attr('method'),data: $(this).serialize(),success: function (data) {},error: function (jXHR, textStatus, errorThrown) {alert(errorThrown);}});return true;});form.submit();}} \"\n\t\t\t\t+ \"function checkState() { \"\n\t\t\t\t+ \"var elements = $('#diagrams > div').length;var elements = $('#diagrams > div').length;\"\n\t\t\t\t+ \"var msg = \\\"<div class=\\\" + '\\\"' + \\\"hero-titles\\\" + '\\\"' + \\\">\\\" + \\\"<h3 class=\\\" + '\\\"' + \\\"marketing-header\\\" + '\\\"' + \\\" style=\\\" + '\\\"' + \\\"text-align:center; margin-top:50px\\\" + '\\\"' + \\\">\\\" + \\\"There's no available diagrams to display\\\" + \\\"</h3>\\\" + \\\"</div>\\\";\"\n\t\t\t\t+ \"if (elements == 3) {$('#diagrams').append(msg);}\"\n\t\t\t\t+ \"}\"\n\t\t\t\t+ \"</script>\"\n\t\t\t\t+ \"</body></html>\";\n\t\tout.println(html);\n\t\tout.close();\n\t}", "public String toString(){\n String html = \"<html>\\n<head>\\n</head>\\n<body>\";\n for (int i=0; i< dom.size(); i++){\n html+= dom.get(i);\n }\n /* TODO\nLoop through the elemments of the dom and append them to html */\n return html+\"</body>\\n</html>\";\n }", "@Override\r\n\tpublic void mostrar() {\n\t\t\r\n\t}", "private String html(final TableFacade tableFacade,\n\t\t\tfinal HttpServletRequest request) {\n\t\ttableFacade.setColumnProperties(\"ascCodigo\", \"ascId\",\n\t\t\t\t\"ascCodigoAsociado\", \"ascIngresoCoope\", \"ascRetiroCoope\",\n\t\t\t\t\"ascProfesion\", \"ascSalario\", \"ascAsociadoPadre\");\n\t\tTable table = tableFacade.getTable();\n\t\t// ---- Titulo de la tabla\n\t\ttable.setCaptionKey(\"tbl.planilla.caption\");\n\n\t\tRow row = table.getRow();\n\t\tColumn nombreColumna = row.getColumn(\"ascCodigo\");\n\t\tnombreColumna.setTitleKey(\"tbl.planilla.ascCodigo\");\n\n\t\tnombreColumna = row.getColumn(\"ascId\");\n\t\tnombreColumna.setTitleKey(\"tbl.planilla.asociado\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property,\n\t\t\t\t\t\trowcount);\n\t\t\t\tCtaAscAsociado asociado = (CtaAscAsociado) item;\n\t\t\t\tString nombreAsociado = \"\";\n\t\t\t\tSecPerPersonaDAO personaDAO = new SecPerPersonaDAO(getSessionHibernate(request));\n\t\t\t\tSecPerPersona persona = personaDAO.findById(asociado\n\t\t\t\t\t\t.getSecPerPersona().getPerId());\n\t\t\t\tnombreAsociado = persona.getPerPrimerApellido() + \", \"\n\t\t\t\t\t\t+ persona.getPerPrimerNombre();\n\t\t\t\treturn nombreAsociado;\n\t\t\t}\n\n\t\t});\n\n\t\tnombreColumna = row.getColumn(\"ascCodigoAsociado\");\n\t\tnombreColumna.setTitleKey(\"tbl.planilla.cuotaIngreso\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property,\n\t\t\t\t\t\trowcount);\n\t\t\t\tCtaAscAsociado asociado = (CtaAscAsociado) item;\n\t\t\t\tCtaCasCuentaAsociadoDAO casDao = new CtaCasCuentaAsociadoDAO(getSessionHibernate(request));\n\t\t\t\treturn Format.formatDinero(casDao.getCuotaAfiliacion(asociado\n\t\t\t\t\t\t.getAscId()));\n\t\t\t}\n\n\t\t});\n\n\t\tnombreColumna = row.getColumn(\"ascIngresoCoope\");\n\t\tnombreColumna.setTitleKey(\"tbl.planilla.aportaciones\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property,\n\t\t\t\t\t\trowcount);\n\t\t\t\tCtaAscAsociado asociado = (CtaAscAsociado) item;\n\t\t\t\tdouble descAportaciones = 0.0;\n\t\t\t\tdescAportaciones += obtenerDescuentos(asociado, \"B\", \"A\",\n\t\t\t\t\t\tdescAportaciones,request);\n\t\t\t\treturn Format.formatDinero(descAportaciones / DIVISOR);\n\t\t\t}\n\n\t\t});\n\n\t\tnombreColumna = row.getColumn(\"ascRetiroCoope\");\n\t\tnombreColumna.setTitleKey(\"tbl.planilla.ahorros\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property,\n\t\t\t\t\t\trowcount);\n\t\t\t\tCtaAscAsociado asociado = (CtaAscAsociado) item;\n\t\t\t\tdouble descAhorros = 0.0;\n\t\t\t\tdescAhorros += obtenerDescuentos(asociado, \"B\", \"B\",\n\t\t\t\t\t\tdescAhorros,request);\n\t\t\t\treturn Format.formatDinero(descAhorros / DIVISOR);\n\t\t\t}\n\n\t\t});\n\n\t\tnombreColumna = row.getColumn(\"ascProfesion\");\n\t\tnombreColumna.setTitleKey(\"tbl.planilla.prestamos\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property,\n\t\t\t\t\t\trowcount);\n\t\t\t\tCtaAscAsociado asociado = (CtaAscAsociado) item;\n\t\t\t\tdouble descPrestamos = 0.0;\n\t\t\t\tdescPrestamos += obtenerDescuentos(asociado, \"C\", \"\",\n\t\t\t\t\t\tdescPrestamos,request);\n\t\t\t\treturn Format.formatDinero(descPrestamos / DIVISOR);\n\t\t\t}\n\n\t\t});\n\n\t\tnombreColumna = row.getColumn(\"ascSalario\");\n\t\tnombreColumna.setTitleKey(\"tbl.planilla.seguros\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property,\n\t\t\t\t\t\trowcount);\n\t\t\t\tCtaAscAsociado asociado = (CtaAscAsociado) item;\n\t\t\t\tdouble descSeguros = 0.0;\n\t\t\t\tdescSeguros += obtenerDescuentos(asociado, \"D\", \"\", descSeguros,request);\n\t\t\t\treturn Format.formatDinero(descSeguros / DIVISOR);\n\t\t\t}\n\n\t\t});\n\n\t\tnombreColumna = row.getColumn(\"ascAsociadoPadre\");\n\t\tnombreColumna.setTitleKey(\"tbl.planilla.total\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property,\n\t\t\t\t\t\trowcount);\n\t\t\t\tCtaAscAsociado asociado = (CtaAscAsociado) item;\n\n\t\t\t\tCtaCasCuentaAsociadoDAO casDao = new CtaCasCuentaAsociadoDAO(getSessionHibernate(request));\n\t\t\t\tdouble cuotaAfiliacion = casDao.getCuotaAfiliacion(asociado\n\t\t\t\t\t\t.getAscId());\n\n\t\t\t\tdouble descAportaciones = 0.0;\n\t\t\t\tdescAportaciones += obtenerDescuentos(asociado, \"B\", \"A\",\n\t\t\t\t\t\tdescAportaciones,request);\n\n\t\t\t\tdouble descAhorros = 0.0;\n\t\t\t\tdescAhorros += obtenerDescuentos(asociado, \"B\", \"B\",\n\t\t\t\t\t\tdescAhorros,request);\n\n\t\t\t\tdouble descPrestamos = 0.0;\n\t\t\t\tdescPrestamos += obtenerDescuentos(asociado, \"C\", \"\",\n\t\t\t\t\t\tdescPrestamos,request);\n\n\t\t\t\tdouble descSeguros = 0.0;\n\t\t\t\tdescSeguros += obtenerDescuentos(asociado, \"D\", \"\", descSeguros,request);\n\n\t\t\t\treturn Format\n\t\t\t\t\t\t.formatDinero(cuotaAfiliacion\n\t\t\t\t\t\t\t\t+ (descAportaciones + descAhorros\n\t\t\t\t\t\t\t\t\t\t+ descPrestamos + descSeguros)\n\t\t\t\t\t\t\t\t/ DIVISOR);\n\t\t\t}\n\t\t});\n\t\treturn tableFacade.render();\n\t}", "public AdmClientePreferencialHTML(boolean buildDOM) { this(StandardDocumentLoader.getInstance(), buildDOM); }", "private void printBoardAndCandidatesHtmlFile() {\n printBoardAndCandidatesHtmlFile(\"java-implementation/target/classes/sudokuBoard.html\", sudokuBoard);\n }", "@JavascriptInterface\n @SuppressWarnings(\"unused\")\n public void processHTML(String html) {\n\n Element content;\n String value = \"\";\n try {\n org.jsoup.nodes.Document doc = Jsoup.parse(html, \"UTF-8\");\n content = doc.getElementsByClass(\"rupee\").get(0);\n value = content.text();\n } catch (Exception e) {\n e.printStackTrace();\n }\n listener.update(value);\n }", "public void buildDocument() {\n/* 220 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 222 */ syncAccessMethods();\n/* */ }", "public void loadxml ()\n\t{\n\t\t\t\tString [] kategorienxml;\n\t\t\t\tString [] textbausteinexml;\n\t\t\t\tString [] textexml;\n\t\t\t\t\n\t\t\t\tString filenamexml = \"Katalogname_gekuerzt_lauffaehig-ja.xml\";\n\t\t\t\tFile xmlfile = new File (filenamexml);\n\t\t\t\t\n\t\t\t\t// lies gesamten text aus: String gesamterhtmlcode = \"\";\n\t\t\t\tString gesamterhtmlcode = \"\";\n\t\t\t\tString [] gesamtertbarray = new String[1001];\n\t\t BufferedReader inx = null;\n\t\t try {\n\t\t inx = new BufferedReader(new FileReader(xmlfile));\n\t\t String zeilex = null;\n\t\t while ((zeilex = inx.readLine()) != null) {\n\t\t \tSystem.out.println(zeilex + \"\\n\");\n\t\t \tRandom rand = new Random();\n\t\t \tint n = 0;\n\t\t \t// Obtain a number between [0 - 49].\n\t\t \tif (zeilex.contains(\"w:type=\\\"Word.Bookmark.End\\\"/>\")) // dann ab hier speichern bis zum ende:\n\t\t \t{\n\t\t \t\t// \terstelle neue random zahl und speichere alle folgenden zeilen bis zum .Start in diesen n rein\n\t\t \t\tn = rand.nextInt(1001);\n\n\t\t \t\t\n\t\t \t}\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n] + zeilex;\n\t\t \tFile f = new File (\"baustein_\"+ n + \".txt\");\n\t\t \t\n\t\t \tFileWriter fw = new FileWriter (f);\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"\\\"</w:t></w:r></w:r></w:hlink><w:hlink w:dest=\\\"\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:val=\\\"Hyperlink\\\"/></w:rPr><w:r><w:rPr><w:rStyle w:val=\\\"T8\\\"/></w:rPr>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"\t\t \t<w:rStyle\" , \"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:p>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:val=\\\"Hyperlink\\\"/>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"<w:pStyle w:val=\\\"_37_b._20_Text\\\"/>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:rPr><w:r><w:t>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink><w:hlink w:dest=\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:rPr></w:r></w:hlink><w:hlink w:dest=\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"<w:r><w:rPr><w:rStyle\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"xmlns:fo=\\\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink></w:p><w:p\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink></w:p><w:p\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"xmlns:fo=\\\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0\\\"><w:pPr></\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:pPr><w:r>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"compatible:1.0\\\"><w:pPr></w:pPr>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:p><w:p\",\"\");\n\t\t \n\n\t\t \t\n\n\t\t \tfw.write(gesamtertbarray[n]);\n\t\t \tfw.flush();\n\t\t \tfw.close();\n\t\t \t\n\t\t \tif (zeilex.contains(\"w:type=\\\"Word.Bookmark.Start\\\"))\"))\n \t\t\t{\n\t\t \t\t// dann erhöhe speicher id für neue rand zahl, weil ab hier ist ende des vorherigen textblocks;\n\t\t\t \tn = rand.nextInt(1001);\n \t\t\t}\n\t\t \n\t\t }}\n\t\t \tcatch (Exception s)\n\t\t {}\n\t\t \n\t\t\n\t\t \n\t\t \n\t\t \n\t\t \n\t\t \n\t\t \n\t}", "public void buildDocument() {\n/* 310 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 312 */ syncAccessMethods();\n/* */ }", "private String html2(final TableFacade tableFacade,\n\t\t\tfinal HttpServletRequest request) {\n\t\ttableFacade.setColumnProperties(\"ascCodigo\", \"ascId\",\n\t\t\t\t\"ascIngresoCoope\", \"ascAsociadoPadre\");\n\t\tTable table = tableFacade.getTable();\n\t\t// ---- Titulo de la tabla\n\t\ttable.setCaptionKey(\"tbl.planilla.caption\");\n\n\t\tRow row = table.getRow();\n\t\tColumn nombreColumna = row.getColumn(\"ascCodigo\");\n\t\tnombreColumna.setTitleKey(\"tbl.planilla.ascCodigo\");\n\n\t\tnombreColumna = row.getColumn(\"ascId\");\n\t\tnombreColumna.setTitleKey(\"tbl.planilla.asociado\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property,\n\t\t\t\t\t\trowcount);\n\t\t\t\tCtaAscAsociado asociado = (CtaAscAsociado) item;\n\t\t\t\tString nombreAsociado = \"\";\n\t\t\t\tSecPerPersonaDAO personaDAO = new SecPerPersonaDAO(getSessionHibernate(request));\n\t\t\t\tSecPerPersona persona = personaDAO.findById(asociado\n\t\t\t\t\t\t.getSecPerPersona().getPerId());\n\t\t\t\tnombreAsociado = persona.getPerPrimerApellido() + \", \"\n\t\t\t\t\t\t+ persona.getPerPrimerNombre();\n\t\t\t\treturn nombreAsociado;\n\t\t\t}\n\n\t\t});\n\n\t\tnombreColumna = row.getColumn(\"ascIngresoCoope\");\n\t\tnombreColumna.setTitleKey(\"tbl.planilla.empresa\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property,\n\t\t\t\t\t\trowcount);\n\t\t\t\tCtaAscAsociado asociado = (CtaAscAsociado) item;\n\t\t\t\tString empresa = \"\";\n\t\t\t\tif (asociado.getAscDirTrabajo() == null\n\t\t\t\t\t\t|| asociado.getAscDirTrabajo().equals(\"\")) {\n\t\t\t\t\tCtaDptDepartamentoTrabajo departamentoTrabajo = asociado\n\t\t\t\t\t\t\t.getCtaDptDepartamentoTrabajo();\n\t\t\t\t\tCtaEtrEmpresaTrabajoDAO empresaTrabajoDAO = new CtaEtrEmpresaTrabajoDAO(getSessionHibernate(request));\n\t\t\t\t\tCtaEtrEmpresaTrabajo empresaTrabajo = empresaTrabajoDAO\n\t\t\t\t\t\t\t.findById(departamentoTrabajo\n\t\t\t\t\t\t\t\t\t.getCtaEtrEmpresaTrabajo().getEtrId());\n\t\t\t\t\tempresa = empresaTrabajo.getEtrNombre();\n\t\t\t\t} else {\n\t\t\t\t\tempresa = asociado.getAscDirTrabajo();\n\t\t\t\t}\n\t\t\t\treturn empresa;\n\t\t\t}\n\n\t\t});\n\n\t\tnombreColumna = row.getColumn(\"ascAsociadoPadre\");\n\t\tnombreColumna.setTitleKey(\"tbl.planilla.total\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property,\n\t\t\t\t\t\trowcount);\n\t\t\t\tCtaAscAsociado asociado = (CtaAscAsociado) item;\n\n\t\t\t\tCtaCasCuentaAsociadoDAO casDAO = new CtaCasCuentaAsociadoDAO(getSessionHibernate(request));\n\t\t\t\tdouble afiliacion = casDAO.getCuotaAfiliacion(asociado\n\t\t\t\t\t\t.getAscId());\n\n\t\t\t\tdouble descAportaciones = 0.0;\n\t\t\t\tdescAportaciones += obtenerDescuentos(asociado, \"B\", \"A\",\n\t\t\t\t\t\tdescAportaciones,request);\n\n\t\t\t\tdouble descAhorros = 0.0;\n\t\t\t\tdescAhorros += obtenerDescuentos(asociado, \"B\", \"B\",\n\t\t\t\t\t\tdescAhorros,request);\n\n\t\t\t\tdouble descPrestamos = 0.0;\n\t\t\t\tdescPrestamos += obtenerDescuentos(asociado, \"C\", \"\",\n\t\t\t\t\t\tdescPrestamos,request);\n\n\t\t\t\tdouble descSeguros = 0.0;\n\t\t\t\tdescSeguros += obtenerDescuentos(asociado, \"D\", \"\", descSeguros,request);\n\n\t\t\t\treturn Format\n\t\t\t\t\t\t.formatDinero(afiliacion\n\t\t\t\t\t\t\t\t+ (descAportaciones + descAhorros\n\t\t\t\t\t\t\t\t\t\t+ descPrestamos + descSeguros)\n\t\t\t\t\t\t\t\t/ DIVISOR);\n\t\t\t}\n\t\t});\n\n\t\treturn tableFacade.render();\n\t}", "public Fund hentArtikel(String u) {\n\t\tp(\"hentArtikel(\"+u+\")\");\n\t\tString vUrl = \"\";\n\t\tArrayList <String> beskrivelser = new ArrayList<>();\n\n\n\t\ttry {\n\t\t\tInputStream is = new URL(\"http://m.tegnsprog.dk/artikler/\"+u+\".html\").openStream();\n\t\t\tis = new BufferedInputStream(is);\n\t\t\tis.mark(1);\n\t\t\tif (is.read() == 0xef) {\n\t\t\t\tis.read();\n\t\t\t\tis.read();\n\n\t\t\t} else {\n\t\t\t\tis.reset();\n\t\t\t}\n\t\t\tp(\"#=#=#=#=#=#=#=#= hentArtikel() =#=#=#=#=#=#=#=#=#=#=#\");\n\t\t\tbyte[] contents = new byte[1024];\n\t\t\tString heleIndholdet = \"\";\n\t\t\tint bytesRead = 0;\n\t\t\t//bytesRead = is.read(contents); //skipper første linie\n\t\t\t//bytesRead = is.read(contents); //skipper anden linie\n\n\t\t\twhile((bytesRead = is.read(contents)) != -1) {\n\t\t\t\tString linie = new String(contents, 0, bytesRead);\n\t\t\t\theleIndholdet += linie;\n\n\n\n\t\t\t}\n\t\t\t\n\t\t\t//p(\"\\nArtikel_______________________________: \"+heleIndholdet);\n\n\n\n\t\t\t//-- Vi finder video-urlen\n\n\t\t\tint startindeks = heleIndholdet.indexOf(\"src=\\\"\");\n\t\t\tString tempUrl = heleIndholdet.substring(startindeks+5);\n\t\t\tint slutIndeks= tempUrl.indexOf(\"\\\" type='video/mp4'>Your browser does not support the video tag.\");\n\t\t\tvUrl = tempUrl.substring(0,slutIndeks);\n\t\t\tp(\"videourl::::::::::::::::::::::::::::::::\"+vUrl);\n\n\t\t\tif (webm) {\n\t\t\t\tint underscore = vUrl.lastIndexOf(\"_\") + 1;\n\t\t\t\tint sidstepunktum = vUrl.lastIndexOf(\".\");\n\n\t\t\t\tString indeksnr = vUrl.substring(underscore, sidstepunktum);\n\t\t\t\tp(\"indeksnr: \" + indeksnr);\n\t\t\t\tvUrl = \"http://m.tegnsprog.dk/video/mobil/t-webm/t_\" + indeksnr + \".webm\";\n\t\t\t\tp(vUrl);\n\t\t\t}\n\n\n\n\t\t\t//-- Vi finder de danske ord\n\n\t\t\tstartindeks = tempUrl.indexOf(\"<TABLE>\");\n\t\t\tslutIndeks = tempUrl.indexOf(\"<TABLE width=\\\"100%\\\">\");\n\t\t\tString tabelDKOrd = tempUrl.substring(startindeks, slutIndeks);\n\t\t\t//p(\"__________min html:\");\n\t\t\t//p(tabelDKOrd);\n\t\t\t//p(\"----------\");\n\t\t\t//dKOrd = tabelDKOrd.replaceAll(\"\\\\/TR><TR\", \"</TR><BR><TR>\").replaceAll(\"\\\\&middot\\\\;\", \" , \");\n\t\t\tString dKOrd = tabelDKOrd\n\t\t\t\t\t.replaceAll(\"<TABLE>\", \"\")\n\t\t\t\t\t.replaceAll(\"</TD><TD>\", \" \")\n\t\t\t\t\t.replaceAll(\"\\\\&middot\\\\;\", \" , \")\n\t\t\t\t\t.replaceAll(\"<TABLE/>\", \"\")\n\t\t\t\t\t.replaceAll(\"</TABLE>\", \"\")\n\t\t\t\t\t.replaceAll(\"&nbsp;\", \"\")\n\t\t\t\t\t.replaceAll(\"<TR>\", \"\")\n\t\t\t\t\t.replaceAll(\"<TR style=\\\"vertical-align:top;\\\">\", \"\")\n\t\t\t\t\t.replaceAll(\"</TR>\", \"\")\n\t\t\t\t\t.replaceAll(\"</TD>\", \"ønskernylinie\")\n\t\t\t\t\t.replaceAll(\"<TD>\", \"\")\n\t\t\t\t\t.replaceAll(\"<BR>\",\"\\n\")\n\t\t\t\t.replaceAll(\"<BR/>\",\"\\n\");\n\n\t\t\t//Erstat html-koder for danske vokaler\n\t\t\t//æ: &aelig;\n\t\t\t//ø: &oslash;\n\t\t\t//å: &aring;\n\n\t\t\tdKOrd = dKOrd\n\t\t\t\t\t.replaceAll(\"&aelig;\", \"æ\")\n\t\t\t\t\t.replaceAll(\"&oslash;\", \"ø\")\n\t\t\t\t\t.replaceAll(\"&aring;\", \"å\");\n\n\n\n\n\n\t\t\tbeskrivelser = new ArrayList<String>(Arrays.asList(dKOrd.split(\"ønskernylinie\")));\n\n\n\t\t\tp(\"Efter rens\");\n\t\t\tp(beskrivelser.toString());\n\n\n\n/*\n\t\t\t<HTML>\n\t\t\t\t<video width=\"100%\" autoplay>\n\t\t\t \t\t<source src=\"http://www.tegnsprog.dk/video/t/t_317.mp4\" type='video/mp4'>\n\t\t\t \t\tYour browser does not support the video tag.\n\t\t\t \t</video>\n\t\t\t\t<TABLE>\n\t\t\t\t\t<TR style=\"vertical-align:top;\">\n\t\t\t\t\t\t<TD>1. </TD>\n\t\t\t\t\t\t<TD>brun</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<TR style=\"vertical-align:top;\">\n\t\t\t\t\t\t<TD>2. </TD>\n\t\t\t\t\t\t<TD>kaffe</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t</TABLE>\n\t\t\t\t<TABLE width=\"100%\">\n\t\t\t\t\t<TR>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t<A TITLE=\"&Aring;bn den fulde ordbogsartikel i browseren\" href=\"#\" onclick=\"var ref = window.open('http://www.tegnsprog.dk/#|soeg|tegn|386', '_system');\">\n\t\t\t\t\t\t\t<IMG SRC=\"http://www.tegnsprog.dk/billeder/web/logo-mini.png\"/>\n\t\t\t\t\t\t\t\tVis p&aring; tegnsprog.dk</A></TD><TD style=\"text-align: right;\">\n\t\t\t\t\t\t\t<A TITLE=\"G&aring; til toppen\" href=\"#0\">\n\t\t\t\t\t\t\t\t&#8679;\n\t\t\t\t\t\t\t</A>\n\t\t\t\t\t\t</TD></TR></TABLE></HTML>\n\n\n\t\t\t\t\t\tANDEN VERSION______________________________\n\n\t\t\t\t<TABLE>\n\t\t\t\t\t<TR>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t&nbsp;\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\tforan &middot; forrest &middot; f&oslash;re &middot; komme f&oslash;rst\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t</TABLE>\n\t\t\t\t<TABLE width=\"100%\"><TR><TD><A TITLE=\"&Aring;bn den fulde ordbogsartikel i browseren\" href=\"#\" onclick=\"var ref = window.open('http://www.tegnsprog.dk/#|soeg|tegn|1000', '_system');\"><IMG SRC=\"http://www.tegnsprog.dk/billeder/web/logo-mini.png\"/>Vis p&aring; tegnsprog.dk</A></TD><TD style=\"text-align: right;\"><A TITLE=\"G&aring; til toppen\" href=\"#0\">&#8679;</A></TD></TR></TABLE></HTML>\n\n*/\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tp(ex);\n\t\t\tp(ex.getMessage());\n\t\t\tnulNetBeskedFraBraggrund();\n\n\t\t}\n\t\tp(\"hentArtikel færdig\");\n\t\treturn new Fund(Uri.parse(vUrl), beskrivelser);\n\t}", "public String traePostInicio(int id){\r\n String src = \"\";\r\n BD.cDatos sql = new BD.cDatos(bd);\r\n try{\r\n sql.conectar();\r\n ResultSet gatito = sql.consulta(\"call _traepostinicio(\"+id+\");\");\r\n while(gatito.next()){\r\n src += \"<div class=\\\"container \\\" data-regis='\"+gatito.getString(\"idCuenta\")+\"'>\";\r\n //src += \"<div>\";\r\n \r\n \r\n src += \"<span id='spName' onclick='verPerfil(this)' >\"+gatito.getString(\"usuario\")+\"</span><br /><br />\";\r\n src+= \"<span id='spDate'>\"+gatito.getString(\"fecha\")+\"</span><br />\";\r\n src += /*<span id='imgSrc'>*/\"<img id='imgUsr' src=\\\"\"+gatito.getString(\"foto\")+\"\\\" ><br />\";\r\n src += \"<span id='spCateg'>Categoría: \"+gatito.getString(\"interes\")+\"</span>\";\r\n \r\n \r\n \r\n src += \"<span id='spTit'>\"+gatito.getString(\"titulo\")+\"</span><br />\";\r\n src += \"<span id='contPost'>\"+gatito.getString(\"texto\")+\"</span><br />\";\r\n if(!reformat(gatito.getString(\"imagenpost\")).isEmpty())src += \"<img id='imgPost' width=200 height=200 src=\\\"\"+gatito.getString(\"imagenpost\")+\"\\\" ><br /><span id='cabImg'>\"+gatito.getString(\"cabeceraimagenpost\")+\"</span><br />\"; //+gatito.getString(\"cabeceraaudiopost\")+\r\n \r\n if(!reformat(gatito.getString(\"audiopost\")).isEmpty())src += \"<span id='cabAudio'>\" + gatito.getString(\"cabeceraaudiopost\") + \"</span><br /><a id='audio' href=\\\"\"+gatito.getString(\"audiopost\")+\"\\\" download=\\\"\"+FilenameUtils.getName(gatito.getString(\"cabeceraaudiopost\"))+\"\\\"><button class='seguir' >Descargar archivo</button></a>\";\r\n //src += \"<br /><button id='verPerfil' class='seguir' onclick='verPerfil(this)' >Ver perfil</button>\";\r\n \r\n src += \"</div><br /><br />\";\r\n }\r\n }catch(Exception e){\r\n StringWriter sw = new StringWriter();\r\n PrintWriter pw = new PrintWriter(sw);\r\n e.printStackTrace(pw);\r\n this.error = sw.toString();\r\n }\r\n return src;\r\n }", "@RequestMapping(\"/spyrjaNotanda\")\r\n public String spyrjaNotandi () {\r\n \treturn \"demo/hvadaNotandi\";\r\n }", "private void startHtmlPage(PrintWriter out,ITestResult result)\r\n\t{\r\n\t\tout.println(\"<html>\");\r\n\t\tout.println(\"<head>\");\r\n\t\tout.println(\"<meta content=\\\"text/html; charset=UTF-8\\\" http-equiv=\\\"content-type\\\"/><meta content=\\\"cache-control\\\" http-equiv=\\\"no-cache\\\"/><meta content=\\\"pragma\\\" http-equiv=\\\"no-cache\\\"/>\");\r\n\t\tout.println(\"<style type=\\\"text/css\\\">\");\r\n\t\tout.println(\"body, table {\");\r\n\t\tout.println(\"font-family: Verdana, Arial, sans-serif;\");\r\n\t\tout.println(\"font-size: 12;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t\tout.println(\"table {\");\r\n\t\tout.println(\"border-collapse: collapse;\");\r\n\t\tout.println(\"border: 1px solid #ccc;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t\tout.println(\"th, td {\");\r\n\t\tout.println(\"padding-left: 0.3em;\");\r\n\t\tout.println(\"padding-right: 0.3em;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t\tout.println(\"a {\");\r\n\t\tout.println(\"text-decoration: none;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t\tout.println(\".title {\");\r\n\t\tout.println(\"font-style: italic;\");\r\n\t\tout.println(\"background-color: #B2ACAC;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t\tout.println(\".selected {\");\r\n\t\tout.println(\"background-color: #ffffcc;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t\tout.println(\".status_done {\");\r\n\t\tout.println(\"background-color: #eeffee;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t out.println(\".status_passed {\");\r\n\t out.println(\"background-color: #ccffcc;\");\r\n\t out.println(\"}\");\r\n\t\t\r\n\t out.println(\".status_failed {\");\r\n\t out.println(\"background-color: #ffcccc;\");\r\n\t out.println(\"}\");\r\n\t\t\r\n\t out.println(\".status_maybefailed {\");\r\n\t out.println(\"background-color: #ffffcc;\");\r\n\t out.println(\"}\");\r\n\t\t\r\n\t out.println(\".breakpoint {\");\r\n\t out.println(\"background-color: #cccccc;\");\r\n\t out.println(\"border: 1px solid black;\");\r\n\t out.println(\"}\");\r\n\t out.println(\"</style>\");\r\n\t out.println(\"<title>Test results</title>\");\r\n\t out.println(\"</head>\");\r\n\t out.println(\"<body>\");\r\n\t out.println(\"<h1>Test results </h1>\");\r\n\t out.println(\"<h2>Test Name: \"+className+\".\"+result.getName()+\"</h2>\");\r\n\t \r\n\t out.println(\"<table border=\\\"1\\\">\");\r\n\t out.println(\"<tbody>\");\r\n\t out.println(\"<tr>\");\r\n\t out.println(\"<td><b>Selenium-Command</b></td>\");\r\n\t out.println(\"<td><b>Parameter-1</b></td>\");\r\n\t\tout.println(\"<td><b>Parameter-2</b></td>\");\r\n\t\tout.println(\"<td><b>Status</b></td>\");\r\n\t\tout.println(\"<td><b>Screenshot</b></td>\");\r\n\t\tout.println(\"<td><b>Calling-Class with Linenumber</b></td>\");\r\n\t\tout.println(\"</tr>\");\r\n\t\t\r\n\t}", "public void buildDocument() {\n/* 248 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 250 */ syncAccessMethods();\n/* */ }", "public static void main(String [] args) throws IOException {\n MyIe jf=new MyIe();\n jf.getEditPanel().setPage(\"http://www.sina.com\");\n jf.getEditPanel().setEnabled(false);\n jf.getFrame().setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n jf.getFrame().setVisible(true);\n }", "public PoaMaestroMultivaloresHTML(boolean buildDOM) { this(StandardDocumentLoader.getInstance(), buildDOM); }", "public IndicadoresEficaciaHTML(IndicadoresEficaciaHTML src) {\n/* 181 */ this.fDocumentLoader = src.getDocumentLoader();\n/* */ \n/* 183 */ setDocument((Document)src.getDocument().cloneNode(true), src.getMIMEType(), src.getEncoding());\n/* */ \n/* 185 */ syncAccessMethods();\n/* */ }", "protected void createContents() throws Exception {\n\t\tshlGecco = new Shell();\n\t\tshlGecco.setImage(SWTResourceManager.getImage(jdView.class, \"/images/yc.ico\"));\n\t\tshlGecco.setSize(1366, 736);\n\t\tshlGecco.setText(\"gecco爬取京东信息\");\n\t\tshlGecco.setLocation(0, 0);\n\t\tshlGecco.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\tSashForm sashForm = new SashForm(shlGecco, SWT.NONE);\n\t\tsashForm.setOrientation(SWT.VERTICAL);\n\n\t\tGroup group = new Group(sashForm, SWT.NONE);\n\t\tgroup.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 10, SWT.BOLD));\n\t\tgroup.setText(\"爬取查询条件\");\n\t\tgroup.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tSashForm sashForm_2 = new SashForm(group, SWT.NONE);\n\n\t\tGroup group_2 = new Group(sashForm_2, SWT.NONE);\n\t\tgroup_2.setText(\"爬取条件\");\n\n\t\tLabel lblip = new Label(group_2, SWT.NONE);\n\t\tlblip.setLocation(34, 27);\n\t\tlblip.setSize(113, 21);\n\t\tlblip.setText(\"输入开始爬取地址:\");\n\n\t\ttxtSearchUrl = new Text(group_2, SWT.BORDER);\n\t\ttxtSearchUrl.setLocation(153, 23);\n\t\ttxtSearchUrl.setSize(243, 23);\n\t\ttxtSearchUrl.setText(\"https://www.jd.com/allSort.aspx\");\n\n\t\tbtnSearch = new Button(group_2, SWT.NONE);\n\t\tbtnSearch.setLocation(408, 23);\n\t\tbtnSearch.setSize(82, 25);\n\n\t\tbtnSearch.setEnabled(false);\n\t\tbtnSearch.setText(\"开始爬取\");\n\n\t\tGroup group_3 = new Group(sashForm_2, SWT.NONE);\n\t\tgroup_3.setText(\"查询条件\");\n\n\t\tLabel label_2 = new Label(group_3, SWT.NONE);\n\t\tlabel_2.setLocation(77, 25);\n\t\tlabel_2.setSize(86, 25);\n\t\tlabel_2.setText(\"选择查询条件:\");\n\n\t\tcombo = new Combo(group_3, SWT.NONE);\n\t\tcombo.setLocation(169, 23);\n\t\tcombo.setSize(140, 23);\n\t\tcombo.setItems(new String[] { \"全部\", \"商品总类别\", \"子类别名\", \"类别链接\" });\n\t\t// combo.setText(\"全部\");\n\n\t\tbutton = new Button(group_3, SWT.NONE);\n\t\tbutton.setLocation(524, 23);\n\t\tbutton.setSize(80, 25);\n\t\tbutton.setText(\"点击查询\");\n\t\tbutton.setEnabled(false);\n\n\t\tcombo_1 = new Combo(group_3, SWT.NONE);\n\t\tcombo_1.setEnabled(false);\n\t\tcombo_1.setLocation(332, 23);\n\t\tcombo_1.setSize(170, 23);\n\t\t// combo_1.setItems(new String[] { \"全部\" });\n\t\t// combo_1.setText(\"全部\");\n\t\tsashForm_2.setWeights(new int[] { 562, 779 });\n\t\tGroup group_1 = new Group(sashForm, SWT.NONE);\n\t\tgroup_1.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 10, SWT.BOLD));\n\t\tgroup_1.setText(\"爬取结果\");\n\t\tgroup_1.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tSashForm sashForm_1 = new SashForm(group_1, SWT.NONE);\n\n\t\tGroup group_Categorys = new Group(sashForm_1, SWT.NONE);\n\t\tgroup_Categorys.setText(\"商品分组\");\n\t\tgroup_Categorys.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tcategorys = new Table(group_Categorys, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tcategorys.setHeaderVisible(true);\n\t\tcategorys.setLinesVisible(true);\n\n\t\tTableColumn ParentName = new TableColumn(categorys, SWT.NONE);\n\t\tParentName.setWidth(87);\n\t\tParentName.setText(\"商品总类别\");\n\n\t\tTableColumn Title = new TableColumn(categorys, SWT.NONE);\n\t\tTitle.setWidth(87);\n\t\tTitle.setText(\"子类别名\");\n\n\t\tTableColumn Ip = new TableColumn(categorys, SWT.NONE);\n\t\tIp.setWidth(152);\n\t\tIp.setText(\"类别链接\");\n\n\t\tGroup group_ProductBrief = new Group(sashForm_1, SWT.NONE);\n\t\tgroup_ProductBrief.setText(\"商品简要信息列表\");\n\t\tgroup_ProductBrief.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tproductBrief = new Table(group_ProductBrief, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tproductBrief.setLinesVisible(true);\n\t\tproductBrief.setHeaderVisible(true);\n\n\t\tTableColumn Code = new TableColumn(productBrief, SWT.NONE);\n\t\tCode.setWidth(80);\n\t\tCode.setText(\"商品编号\");\n\n\t\tTableColumn Detailurl = new TableColumn(productBrief, SWT.NONE);\n\t\tDetailurl.setWidth(162);\n\t\tDetailurl.setText(\"商品详情链接\");\n\n\t\tTableColumn Preview = new TableColumn(productBrief, SWT.NONE);\n\t\tPreview.setWidth(170);\n\t\tPreview.setText(\"商品图片链接\");\n\n\t\tTableColumn Dtitle = new TableColumn(productBrief, SWT.NONE);\n\t\tDtitle.setWidth(150);\n\t\tDtitle.setText(\"商品标题\");\n\n\t\tGroup group_ProductDetail = new Group(sashForm_1, SWT.NONE);\n\t\tgroup_ProductDetail.setText(\"商品详细信息\");\n\t\tgroup_ProductDetail.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tComposite composite = new Composite(group_ProductDetail, SWT.NONE);\n\n\t\tPDetail = new Text(composite,\n\t\t\t\tSWT.BORDER | SWT.READ_ONLY | SWT.WRAP | SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL | SWT.MULTI);\n\t\tPDetail.setLocation(55, 339);\n\t\tPDetail.setSize(360, 220);\n\n\t\tLabel Id = new Label(composite, SWT.NONE);\n\t\tId.setBounds(31, 28, 61, 15);\n\t\tId.setText(\"商品编号:\");\n\n\t\tLabel detail = new Label(composite, SWT.NONE);\n\t\tdetail.setText(\"商品详情:\");\n\t\tdetail.setBounds(31, 311, 61, 15);\n\n\t\tLabel title = new Label(composite, SWT.NONE);\n\t\ttitle.setText(\"商品标题:\");\n\t\ttitle.setBounds(31, 64, 61, 15);\n\n\t\tLabel jdAd = new Label(composite, SWT.NONE);\n\t\tjdAd.setText(\"商品广告:\");\n\t\tjdAd.setBounds(31, 201, 61, 15);\n\n\t\tLabel price = new Label(composite, SWT.NONE);\n\t\tprice.setBounds(31, 108, 61, 15);\n\t\tprice.setText(\"价格:\");\n\n\t\tdcode = new Text(composite, SWT.BORDER);\n\t\tdcode.setEditable(false);\n\t\tdcode.setBounds(98, 25, 217, 21);\n\n\t\tLabel jdprice = new Label(composite, SWT.NONE);\n\t\tjdprice.setBounds(75, 127, 48, 15);\n\t\tjdprice.setText(\"京东价:\");\n\n\t\tLabel srcPrice = new Label(composite, SWT.NONE);\n\t\tsrcPrice.setBounds(75, 166, 48, 15);\n\t\tsrcPrice.setText(\"原售价:\");\n\n\t\tdprice = new Text(composite, SWT.BORDER);\n\t\tdprice.setEditable(false);\n\t\tdprice.setBounds(128, 127, 187, 21);\n\n\t\tdsrcPrice = new Text(composite, SWT.BORDER);\n\t\tdsrcPrice.setEditable(false);\n\t\tdsrcPrice.setBounds(128, 166, 187, 21);\n\n\t\tdtitle = new Text(composite,\n\t\t\t\tSWT.BORDER | SWT.READ_ONLY | SWT.WRAP | SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL | SWT.MULTI);\n\t\tdtitle.setBounds(98, 62, 217, 42);\n\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setText(\"广告标题:\");\n\t\tlabel.setBounds(62, 233, 61, 15);\n\n\t\tLabel label_1 = new Label(composite, SWT.NONE);\n\t\tlabel_1.setText(\"广告链接:\");\n\t\tlabel_1.setBounds(62, 272, 61, 15);\n\n\t\tadtitle = new Text(composite, SWT.BORDER);\n\t\tadtitle.setEditable(false);\n\t\tadtitle.setBounds(128, 231, 187, 21);\n\n\t\tadUrl = new Text(composite, SWT.BORDER);\n\t\tadUrl.setEditable(false);\n\t\tadUrl.setBounds(128, 270, 187, 21);\n\t\tsashForm_1.setWeights(new int[] { 335, 573, 430 });\n\t\tsashForm.setWeights(new int[] { 85, 586 });\n\n\t\tdoEvent();// 组件的事件操作\n\n\t}", "@Override\n protected String elaboraBody() {\n String text = CostBio.VUOTO;\n int numCognomi = mappaCognomi.size();\n int numVoci = Bio.count();\n int taglioVoci = Pref.getInt(CostBio.TAGLIO_NOMI_ELENCO);\n\n text += A_CAPO;\n text += \"==Cognomi==\";\n text += A_CAPO;\n text += \"Elenco dei \";\n text += LibWiki.setBold(LibNum.format(numCognomi));\n text += \" cognomi '''differenti''' utilizzati nelle \";\n text += LibWiki.setBold(LibNum.format(numVoci));\n text += \" voci biografiche con occorrenze maggiori di \";\n text += LibWiki.setBold(taglioVoci);\n text += A_CAPO;\n text += creaElenco();\n text += A_CAPO;\n\n return text;\n }", "@Override\n\tpublic void cargarBateria() {\n\n\t}", "public static void old_kategorien_aus_grossem_text_holen (String htmlfile) // alt, funktioniert zwar bis auf manche\n\t// dafür müsste man nochmal loopen um dien ächste zeile derü berschrift auch noch abzufangen bei <h1 class kategorie western\n\t// da manche bausteine in die nächste zeile verrutscht sind.\n\t// viel einfacher geht es aus dem inhaltsverzeichnis des katalogs die kategorien abzufangen.\n\t{\n\t\tmain mainobject = new main ();\n\t\t// System.out.println (\"Ermittle alle Kategorien (Gruppen, Oberkategorien)... 209\\n\");\n BufferedReader in = null;\n try {\n in = new BufferedReader(new FileReader(htmlfile));\n String zeile = null;\n int counter = 0;\n while ((zeile = in.readLine()) != null) {\n // System.out.println(\"Gelesene Zeile: \" + zeile);\n \t\n \t\n \t// 1. Pruefe ob die Zeile eine Kategorie ist: wenn ja Extrahiere diese KATEGORIE aus dem Code:\n \t// Schema <h1 class=\"kategorie-western\"><a name=\"_Toc33522153\"></a>Bescheide\n \t// Rücknahme 44 X\t</h1>\n \t/*if (zeile.contains(\"<h1\"))\n \t\t\t{\n \t\t\t// grussformeln:\n \t\tzeile.replace(\"class=\\\"kategorie-western\\\" style=\\\"page-break-before: always\\\">\",\"\");\n \t\t\n \t\t\t}\n \t*/\n \t// der erste hat immer noch ein page-break before: drinnen; alle anderen haben dann kategorie western ohne drin\n \tif (zeile.contains(\"<h1 class=\\\"kategorie-western\\\"\"))\n \t\t\t/*zeile.contains(\"<h1 class=\\\"kategorie-western\\\">\") /*|| zeile.contains(\"</h1>\")*/\n \t{\n \t\tSystem.out.println (zeile + \"\\n\"); // bis hier werden alle kategorien erfasst !\n \t\t\n \t\t// hier passiert es, dass vllt. die kategorie in die nächste Zeile gerutscht ist:\n \t\t// daher nochmal loopen und mit stringBetween die nächste einfangen:\n \t\t\n \t\tString kategoriename = \"\";\n \t/*\tif (zeile.contains(\"</h1>\") && !zeile.contains(\"<h1 class=\")) // das ist immer der fall wenn es in die nächste zeile rutscht , weil der string zu lang ist:\n \t\t{\n \t\t\t kategoriename = zeile.replace(\"</h1>\", \"\");\n \t\t}\n \t\telse\n \t\t{\n \t\t kategoriename = stringBetween(zeile, \"\\\"></a>\",\"</h1>\");\n \t\t}*/\n \t\t kategoriename = stringBetween(zeile, \"\\\"></a>\",\"</h1>\");\n \t\t \n \t\t if (! zeile.contains(\"</h1>\")) // dann ist es in die nächste Zeile gerutscht\n \t\t {\n \t\t\t // hole nächste Zeile und vervollständige damit kategorie:\n \t\t }\n\n \t\tif (kategoriename == null || kategoriename ==\"\")\n \t\t{\n \t\t\t// keine kategorie adden (leere ist sinnlos)\n \t\t}\n \t\n \t\t\tif (kategoriename.contains(\"lass=\\\"kategorie-western\\\">\"))\n \t\t\t{\n \t\t\t\tkategoriename.replace(\"lass=\\\"kategorie-western\\\">\", \"\");\n \t\t\t}\n \t\t\n \t\t\t//System.out.println (kategoriename + \"\\n\");\n \t\t/*\tkategoriename.replace(\"lass=\",\"\");\n \t\t\tkategoriename.replace(\"kategorie-western\",\"\");\n \t\t\tkategoriename.replace(\"\\\"\",\"\");\n \t\t\tkategoriename.replace(\">\",\"\");\n \t\t\tkategoriename.replace(\"/ \",\"\");*/\n\t \t\t//mainobject.kategoriencombo.addItem(kategoriename);\n\n \t\tcount_kategorien = count_kategorien+1;\n \t\t//kategorienamen[count_kategorien] = kategoriename;\n \t\t//System.out.println (\"Kat Nr.\" + count_kategorien + \" ist \" + kategoriename+\"\\n\" );\n\n \t\t// Schreibe die Kategorien in Textfile:\n \t\tFileWriter fwk1 = new FileWriter (\"kategorien.txt\",true);\n \t\tfwk1.write(kategoriename+\"\\n\");\n \t\tfwk1.flush();\n \t\tfwk1.close();\n \t\t\n \t\t\n \t}\n \t\n\n \n \t// 2. Pruefe ob die Zeile der Name eines Textbausteins ist d.h. Unterkateogrie:\n \t//<p style=\"margin-top: 0.21cm; page-break-after: avoid\"><a name=\"_Toc33522154\"></a>\n \t//Ablehnung erneute Überprüfung</p>\n // System.out.println (\"Ermittle alle Unterkateogrien (d.h. Textbausteinnamen an sich)... 243\\n\");\n\n \tif (zeile.contains(\"<p style=\\\"margin-top: 0.21cm; page-break-after: avoid\\\"><a name=\"))\n \t{\n \t\t// manchmal kommt es vor, dass die textbaustein namen also die unterkateogorie über mehrere zeilen geht:\n \t\t\t// dann sollte der zweite teil in der nächsten Zeile auch noch mit angefügt werden:\n \t\t\tString zweiterteil_der_zeile = in.readLine()+1;\n \t\t\tString komplette_zeile_der_unterkategorie = zeile+zweiterteil_der_zeile;\n \t\tString unterkategorie = stringBetween(komplette_zeile_der_unterkategorie, \"\\\"></a>\",\"</p>\"); // = textbausteine\n \t\tif (unterkategorie == null || unterkategorie ==\"\")\n \t\t{\n \t\t\t// keine unterkategorie adden (leere ist sinnlos) = keine leeren textbausteine \n \t\t}\n \t\telse\n \t\t{\n \t\t\tunterkategorie.replace(\" \", \"\"); // leere raus\n \t\t\t\n \t\t\t\n\t \t\t//System.out.println (kategoriename + \"\\n\");\n\t \t\t//mainobject.bausteinecombo.addItem(unterkategorie);\n\n \t\t\tcount_unterkategorien = count_unterkategorien+1; // anzahl der bausteine anhand der bausteinnamen ermitteln \n \t\t\t// Schreibe die unter Kategorien in Textfile:\n\t \t\tFileWriter fwk2 = new FileWriter (\"unterkategorien.txt\",true);\n\t \t\tfwk2.write(unterkategorie+\"\\n\");\n\t \t\tfwk2.flush();\n\t \t\tfwk2.close();\n\n \t\t//unterkategorienamen[count_unterkategorien] = unterkategorie;\n \t\t// (= hier unterkateogrienamen)\n \t\t\n \t\t\n \t // parts.length = anzahl der bausteine müsste gleich count_unterkategorien sein.\n \t // jetzt zugehörigen baustein reinschreiben:\n \t // also je nach count_unterkateogerien dann den parts[count] reinschrieben:\n \t /* try {\n \t\t\tfwb.write(parts[count_unterkategorien]);\n \t\t} catch (IOException e) {\n \t\t\t// TODO Auto-generated catch block\n \t\tSystem.out.println(\"503 konnte datei mit baustein nicht schreiben\");\n \t\t}\n \t \n \t */\n \t \n\n \t\t}\n \t\t\n \t\t\n \t\t \n \t} // if zeile contains\n \t\t \n \n }\t// while\n \n } // try\n catch (Exception y)\n {}\n \t\t \n \t\t \n\t \t// <p style=\"margin-left: 0.64cm; font-weight: normal\"> usw... text </p> sthet immer dazwischen\n\t \t/*if (zeile.contains(\"<p style=\\\"margin-left: 0.64cm; font-weight: normal\\\">\"))\n\t \t{\n\t \t\t// manchmal kommt es vor, dass die textbaustein namen also die unterkateogorie über mehrere zeilen geht:\n \t\t\t// dann sollte der zweite teil in der nächsten Zeile auch noch mit angefügt werden:\n \t\t\tString zweiterteil_der_zeile = in.readLine()+1;\n \t\t\tString komplette_zeile_der_unterkategorie = zeile+zweiterteil_der_zeile;\n\t \t\tString unterkategorie = stringBetween(komplette_zeile_der_unterkategorie, \"\\\"></a>\",\"</p>\"); // = textbausteine\n\t \t\tif (unterkategorie == null || unterkategorie ==\"\")\n\t \t\t{\n\t \t\t\t// keine unterkategorie adden (leere ist sinnlos) = keine leeren textbausteine \n\t \t\t}\n\t \t\telse\n\t \t\t{\n\t \t\t\tunterkategorie.replace(\" \", \"\"); // leere raus\n\t \t\t\t\n\t \t\t\t\n\t\t \t\t//System.out.println (kategoriename + \"\\n\");\n\t \t\tmainobject.bausteinecombo.addItem(unterkategorie);\n\t \t\t}\n\t \t}\n\t \t*/\n System.out.println (\"Alle Oberkategorien, Namen erfolgreich ermittelt und eingefügt 239\\n\");\n\n System.out.println (\"Alle Unterkategorien oder Bausteinnamen erfolgreich eingefügt 267\\n\");\n\n \n \n\t}", "public void updateDirectorCovHtml() {\n\n Connection dbConnection = connectToDb();\n String selectIdStmt = \"SELECT id, testposition, directory_cov_html FROM testruns ORDER BY id DESC\";\n System.out.println(selectIdStmt);\n try {\n PreparedStatement selectId = dbConnection\n .prepareStatement(selectIdStmt);\n ResultSet rs = selectId.executeQuery();\n while (rs.next()) {\n Integer testrunId = rs.getInt(\"id\");\n Integer testPosition = rs.getInt(\"testposition\");\n String directory_cov_html = rs.getString(\"directory_cov_html\");\n if (null == directory_cov_html) {\n String directoryFuncCovCsv = \"directoryFuncCov_\"+testPosition +\"__\"+testrunId +\".csv\";\n generateDirectoryFuncCovCsv(sourceDirFilename,\n directoryFuncCovCsv, testrunId, testPosition);\n String outputHTMLFilename= \"function_coverage_\"+testPosition +\"__\"+testrunId +\".html\";\n generateHtmlFromFsTree(outputHTMLFilename);\n addHtmlDocToDb(outputHTMLFilename, testrunId);\n } else {\n System.err\n .println(\"WARNING: directory_cov_html already set for testrunId \"\n + testrunId + \". Skipping testrunId.\");\n }\n }\n rs.close();\n selectId.close();\n } catch (SQLException e) {\n\n myExit(e);\n }\n }", "private void gerarTestSelenium(String caminhoPagina, String nomeDoTeste) {\n\t\tthis.nomeDoTeste = nomeDoTeste;\r\n\t\tSAXReader reader = new SAXReader(new DOMDocumentFactory());\t\t\t\r\n\t\tDocument document = null;\r\n\t\ttry {\r\n\t\t\t//capturar screenshot antes e depois\r\n\t\t\t//takescreenshot - selenium\r\n\t\t\t\r\n\t\t\t//caminho = this.getClass().getResource(\"/index.xhtml\").toURI().getPath();\r\n\t\t\t//if (!url.contains(\"?id\") && !isPaginaLista) {\r\n\t\t\t\tdocument = reader.read(caminhoPagina);\r\n\t\t\t//}\t\t\t\r\n\t\t\t//gerar dados da declaracao\r\n\t\t\tgerarDadosDeclaracao();\r\n\t\t\tif (!nomeDoTeste.contains(\"index\")) {\r\n\t\t\t\tgerarLogar();\r\n\t\t\t}\r\n\t\t\t//if (url.contains(\"?id\") || isPaginaLista) {\r\n\t\t\t//\tsbSelenium.append(gerarTestePaginaComParametro());\r\n\t\t\t//} else {\r\n\t\t\t\t//gerar testes com strings aleatorias\r\n\t\t\t\tString sAleatoria = gerarTestesStringAleatoria(document.getRootElement());\t\t\t\r\n\t\t\t\tsbSelenium.append(sAleatoria.toString());\r\n\t\t\t\t//gerar testes com strings vazia\r\n\t\t\t\tString sVazia = gerarTestesStringVazia(document.getRootElement());\r\n\t\t\t\tsbSelenium.append(sVazia.toString());\r\n\t\t\t\t//gerar testes com numeros inteiros aletorios\r\n\t\t\t\tString sInteirosAleatorios = gerarTestesInteirosAleatorios(document.getRootElement());\r\n\t\t\t\tsbSelenium.append(sInteirosAleatorios.toString());\t\r\n\t\t\t//}\t\t\t\t\r\n\t\t\t\r\n\t\t\t//capturar screenshot antes e depois\r\n\t\t\t//takescreenshot - selenium\t\t\t\r\n\t\t\tcapturarScreenShot();\t\t\t\r\n\t\t\t//ao final fechar todos\r\n\t\t\tsbSelenium.append(\"}\\r\\n\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Não foi possível ler Página xhtml especificada\");\t\t\t\r\n\t\t}\t\t\t\r\n\t}", "@Override\n\tpublic void visitTag(Tag tag){\n\t\t\n if (tag instanceof Div) { \n Div div = (Div) tag; \n String attr = div.getAttribute(\"class\"); //detailed_rig\n //System.out.println(\"attr:\" + attr);\n if(\"detailed_rig\".equals(attr)){ //小区div\n \t\n \t//System.out.println(\"=========================\"+div.toHtml());\n \tSpanVisitor sv = new SpanVisitor();\n \t//LinkVisitor lv = new LinkVisitor();\n \t//div.accept(lv);\n \t//link = lv.getLink();\n \tdiv.accept(sv);\n \tCommunity com = new Community(sv.getName(), sv.getLink()+\"esf/\", sv.getPrice());\n \tcommunityList.add(com);\n// \tSystem.out.println(\"name:\"+name +\" price:\"+price + \" link:\"+link);\n }\n if(\"fanye\".equals(attr)){\n \tNextPageVisitor np = new NextPageVisitor();\n \tdiv.accept(np);\n \tnextPageLink =np.getLink();\n \t//System.out.println(\"link:\" +np.getLink() );\n }\n //line = textnode.toPlainTextString().trim(); \n //line = textnode.getText(); \n } \t\t\n\t}", "public AdmClientePreferencialHTML(AdmClientePreferencialHTML src) {\n/* 209 */ this.fDocumentLoader = src.getDocumentLoader();\n/* */ \n/* 211 */ setDocument((Document)src.getDocument().cloneNode(true), src.getMIMEType(), src.getEncoding());\n/* */ \n/* 213 */ syncAccessMethods();\n/* */ }", "@Override\r\n\tpublic String executa(HttpServletRequest req, HttpServletResponse res) throws Exception {\n\t\treturn \"view/home.html\";\r\n\t}", "public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }", "@Test\n public void test() throws IOException {\n String url = \"http://blog.csdn.net/seatomorrow/article/details/48393547\";\n Readability readability = new Readability(getDoc(url)); // URL\n readability.init();\n String cleanHtml = readability.outerHtml();\n System.out.println(cleanHtml);\n }", "protected String completeHtml(String data) {\n if (data.indexOf(\"<html>\") == -1) {\n\t\t\tdata = \"<html><head></head><body style='margin:0;padding:0;'>\"\n\t\t\t\t\t+ data + \"</body></html>\";\n }\n\n\t\treturn data;\n\t}", "@GetMapping(\"/carnetshtml\")\n\t/*public String getAll(Model model) {\n\t\tmodel.addAttribute(\"liste\", listeCarnets); // ajoute la liste créer en ArrayList\n\t\t return\"pages/carnets\"; // retourne un string, mais on ne veut pas ca*/\n\t\n\tpublic ModelAndView getAll() {\n\t\tModelAndView mav = new ModelAndView (\"pages/carnets\");\n\t\tmav.addObject(\"carnets\",listeCarnets);\n\t\treturn mav;\n\t\t// commentaire en plus pour tester le GitKraken\n\t}", "@GET\r\n\t@Produces(MediaType.TEXT_HTML)\r\n\tpublic String getMoviesHTML() {\r\n\t\tListMovies movies = new ListMovies();\r\n\t\tmovies.addAll(TodoDao.instance.getMovies().values());\r\n\t\treturn \"\" + movies;\r\n\t}", "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n resp.setContentType(\"text/html;charset=UTF-8\");\n req.getRequestDispatcher(\"/jsp/produtos/index.jsp\").include(req, resp);\n \n }", "public HtmlPage(String h){\r\n\t\t//extract the hrefs:\r\n\t\tHREF.setHref(getHrefs(h));\r\n\t\t//extract the encoding:\r\n\t\t\r\n\t}", "@GetMapping(\"/\") //na adresie URL localhost:8080/\n public String home(Model model){\n model.addAttribute(\"header_title\", \"BLOG IT\");\n model.addAttribute(\"header_author\", \"mati\");\n\n //miejsce na implementacje\n\n return \"blog\"; //wartoscia zwracana jest nazwa szablony Thymeleaf-> domyslna lokalizacja to resource/templates\n //-> nie dopisujemy rozszerzenia .html lub jakiegokolwiek innego\n}", "@Override\n\tpublic void createHtml(ModelItemList list) {\n\t\t\n\t}", "private String html(final TableFacade tableFacade, final HttpServletRequest request) {\r\n\t\ttableFacade.setColumnProperties(\"id.invPexProductosExistencia.invArtArticulo.artCodigo\",\r\n\t\t\t\t\"id.invPexProductosExistencia.invArtArticulo.artNombre\",\r\n\t\t\t\t\"eboCantidadProducto\",\"eboSaldo\",\"audFechaCreacion\");\r\n\t\tTable table = tableFacade.getTable();\r\n\t\t\r\n\t\t//---- Titulo de la tabla\r\n\t\ttable.setCaptionKey(\"tbl.abo.caption\");\r\n\t\t\r\n\t\tRow row = table.getRow();\r\n\t\tColumn nombreColumna = row.getColumn(\"id.invPexProductosExistencia.invArtArticulo.artCodigo\");\r\n\t\tnombreColumna.setTitleKey(\"tbl.abo.id.invArtArticulo.artCodigo\");\r\n\r\n\t\tnombreColumna = row.getColumn(\"id.invPexProductosExistencia.invArtArticulo.artNombre\");\r\n\t\tnombreColumna.setTitleKey(\"tbl.abo.id.invArtArticulo.artNombre\");\r\n\t\t\r\n\t\tnombreColumna = row.getColumn(\"eboCantidadProducto\");\r\n\t\tnombreColumna.setTitleKey(\"tbl.abo.eboCantidadProducto\");\r\n\t\t\r\n\t\tnombreColumna = row.getColumn(\"eboSaldo\");\r\n\t\tnombreColumna.setTitleKey(\"tbl.abo.eboSaldo\");\r\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\r\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\r\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property,\r\n\t\t\t\t\t\trowcount);\r\n\t\t\t\tInvEboExistenciaBodega existenciaBodega = (InvEboExistenciaBodega) item;\r\n\t\t\t\t\r\n\t\t\t\tvalue = \"<div align=\\\"right\\\">\"+Format.formatDinero(existenciaBodega.getEboSaldo())+\"</div>\";\r\n\t\t\t\treturn value;\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tnombreColumna = row.getColumn(\"audFechaCreacion\");\r\n\t\tnombreColumna.setTitleKey(\"tbl.abo.acciones\");\r\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor(){\r\n\r\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\r\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property, rowcount);\r\n\t\t\t\tInvEboExistenciaBodega bodega = (InvEboExistenciaBodega)item;\r\n\t\t\t\t\r\n\t\t\t\tHtmlBuilder html = new HtmlBuilder();\r\n\t\t\t\tvalue = \"Movimientos\";\r\n\t\t\t\tString link = tableFacade.getWebContext().getContextPath();\r\n\t\t\t\tlink += \"/inventario/movimiento.do?accion=lista&bodega=\" + bodega.getId().getInvBodBodegas().getBodId() + \"&artCod=\" + bodega.getId().getInvPexProductosExistencia().getArtCodigo();\r\n\t\t\t\thtml.a().href().quote().append(link).quote().append(\"class=\\\"linkMovimientoBod\\\"\").title(value.toString()).close();\r\n\t\t\t\t//html.a().href(link).close();\r\n\t\t\t\t//html.append(value);\r\n\t\t\t\thtml.aEnd();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\treturn html.toString();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\treturn tableFacade.render();\r\n\t}", "protected void inicializar(){\n kr = new CreadorHojas(wp);\n jPanel1.add(wp,0); // inserta el workspace en el panel principal\n wp.insertarHoja(\"Hoja 1\");\n //wp.insertarHoja(\"Hoja 2\");\n //wp.insertarHoja(\"Hoja 3\");\n }", "public void setHTML(String html);", "@RequestMapping(\"index.html/formular.html\")\n public String bothformular(){\n\n return\"formular\";\n }", "@Listen(\"onClick =#asignarEspacioCita\")\n\tpublic void asginarEspacioCita() {\n\t\tString dir = \"gc/espacio/frm-asignar-espacio-catalogo.zul\";\n\t\tclearDivApp(dir);\n\t\t// Clients.evalJavaScript(\"document.title = 'ServiAldanas'; \");\n\t}", "public String listViaje() {\n\t\t\t//resetForm();\n\t\t\treturn \"/boleta/list.xhtml\";\t\n\t\t}", "protected void createContents() {\n\t\tsetText(\"Muokkaa asiakastietoja\");\n\t\tsetSize(800, 550);\n\n\t}", "private void createContents() throws SQLException {\n\t\tshell = new Shell(getParent(), SWT.SHELL_TRIM);\n\t\tshell.setImage(user.getIcondata().BaoduongIcon);\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\tsetText(\"Tạo Công việc (Đợt Bảo dưỡng)\");\n\t\tshell.setSize(777, 480);\n\t\tnew FormTemplate().setCenterScreen(shell);\n\n\t\tFill_ItemData fi = new Fill_ItemData();\n\n\t\tSashForm sashForm = new SashForm(shell, SWT.NONE);\n\t\tsashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));\n\n\t\tSashForm sashForm_3 = new SashForm(sashForm, SWT.VERTICAL);\n\n\t\tSashForm sashForm_2 = new SashForm(sashForm_3, SWT.NONE);\n\t\tComposite composite = new Composite(sashForm_2, SWT.NONE);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setText(\"Tên đợt Bảo dưỡng*:\");\n\n\t\ttext_Tendot_Baoduong = new Text(composite, SWT.BORDER);\n\t\ttext_Tendot_Baoduong.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\n\t\tLabel label_3 = new Label(composite, SWT.NONE);\n\t\tGridData gd_label_3 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_label_3.verticalIndent = 3;\n\t\tlabel_3.setLayoutData(gd_label_3);\n\t\tlabel_3.setText(\"Loại phương tiện:\");\n\n\t\tcombo_Loaiphuongtien = new Combo(composite, SWT.READ_ONLY);\n\t\tcombo_Loaiphuongtien.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif (ViewAndEdit_MODE_dsb != null) {\n\t\t\t\t\tFill_ItemData f = new Fill_ItemData();\n\t\t\t\t\tif ((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText()) == f.getInt_Xemay()) {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setLOAI_PHUONG_TIEN(f.getInt_Xemay());\n\t\t\t\t\t\ttree_PTTS.removeAll();\n\t\t\t\t\t} else if ((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText()) == f.getInt_Oto()) {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setLOAI_PHUONG_TIEN(f.getInt_Oto());\n\t\t\t\t\t\ttree_PTTS.removeAll();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tcombo_Loaiphuongtien.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 1, 1));\n\t\tfi.setComboBox_LOAIPHUONGTIEN_Phuongtien_Giaothong(combo_Loaiphuongtien, 0);\n\n\t\tLabel label_4 = new Label(composite, SWT.NONE);\n\t\tGridData gd_label_4 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_label_4.verticalIndent = 3;\n\t\tlabel_4.setLayoutData(gd_label_4);\n\t\tlabel_4.setText(\"Mô tả:\");\n\n\t\ttext_Mota = new Text(composite, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);\n\t\ttext_Mota.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true, 1, 1));\n\t\tnew Label(composite, SWT.NONE);\n\n\t\tbtnNgunSaCha = new Button(composite, SWT.NONE);\n\t\tGridData gd_btnNgunSaCha = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnNgunSaCha.widthHint = 85;\n\t\tbtnNgunSaCha.setLayoutData(gd_btnNgunSaCha);\n\t\tbtnNgunSaCha.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tChonNguonSuachua_Baoduong cnsb = new ChonNguonSuachua_Baoduong(shell, SWT.DIALOG_TRIM, user);\n\t\t\t\t\tcnsb.open();\n\t\t\t\t\tnsb = cnsb.getResult();\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb == null) {\n\t\t\t\t\t\tfillNguonSuachuaBaoduong(nsb);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (nsb == null) {\n\t\t\t\t\t\tMessageBox m = new MessageBox(shell, SWT.ICON_QUESTION | SWT.YES | SWT.NO | SWT.CLOSE);\n\t\t\t\t\t\tm.setText(\"Xóa dữ liệu cũ?\");\n\t\t\t\t\t\tm.setMessage(\"Bạn muốn xóa dữ liệu cũ?\");\n\t\t\t\t\t\tint rc = m.open();\n\t\t\t\t\t\tswitch (rc) {\n\t\t\t\t\t\tcase SWT.CANCEL:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SWT.YES:\n\t\t\t\t\t\t\tViewAndEdit_MODE_dsb.setMA_NGUONSUACHUA_BAODUONG(-1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SWT.NO:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setMA_NGUONSUACHUA_BAODUONG(nsb.getMA_NGUONSUACHUA_BAODUONG());\n\t\t\t\t\t}\n\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG(ViewAndEdit_MODE_dsb);\n\t\t\t\t\tfillNguonSuachuaBaoduong(ViewAndEdit_MODE_dsb);\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnNgunSaCha.setText(\"Liên hệ\");\n\t\tbtnNgunSaCha.setImage(user.getIcondata().PhoneIcon);\n\n\t\tComposite composite_1 = new Composite(sashForm_2, SWT.NONE);\n\t\tcomposite_1.setLayout(new GridLayout(2, false));\n\n\t\tLabel lblSXut = new Label(composite_1, SWT.NONE);\n\t\tlblSXut.setText(\"Số đề xuất: \");\n\n\t\ttext_Sodexuat = new Text(composite_1, SWT.NONE);\n\t\ttext_Sodexuat.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Sodexuat.setEditable(false);\n\t\ttext_Sodexuat.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyThng = new Label(composite_1, SWT.NONE);\n\t\tlblNgyThng.setText(\"Ngày tháng: \");\n\n\t\ttext_NgaythangVanban = new Text(composite_1, SWT.NONE);\n\t\ttext_NgaythangVanban.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_NgaythangVanban.setEditable(false);\n\t\ttext_NgaythangVanban.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblnV = new Label(composite_1, SWT.NONE);\n\t\tlblnV.setText(\"Đơn vị: \");\n\n\t\ttext_Donvi = new Text(composite_1, SWT.NONE);\n\t\ttext_Donvi.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Donvi.setEditable(false);\n\t\ttext_Donvi.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyXL = new Label(composite_1, SWT.NONE);\n\t\tlblNgyXL.setText(\"Ngày xử lý:\");\n\n\t\ttext_Ngaytiepnhan = new Text(composite_1, SWT.NONE);\n\t\ttext_Ngaytiepnhan.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Ngaytiepnhan.setEditable(false);\n\t\ttext_Ngaytiepnhan.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyGiao = new Label(composite_1, SWT.NONE);\n\t\tlblNgyGiao.setText(\"Ngày giao:\");\n\n\t\ttext_Ngaygiao = new Text(composite_1, SWT.NONE);\n\t\ttext_Ngaygiao.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Ngaygiao.setEditable(false);\n\t\ttext_Ngaygiao.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblTrchYu = new Label(composite_1, SWT.NONE);\n\t\tGridData gd_lblTrchYu = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblTrchYu.verticalIndent = 3;\n\t\tlblTrchYu.setLayoutData(gd_lblTrchYu);\n\t\tlblTrchYu.setText(\"Ghi chú: \");\n\n\t\ttext_Trichyeu = new Text(composite_1, SWT.NONE);\n\t\ttext_Trichyeu.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Trichyeu.setEditable(false);\n\t\tGridData gd_text_Trichyeu = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n\t\tgd_text_Trichyeu.heightHint = 27;\n\t\ttext_Trichyeu.setLayoutData(gd_text_Trichyeu);\n\t\tnew Label(composite_1, SWT.NONE);\n\n\t\tbtnThemDexuat = new Button(composite_1, SWT.NONE);\n\t\tbtnThemDexuat.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tInsert_dx = null;\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb != null\n\t\t\t\t\t\t\t&& ViewAndEdit_MODE_dsb.getMA_DOT_THUCHIEN_SUACHUA_BAODUONG() > 0) {\n\t\t\t\t\t\tInsert_dx = controler.getControl_DEXUAT().get_DEXUAT(ViewAndEdit_MODE_dsb);\n\t\t\t\t\t}\n\t\t\t\t\tif (Insert_dx != null) {\n\t\t\t\t\t\tTAPHOSO ths = controler.getControl_TAPHOSO().get_TAP_HO_SO(Insert_dx.getMA_TAPHOSO());\n\t\t\t\t\t\tTaphoso_View thsv = new Taphoso_View(shell, SWT.DIALOG_TRIM, user, ths, false);\n\t\t\t\t\t\tthsv.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tNhapDeXuat ndx = new NhapDeXuat(shell, SWT.DIALOG_TRIM, user);\n\t\t\t\t\t\tndx.open();\n\t\t\t\t\t\tInsert_dx = ndx.result;\n\t\t\t\t\t\tif (Insert_dx == null)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tfillDexuat(Insert_dx);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (ViewAndEdit_MODE_dsb == null)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tif (ViewAndEdit_MODE_dsb.getMA_DOT_THUCHIEN_SUACHUA_BAODUONG() <= 0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tint Ma_Quatrinh_Dexuat_thuchien = getMaQuantrinhDexuatThuchien(Insert_dx);\n\t\t\t\t\t\tif (Ma_Quatrinh_Dexuat_thuchien <= 0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tboolean ict = controler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG_Update_QUATRINH_DEXUAT_THUCHIEN(\n\t\t\t\t\t\t\t\t\t\tViewAndEdit_MODE_dsb, Ma_Quatrinh_Dexuat_thuchien);\n\t\t\t\t\t\tif (ict) {\n\t\t\t\t\t\t\tMessageBox m = new MessageBox(shell, SWT.ICON_WORKING);\n\t\t\t\t\t\t\tm.setText(\"Hoàn tất\");\n\t\t\t\t\t\t\tm.setMessage(\"Thêm Đề xuất Hoàn tất\");\n\t\t\t\t\t\t\tm.open();\n\t\t\t\t\t\t\tfillDexuat(Insert_dx);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (NullPointerException | SQLException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnThemDexuat.setImage(user.getIcondata().DexuatIcon);\n\t\tbtnThemDexuat.setLayoutData(new GridData(SWT.FILL, SWT.BOTTOM, false, false, 1, 1));\n\t\tbtnThemDexuat.setText(\"Thêm Hồ sơ\");\n\t\tsashForm_2.setWeights(new int[] { 1000, 618 });\n\n\t\tSashForm sashForm_1 = new SashForm(sashForm_3, SWT.NONE);\n\t\ttree_PTTS = new Tree(sashForm_1, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI);\n\t\ttree_PTTS.setLinesVisible(true);\n\t\ttree_PTTS.setHeaderVisible(true);\n\t\ttree_PTTS.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event arg0) {\n\t\t\t\tTreeItem[] til = tree_PTTS.getSelection();\n\t\t\t\tif (til.length > 0) {\n\t\t\t\t\tRow_PTTSthamgia_Baoduong pttg = (Row_PTTSthamgia_Baoduong) til[0].getData();\n\t\t\t\t\tsetHinhthuc_Baoduong(pttg.getHtbd());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttree_PTTS.addListener(SWT.SetData, new Listener() {\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tif (tree_PTTS.getItems().length > 0) {\n\t\t\t\t\tcombo_Loaiphuongtien.setEnabled(false);\n\t\t\t\t} else {\n\t\t\t\t\tcombo_Loaiphuongtien.setEnabled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tTreeColumn trclmnStt = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnStt.setWidth(50);\n\t\ttrclmnStt.setText(\"Stt\");\n\n\t\tTreeColumn trclmnTnMT = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnTnMT.setWidth(100);\n\t\ttrclmnTnMT.setText(\"Tên, mô tả\");\n\n\t\tTreeColumn trclmnHngSnXut = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnHngSnXut.setWidth(100);\n\t\ttrclmnHngSnXut.setText(\"Hãng sản xuất\");\n\n\t\tTreeColumn trclmnDngXe = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnDngXe.setWidth(100);\n\t\ttrclmnDngXe.setText(\"Dòng xe\");\n\n\t\tTreeColumn trclmnBinS = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnBinS.setWidth(100);\n\t\ttrclmnBinS.setText(\"Biển số\");\n\n\t\tTreeColumn trclmnNgySDng = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnNgySDng.setWidth(100);\n\t\ttrclmnNgySDng.setText(\"Ngày sử dụng\");\n\n\t\tTreeColumn trclmnMPhngTin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnMPhngTin.setWidth(90);\n\t\ttrclmnMPhngTin.setText(\"Mã PTTS\");\n\n\t\tMenu menu = new Menu(tree_PTTS);\n\t\ttree_PTTS.setMenu(menu);\n\n\t\tMenuItem mntmThmPhngTin = new MenuItem(menu, SWT.NONE);\n\t\tmntmThmPhngTin.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tThem_PTGT();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmntmThmPhngTin.setText(\"Thêm phương tiện tài sản\");\n\n\t\tMenuItem mntmXoa = new MenuItem(menu, SWT.NONE);\n\t\tmntmXoa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tdelete();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t\tmntmXoa.setText(\"Xóa\");\n\n\t\tTreeColumn trclmnThayNht = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayNht.setWidth(70);\n\t\ttrclmnThayNht.setText(\"Thay nhớt\");\n\n\t\tTreeColumn trclmnThayLcNht = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcNht.setWidth(100);\n\t\ttrclmnThayLcNht.setText(\"Thay lọc nhớt\");\n\n\t\tTreeColumn trclmnThayLcGi = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcGi.setWidth(100);\n\t\ttrclmnThayLcGi.setText(\"Thay lọc gió\");\n\n\t\tTreeColumn trclmnThayLcNhin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcNhin.setWidth(100);\n\t\ttrclmnThayLcNhin.setText(\"Thay lọc nhiên liệu\");\n\n\t\tTreeColumn trclmnThayDuPhanh = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuPhanh.setWidth(100);\n\t\ttrclmnThayDuPhanh.setText(\"Thay Dầu phanh - ly hợp\");\n\n\t\tTreeColumn trclmnThayDuHp = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuHp.setWidth(100);\n\t\ttrclmnThayDuHp.setText(\"Thay Dầu hộp số\");\n\n\t\tTreeColumn trclmnThayDuVi = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuVi.setWidth(100);\n\t\ttrclmnThayDuVi.setText(\"Thay Dầu vi sai\");\n\n\t\tTreeColumn trclmnLcGiGin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnLcGiGin.setWidth(100);\n\t\ttrclmnLcGiGin.setText(\"Lọc gió giàn lạnh\");\n\n\t\tTreeColumn trclmnThayDuTr = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuTr.setWidth(100);\n\t\ttrclmnThayDuTr.setText(\"Thay dầu trợ lực lái\");\n\n\t\tTreeColumn trclmnBoDngKhcs = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnBoDngKhcs.setWidth(100);\n\t\ttrclmnBoDngKhcs.setText(\"Bảo dưỡng khác\");\n\n\t\tExpandBar expandBar = new ExpandBar(sashForm_1, SWT.V_SCROLL);\n\t\texpandBar.setForeground(SWTResourceManager.getColor(SWT.COLOR_LIST_FOREGROUND));\n\n\t\tExpandItem xpndtmLoiHnhBo = new ExpandItem(expandBar, SWT.NONE);\n\t\txpndtmLoiHnhBo.setText(\"Loại hình bảo dưỡng\");\n\n\t\tComposite grpHnhThcBo = new Composite(expandBar, SWT.NONE);\n\t\txpndtmLoiHnhBo.setControl(grpHnhThcBo);\n\t\tgrpHnhThcBo.setLayout(new GridLayout(1, false));\n\n\t\tbtnDaudongco = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDaudongco.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDaudongco.setText(\"Dầu động cơ\");\n\n\t\tbtnLocdaudongco = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocdaudongco.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocdaudongco.setText(\"Lọc dầu động cơ\");\n\n\t\tbtnLocgio = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocgio.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocgio.setText(\"Lọc gió\");\n\n\t\tbtnLocnhienlieu = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocnhienlieu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocnhienlieu.setText(\"Lọc nhiên liệu\");\n\n\t\tbtnDauphanh_lyhop = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauphanh_lyhop.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauphanh_lyhop.setText(\"Dầu phanh và dầu ly hợp\");\n\n\t\tbtnDauhopso = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauhopso.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauhopso.setText(\"Dầu hộp số\");\n\n\t\tbtnDauvisai = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauvisai.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauvisai.setText(\"Dầu vi sai\");\n\n\t\tbtnLocgiogianlanh = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocgiogianlanh.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocgiogianlanh.setText(\"Lọc gió giàn lạnh\");\n\n\t\tbtnDautroluclai = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDautroluclai.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDautroluclai.setText(\"Dầu trợ lực lái\");\n\n\t\tbtnBaoduongkhac = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnBaoduongkhac.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnBaoduongkhac.setText(\"Bảo dưỡng khác\");\n\t\txpndtmLoiHnhBo.setHeight(xpndtmLoiHnhBo.getControl().computeSize(SWT.DEFAULT, SWT.DEFAULT).y);\n\n\t\tExpandItem xpndtmLinH = new ExpandItem(expandBar, SWT.NONE);\n\t\txpndtmLinH.setText(\"Liên hệ\");\n\n\t\tComposite composite_2 = new Composite(expandBar, SWT.NONE);\n\t\txpndtmLinH.setControl(composite_2);\n\t\tcomposite_2.setLayout(new GridLayout(2, false));\n\n\t\tLabel lblTnLinH = new Label(composite_2, SWT.NONE);\n\t\tlblTnLinH.setText(\"Tên liên hệ: \");\n\n\t\ttext_Tenlienhe = new Text(composite_2, SWT.BORDER);\n\t\ttext_Tenlienhe.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblGiiThiu = new Label(composite_2, SWT.NONE);\n\t\tGridData gd_lblGiiThiu = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblGiiThiu.verticalIndent = 3;\n\t\tlblGiiThiu.setLayoutData(gd_lblGiiThiu);\n\t\tlblGiiThiu.setText(\"Giới thiệu: \");\n\n\t\ttext_Gioithieu = new Text(composite_2, SWT.BORDER);\n\t\ttext_Gioithieu.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\n\t\tLabel lblLinH = new Label(composite_2, SWT.NONE);\n\t\tGridData gd_lblLinH = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblLinH.verticalIndent = 3;\n\t\tlblLinH.setLayoutData(gd_lblLinH);\n\t\tlblLinH.setText(\"Liên hệ: \");\n\n\t\ttext_Lienhe = new Text(composite_2, SWT.BORDER);\n\t\ttext_Lienhe.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\txpndtmLinH.setHeight(120);\n\t\tsashForm_1.setWeights(new int[] { 543, 205 });\n\t\tsashForm_3.setWeights(new int[] { 170, 228 });\n\t\tsashForm.setWeights(new int[] { 1000 });\n\n\t\tbtnLuu = new Button(shell, SWT.NONE);\n\t\tbtnLuu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (dataCreate != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTaoMoi_DotSuachua_Baoduong();\n\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tupdateField();\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate void TaoMoi_DotSuachua_Baoduong() throws SQLException {\n\t\t\t\tif (checkTextNotNULL()) {\n\t\t\t\t\tDOT_THUCHIEN_SUACHUA_BAODUONG dsb = getDOT_SUACHUA_BAODUONG();\n\t\t\t\t\tint key = controler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t.InsertDOT_THUCHIEN_SUACHUA_BAODUONG(dsb, null, null);\n\t\t\t\t\tdsb.setMA_DOT_THUCHIEN_SUACHUA_BAODUONG(key);\n\t\t\t\t\tif (key >= 0) {\n\t\t\t\t\t\tif (nsb != null)\n\t\t\t\t\t\t\tdsb.setMA_NGUONSUACHUA_BAODUONG(nsb.getMA_NGUONSUACHUA_BAODUONG());\n\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG().update_DOT_THUCHIEN_SUACHUA_BAODUONG(dsb);\n\t\t\t\t\t\tint Ma_Quatrinh_Dexuat_thuchien = getMaQuantrinhDexuatThuchien(Insert_dx);\n\t\t\t\t\t\tif (Ma_Quatrinh_Dexuat_thuchien > 0)\n\t\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG_Update_QUATRINH_DEXUAT_THUCHIEN(dsb,\n\t\t\t\t\t\t\t\t\t\t\tMa_Quatrinh_Dexuat_thuchien);\n\t\t\t\t\t\tTreeItem[] til = tree_PTTS.getItems();\n\t\t\t\t\t\tif (til.length > 0) {\n\t\t\t\t\t\t\tfor (TreeItem ti : til) {\n\t\t\t\t\t\t\t\tdsb.setMA_DOT_THUCHIEN_SUACHUA_BAODUONG(key);\n\t\t\t\t\t\t\t\tRow_PTTSthamgia_Baoduong rp = (Row_PTTSthamgia_Baoduong) ti.getData();\n\t\t\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG_TAISAN()\n\t\t\t\t\t\t\t\t\t\t.set_DOT_THUCHIEN_SUACHUA_TAISAN(dsb, rp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tshowMessage_Succes();\n\t\t\t\t\t\tshell.dispose();\n\t\t\t\t\t\tGiaoViec gv = new GiaoViec(user);\n\t\t\t\t\t\tgv.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowMessage_Fail();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tshowMessage_FillText();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate DOT_THUCHIEN_SUACHUA_BAODUONG getDOT_SUACHUA_BAODUONG() {\n\t\t\t\tDOT_THUCHIEN_SUACHUA_BAODUONG dsb = new DOT_THUCHIEN_SUACHUA_BAODUONG();\n\t\t\t\tdsb.setTEN_DOT_THUCHIEN_SUACHUA_BAODUONG(text_Tendot_Baoduong.getText());\n\t\t\t\tdsb.setLOAI_PHUONG_TIEN(\n\t\t\t\t\t\tInteger.valueOf((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText())));\n\t\t\t\tdsb.setSUACHUA_BAODUONG(fi.getInt_Baoduong());\n\t\t\t\tdsb.setMO_TA(text_Mota.getText());\n\t\t\t\treturn dsb;\n\t\t\t}\n\n\t\t});\n\t\tGridData gd_btnLu = new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1);\n\t\tgd_btnLu.widthHint = 75;\n\t\tbtnLuu.setLayoutData(gd_btnLu);\n\t\tbtnLuu.setText(\"Xong\");\n\n\t\tbtnDong = new Button(shell, SWT.NONE);\n\t\tbtnDong.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb != null) {\n\t\t\t\t\t\tupdateField();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// if (Insert_dx != null)\n\t\t\t\t\t\t// controler.getControl_DEXUAT().delete_DEXUAT(Insert_dx);\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tGridData gd_btnDong = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnDong.widthHint = 75;\n\t\tbtnDong.setLayoutData(gd_btnDong);\n\t\tbtnDong.setText(\"Đóng\");\n\t\tinit_loadMODE();\n\t\tinit_CreateMode();\n\t}", "@Listen(\"onClick =#asignarEspacio\")\n\tpublic void Planificacion() {\n\t\tString dir = \"gc/espacio/frm-asignar-espacio-recursos-catalogo.zul\";\n\t\tclearDivApp(dir);\n\t\t// Clients.evalJavaScript(\"document.title = 'ServiAldanas'; \");\n\t}", "private StringBuilder createHtml(Match match)\r\n {\r\n\r\n MatchEquipe bleu = match.getBleu();\r\n MatchEquipe gris = match.getGris();\r\n MatchEquipe noir = match.getNoir();\r\n\r\n StringBuilder html = new StringBuilder();\r\n\r\n html.append(\"<input id=\\\"buttonMatch\" + match.getIdMatch() + \"\\\" src=\\\" \" + PLUS_SRC\r\n + \"\\\" type=\\\"image\\\" onclick=\\\"toggleVisibility('Match\" + match.getIdMatch() + \"');\\\">\" + RN);\r\n\r\n html.append(\"<div id=\\\"Match\" + match.getIdMatch() + \"Plus\\\" style=\\\"visibility: visible; display: block;\\\">\"\r\n + RN);\r\n html.append(\"D�tail du match<br><br>\" + RN);\r\n html.append(\"<table class=\\\"tableau_match\\\" cellspacing=\\\"0\\\">\" + RN);\r\n html.append(\"<tbody><tr>\" + RN);\r\n html.append(\"<td class=\\\"premiere_colonne\\\">Match #\" + match.getIdMatch() + \"</td>\" + RN);\r\n\r\n html.append(\"<td colspan=\\\"7\\\" class=\\\"bleu\\\">\" + bleu.getNomEquipe() + \"</td>\" + RN);\r\n html.append(\"<td colspan=\\\"7\\\" class=\\\"gris\\\">\" + gris.getNomEquipe() + \"</td>\" + RN);\r\n html.append(\"<td colspan=\\\"7\\\" class=\\\"noir\\\">\" + noir.getNomEquipe() + \"</td>\" + RN);\r\n html.append(\"</tr>\" + RN);\r\n html.append(\"<tr>\" + RN);\r\n html.append(\"<td class=\\\"premiere_colonne\\\">P�riodes gagn�es</td>\" + RN);\r\n\r\n if(!bleu.isForfait())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + bleu.getNbPeriode() + \"</td>\" + RN);\r\n }\r\n else\r\n {\r\n html.append(\"<td colspan=\\\"7\\\"> Forfait </td>\" + RN);\r\n }\r\n\r\n if(!gris.isForfait())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + gris.getNbPeriode() + \"</td>\" + RN);\r\n }\r\n else\r\n {\r\n html.append(\"<td colspan=\\\"7\\\"> Forfait </td>\" + RN);\r\n }\r\n\r\n if(!noir.isForfait())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + noir.getNbPeriode() + \"</td>\" + RN);\r\n }\r\n else\r\n {\r\n html.append(\"<td colspan=\\\"7\\\"> Forfait </td>\" + RN);\r\n }\r\n html.append(\"</tr>\" + RN);\r\n html.append(\"</tbody></table>\" + RN);\r\n html.append(\"</div>\" + RN);\r\n\r\n html.append(\"<div id=\\\"Match\" + match.getIdMatch() + \"Moins\\\" style=\\\"display: none;\\\">\" + RN);\r\n\r\n html.append(\"Réduire le détail du match\" + RN);\r\n html.append(\"<br><br>\" + RN);\r\n\r\n html.append(\"<table class=\\\"tableau_match\\\" cellspacing=\\\"0\\\">\" + RN);\r\n html.append(\"<tbody><tr>\" + RN);\r\n html.append(\"<td class=\\\"premiere_colonne\\\"> Match #\" + idMatch.getText() + \"</td>\" + RN);\r\n html.append(\"<td colspan=\\\"7\\\" class=\\\"bleu\\\">\" + equipeBleu.getText() + \"</td>\" + RN);\r\n html.append(\"<td colspan=\\\"7\\\" class=\\\"gris\\\">\" + equipeGris.getText() + \"</td>\" + RN);\r\n html.append(\"<td colspan=\\\"7\\\" class=\\\"noir\\\">\" + equipeNoir.getText() + \"</td>\" + RN);\r\n html.append(\"</tr> \" + RN);\r\n html.append(\"<tr> \" + RN);\r\n html.append(\"<td class=\\\"premiere_colonne\\\">P�riode</td>\" + RN);\r\n\r\n if(forfaitBleu.isSelected())\r\n {\r\n html.append(\"<td class=\\\"p1\\\" rowspan=\\\"7\\\" colspan=\\\"7\\\">Forfait</td>\" + RN);\r\n }\r\n\r\n if(forfaitGris.isSelected())\r\n {\r\n html.append(\"<td class=\\\"p1\\\" rowspan=\\\"7\\\" colspan=\\\"7\\\">Forfait</td>\" + RN);\r\n }\r\n\r\n if(forfaitNoir.isSelected())\r\n {\r\n html.append(\"<td class=\\\"p1\\\" rowspan=\\\"7\\\" colspan=\\\"7\\\">Forfait</td>\" + RN);\r\n }\r\n\r\n if(!forfaitBleu.isSelected())\r\n {\r\n html.append(\"<td>1</td>\" + RN);\r\n html.append(\"<td>2</td>\" + RN);\r\n html.append(\"<td>3</td>\" + RN);\r\n html.append(\"<td>4</td>\" + RN);\r\n html.append(\"<td>5</td>\" + RN);\r\n html.append(\"<td>6</td>\" + RN);\r\n html.append(\"<td>7</td>\" + RN);\r\n }\r\n\r\n if(!forfaitGris.isSelected())\r\n {\r\n html.append(\"<td>1</td>\" + RN);\r\n html.append(\"<td>2</td>\" + RN);\r\n html.append(\"<td>3</td>\" + RN);\r\n html.append(\"<td>4</td>\" + RN);\r\n html.append(\"<td>5</td>\" + RN);\r\n html.append(\"<td>6</td>\" + RN);\r\n html.append(\"<td>7</td>\" + RN);\r\n }\r\n\r\n if(!forfaitNoir.isSelected())\r\n {\r\n html.append(\"<td>1</td>\" + RN);\r\n html.append(\"<td>2</td>\" + RN);\r\n html.append(\"<td>3</td>\" + RN);\r\n html.append(\"<td>4</td>\" + RN);\r\n html.append(\"<td>5</td>\" + RN);\r\n html.append(\"<td>6</td>\" + RN);\r\n html.append(\"<td>7</td>\" + RN);\r\n }\r\n\r\n html.append(\"</tr>\" + RN);\r\n html.append(\"<tr>\" + RN);\r\n\r\n html.append(\"<td class=\\\"premiere_colonne\\\">Pointage</td>\" + RN);\r\n\r\n // p�riodes Bleu\r\n if(!forfaitBleu.isSelected())\r\n {\r\n html.append(\"<td>\" + P1B.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P2B.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P3B.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P4B.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P5B.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P6B.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P7B.getText() + \"</td>\" + RN);\r\n }\r\n\r\n // P�riode Gris\r\n if(!forfaitGris.isSelected())\r\n {\r\n html.append(\"<td>\" + P1G.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P2G.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P3G.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P4G.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P5G.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P6G.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P7G.getText() + \"</td>\" + RN);\r\n }\r\n\r\n // P�riode noir\r\n if(!forfaitNoir.isSelected())\r\n {\r\n html.append(\"<td>\" + P1N.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P2N.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P3N.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P4N.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P5N.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P6N.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P7N.getText() + \"</td>\" + RN);\r\n }\r\n\r\n html.append(\"</tr>\" + RN);\r\n html.append(\"<tr>\" + RN);\r\n html.append(\"<td class=\\\"premiere_colonne\\\">Prolongation 1</td>\" + RN);\r\n\r\n if(!forfaitBleu.isSelected())\r\n {\r\n html.append(\"<td>\" + prol1B.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol2B.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol3B.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol4B.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol5B.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol6B.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol7B.getText() + \"</td>\" + RN);\r\n }\r\n\r\n if(!forfaitGris.isSelected())\r\n {\r\n html.append(\"<td>\" + prol1G.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol2G.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol3G.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol4G.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol5G.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol6G.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol7G.getText() + \"</td>\" + RN);\r\n }\r\n\r\n if(!forfaitNoir.isSelected())\r\n {\r\n html.append(\"<td>\" + prol1N.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol2N.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol3N.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol4N.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol5N.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol6N.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol7N.getText() + \"</td>\" + RN);\r\n }\r\n\r\n html.append(\"</tr>\" + RN);\r\n html.append(\"<tr>\" + RN);\r\n html.append(\"<td class=\\\"premiere_colonne\\\">P�riodes gagn�es</td>\" + RN);\r\n\r\n if(!forfaitBleu.isSelected())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + periodeGagneeBleu.getText() + \"</td>\" + RN);\r\n }\r\n if(!forfaitGris.isSelected())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + periodeGagneeGris.getText() + \"</td>\" + RN);\r\n }\r\n if(!forfaitNoir.isSelected())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + periodeGagneeNoir.getText() + \"</td>\" + RN);\r\n }\r\n\r\n html.append(\"</tr>\" + RN);\r\n html.append(\"<tr>\" + RN);\r\n html.append(\"<td class=\\\"premiere_colonne\\\">Prolongation 2�me position</td>\" + RN);\r\n\r\n if(!forfaitBleu.isSelected())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + prol22B.getText() + \"</td>\" + RN);\r\n }\r\n if(!forfaitGris.isSelected())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + prol22G.getText() + \"</td>\" + RN);\r\n }\r\n if(!forfaitNoir.isSelected())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + prol22N.getText() + \"</td>\" + RN);\r\n }\r\n\r\n html.append(\"</tr>\" + RN);\r\n html.append(\"<tr>\" + RN);\r\n html.append(\"<td class=\\\"premiere_colonne\\\">Esprit sportif</td>\" + RN);\r\n\r\n if(!forfaitBleu.isSelected())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + espritSportifBleu.getText() + \"</td>\" + RN);\r\n }\r\n if(!forfaitGris.isSelected())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + espritSportifGris.getText() + \"</td>\" + RN);\r\n }\r\n if(!forfaitNoir.isSelected())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + espritSportifNoir.getText() + \"</td>\" + RN);\r\n }\r\n\r\n html.append(\"</tr>\" + RN);\r\n html.append(\"<tr>\" + RN);\r\n html.append(\"<td class=\\\"premiere_colonne\\\">Points championnats</td>\" + RN);\r\n if(!forfaitBleu.isSelected())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + pointBleu.getText() + \"</td>\" + RN);\r\n }\r\n if(!forfaitGris.isSelected())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + pointGris.getText() + \"</td>\" + RN);\r\n }\r\n if(!forfaitNoir.isSelected())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + pointNoir.getText() + \"</td>\" + RN);\r\n }\r\n\r\n html.append(\" </tr>\" + RN);\r\n html.append(\"</tbody>\" + RN);\r\n html.append(\"</table>\" + RN);\r\n\r\n html.append(\"<strong>Arbitres</strong> : \" + arbitreChef.getText() + \" & \" + arbitreAdjoint.getText() + RN);\r\n\r\n return html.append(\"</div>\" + RN);\r\n }", "@Override\n\tpublic void execute() {\n\t\t\n\t\tSectiune book = new Sectiune(\"S1\");\n\t\tbook.elemente.add(new Paragraf(\"P1\"));\n\t\tbook.elemente.add(new Paragraf(\"P2\"));\n\t\t\n\t\tDocumentManager.getInstance().setElement(book);\n\t\t\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tDISEDAO dao = DISEDAOImpl.getInstancia();\n\t\tArrayList<Emoji> emojis = new ArrayList<>();\n\t\temojis.addAll(dao.leerTodosEmojis());\n\t\t\n\t\tString[] traducciones = new String[emojis.size()];\n\t\tfor (int i = 0; i < traducciones.length; i++) {\n\t\t\ttraducciones[i] = emojis.get(i).getTraducciones().get(0).getTraduccion();\n\t\t}\n\t\tString textoATraducir = request.getParameter(\"escrito\");\n\t\t//request.getSession().getAttribute(\"textoATraducir\");\n\t\tString[] parts = textoATraducir.split(\"\\\\s++\");\n//\t\tString[] parts1 = new String[parts.length];\n//\t\tparts1 = parts;\n//\t\t//quitamos tildes, interrogaciones, etc\n//\t\tfor(int x=0; x < parts.length; x++){\n//\t\t\tparts[x] = normalizar(parts[x]);\n//\t\t}\n\t\tString textoFinal=\"\";\n\t\t//String textoFinal=\"<p>\";\n\t\tString palabraI = null;\n\t\tint saltaNPalabras = 0;\n\t\tboolean flag=false;\n\t\tfor (int i = 0; i < parts.length; i++) {\n\t\t\tpalabraI = parts[i];\n\t\t\t\n\t\t\tif (saltaNPalabras > 0){\n\t\t\t\tsaltaNPalabras--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tString[] partsTraduccion = null;\n\t\t\tfor (int j = 0; j < traducciones.length; j++) {\n\t\t\t\tpartsTraduccion = traducciones[j].split(\" \");\n\t\t\t\tfor(int x=0; x < partsTraduccion.length; x++){\n\t\t\t\t\tpartsTraduccion[x] = normalizar(partsTraduccion[x]);\n\t\t\t\t}\n\t\t\t\tif (partsTraduccion.length > 1){\n\t\t\t\t\tif (normalizar(palabraI).equals(partsTraduccion[0]) ){\n\t\t\t\t\t\tint size = partsTraduccion.length;\n\t\t\t\t\t\tif (i+size <= parts.length){\n\t\t\t\t\t\t\tfor (int k = 1; k < size; k++) {\n\t\t\t\t\t\t\t\tif (normalizar(parts[i+k]).equals(partsTraduccion[k])){\n\t\t\t\t\t\t\t\t\tif(k==(size-1)){\n\t\t\t\t\t\t\t\t\t\tsaltaNPalabras=size-1;\n\t\t\t\t\t\t\t\t\t\tflag=true;\n\t\t\t\t\t\t\t\t\t\ttextoFinal += \"<img src='\"+emojis.get(j).getImagen() +\"' width='50px' height='50px'/>\";\n\t\t\t\t\t\t\t\t\t\t//textoFinal += \"</p><img src='\"+emojis.get(j).getImagen() +\"' width='30px' height='30px'/><p>\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(normalizar(palabraI).equals(normalizar(traducciones[j]))){\n\t\t\t\t\tflag=true;\n\t\t\t\t\ttextoFinal += \"<img src='\"+emojis.get(j).getImagen() +\"' width='50px' height='50px'/>\";\n\t\t\t\t\t//textoFinal += \"</p><img src='\"+emojis.get(j).getImagen() +\"' width='30px' height='30px'/><p>\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif (flag){\n\t\t\t\tflag=false;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ttextoFinal += \" \" + parts[i];\n\t\t}\n\t\t//textoFinal += \"</p>\";\n\t\t\n\t\trequest.getSession().setAttribute(\"textoFinal\", textoFinal);\n\t\tresponse.sendRedirect(\"TraducirVista.jsp\");\n\t}", "private void inicialize() {\n\t\t\n\t\t/**\n\t\t * Labels e textField of the page:\n\t\t * Nome\n\t\t * Descrição\n\t\t */\n\n\t\tJLabel lblNome = new JLabel(\"Nome\");\n\t\tlblNome.setBounds(5, 48, 86, 28);\n\t\tlblNome.setFont(new Font(\"Dubai Light\", Font.PLAIN, 13));\n\t\tcontentPanel.add(lblNome);\n\t\t\n\t\tJLabel lblDescricao = new JLabel(\"Descrição\");\n\t\tlblDescricao.setBounds(5, 117, 86, 51);\n\t\tlblDescricao.setFont(new Font(\"Dubai Light\", Font.PLAIN, 13));\n\t\tcontentPanel.add(lblDescricao);\n\t\t\n\t\ttextFieldNome = new JTextField();\n\t\ttextFieldNome.setBounds(103, 45, 290, 35);\n\t\ttextFieldNome.setFont(new Font(\"Dubai Light\", Font.PLAIN, 13));\n\t\ttextFieldNome.setColumns(10);\n\t\tcontentPanel.add(textFieldNome);\n\t\t\n\t\ttextFieldDescricao = new JTextArea();\n\t\ttextFieldDescricao.setBackground(Color.WHITE);\n\t\ttextFieldDescricao.setLineWrap(true);\n\t\ttextFieldDescricao.setBounds(101, 118, 290, 193);\n\t\ttextFieldDescricao.setFont(new Font(\"Dubai Light\", Font.PLAIN, 13));\n\t\ttextFieldDescricao.setColumns(10);\n\t\tcontentPanel.add(textFieldDescricao);\n\n\t\t/**\n\t\t * Confirmation panel\n\t\t * Confirmation button\n\t\t * Cancellation button\n\t\t */\n\n\t\tpainelConfirmacaoSetup();\n\t}", "public native final String html()/*-{\n\t\treturn this.html();\n\t}-*/;", "public void asetaTeksti(){\n }", "public String getHtml() {\n return html;\n }", "protected String elaboraHead() {\n String testo = VUOTA;\n String testoIncluso = VUOTA;\n\n // Avviso visibile solo in modifica\n testo += elaboraAvvisoScrittura();\n\n // Posiziona il TOC\n testoIncluso += elaboraTOC();\n\n // Posiziona il ritorno\n testoIncluso += elaboraRitorno();\n\n // Posizione il template di avviso\n testoIncluso += elaboraTemplateAvviso();\n\n // Ritorno ed avviso vanno (eventualmente) protetti con 'include'\n testo += elaboraInclude(testoIncluso);\n\n // Posiziona l'incipit della pagina\n testo += A_CAPO;\n testo += elaboraIncipit();\n\n // valore di ritorno\n return testo;\n }", "@Override\r\n public void Story(){\r\n super.Story();\r\n System.out.println(\"=======================================================================================\");\r\n System.out.println(\"|| Arya harus bergegas untuk menyelamatkan seluruh warga. Dia tidak tau posisi warga ||\");\r\n System.out.println(\"|| yang harus diselamatkan ada pada ruangan yang mana. ||\");\r\n System.out.println(\"=======================================================================================\");\r\n }", "public static String html(HomologousCluster homolog, Session session) {\n\t\tString name = homolog.name();\n\t\tString file = session.subDir(\"clusterGraphs\") + name + \".txt\";\n\t\tString contents;\n\t\ttry {\n\t\t\tcontents = Files.readFile(file);\n\t\t} catch (IOException e) {\n\t\t\tcontents = \"<div class='clusterGraph'>No representation</div class='clusterGraph'>\";\n\t\t}\n\t\treturn contents;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\n\t\tresp.setContentType(\"text/html\");\n\n\t\tPrintWriter out=resp.getWriter();\n\n\t\tfor(int i=1;i<=5;i++) { // 괄호 () 안에 내용을 5번 반복\n\n\t\t\tfor(int j=1;j<=i;j++) {\n\n\t\t\t\tout.print(\"*\"); // alt + up , down \n\n\t\t\t}\n\n\t\t\tout.println(\"<br>\");\n\t\t}\n\t\tout.println(\"<html>\");\n\t\tout.println(\"<head>\");\n\t\tout.println(\"</head>\");\n\t\tout.println(\"<body>\");\n\t\tout.println(\"tmalak\");\n\t\tout.println(\"<h1>\");\n\t\tfor(int i=0;i<2;i++) {\n\n\t\t\tint n= (int) (Math.random()*6);\n\n\t\t\tSystem.out.println(n+1);\n\t\t\tout.println(\"<img src=dice\"+(n+1)+\".jpg>\");\n\t\t}\n\t\tout.println(\"</h1>\");\n\t\tout.println(\"</body>\");\n\t\tout.println(\"</html>\");\n\t\tout.println(\"Hello,Sevlet\");\n\t}", "private String elaboraRitorno() {\n String testo = VUOTA;\n String titoloPaginaMadre = getTitoloPaginaMadre();\n\n if (usaHeadRitorno) {\n if (text.isValid(titoloPaginaMadre)) {\n testo += \"Torna a|\" + titoloPaginaMadre;\n testo = LibWiki.setGraffe(testo);\n }// fine del blocco if\n }// fine del blocco if\n\n return testo;\n }", "private String htmlV(final TableFacade tableFacade,\n\t\t\tfinal HttpServletRequest request) {\n\t\ttableFacade.setColumnProperties(\"codigoEmpleado\", \"tDescBase\", \"ascId\",\n\t\t\t\t\"tDescPlanilla\", \"encontrado\");\n\t\tTable table = tableFacade.getTable();\n\t\t// ---- Titulo de la tabla\n\t\ttable.setCaptionKey(\"tbl.compPlanilla.caption\");\n\n\t\tRow row = table.getRow();\n\t\tColumn nombreColumna = row.getColumn(\"codigoEmpleado\");\n\t\tnombreColumna.setTitleKey(\"tbl.compPlanilla.codigoEmpleado\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property,\n\t\t\t\t\t\trowcount);\n\t\t\t\tCompPlanilla compPlanilla = (CompPlanilla) item;\n\t\t\t\treturn compPlanilla.getCodigoEmpleado();\n\t\t\t}\n\t\t});\n\n\t\tnombreColumna = row.getColumn(\"tDescBase\");\n\t\tnombreColumna.setTitleKey(\"tbl.compPlanilla.tDescBase\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property,\n\t\t\t\t\t\trowcount);\n\t\t\t\tCompPlanilla compPlanilla = (CompPlanilla) item;\n\t\t\t\treturn Format.formatDinero(compPlanilla.getTDescBase());\n\t\t\t}\n\t\t});\n\n\t\tnombreColumna = row.getColumn(\"ascId\");\n\t\tnombreColumna.setTitleKey(\"tbl.compPlanilla.comparacion\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property,\n\t\t\t\t\t\trowcount);\n\t\t\t\tCompPlanilla compPlanilla = (CompPlanilla) item;\n\t\t\t\tString valor = \"\";\n\t\t\t\tif (compPlanilla.getTDescBase() > compPlanilla\n\t\t\t\t\t\t.getTDescPlanilla()) {\n\t\t\t\t\tvalor = \" > \";\n\t\t\t\t}\n\t\t\t\tif (compPlanilla.getTDescBase() < compPlanilla\n\t\t\t\t\t\t.getTDescPlanilla()) {\n\t\t\t\t\tvalor = \" < \";\n\t\t\t\t}\n\t\t\t\tif (compPlanilla.getTDescBase() == compPlanilla\n\t\t\t\t\t\t.getTDescPlanilla()) {\n\t\t\t\t\tvalor = \" = \";\n\t\t\t\t}\n\t\t\t\treturn valor;\n\t\t\t}\n\t\t});\n\n\t\tnombreColumna = row.getColumn(\"tDescPlanilla\");\n\t\tnombreColumna.setTitleKey(\"tbl.compPlanilla.tDescPlanilla\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property,\n\t\t\t\t\t\trowcount);\n\t\t\t\tCompPlanilla compPlanilla = (CompPlanilla) item;\n\t\t\t\treturn Format.formatDinero(compPlanilla.getTDescPlanilla());\n\t\t\t}\n\t\t});\n\n\t\tnombreColumna = row.getColumn(\"encontrado\");\n\t\tnombreColumna.setTitleKey(\"tbl.compPlanilla.encontrado\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property,\n\t\t\t\t\t\trowcount);\n\t\t\t\tCompPlanilla compPlanilla = (CompPlanilla) item;\n\t\t\t\tString valor = \"\";\n\t\t\t\tif (compPlanilla.getEncontrado() == 1\n\t\t\t\t\t\t|| compPlanilla.getEncontrado() == 2) {\n\t\t\t\t\tvalor = \"Si\";\n\t\t\t\t} else {\n\t\t\t\t\tvalor = \"No\";\n\t\t\t\t}\n\t\t\t\treturn valor;\n\t\t\t}\n\t\t});\n\n\t\treturn tableFacade.render();\n\t}", "public static void main(String[] args) {\n\t\tint i = 0;\r\n\t\tif( i == 0) {\r\n\t\t\tSystem.out.println(\"HTML_Template\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Italic String\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Underline, select, UL & OL\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Textbox, Button\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Textbox, Button value Special Characters\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Textbox, Blank\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Textbox, Special Chars\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Radio & Checkbox\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Blank Commit Msg \");\r\n\t\t\tSystem.out.println(\"HTML_Template : Image Check New\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Kovair To Jira\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Kovair To Jira at 11.07AM\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Kovair To Jira at 11.07AM SyncBack\");\r\n\t\t\tSystem.out.println(\"HTML_Template : TP-134\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Any Random Key\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Test Flowqqq\");\r\n\t\t}\r\n\t}" ]
[ "0.6155096", "0.61360425", "0.6079765", "0.59029186", "0.5876489", "0.58683777", "0.57771957", "0.57701874", "0.5692928", "0.5671451", "0.567019", "0.56152225", "0.5590044", "0.5588682", "0.5577215", "0.55628234", "0.55459493", "0.55363685", "0.5523661", "0.551695", "0.5500116", "0.54899627", "0.54872864", "0.54633754", "0.5461321", "0.5456885", "0.5452486", "0.5448992", "0.54362017", "0.54354477", "0.5433408", "0.5406198", "0.5404546", "0.53981775", "0.5395641", "0.5390635", "0.53676313", "0.53447014", "0.5331105", "0.53245854", "0.53229374", "0.53221506", "0.5311235", "0.53043616", "0.5280256", "0.5279341", "0.52776045", "0.52689767", "0.52661127", "0.526582", "0.5261684", "0.52539927", "0.52518284", "0.52470607", "0.5239275", "0.5232587", "0.5226945", "0.52120906", "0.5211582", "0.52098256", "0.51890594", "0.51877004", "0.5185756", "0.51851577", "0.51756686", "0.51624674", "0.51554143", "0.5152995", "0.51462096", "0.51456493", "0.51366127", "0.5134186", "0.51317006", "0.51313967", "0.51284945", "0.51254314", "0.5114082", "0.51138335", "0.51063794", "0.510465", "0.5095951", "0.50952727", "0.50852513", "0.5083195", "0.5082691", "0.5082017", "0.50779915", "0.50730616", "0.5069481", "0.50546944", "0.5047938", "0.5046385", "0.50455666", "0.50441897", "0.5044053", "0.50417167", "0.5041413", "0.5041014", "0.503432", "0.50324744", "0.50316846" ]
0.0
-1
Force the column auto resize to apply at the Sheet.
public final void overrideAutoResizeColumn(final boolean isAutoResize) { overrideAutoResizeColumn = isAutoResize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected final void applyColumnWidthToSheet() {\n\t\tif (!autoResizeColumn) {\n\t\t\tfor (Map.Entry<Integer, Integer> column : columnWidthMap.entrySet()) {\n\t\t\t\tgetSheet().setColumnWidth(column.getKey(), column.getValue() * 256);\n\t\t\t}\n\t\t}\n\t}", "public void resizeColumns() {\n }", "public void autoSizeColumns() {\n\t\tfor (TableColumn column : tableViewer.getTable().getColumns()) {\n\t\t\tcolumn.pack();\n\t\t}\n\t}", "public void setColumnSize() {\n \t\tTableColumn column = null;\n \t\tfor (int i = 0; i < model.getColumnCount(); i++) {\n \t\t\tcolumn = getColumnModel().getColumn(i);\n \t\t\tcolumn.sizeWidthToFit();\n \t\t}\n \t}", "private void adjustColumnsWidth() {\r\n // Add a listener to resize the column to the full width of the table\r\n ControlAdapter resizer = new ControlAdapter() {\r\n @Override\r\n public void controlResized(ControlEvent e) {\r\n Rectangle r = mTablePackages.getClientArea();\r\n mColumnPackages.setWidth(r.width);\r\n }\r\n };\r\n mTablePackages.addControlListener(resizer);\r\n resizer.controlResized(null);\r\n }", "public void forceResize() {\n ResizeUtils.updateSize(this, actions);\n }", "private static void tableObjAutofit() {\n\t\ttableObj.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);\r\n\t\tfor (int column = 0; column < tableObj.getColumnCount(); column++) {\r\n\t\t\tfinal TableColumn tableObjColumn = tableObj.getColumnModel().getColumn(column);\r\n\r\n\t\t\tint preferredWidth = tableObjColumn.getMinWidth();\r\n\t\t\tfinal int maxWidth = tableObjColumn.getMaxWidth();\r\n\r\n\t\t\tfor (int row = 0; row < tableObj.getRowCount(); row++) {\r\n\t\t\t\tfinal TableCellRenderer cellRenderer = tableObj.getCellRenderer(row, column);\r\n\t\t\t\tfinal Component c = tableObj.prepareRenderer(cellRenderer, row, column);\r\n\t\t\t\tfinal int width = c.getPreferredSize().width + tableObj.getIntercellSpacing().width;\r\n\t\t\t\tpreferredWidth = Math.max(preferredWidth, width);\r\n\r\n\t\t\t\t// We've exceeded the maximum width, no need to check other rows\r\n\t\t\t\tif (preferredWidth >= maxWidth) {\r\n\t\t\t\t\tpreferredWidth = maxWidth;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\ttableObjColumn.setPreferredWidth(preferredWidth);\r\n\t\t}\r\n\t}", "private void actionBiggerCells() {\n layoutPanel.changeCellSize(true);\n }", "private void resize() {\n }", "public void setCanResizeColumns(Boolean canResizeColumns) {\r\n setAttribute(\"canResizeColumns\", canResizeColumns, true);\r\n }", "private void hideColumn() {\n remindersTable.getColumnModel().getColumn(0).setMinWidth(0);\n remindersTable.getColumnModel().getColumn(0).setMaxWidth(0);\n remindersTable.getColumnModel().getColumn(0).setWidth(0);\n }", "public Boolean getCanResizeColumns() {\r\n return getAttributeAsBoolean(\"canResizeColumns\");\r\n }", "public void autoResizeAllAppsCells() {\n int textHeight = Utilities.calculateTextHeight(allAppsIconTextSizePx);\n int topBottomPadding = textHeight;\n allAppsCellHeightPx = allAppsIconSizePx + allAppsIconDrawablePaddingPx\n + textHeight + (topBottomPadding * 2);\n }", "@Override\r\n\tpublic void resize() {\n\t\t\r\n\t}", "public static void largeurColoneMax(DefaultTableColumnModel dtcm, int numColumn, int largeur) {\n dtcm.getColumn(numColumn).setMinWidth(largeur);\n dtcm.getColumn(numColumn).setMaxWidth(largeur);\n dtcm.getColumn(numColumn).setPreferredWidth(largeur);\n }", "void setMyWidth()\n\t{\n\t\tfor(int i =0 ; i<editRow.getChildCount();i++)\n\t\t{\n\t\t\t\n\t\t\t((EditText)editRow.getChildAt(i)).setMinWidth(colWidth[i]);\n\t\t\t((EditText)editRow.getChildAt(i)).setMaxWidth(colWidth[i]);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}", "private void actionSmallerCells() {\n layoutPanel.changeCellSize(false);\n }", "private void table_resized()\n {\n int ne = pt_.num_of_visible_rows();\n int max = vsb_.getModel().getMaximum();\n \n int val = vsb_.getModel().getValue();\n val = Math.min(val, max - ne);\n\n vsb_.getModel().setValue(val);\n vsb_.getModel().setExtent(ne);\n\n // Readjust value, extent of the horizontal scroll bar\n max = max_horz_scroll_;\n ne = Math.min(this.pt_.as_component().getWidth(), max);\n\n val = hsb_.getModel().getValue();\n val = Math.min(val, max - ne);\n\n// Misc.log.println(\"max=\" + max + \", ne=\" + ne + \", val=\" + val);\n// Misc.log.flush();\n\n hsb_.getModel().setExtent(ne); \n hsb_.getModel().setValue(val);\n }", "public void setColumnSizes() {\n Set<JTable> tables = columnSizes.keySet();\n\n for (JTable current : tables) {\n TableColumnModel tcm = current.getColumnModel();\n\n if (tcm != null) {\n int columnCount = tcm.getColumnCount();\n int[] tableColumnSizes = columnSizes.get(current);\n\n for (int i = 0; i < tableColumnSizes.length; i++) {\n if (i >= columnCount) {\n break;\n }\n\n TableColumn column = tcm.getColumn(i);\n\n if (column != null) {\n column.setPreferredWidth(tableColumnSizes[i]);\n }\n }\n\n current.setColumnModel(tcm);\n }\n }\n }", "@Override\n\t\t\tpublic void controlResized(ControlEvent e) {\n\t\t\t\tGC gc = new GC(table);\n\t\t\t\tPoint extent = gc.textExtent(\"X\");//$NON-NLS-1$\n//\t\t\t\tGridData gd = new GridData();\n//\t\t\t\tgd.widthHint = width * extent.x;\n//\t\t\t\tcontrol.setLayoutData(gd);\n\n\t\t\t\ttable.getColumn(index).setWidth(width * extent.x);\n\t\t\t}", "void resize() {\n }", "@Override\n\tpublic void resize() {\n\t\t\n\t}", "public void autoSize() {\n\t\t//no op\n\t}", "@Override\n\t\t\tpublic void controlResized(ControlEvent e) {\n\t\t\t\tGC gc = new GC(tw.getControl());\n\t\t\t\tPoint extent = gc.textExtent(\"X\");//$NON-NLS-1$\n//\t\t\t\tGridData gd = new GridData();\n//\t\t\t\tgd.widthHint = width * extent.x;\n//\t\t\t\tcontrol.setLayoutData(gd);\n\t\t\t\t\n\t\t\t\tint w = width * extent.x;\n\n\t\t\t\ttable.getColumn(collunmIndex).setWidth(w);\n\t\t\t}", "@Override\n protected boolean isResizable() {\n return true;\n\n }", "public void updateColumnSizes() {\n Set<JTable> tables = columnSizes.keySet();\n\n for (JTable current : tables) {\n int[] tableColumnSizes = columnSizes.get(current);\n TableColumnModel tcm = current.getColumnModel();\n tableColumnSizes = new int[current.getColumnCount()];\n columnSizes.put(current, tableColumnSizes);\n\n for (int i = 0; i < current.getModel().getColumnCount(); i++) {\n int width = tcm.getColumn(i).getWidth();\n tableColumnSizes[i] = width;\n }\n }\n }", "@Override\n public void componentResized(final ComponentEvent e) {\n buttonWidth = position.isHorizontal() ? 150 : (parent.getWidth() / cells);\n relayout();\n }", "@Override\r\n protected boolean isResizable() {\r\n return true;\r\n }", "@Override\r\n protected boolean isResizable() {\r\n return true;\r\n }", "private void tablesice() {\n //Modificamos los tamaños de las columnas.\n tablastock.getColumnModel().getColumn(0).setMaxWidth(70);\n tablastock.getColumnModel().getColumn(1).setMaxWidth(70);\n tablastock.getColumnModel().getColumn(2).setMinWidth(100);\n tablastock.getColumnModel().getColumn(3).setMaxWidth(70);\n tablastock.getColumnModel().getColumn(4).setMaxWidth(70);\n tablastock.getColumnModel().getColumn(5).setMaxWidth(70);\n }", "void setColWidth(String SQLString, JTable Table)\n {\n TableColumn column = null;\n int[] sz = new int[14];\n sz[0]=100;sz[1]=60;sz[2]=120;sz[3]=100;sz[4]=100;sz[5]=70;sz[6]=70;sz[7]=70;\n sz[8]=120;sz[9]=70;sz[10]=50;sz[11]=50;sz[12]=70;sz[13]=200;\n for (int j = 0; j < TotalCol; ++j)\n {\n column = Table.getColumnModel().getColumn(j);\n column.setPreferredWidth(sz[j]);\n }\n }", "protected abstract void resize();", "public static void resizeColumnWidth(JTable table) {\n final TableColumnModel columnModel = table.getColumnModel();\n for (int column = 0; column < table.getColumnCount(); column++) {\n int width = 15; // Min width\n for (int row = 0; row < table.getRowCount(); row++) {\n TableCellRenderer renderer = table.getCellRenderer(row, column);\n Component comp = table.prepareRenderer(renderer, row, column);\n width = Math.max(comp.getPreferredSize().width + 1, width);\n }\n if (width > 300) {\n width = 300;\n }\n columnModel.getColumn(column).setPreferredWidth(width);\n }\n }", "private void adjustTableColumnWidths() {\n\t\tint tableWidth = jTable.getPreferredSize().width;\n\t\tint columnCount = jTable.getColumnModel().getColumnCount();\n\t\tint headerWidth = (int) (tableWidth * 0.4);\n\t\tjTable.getColumnModel().getColumn(0).setPreferredWidth(headerWidth);\n\t\tfor (int i = 1; i < columnCount; i++) {\n\t\t\tint columnWidth = (tableWidth - headerWidth) / (columnCount - 1);\n\t\t\tjTable.getColumnModel().getColumn(i).setPreferredWidth(columnWidth);\n\t\t}\n\t}", "private static void setSize(JTable table, int column, int size) {\n table.getColumnModel().getColumn(column).setMaxWidth(size);\n table.getColumnModel().getColumn(column).setMinWidth(size);\n table.getColumnModel().getColumn(column).setWidth(size);\n table.getColumnModel().getColumn(column).setPreferredWidth(size);\n }", "public void resizeGrid() {\n resizeGrid(getWidth(),getHeight());\n }", "public void resize() {\n\t\tsp.doLayout();\n\t}", "@Override\n public void resize(int arg0, int arg1) {\n \n }", "public void setColumnWidths(int[] ar) {\n TableColumnModel model = getColumnModel();\n //setAutoResizeMode(AUTO_RESIZE_LAST_COLUMN);\n for (int i = 0; i < ar.length; ++i)\n model.getColumn(i).setPreferredWidth(ar[i]);\n }", "public void setColumnSize(CIVLTable tbl, int size, int col) {\n\t\tTableColumnModel tcm = tbl.getColumnModel();\n\t\ttcm.getColumn(col).setMaxWidth(size);\n\t\ttcm.getColumn(col).setMinWidth(size);\n\t}", "@Override\r\n public boolean isResizable() {\r\n return false;\r\n }", "protected void adjustForNumColumns(int numColumns) {\n GridData gd = (GridData) textField.getLayoutData();\n gd.horizontalSpan = numColumns - 1;\n // We only grab excess space if we have to\n // If another field editor has more columns then\n // we assume it is setting the width.\n gd.grabExcessHorizontalSpace = gd.horizontalSpan == 1;\n //gd.grabExcessVerticalSpace = true;\n //gd.heightHint = 200;\n }", "@Override\n public void resize(int width, int height) {\n \n }", "public void setColumnSize(int column, int width) {\r\n\t\tif (table == null) {\r\n\t\t\tSystem.out.println(\"You must set the column size after displaying the table\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\ttable.getColumnModel().getColumn(column).setPreferredWidth(width);\r\n\t}", "private void objectWidth(TableColumn col,int min,int max){\r\n col.setMinWidth(min); //Establece el valor minimo\r\n col.setMaxWidth(max); //Establece el valor maximo\r\n }", "@Override\n\tpublic void resize(double width, double height) {\n\t\t\n\t\tsuper.resize(width, height); \n\t\tdb_board.resize(width, height);\n\t}", "@Override\r\n\tpublic void resize(int arg0, int arg1) {\n\t}", "@Override\n\t\tpublic void resize(int arg0, int arg1) {\n\t\t \n\t\t}", "private void increaseGridSize() {\r\n columnConstraints.setPercentWidth(100.0 / gridSize);\r\n rowConstraints.setPercentHeight(100.0 / gridSize);\r\n grid.getColumnConstraints().add(columnConstraints);\r\n grid.getRowConstraints().add(rowConstraints);\r\n }", "@Override\n\tpublic void resized() {\n\t}", "void setResizable(boolean resizable);", "@Override\n\tpublic void resize(int arg0, int arg1) {\n\t}", "private void initColumnSizes(JTable table) {\r\n \t MatchersControlPanelTableModel model = (MatchersControlPanelTableModel)table.getModel();\r\n TableColumn column = null;\r\n Component comp = null;\r\n TableCellRenderer headerRenderer = table.getTableHeader().getDefaultRenderer();\r\n int width = 0;\r\n \r\n for (int i = 0; i < model.getColumnCount(); i++) {\r\n column = table.getColumnModel().getColumn(i);\r\n comp = headerRenderer.getTableCellRendererComponent(\r\n null, column.getHeaderValue(),\r\n false, false, 0, 0);\r\n width = 0;\r\n \tif(i == MatchersControlPanelTableModel.INPUTMATCHERS || i == MatchersControlPanelTableModel.NAME){\r\n \t\twidth = 175;\r\n \t}\r\n \telse{\r\n column = table.getColumnModel().getColumn(i);\r\n comp = headerRenderer.getTableCellRendererComponent(\r\n null, column.getHeaderValue(),\r\n false, false, 0, 0);\r\n width = comp.getPreferredSize().width;\r\n \t}\r\n \tcolumn.setPreferredWidth(width);\r\n \tcolumn.setMinWidth(width);\r\n \tcolumn.setMaxWidth(width);\r\n }\r\n \t/* THIS WAS MADE TO SET THE WIDTH AUTOMATICALLY BUT THERE WAS A BUG\r\n \t * \r\n MyTableModel model = (MyTableModel)table.getModel();\r\n TableColumn column = null;\r\n Component comp = null;\r\n int headerWidth = 0;\r\n int cellWidth = 0;\r\n Object[] longValues = model.defaultValues;\r\n TableCellRenderer headerRenderer = table.getTableHeader().getDefaultRenderer();\r\n \r\n for (int i = 0; i < model.getColumnCount(); i++) {\r\n column = table.getColumnModel().getColumn(i);\r\n\r\n comp = headerRenderer.getTableCellRendererComponent(\r\n null, column.getHeaderValue(),\r\n false, false, 0, 0);\r\n headerWidth = comp.getPreferredSize().width;\r\n if(model.getRowCount() > 0) {//consider also the dimension of the elements rendered in the first row, and then take the max between header and row cells\r\n \tcomp = table.getDefaultRenderer(model.getColumnClass(i)).\r\n getTableCellRendererComponent( table, longValues[i],\r\n false, false, 0, i);\r\n \t\t\t\tcellWidth = comp.getPreferredSize().width;\r\n\r\n \t\t\t\t System.out.println(\"Initializing width of column \"\r\n \t\t\t\t + i + \". \"\r\n \t\t\t\t + \"headerWidth = \" + headerWidth\r\n \t\t\t\t + \"; cellWidth = \" + cellWidth);\r\n \t\t\t\r\n \t\t\t\t\r\n \t\t\t\t\r\n \t\t\t\tcolumn.setPreferredWidth(Math.max(headerWidth, cellWidth));\r\n \t\t\t\tcolumn.setMinWidth(Math.max(headerWidth, cellWidth));\r\n \t\t\t\tcolumn.setMaxWidth(Math.max(headerWidth, cellWidth));\r\n }\r\n else {//Else just consider the header width\r\n \tcolumn.setPreferredWidth(headerWidth);\r\n \tcolumn.setMinWidth(headerWidth);\r\n \tcolumn.setMaxWidth(headerWidth);\r\n \t\r\n }\r\n }\r\n */\r\n\r\n }", "public void setColumnWidths(int[] widthes){\n\t\tif (widthes.length > tableViewer.getTable().getColumnCount()) {\n\t\t\tsetColumnsCount(widthes.length);\n\t\t}\n\t\tfor (int i = 0; i < widthes.length; i++) {\n\t\t\ttableViewer.getTable().getColumn(i).setWidth(widthes[i]);\n\t\t}\n\t}", "public void setMaximizing() {\r\n maximizing = true;\r\n }", "public void setCanMinimizeColumns(Boolean canMinimizeColumns) {\r\n setAttribute(\"canMinimizeColumns\", canMinimizeColumns, true);\r\n }", "@Override\r\n\tpublic void resize(int width, int height) {\n\r\n\t}", "@Override\r\n\tpublic void resize(int width, int height) {\n\r\n\t}", "@Override\r\n\tpublic void resize(int width, int height) {\n\r\n\t}", "@Override\n public void resize(int width, int height) {\n\n }", "@Override\n\tpublic void resize(int arg0, int arg1) {\n\t\t\n\t}", "@Override\n\tpublic void resize(int arg0, int arg1) {\n\t\t\n\t}", "@Override\n public void componentResized(java.awt.event.ComponentEvent evt) {\n resizeGrid();\n }", "void setWidthHeight() {\n\t\tsetWidthHeight(getNcols() * grid().gridW, getNvisibleRows() * grid().gridH);\n\t}", "@Override\n public void resize(int width, int height) {\n }", "protected void hideColumn(TableColumn column) {\n \t\t\r\n \t\tcolumn.setData(COLUMN_WIDTH_SAVED_KEY_NAME, column.getWidth()); // save the current width so that we could restore it when the column is shown again\r\n \r\n \t\tcolumn.setResizable(false);\r\n \t\tcolumn.setWidth(0);\r\n \t}", "@Override\r\n\tpublic void resize(int width, int height) {\n\t}", "@Override\r\n\tpublic void resize(int width, int height) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resize(int width, int height) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resize(int width, int height) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resize(int width, int height) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resize(int width, int height) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resize(int width, int height) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resize(int width, int height) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resize(int width, int height) {\n\t\t\r\n\t}", "void setFitWidth(short width);", "@Test (retryAnalyzer = Retry.class, groups={\"Secure - DataCourier\"}, alwaysRun=true)\n\tpublic void restoreColumnWidths() throws Exception {\n\t\t\n\t\tExtentTest test = ExtentTestManager.getTest();\n\t\tRemoteWebDriver driver = DriverFactory.getInstance().getDriver();\n\t\t\n\t\t// Log in to Secure\n\t\tsecure.login(driver, user, StoredVariables.getpassword().get());\n\t\t\n\t\t// Go to Data Courier\n\t\tsecure.goToDataCourier(driver);\n\t\t\n\t\tThread.sleep(2000);\n\t\t\n\t\t// Set element\n\t\tWebElement e = driver.findElement(By.cssSelector(\"th[idx='2']\"));\n\t\t\n\t\t// Get the element id\n\t\tString id = e.getAttribute(\"id\");\n\t\t\n\t\t// Get column width for the borrower column before\n\t\tString styleBefore = e.getAttribute(\"style\");\n\t\t\n\t\t// Expand column width for the borrower column\n\t\tJavascriptExecutor js = (JavascriptExecutor) driver;\n\t\tjs.executeScript(\"document.getElementById('\" + id + \"').setAttribute('style', 'width: 200px;')\");\n\t\t\n\t\t// Get the new column width for the borrower column\n\t\tString styleAfter = e.getAttribute(\"style\");\n\t\t\n\t\t// Verify the column width got changed\n\t\tAssert.assertTrue(!styleBefore.equals(styleAfter), \"The column width did not change\");\n\t\t\n\t\t// Click Restore Column Widths button\n\t\tperform.click(driver, SDataCourier.restoreColumnWidths_btn(driver));\n\t\t\n\t\t// Wait for overlay to be hidden\n\t\tperform.waitForOverlayToBeHidden(driver);\n\t\t\n\t\t// Refresh the element\n\t\te = driver.findElement(By.cssSelector(\"th[idx='2']\"));\n\t\t\n\t\t// Get the new column width for the borrower column\n\t\tString styleAfterRestore = e.getAttribute(\"style\");\n\t\t\n\t\t// Verify column width returns to original width\n\t\tAssert.assertTrue(styleBefore.equals(styleAfterRestore), \"The column did not return to the original width\");\n\t \n\t\t// Log test\n\t\ttest.log(LogStatus.INFO, \"data courier\", \"Tested the Restore Column Widths button\");\n\t\t\n\t}", "@Override\r\n public void resize(int width, int height) {\r\n\r\n }", "@Override\n\tpublic void resize(float width, float height) {\n\t}", "public void setTableToDefault() {\n TableColumnModel tcm = table.getColumnModel();\n\n for (int i = 0; i < msbQTM.getColumnCount(); i++) {\n tcm.getColumn(i).setPreferredWidth(-1);\n }\n\n table.setColumnModel(tcm);\n }", "@Override\n\tpublic void resize(int width, int height) {\n\t}", "@Override\n\tpublic void resize(int width, int height) {\n\t}", "@Override\n\tpublic void resize(int width, int height) {\n\t}", "@Override\n\tpublic void resize(int width, int height) {\n\t}", "private void ocultarFila(JTable tbl) {\n tbl.getColumnModel().getColumn(0).setMaxWidth(0);\n tbl.getColumnModel().getColumn(0).setMinWidth(0);\n tbl.getColumnModel().getColumn(0).setPreferredWidth(0);\n }", "@objid (\"7f09cb82-1dec-11e2-8cad-001ec947c8cc\")\n public boolean allowsResize() {\n return true;\n }", "@Override\r\n\tpublic void updateNbCol() {\r\n\t\treturn;\r\n\t}", "@Override\n public void resize(int width, int height) {\n\n }", "@Override\n\tpublic void resize(int width, int height) {\n\n\t}", "@Override\n\tpublic void resize(int width, int height) {\n\n\t}", "@Override\n\tpublic void resize(int width, int height) {\n\n\t}", "@Override\n\tpublic void resize(int width, int height) {\n\n\t}", "@Override\n\tpublic void resize(int width, int height) {\n\n\t}", "@Override\n\tpublic void resize(int width, int height) {\n\n\t}", "@Override\n\tpublic void resize(int width, int height) {\n\n\t}", "@Override\n\tpublic void resize(int width, int height) {\n\n\t}", "@Override\n\tpublic void resize(int width, int height) {\n\n\t}", "@Override\n\tpublic void resize(int width, int height) {\n\n\t}", "@Override\n public void resize()\n {\n if (this.resizer != null)\n {\n this.resizer.apply(this.area);\n }\n\n if (this.children != null)\n {\n this.children.resize();\n }\n\n if (this.resizer != null)\n {\n this.resizer.postApply(this.area);\n }\n }", "@Override\r\n\tpublic void columnMarginChanged(ChangeEvent e) {\n\t\t\r\n\t}" ]
[ "0.8049652", "0.73934954", "0.71978366", "0.66341037", "0.6523818", "0.63861585", "0.6358308", "0.6156525", "0.6019955", "0.59705377", "0.596323", "0.5784073", "0.57640487", "0.57522327", "0.57279366", "0.5719214", "0.5715891", "0.5691572", "0.5689168", "0.56736004", "0.5642099", "0.56252795", "0.556048", "0.5559049", "0.55442005", "0.5531901", "0.5524929", "0.55143553", "0.55143553", "0.55135196", "0.550258", "0.5502412", "0.5491431", "0.54912466", "0.54637545", "0.544246", "0.54370916", "0.5404561", "0.53769255", "0.5368084", "0.53316563", "0.53310716", "0.53235614", "0.53221625", "0.5317076", "0.5307606", "0.528527", "0.52786034", "0.5258083", "0.52478325", "0.5234373", "0.52263945", "0.52252626", "0.521772", "0.52017426", "0.51990664", "0.51729053", "0.51729053", "0.51729053", "0.51707214", "0.51703405", "0.51703405", "0.5165482", "0.5159911", "0.51443446", "0.5112308", "0.5107273", "0.5104597", "0.5104597", "0.5104597", "0.5104597", "0.5104597", "0.5104597", "0.5104597", "0.5104597", "0.51044095", "0.51027125", "0.5100366", "0.50936127", "0.50719243", "0.5066274", "0.5066274", "0.5066274", "0.5066274", "0.50629985", "0.50628006", "0.5031523", "0.50196505", "0.50099087", "0.50099087", "0.50099087", "0.50099087", "0.50099087", "0.50099087", "0.50099087", "0.50099087", "0.50099087", "0.50099087", "0.50081336", "0.49846506" ]
0.70506203
3
Apply to sheet the column width defined.
protected final void applyColumnWidthToSheet() { if (!autoResizeColumn) { for (Map.Entry<Integer, Integer> column : columnWidthMap.entrySet()) { getSheet().setColumnWidth(column.getKey(), column.getValue() * 256); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void adjustColumnsWidth() {\r\n // Add a listener to resize the column to the full width of the table\r\n ControlAdapter resizer = new ControlAdapter() {\r\n @Override\r\n public void controlResized(ControlEvent e) {\r\n Rectangle r = mTablePackages.getClientArea();\r\n mColumnPackages.setWidth(r.width);\r\n }\r\n };\r\n mTablePackages.addControlListener(resizer);\r\n resizer.controlResized(null);\r\n }", "void setMyWidth()\n\t{\n\t\tfor(int i =0 ; i<editRow.getChildCount();i++)\n\t\t{\n\t\t\t\n\t\t\t((EditText)editRow.getChildAt(i)).setMinWidth(colWidth[i]);\n\t\t\t((EditText)editRow.getChildAt(i)).setMaxWidth(colWidth[i]);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}", "public int setColumns(int width) {\n\n Display display = getActivity().getWindowManager().getDefaultDisplay();\n DisplayMetrics outMetrics = new DisplayMetrics();\n display.getMetrics(outMetrics);\n\n float density = getResources().getDisplayMetrics().density;\n float dpWidth = outMetrics.widthPixels / density;\n\n return Math.round(dpWidth / width);\n }", "public void setColumnSize() {\n \t\tTableColumn column = null;\n \t\tfor (int i = 0; i < model.getColumnCount(); i++) {\n \t\t\tcolumn = getColumnModel().getColumn(i);\n \t\t\tcolumn.sizeWidthToFit();\n \t\t}\n \t}", "public void resizeColumns() {\n }", "public void setColumnWidths(int[] widthes){\n\t\tif (widthes.length > tableViewer.getTable().getColumnCount()) {\n\t\t\tsetColumnsCount(widthes.length);\n\t\t}\n\t\tfor (int i = 0; i < widthes.length; i++) {\n\t\t\ttableViewer.getTable().getColumn(i).setWidth(widthes[i]);\n\t\t}\n\t}", "private int getColWidth(int i) {\n int ret = this.colWidth[i];\n return ret;\n }", "private Map<Integer, Integer> parseColumnWidths(UIWorksheet worksheet)\r\n {\r\n Map<Integer, Integer> columnWidths = new HashMap<Integer, Integer>();\r\n CSSParser parser = new CSSParser();\r\n\r\n StyleMap styleMap = parser.getCascadedStyleMap(worksheet);\r\n for (Map.Entry<String, Object> entry : styleMap.entrySet())\r\n {\r\n String key = entry.getKey();\r\n if (key.startsWith(CSSNames.COLUMN_WIDTHS))\r\n {\r\n String columnIndexString = key.substring(CSSNames.COLUMN_WIDTHS.length());\r\n int columnIndex = Integer.parseInt(columnIndexString);\r\n columnWidths.put(columnIndex, (Integer) entry.getValue());\r\n }\r\n }\r\n return columnWidths;\r\n }", "void setColWidth(String SQLString, JTable Table)\n {\n TableColumn column = null;\n int[] sz = new int[14];\n sz[0]=100;sz[1]=60;sz[2]=120;sz[3]=100;sz[4]=100;sz[5]=70;sz[6]=70;sz[7]=70;\n sz[8]=120;sz[9]=70;sz[10]=50;sz[11]=50;sz[12]=70;sz[13]=200;\n for (int j = 0; j < TotalCol; ++j)\n {\n column = Table.getColumnModel().getColumn(j);\n column.setPreferredWidth(sz[j]);\n }\n }", "private void objectWidth(TableColumn col,int min,int max){\r\n col.setMinWidth(min); //Establece el valor minimo\r\n col.setMaxWidth(max); //Establece el valor maximo\r\n }", "public void autoSizeColumns() {\n\t\tfor (TableColumn column : tableViewer.getTable().getColumns()) {\n\t\t\tcolumn.pack();\n\t\t}\n\t}", "public void setColumnWidths(int[] ar) {\n TableColumnModel model = getColumnModel();\n //setAutoResizeMode(AUTO_RESIZE_LAST_COLUMN);\n for (int i = 0; i < ar.length; ++i)\n model.getColumn(i).setPreferredWidth(ar[i]);\n }", "protected void adjustForNumColumns(int numColumns) {\n GridData gd = (GridData) textField.getLayoutData();\n gd.horizontalSpan = numColumns - 1;\n // We only grab excess space if we have to\n // If another field editor has more columns then\n // we assume it is setting the width.\n gd.grabExcessHorizontalSpace = gd.horizontalSpan == 1;\n //gd.grabExcessVerticalSpace = true;\n //gd.heightHint = 200;\n }", "public int getColumnWidth() {\n return COLUMN_WIDTH;\n }", "private void initColumnSizes(JTable table) {\r\n \t MatchersControlPanelTableModel model = (MatchersControlPanelTableModel)table.getModel();\r\n TableColumn column = null;\r\n Component comp = null;\r\n TableCellRenderer headerRenderer = table.getTableHeader().getDefaultRenderer();\r\n int width = 0;\r\n \r\n for (int i = 0; i < model.getColumnCount(); i++) {\r\n column = table.getColumnModel().getColumn(i);\r\n comp = headerRenderer.getTableCellRendererComponent(\r\n null, column.getHeaderValue(),\r\n false, false, 0, 0);\r\n width = 0;\r\n \tif(i == MatchersControlPanelTableModel.INPUTMATCHERS || i == MatchersControlPanelTableModel.NAME){\r\n \t\twidth = 175;\r\n \t}\r\n \telse{\r\n column = table.getColumnModel().getColumn(i);\r\n comp = headerRenderer.getTableCellRendererComponent(\r\n null, column.getHeaderValue(),\r\n false, false, 0, 0);\r\n width = comp.getPreferredSize().width;\r\n \t}\r\n \tcolumn.setPreferredWidth(width);\r\n \tcolumn.setMinWidth(width);\r\n \tcolumn.setMaxWidth(width);\r\n }\r\n \t/* THIS WAS MADE TO SET THE WIDTH AUTOMATICALLY BUT THERE WAS A BUG\r\n \t * \r\n MyTableModel model = (MyTableModel)table.getModel();\r\n TableColumn column = null;\r\n Component comp = null;\r\n int headerWidth = 0;\r\n int cellWidth = 0;\r\n Object[] longValues = model.defaultValues;\r\n TableCellRenderer headerRenderer = table.getTableHeader().getDefaultRenderer();\r\n \r\n for (int i = 0; i < model.getColumnCount(); i++) {\r\n column = table.getColumnModel().getColumn(i);\r\n\r\n comp = headerRenderer.getTableCellRendererComponent(\r\n null, column.getHeaderValue(),\r\n false, false, 0, 0);\r\n headerWidth = comp.getPreferredSize().width;\r\n if(model.getRowCount() > 0) {//consider also the dimension of the elements rendered in the first row, and then take the max between header and row cells\r\n \tcomp = table.getDefaultRenderer(model.getColumnClass(i)).\r\n getTableCellRendererComponent( table, longValues[i],\r\n false, false, 0, i);\r\n \t\t\t\tcellWidth = comp.getPreferredSize().width;\r\n\r\n \t\t\t\t System.out.println(\"Initializing width of column \"\r\n \t\t\t\t + i + \". \"\r\n \t\t\t\t + \"headerWidth = \" + headerWidth\r\n \t\t\t\t + \"; cellWidth = \" + cellWidth);\r\n \t\t\t\r\n \t\t\t\t\r\n \t\t\t\t\r\n \t\t\t\tcolumn.setPreferredWidth(Math.max(headerWidth, cellWidth));\r\n \t\t\t\tcolumn.setMinWidth(Math.max(headerWidth, cellWidth));\r\n \t\t\t\tcolumn.setMaxWidth(Math.max(headerWidth, cellWidth));\r\n }\r\n else {//Else just consider the header width\r\n \tcolumn.setPreferredWidth(headerWidth);\r\n \tcolumn.setMinWidth(headerWidth);\r\n \tcolumn.setMaxWidth(headerWidth);\r\n \t\r\n }\r\n }\r\n */\r\n\r\n }", "private int minWidth()\n {\n return firstColumn + 1 + cursor.length();\n }", "@Test (retryAnalyzer = Retry.class, groups={\"Secure - DataCourier\"}, alwaysRun=true)\n\tpublic void restoreColumnWidths() throws Exception {\n\t\t\n\t\tExtentTest test = ExtentTestManager.getTest();\n\t\tRemoteWebDriver driver = DriverFactory.getInstance().getDriver();\n\t\t\n\t\t// Log in to Secure\n\t\tsecure.login(driver, user, StoredVariables.getpassword().get());\n\t\t\n\t\t// Go to Data Courier\n\t\tsecure.goToDataCourier(driver);\n\t\t\n\t\tThread.sleep(2000);\n\t\t\n\t\t// Set element\n\t\tWebElement e = driver.findElement(By.cssSelector(\"th[idx='2']\"));\n\t\t\n\t\t// Get the element id\n\t\tString id = e.getAttribute(\"id\");\n\t\t\n\t\t// Get column width for the borrower column before\n\t\tString styleBefore = e.getAttribute(\"style\");\n\t\t\n\t\t// Expand column width for the borrower column\n\t\tJavascriptExecutor js = (JavascriptExecutor) driver;\n\t\tjs.executeScript(\"document.getElementById('\" + id + \"').setAttribute('style', 'width: 200px;')\");\n\t\t\n\t\t// Get the new column width for the borrower column\n\t\tString styleAfter = e.getAttribute(\"style\");\n\t\t\n\t\t// Verify the column width got changed\n\t\tAssert.assertTrue(!styleBefore.equals(styleAfter), \"The column width did not change\");\n\t\t\n\t\t// Click Restore Column Widths button\n\t\tperform.click(driver, SDataCourier.restoreColumnWidths_btn(driver));\n\t\t\n\t\t// Wait for overlay to be hidden\n\t\tperform.waitForOverlayToBeHidden(driver);\n\t\t\n\t\t// Refresh the element\n\t\te = driver.findElement(By.cssSelector(\"th[idx='2']\"));\n\t\t\n\t\t// Get the new column width for the borrower column\n\t\tString styleAfterRestore = e.getAttribute(\"style\");\n\t\t\n\t\t// Verify column width returns to original width\n\t\tAssert.assertTrue(styleBefore.equals(styleAfterRestore), \"The column did not return to the original width\");\n\t \n\t\t// Log test\n\t\ttest.log(LogStatus.INFO, \"data courier\", \"Tested the Restore Column Widths button\");\n\t\t\n\t}", "private void calculateWidthPerDay() {\n if (drawConfig.timeColumnWidth == 0) {\n drawConfig.timeColumnWidth = drawConfig.timeTextWidth + config.timeColumnPadding * 2;\n }\n // Calculate the available width for each day\n drawConfig.widthPerDay = getWidth()\n - drawConfig.timeColumnWidth\n - config.columnGap * (config.numberOfVisibleDays - 1);\n drawConfig.widthPerDay = drawConfig.widthPerDay / config.numberOfVisibleDays;\n }", "private void setInitialWidths(Table inputTable, int colNum) {\n this.colWidth = new int[colNum];\n for (int i = 0; i < colNum; i++) {\n this.colWidth[i] = inputTable.getColumnName(i).length();\n }\n }", "public void adjustWidth() {\n int width = Short.MIN_VALUE;\n\n for (final TextBox tb : getAllTextBox()) {\n final int tbWidth = tb.getTextDim().width;\n\n if (tbWidth > width) width = tbWidth; // get the longer content\n }\n\n if (fullWidthStereotype > width) width = fullWidthStereotype;\n\n Change.push(new BufferBounds(this));\n\n setBounds(new Rectangle(\n bounds.x, bounds.y, width + GraphicView.getGridSize() + 15, bounds.height));\n\n Change.push(new BufferBounds(this));\n }", "private void adjustTableColumnWidths() {\n\t\tint tableWidth = jTable.getPreferredSize().width;\n\t\tint columnCount = jTable.getColumnModel().getColumnCount();\n\t\tint headerWidth = (int) (tableWidth * 0.4);\n\t\tjTable.getColumnModel().getColumn(0).setPreferredWidth(headerWidth);\n\t\tfor (int i = 1; i < columnCount; i++) {\n\t\t\tint columnWidth = (tableWidth - headerWidth) / (columnCount - 1);\n\t\t\tjTable.getColumnModel().getColumn(i).setPreferredWidth(columnWidth);\n\t\t}\n\t}", "void setFitWidth(short width);", "static int setColumns(int screenWidth) {\n COLUMNS = ((screenWidth / 20) + 1) * 3;\n return (COLUMNS);\n }", "public void setWidth(int w) {\n this.width = w;\n }", "public void setWidth(int w)\n {\n width = w;\n }", "public void updateColumnSizes() {\n Set<JTable> tables = columnSizes.keySet();\n\n for (JTable current : tables) {\n int[] tableColumnSizes = columnSizes.get(current);\n TableColumnModel tcm = current.getColumnModel();\n tableColumnSizes = new int[current.getColumnCount()];\n columnSizes.put(current, tableColumnSizes);\n\n for (int i = 0; i < current.getModel().getColumnCount(); i++) {\n int width = tcm.getColumn(i).getWidth();\n tableColumnSizes[i] = width;\n }\n }\n }", "public void updateWidth() {\n\t\t// Update width\n\t\tif (this.getFamily() != null) {\n\t\t\tthis.getFamily().updateFamilyWidth();\n\t\t\tthis.setWidth(this.getFamily().getWidth()\n\t\t\t\t\t+ this.getFamily().getNextWidth());\n\t\t} else {\n\t\t\tthis.setWidth(1);\n\t\t}\n\t}", "public int getColumnWidth() {\r\n\t\tint columnWidth = getElementColumn1().getOffsetWidth();\r\n\t\treturn columnWidth;\r\n\t}", "public void setWidth(int w){\n \twidth = w;\n }", "public static void resizeColumnWidth(JTable table) {\n final TableColumnModel columnModel = table.getColumnModel();\n for (int column = 0; column < table.getColumnCount(); column++) {\n int width = 15; // Min width\n for (int row = 0; row < table.getRowCount(); row++) {\n TableCellRenderer renderer = table.getCellRenderer(row, column);\n Component comp = table.prepareRenderer(renderer, row, column);\n width = Math.max(comp.getPreferredSize().width + 1, width);\n }\n if (width > 300) {\n width = 300;\n }\n columnModel.getColumn(column).setPreferredWidth(width);\n }\n }", "private void tablesice() {\n //Modificamos los tamaños de las columnas.\n tablastock.getColumnModel().getColumn(0).setMaxWidth(70);\n tablastock.getColumnModel().getColumn(1).setMaxWidth(70);\n tablastock.getColumnModel().getColumn(2).setMinWidth(100);\n tablastock.getColumnModel().getColumn(3).setMaxWidth(70);\n tablastock.getColumnModel().getColumn(4).setMaxWidth(70);\n tablastock.getColumnModel().getColumn(5).setMaxWidth(70);\n }", "private static void tableObjAutofit() {\n\t\ttableObj.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);\r\n\t\tfor (int column = 0; column < tableObj.getColumnCount(); column++) {\r\n\t\t\tfinal TableColumn tableObjColumn = tableObj.getColumnModel().getColumn(column);\r\n\r\n\t\t\tint preferredWidth = tableObjColumn.getMinWidth();\r\n\t\t\tfinal int maxWidth = tableObjColumn.getMaxWidth();\r\n\r\n\t\t\tfor (int row = 0; row < tableObj.getRowCount(); row++) {\r\n\t\t\t\tfinal TableCellRenderer cellRenderer = tableObj.getCellRenderer(row, column);\r\n\t\t\t\tfinal Component c = tableObj.prepareRenderer(cellRenderer, row, column);\r\n\t\t\t\tfinal int width = c.getPreferredSize().width + tableObj.getIntercellSpacing().width;\r\n\t\t\t\tpreferredWidth = Math.max(preferredWidth, width);\r\n\r\n\t\t\t\t// We've exceeded the maximum width, no need to check other rows\r\n\t\t\t\tif (preferredWidth >= maxWidth) {\r\n\t\t\t\t\tpreferredWidth = maxWidth;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\ttableObjColumn.setPreferredWidth(preferredWidth);\r\n\t\t}\r\n\t}", "public void setWidth(int w) {\n this.W = w;\n }", "@Override\r\n\tpublic void setWidth(int width) {\n\t\t\r\n\t}", "protected int getColumnWidth() {\n if (columnWidth == 0) {\n FontMetrics metrics = getFontMetrics(getFont());\n columnWidth = metrics.charWidth('m');\n }\n return columnWidth;\n }", "private void setWidth() {\n\n for (int i = 0; i < historicList.size(); i++) {\n RelativeLayout layout = layoutsList.get(i);\n\n ViewGroup.LayoutParams params = layout.getLayoutParams();\n int position = historicList.get(i).position;\n if (position > 4) {\n position = 4;\n } else if (position < 0) {\n position = 0;\n }\n WidthScreen(position, params);\n }\n }", "public void setWidth(int w) {\n\t\twidth = w;\n\t}", "private void initColumnSizes(JTable table) {\n MyTableModel model = (MyTableModel)table.getModel();\n TableColumn column = null;\n Component comp = null;\n int headerWidth = 0;\n int cellWidth = 0;\n Object[] longValues = model.longValues;\n TableCellRenderer headerRenderer =\n table.getTableHeader().getDefaultRenderer();\n\n for (int i = 0; i < 1; i++) {\n column = table.getColumnModel().getColumn(i);\n\n comp = headerRenderer.getTableCellRendererComponent(\n null, column.getHeaderValue(),\n false, false, 0, 0);\n headerWidth = comp.getPreferredSize().width;\n\n comp = table.getDefaultRenderer(model.getColumnClass(i)).\n getTableCellRendererComponent(\n table, longValues[i],\n false, false, 0, i);\n cellWidth = comp.getPreferredSize().width;\n\n if (DEBUG) {\n System.out.println(\"Initializing width of column \"\n + i + \". \"\n + \"headerWidth = \" + headerWidth\n + \"; cellWidth = \" + cellWidth);\n }\n\n column.setPreferredWidth(Math.max(headerWidth, cellWidth));\n }\n }", "public void setWidth(double w)\n { this.widthDefault = w; }", "@Override\n\tpublic void setWidth(float width) {\n\n\t}", "public void setWidth(double w) {\n\t\t\twidth.set(clamp(w, WIDTH_MIN, WIDTH_MAX));\n\t\t}", "private int getActualWidth(boolean withColor){\n return 5+2*cellWidth + (withColor?2*7:0);\n }", "public void setWidth(int newWidth) {\n roomWidth = newWidth;\n }", "IColumnBinding addColumn(SpecialBinding columnType, int width);", "void setWidth(int width);", "void setWidth(int width);", "public void setWidth(int width) {\n\t\tw = width;\n\t}", "public void xsetWidth(org.apache.xmlbeans.XmlString width)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(WIDTH$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(WIDTH$20);\n }\n target.set(width);\n }\n }", "public void saveColumnWidths(final TreetableUIManager treetableUIManaher);", "public void setColumnWidth(JTable table) {\r\n TableColumnModel model = table.getColumnModel();\r\n for (int i = 0; i < model.getColumnCount(); i++)\r\n TableWidth.sizeColumn(i, table);\r\n }", "public void setColumnSizes() {\n Set<JTable> tables = columnSizes.keySet();\n\n for (JTable current : tables) {\n TableColumnModel tcm = current.getColumnModel();\n\n if (tcm != null) {\n int columnCount = tcm.getColumnCount();\n int[] tableColumnSizes = columnSizes.get(current);\n\n for (int i = 0; i < tableColumnSizes.length; i++) {\n if (i >= columnCount) {\n break;\n }\n\n TableColumn column = tcm.getColumn(i);\n\n if (column != null) {\n column.setPreferredWidth(tableColumnSizes[i]);\n }\n }\n\n current.setColumnModel(tcm);\n }\n }\n }", "public void setCellWidth(final int the_width) {\r\n\t\tcellWidth = the_width;\r\n\t\tsetPreferredSize(new Dimension(myColumns * cellWidth, myRows\r\n\t\t\t\t* cellHeight));\r\n\t}", "@Override\n int width();", "public void buildColumnStyle( IColumn column, StringBuffer styleBuffer )\n \t{\n \t\tbuildSize( styleBuffer, HTMLTags.ATTR_WIDTH, column.getWidth( ) );\n \t}", "private int getMaxColumnElementWidth(int columnIndex, int headerWidth) {\n int maxWidth = headerWidth;\n TableColumn column = table.getColumnModel().getColumn(columnIndex);\n TableCellRenderer cellRenderer = column.getCellRenderer();\n if (cellRenderer == null) {\n cellRenderer = new DefaultTableCellRenderer();\n }\n for (int row = 0; row < table.getModel().getRowCount(); row++) {\n Component rendererComponent = cellRenderer.getTableCellRendererComponent(table,\n table.getModel().getValueAt(row, columnIndex), false, false, row, columnIndex);\n\n double valueWidth = rendererComponent.getPreferredSize().getWidth();\n maxWidth = (int) Math.max(maxWidth, valueWidth);\n }\n return maxWidth;\n }", "private void setMaxWidths(Table inputTable) {\n int colsz = inputTable.getColumnSize();\n setInitialWidths(inputTable, colsz);\n List<String> recordKeys = inputTable.getKeyList();\n for (String entry : recordKeys) {\n for (int i = 0; i < colsz; i++) {\n this.colWidth[i] = \n Math.max(\n this.colWidth[i], \n inputTable.select(entry).getField(i).length()\n );\n }\n }\n }", "@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }", "@Override\r\n public void setWidth(String width) {\n }", "public void setWidth(int width) {\n this.width = width;\n }", "public void setWitdh(int newValue)\n {\n width = newValue;\n }", "@Override\n @SimpleProperty()\n public void Width(int width) {\n if (width == LENGTH_PREFERRED) {\n width = LENGTH_FILL_PARENT;\n }\n super.Width(width);\n }", "public void setWidth(int width)\n {\n this.width = width;\n }", "public void setColumnSize(int column, int width) {\r\n\t\tif (table == null) {\r\n\t\t\tSystem.out.println(\"You must set the column size after displaying the table\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\ttable.getColumnModel().getColumn(column).setPreferredWidth(width);\r\n\t}", "public void setWidth(double width) {\n this.width = width;\n }", "@Override\n\t\tpublic void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop,\n\t\t\t\tint oldRight, int oldBottom) {\n\t\t\t\n\t\t\tSystem.out.println(\"*\" + index +\"-\"+(right-left));\n\t\t\tcolWidth[index]=right-left;\n\t\t\n\t\t\tsetMyWidth();\n\t\t}", "public void setColumnSize(CIVLTable tbl, int size, int col) {\n\t\tTableColumnModel tcm = tbl.getColumnModel();\n\t\ttcm.getColumn(col).setMaxWidth(size);\n\t\ttcm.getColumn(col).setMinWidth(size);\n\t}", "public void setWidth(java.lang.String width)\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(WIDTH$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(WIDTH$20);\n }\n target.setStringValue(width);\n }\n }", "public void setWidth(double width) {\r\n this.width = width;\r\n }", "public void setWidth(double width) {\n this.width = width;\n }", "public void setWidth(final int theWidth) {\n myWidth = theWidth;\n }", "public static void buildColumnMaxLength(int[] width, String[] value) {\n for (int i = 0; i < value.length; i++)\n width[i] = Math.max(width[i], value[i].length());\n }", "public static void largeurColoneMax(DefaultTableColumnModel dtcm, int numColumn, int largeur) {\n dtcm.getColumn(numColumn).setMinWidth(largeur);\n dtcm.getColumn(numColumn).setMaxWidth(largeur);\n dtcm.getColumn(numColumn).setPreferredWidth(largeur);\n }", "public void setWidth( int width ) {\n\t\t_width = width;\n\t}", "@Override\n\tpublic void setWidth(int newWidth) {\n\t\tint width = (int) (newWidth * 0.5);\n\t\tif (width > mainContainer.getMinWidth()) {\n\t\t\tscreenWidth = width;\n\t\t\tmainContainer.setPrefWidth(screenWidth);\n\t\t}\n\t\tcenterScreenX(newWidth);\n\t}", "public void setWidth(String width) {\r\n this.width = width;\r\n }", "public void setWidth(int width) {\n if (width > 0) {\n this.width = width;\n }\n }", "public void setWidth(int width) {\n\t\tthis.width = width;\n\t}", "@Override\n\t\t\tpublic void controlResized(ControlEvent e) {\n\t\t\t\tGC gc = new GC(tw.getControl());\n\t\t\t\tPoint extent = gc.textExtent(\"X\");//$NON-NLS-1$\n//\t\t\t\tGridData gd = new GridData();\n//\t\t\t\tgd.widthHint = width * extent.x;\n//\t\t\t\tcontrol.setLayoutData(gd);\n\t\t\t\t\n\t\t\t\tint w = width * extent.x;\n\n\t\t\t\ttable.getColumn(collunmIndex).setWidth(w);\n\t\t\t}", "public void setWidth(double width) {\n\t\tthis.width = width;\n\t}", "public void setWidth(double width) {\n\t\tthis.width = width;\n\t}", "private static void setSize(JTable table, int column, int size) {\n table.getColumnModel().getColumn(column).setMaxWidth(size);\n table.getColumnModel().getColumn(column).setMinWidth(size);\n table.getColumnModel().getColumn(column).setWidth(size);\n table.getColumnModel().getColumn(column).setPreferredWidth(size);\n }", "public void updateWidth(int w) {\n\t\tint width = getWidth();\n\t\tint diff = w - width;\n\t\t\n\t\tif(w != getWidth()) {\n\t\t\tfor(ArrayList<Grid> g : internal) {\n\t\t\t\tif(diff > 0) {\n\t\t\t\t\tfor(int i = width; i < w; i++) {\n\t\t\t\t\t\tg.add(new Grid(i,internal.indexOf(g)));\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\twhile(g.size() > w) {\n\t\t\t\t\t\tg.remove(g.size() - 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private static int getNumColumns(int viewWidth, float minColumnWidth) {\n return Math.max((int) (viewWidth / minColumnWidth), 1);\n }", "public int getColumnCount() { return tableWidth;}", "public void setPrefWidth(double aWidth)\n{\n double w = aWidth<=0? 0 : aWidth; if(w==getPrefWidth()) return;\n firePropertyChange(\"PrefWidth\", put(\"PrefWidth\", w), w, -1);\n}", "public void setCellWidth(int cellWidth) {\n this.cellWidth = Math.min( 10, Math.max(0, cellWidth));\n }", "public void setWidth(int width) {\n\tthis.width = width;\n\tcalculateWidthRatio();\n }", "private int getColumn(int x) {\n\t\t// TODO Auto-generated method stub\n\t\tint w = view.getWidth() / nColumns;\n\t\treturn x / w;\n\t}", "public static void setColumnWidth(TableColumn column, int min, int max) {\n column.setMinWidth(min);\n column.setMaxWidth(max);\n }", "public int getBoardWidth(){\n return Cols;\n }", "@Test\n void testNoColsWithoutWidthWhenGrouping() throws IOException {\n try (XSSFWorkbook wb1 = new XSSFWorkbook()) {\n XSSFSheet sheet = wb1.createSheet(\"test\");\n\n sheet.setColumnWidth(4, 5000);\n sheet.setColumnWidth(5, 5000);\n\n sheet.groupColumn((short) 4, (short) 7);\n sheet.groupColumn((short) 9, (short) 12);\n\n try (XSSFWorkbook wb2 = XSSFTestDataSamples.writeOutAndReadBack(wb1, \"testNoColsWithoutWidthWhenGrouping\")) {\n sheet = wb2.getSheet(\"test\");\n\n CTCols cols = sheet.getCTWorksheet().getColsArray(0);\n LOG.atDebug().log(\"test52186/cols:{}\", cols);\n for (CTCol col : cols.getColArray()) {\n assertTrue(col.isSetWidth(), \"Col width attribute is unset: \" + col);\n }\n\n }\n }\n }", "public void setWidth(final int width) {\n\t\tthis.width = width;\n\t\tthis.widthString = \"%-\" + width + \"s\";\n\t}", "@Override\n\t\t\tpublic void controlResized(ControlEvent e) {\n\t\t\t\tGC gc = new GC(table);\n\t\t\t\tPoint extent = gc.textExtent(\"X\");//$NON-NLS-1$\n//\t\t\t\tGridData gd = new GridData();\n//\t\t\t\tgd.widthHint = width * extent.x;\n//\t\t\t\tcontrol.setLayoutData(gd);\n\n\t\t\t\ttable.getColumn(index).setWidth(width * extent.x);\n\t\t\t}", "public void setWidth(Double width) {\n\t\tthis.width = width;\n\t}", "public double getColumnWidth(Object fieldId) {\n\t\t\treturn 0;\n\t\t}", "void incrementColumnIndex(int size);", "void incrementColumnIndex(int size);", "public void setWidth(Integer width) {\n\t\tthis.width = width;\n\t\tthis.handleConfig(\"width\", width);\n\t}", "int getColumns();", "int getColumns();" ]
[ "0.68662035", "0.63642067", "0.6158931", "0.61485267", "0.61118555", "0.6058138", "0.6039226", "0.5935751", "0.59344286", "0.5924598", "0.5876676", "0.5865143", "0.5808219", "0.57654923", "0.5755827", "0.57126737", "0.5709932", "0.56978095", "0.5685548", "0.56732273", "0.5651014", "0.5640109", "0.5613517", "0.55945104", "0.5581773", "0.5581752", "0.5569826", "0.5557211", "0.55564076", "0.5545316", "0.55437076", "0.5541077", "0.5538475", "0.5519601", "0.5511063", "0.55088705", "0.54975474", "0.54873186", "0.5470431", "0.54663235", "0.54626584", "0.54448795", "0.5423904", "0.54128474", "0.5398311", "0.5398311", "0.5393015", "0.5392322", "0.53878164", "0.538642", "0.53854734", "0.53764445", "0.5373897", "0.5359309", "0.5355706", "0.53548485", "0.53494126", "0.53357524", "0.53268504", "0.531304", "0.5312207", "0.5307987", "0.52925146", "0.5288385", "0.5275957", "0.5270701", "0.5269498", "0.52446115", "0.5243251", "0.52384233", "0.52366626", "0.5233994", "0.52298486", "0.52263373", "0.5224554", "0.52154803", "0.52116114", "0.51772547", "0.5169824", "0.5169824", "0.516372", "0.51461816", "0.5141721", "0.513494", "0.51304907", "0.51295656", "0.5122702", "0.51166314", "0.51132256", "0.51083523", "0.5089833", "0.5062892", "0.50617605", "0.5059964", "0.5059003", "0.5031314", "0.5031314", "0.50274044", "0.5026863", "0.5026863" ]
0.846466
0
Get the file name.
protected String getFileName() { return fileName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFilename();", "java.lang.String getFilename();", "public final String getFileName() {\n\n\t\treturn getValue(FILE_NAME);\n\t}", "public String getFileName() {\n\t\treturn file.getFileName();\n\t}", "public String getFileName() {\n\t\treturn file.getName();\n\t}", "public String getFileName() {\r\n \t\tif (isFileOpened()) {\r\n \t\t\treturn curFile.getName();\r\n \t\t} else {\r\n \t\t\treturn \"\";\r\n \t\t}\r\n \t}", "public String getFileName()\n {\n return getString(\"FileName\");\n }", "public String getFileName() {\n return getCellContent(FILE).split(FILE_LINE_SEPARATOR)[0];\n }", "public final String getFileName() {\n\t\treturn m_info.getFileName();\n\t}", "public String filename() {\n\t int sep = fullPath.lastIndexOf(pathSeparator);\n\t return fullPath.substring(sep + 1);\n\t }", "protected String getFileName()\n {\n return new StringBuilder()\n .append(getInfoAnno().filePrefix())\n .append(getName())\n .append(getInfoAnno().fileSuffix())\n .toString();\n }", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "public String getFileName() {\n\t\t\n\t\tString result = null;\n\t\t\n\t\tif(this.exists() && !this.isDirectory())\n\t\t\tresult = this.get(this.lenght - 1);\n\t\t\n\t\treturn result;\n\t}", "public String getFilename() {\n\treturn file.getFilename();\n }", "public String filename() {\n int dot = fullPath.lastIndexOf(extensionSeparator);\n int sep = fullPath.lastIndexOf(pathSeparator);\n return fullPath.substring(sep + 1, dot);\n }", "private String getFileName() {\n\t\t// retornamos el nombre del fichero\n\t\treturn this.fileName;\n\t}", "public String getName() {\n if (filename != null) {\n int index = filename.lastIndexOf(separatorChar);\n\n if (index >= 0) {\n return filename.substring(index + 1);\n } else {\n if (filename == null) {\n return \"\";\n } else {\n return filename;\n }\n }\n } else {\n return \"\";\n }\n }", "public String getName() { return FilePathUtils.getFileName(getPath()); }", "public String getName() {\n return _file.getAbsolutePath();\n }", "String getFilename();", "public String getFile_name() {\n\t\treturn file_name;\n\t}", "public String getFileName() {\n return String.format(\"%s%o\", this.fileNamePrefix, getIndex());\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 if (bs.isValidUtf8()) {\n fileName_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 if (bs.isValidUtf8()) {\n fileName_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getFileName() {\n\t\treturn mItems.getJustFileName();\n\t}", "public String getFileName();", "public String getFileName();", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n }\n return s;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n }\n return s;\n }\n }", "public String GetFileName() {\r\n\treturn fileName;\r\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }", "public String getName()\n {\n return( file );\n }", "public final String getFilename() {\n return properties.get(FILENAME_PROPERTY);\n }", "public String getNameFile(){\n\t\t\treturn this.nameFile;\n\t\t}", "public final String getFileName()\r\n {\r\n return _fileName;\r\n }", "public String getName() {\r\n return mFile.getName();\r\n }", "public String getFileName()\r\n\t{\r\n\t\treturn settings.getFileName();\r\n\t}", "@Override\n\tpublic String getFilename() {\n\t\treturn this.path.getFileName().toString();\n\t}", "public String getName() {\n\t\treturn filename;\n\t}", "public String getFileName(){\r\n\t\treturn linfo != null ? linfo.getFileName() : \"\";\r\n\t}", "public final String getFileName() {\n return this.fileName;\n }", "public String getName() {\n return dtedDir + \"/\" + filename;\n }", "public java.lang.String getFilename() {\n java.lang.Object ref = filename_;\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 filename_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getFilename() {\n java.lang.Object ref = filename_;\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 filename_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getFileName ();", "public String getFilename();", "public String getFileName(int index) {\n\t\tFile f = openFiles.get(index);\n\t\tString nom = f.getName().substring(0,f.getName().length()-5);\n\t\treturn nom;\n\t}", "public String getSimpleName() { return FilePathUtils.getFileName(_name); }", "public String getFileName() {\n return mFileNameTextField == null ? \"\" : mFileNameTextField.getText(); //$NON-NLS-1$\n }", "public String getFileName()\n\t{\n\t\treturn fileName;\n\t}", "public String getFileName()\n\t{\n\t\treturn fileName;\n\t}", "public String getName()\n\t{\n\t\treturn _fileName;\n\t}", "public String fullFileName () {\n\t\tif (directory == null || directory.equals(\"\"))\n\t\t\treturn fileName;\n\t\telse\n\t\t\treturn directory + File.separator + fileName;\t//add a '\\' in the path\n\t}", "@java.lang.Override\n public java.lang.String getFilename() {\n java.lang.Object ref = filename_;\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 filename_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getFilename() {\n java.lang.Object ref = filename_;\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 filename_ = s;\n return s;\n }\n }", "public String getFileName()\r\n {\r\n return sFileName;\r\n }", "public String filename (){\r\n\t\t\treturn _filename;\r\n\t\t}", "public String getFileName()\r\n {\r\n return fileName;\r\n }", "public String getFileRealName() {\n return fileRealName;\n }", "@Nullable public String getFileName() {\n return getSourceLocation().getFileName();\n }", "public String getFileName() {\r\n\t\treturn fileName;\r\n\t}", "public String getFileName() {\r\n\t\treturn fileName;\r\n\t}", "public String getFileName() {\r\n\t\treturn fileName;\r\n\t}", "public String getNameForFileSystem() {\r\n\t\treturn filename;\r\n\t}", "@Override\n\tpublic String getName()\n\t{\n\t\treturn fileName;\n\t}", "public String getFileName() {\r\n return fileName;\r\n }", "public String getFileName() {\r\n return fileName;\r\n }", "public String getFileName() {\r\n return fileName;\r\n }", "public String getFileName() {\n\t\treturn fileName;\n\t}", "public String getFileName() {\n\t\treturn fileName;\n\t}", "public String getFileName() {\n\t\treturn fileName;\n\t}", "public String getFileName() {\n\t\treturn fileName;\n\t}", "public String getFileName() {\n\t\treturn fileName;\n\t}", "public String getFileName() {\n return filename;\n }", "public String getFileName(){\n\t\treturn _fileName;\n\t}", "private String getFilename() {\r\n\t\treturn (String) txtFlnm.getValue();\r\n\t}" ]
[ "0.8685491", "0.8685491", "0.8685491", "0.8685491", "0.8685491", "0.8685491", "0.8685491", "0.8685491", "0.8685491", "0.844532", "0.844532", "0.8351135", "0.82764524", "0.82612365", "0.8251949", "0.8187199", "0.81658113", "0.81652737", "0.8149414", "0.8148824", "0.8140136", "0.8140136", "0.8140136", "0.8140136", "0.8140136", "0.8108502", "0.8045927", "0.7999135", "0.79958093", "0.79953337", "0.79929715", "0.79911643", "0.79422134", "0.7940895", "0.7929112", "0.78785384", "0.78785384", "0.78785384", "0.78785384", "0.78785384", "0.78785384", "0.7877734", "0.7877734", "0.78702855", "0.78676295", "0.78676295", "0.7861467", "0.7861467", "0.7815981", "0.78047925", "0.78047925", "0.78047925", "0.78047925", "0.78047925", "0.78047925", "0.7799302", "0.7768597", "0.7759615", "0.77492654", "0.7741573", "0.77333", "0.7671813", "0.7670453", "0.7668525", "0.76609826", "0.7655127", "0.7654089", "0.7654089", "0.76279444", "0.76004195", "0.75565124", "0.75485927", "0.75436354", "0.7539195", "0.7539195", "0.7532419", "0.75298035", "0.75292224", "0.75292224", "0.7520104", "0.75033927", "0.749629", "0.74851197", "0.7481874", "0.7478488", "0.7478488", "0.7478488", "0.7473668", "0.7469441", "0.7448472", "0.7448472", "0.7448472", "0.74262035", "0.74262035", "0.74262035", "0.74262035", "0.74262035", "0.7419328", "0.7414612", "0.7412313" ]
0.76240575
69
Set the file name.
public void setFileName(final String fileName) { this.fileName = fileName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFileName( String name ) {\n\tfilename = name;\n }", "void setFileName( String fileName );", "public void setName(String filename) {\n\t\tthis.filename = filename;\n\t}", "public void setFileName(String name) {\r\n this.fileName = name == null ? null : name.substring(name.lastIndexOf(File.separator) + 1);\r\n }", "public void setFileName(final String theName)\r\n {\r\n\r\n // this means we are currently in a save operation\r\n _modified = false;\r\n\r\n // store the filename\r\n _fileName = theName;\r\n\r\n // and use it as the name\r\n if (theName.equals(NewSession.DEFAULT_NAME))\r\n setName(theName);\r\n\r\n }", "public void setFileName(String fileName)\r\n {\r\n sFileName = fileName;\r\n }", "public void setFileName(String name)\n\t{\n\t\tfileName = name;\n\t}", "public void setFilename( String name) {\n\tfilename = name;\n }", "public void setFileName(final File filename) {\n fFileName = filename;\n }", "public void setFileName(String filename)\n\t{\n\t\tsuper.setFileName(filename);\n\t\t\n\t\t//#CM702602\n\t\t// Generate the path name of Working data File. \n\t\tworkingDataFileName = wFileName.replaceAll(\"\\\\\\\\send\\\\\\\\\", \"\\\\\\\\recv\\\\\\\\\");\n\t}", "public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n fileName_ = value;\n onChanged();\n return this;\n }", "public void setFilename(String name){\n\t\tfilename = name;\n\t}", "public void setFileName(String fileName) {\n\t\tnew LabeledText(\"File name\").setText(fileName);\n\t}", "public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n fileName_ = value;\n onChanged();\n return this;\n }", "public void setFileName(String fileName)\r\n/* 16: */ {\r\n/* 17:49 */ this.fileName = fileName;\r\n/* 18: */ }", "private void setFileName(final String fileName) {\n\t\t// almacenamos el nombre del fichero\n\t\tthis.fileName = fileName;\n\t}", "public void updateFileName()\n {\n\n String fn= presenter.getCurrentTrack().getFileName();\n if(fn!=null && !fn.isEmpty()) {\n File file = new File(fn);\n fn=file.getName();\n }\n if(fn==null || fn.isEmpty())\n fn=\"*\";\n fileNameTextView.setText(fn);\n }", "public void SetFileName(String fileName) {\r\n\tthis.fileName = fileName;\r\n }", "public void setFileName(String fileName) {\n/* 39:39 */ this.fileName = fileName;\n/* 40: */ }", "public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }", "public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }", "public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }", "public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }", "public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }", "public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }", "public void setFileName(String fileName)\r\n\t{\r\n\t\tm_fileName = fileName;\r\n\t}", "public void setFilename(final String filename)\n {\n this.currentFile = filename; // for use with Gnu Emacs\n }", "public final void setFileName(final String fileName) {\n this.fileName = fileName;\n }", "public void setFileName(final String fileName) {\r\n this.fileName = fileName;\r\n }", "public void setFileName(String nomeFile) {\n\t\tthis.fileName = nomeFile;\n\t}", "public void setFilename(String f){\n\t\tfilename = f;\n\t}", "public void setFile(String fileName)\n {\n }", "public void setFileName(String fileName) {\r\n this.fileName = fileName;\r\n }", "private void setFileNamePath(String value) {\n\t\tthis.fileNamePath = value;\n\t}", "public void setFileName(String fileName)\r\n\t{\r\n\t\tsettings.setFileName(fileName);\r\n\t}", "public void setFileName(String fileName) {\n this.fileName = fileName;\n }", "protected void setName(String name) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"a7eb4750-e93f-41a2-ab4f-3fcf8cb1f39b\");\n if (name != null && getPlatform() == PLATFORM_FAT && !name.contains(\"/\")) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"6d8baf11-928b-4d13-a982-c28e6d5c3bb7\");\n name = name.replace('\\\\', '/');\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e80bbe2d-caf4-4e25-b64c-8fef2f2969dd\");\n this.name = name;\n }", "public static void setFilename(String filename) {\n DownloadManager.filename = filename;\n }", "public void setFileName(edu.umich.icpsr.ddi.FileNameType fileName)\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FileNameType target = null;\n target = (edu.umich.icpsr.ddi.FileNameType)get_store().find_element_user(FILENAME$0, 0);\n if (target == null)\n {\n target = (edu.umich.icpsr.ddi.FileNameType)get_store().add_element_user(FILENAME$0);\n }\n target.set(fileName);\n }\n }", "public void setName(String fileName) throws FormatException {\n evaluate(fileName);\n }", "public void setFileName(String fileName) {\n this.fileName = fileName;\n }", "public void setFileName(String fileName) {\n this.fileName = fileName;\n }", "public void setFileName(String fileName) {\n this.fileName = fileName;\n }", "public void setFileName(String fileName) {\n this.fileName = fileName;\n }", "public void setFileName(String fileName) {\n this.fileName = fileName;\n }", "public void setFileName(String fileName) {\r\n\t\tthis.fileName = fileName;\r\n\t}", "public void setFileName(String fileName) {\r\n\t\tthis.fileName = fileName;\r\n\t}", "public void setOriginalFilename(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), ORIGINALFILENAME, value);\r\n\t}", "public FileName(String fn) {\n setFile(fn);\n }", "public void setOriginalFileName(String newValue);", "public void setCurrentFile(String name) {\n\t\tthis.currentFile = name;\n\t}", "public void setFileName(String fileName)\n\t{\n\t\tthis.fileName = fileName;\n\t}", "public void setFilename(String fn) {\n\t\tfilename = fn;\n\t}", "public Builder setFilename(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n filename_ = value;\n onChanged();\n return this;\n }", "public Builder setFilename(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n filename_ = value;\n onChanged();\n return this;\n }", "@JsonSetter(\"fileName\")\r\n public void setFileName (String value) { \r\n this.fileName = value;\r\n }", "public void setFilename(String filename)\n\t{\n\t\tthis.filename = filename;\n\t\tIWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();\n\t\tthis.file = root.getFile(new Path(filename));\n\t}", "public void setName(String name) {\r\n\t\t\r\n\t\tString[] emailParts = GID.split(\"@\");\r\n\t\t//Recover the original file name\r\n\t\tString fileName = this.name + \"_\" + emailParts[0] + \"_\" + emailParts[1];\r\n\r\n\t\tFile f = new File(fileName);\r\n\t\tif (f.exists()) {\r\n\t\t\tf.delete();\r\n\t\t} \r\n\t\tthis.name = name;\r\n\t\tsaveAccount();\r\n\t}", "private void setSourceName(String name) {\n srcFileName = name;\n }", "public void setFileName(String fileName) {\r\n this.fileName = fileName == null ? null : fileName.trim();\r\n }", "public void setFilename(final String filename) {\n\t\tthis.filename = filename;\n\t}", "public void setFileName(String fileName) {\n this.fileName = fileName == null ? null : fileName.trim();\n }", "public void setFileName(String fileName) {\n this.fileName = fileName == null ? null : fileName.trim();\n }", "public void setFileName(String fileName) {\n this.fileName = fileName == null ? null : fileName.trim();\n }", "public void setName (String n){\n\t\tname = n;\n\t}", "public void setFileName(String fileName) {\n\t\tthis.fileName = fileName;\n\t}", "public void setFileName(String fileName) {\n\t\tthis.fileName = fileName;\n\t}", "public void setName(String name)\n {\n fName = name;\n }", "public void setFilename(String filename) {\n this.filename = filename;\n }", "public void setFilename(String filename) {\n this.filename = filename;\n }", "public final void setPropertyFileName(String fileName) {\n this.propertyFileName = fileName;\n }", "public void setName(String name)\n {\n if (name == null || DefaultFileHandler.sanitizeFilename(name, getLogger()).isEmpty())\n {\n throw new NullPointerException(\"Custom deployable name cannot be null or empty\");\n }\n this.name = name;\n }", "public static void setName(String n){\n\t\tname = n;\n\t}", "public static void setPropertyFilename(String aFileName) {\n checkNotNull(aFileName, \"aFileName cannot be null\");\n propertyFileName = aFileName;\n }", "public void setName(String n) {\r\n name = n;\r\n }", "void getFileName(File file) throws IOException {\n this.file=file;\n }", "public void setFile(File file) {\n\t\tthis.file = file;\n\t\tthis.displayName.setValue(file.getName());\n\t}", "public void setName (String n) {\n name = n;\n }", "void setFile(String i) {\n file = i;\n }", "public void setName(String name) {\n\t\tSharedPreferences settings = parentContext.getSharedPreferences(PREFERENCE_FILE, 0);\n\t\tSharedPreferences.Editor editor = settings.edit();\n\t\teditor.putString(USERNAME_KEY, name);\n\t\teditor.commit();\n\t}", "public void setName(String s) {\n\t\t\n\t\tname = s;\n\t}", "public void setName(String name)\n {\n if (name == null) {\n throw new IllegalArgumentException();\n }\n\n _name = truncateDefault(name);\n }", "public void setName(String value) {\n\t\tname = value;\n\t}", "public void setName(String name) {\n fName= name;\n }", "public void setPropertyFileName(String propertyfileName)\r\n\t{\r\n\t\t// propertyfileName = propertyFileName;\r\n\t\tpropertyFileName = propertyfileName;\r\n\t}", "public void setFilename(String fileNameIn) {\n\t\tfileName = fileNameIn;\n\t}", "public void setFilename(String filename) {\n this.filename = filename == null ? null : filename.trim();\n }", "public native void setFileName(String fileName) throws MagickException;", "public void setFilename(String filename) {\n\t\tthis.filename = filename;\n\t}", "public void setFilename(String filename) {\n\t\tthis.filename = filename;\n\t}", "void setFileName(String inputFileName)\n {\n this.inputFileName = inputFileName;\n }", "public void setName(String n) {\r\n\t\tthis.name = n;\r\n\t}", "public void setName(java.lang.String value) {\n this.name = value;\n }", "protected void setName(String name) {\n this._name = name;\n }", "public final void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setNewName(String newName) \n {\n this.newName = getFileName() + \".\" + getType();\n }", "public void setName(String value) {\n this.name = value;\n }", "public void setFile(String file) {\n fileName = file;\n if (isHTTP(fileName)) {\n fileType = HTTP;\n } else {\n fileType = LOCAL;\n }\n }", "protected void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}", "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}" ]
[ "0.796483", "0.7897966", "0.7832712", "0.78130186", "0.76756537", "0.7601827", "0.75872993", "0.7467072", "0.74020225", "0.73793834", "0.73565584", "0.73388165", "0.7318386", "0.7310038", "0.73018533", "0.728177", "0.7231792", "0.7213239", "0.7145186", "0.712119", "0.712119", "0.712119", "0.712119", "0.712119", "0.712119", "0.7103159", "0.70547837", "0.7051672", "0.7033907", "0.7012567", "0.69834214", "0.69796073", "0.6969796", "0.6941261", "0.693826", "0.6914502", "0.6900326", "0.689607", "0.68414456", "0.6836002", "0.67952174", "0.67952174", "0.67952174", "0.67952174", "0.67952174", "0.679454", "0.679454", "0.67883337", "0.67703253", "0.6767446", "0.67429626", "0.67407084", "0.6723284", "0.6722591", "0.6722591", "0.6661776", "0.6644196", "0.6642041", "0.6639008", "0.6630978", "0.6608168", "0.6581102", "0.6581102", "0.6581102", "0.65768975", "0.6549243", "0.6549243", "0.6546071", "0.6539195", "0.6539195", "0.65359807", "0.65233076", "0.6506737", "0.6494303", "0.64928335", "0.64875734", "0.64706695", "0.6458515", "0.64486057", "0.6446502", "0.6443497", "0.6436887", "0.6435603", "0.64279276", "0.64202607", "0.6419073", "0.6413553", "0.64031166", "0.63870984", "0.63870984", "0.6386889", "0.6381886", "0.6374437", "0.6368003", "0.63650054", "0.6342138", "0.6340984", "0.6340242", "0.6337906", "0.6336656" ]
0.67685527
49
Generate a key to identify the cell style.
protected String generateCellStyleKey(final String cellDecoratorType, final String maskDecoratorType) { String decorator = StringUtils.isNotBlank(element.decorator()) ? element.decorator() : cellDecoratorType; String mask = StringUtils.isNotBlank(element.transformMask()) ? element.transformMask() : (StringUtils.isNotBlank(element.formatMask()) ? element.formatMask() : maskDecoratorType); return mask.concat(decorator); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String get_cell_style_id(){\r\n\t\t_cell_style_id ++;\r\n\t\treturn \"cond_ce\" + _cell_style_id;\r\n\t}", "private String getKey(int houseNo, int colorNo) {\n return houseNo + \"_\" + colorNo;\n }", "private int genKey()\n {\n return (nameValue.getData() + scopeDefined.getTag()).hashCode();\n }", "public String createKey(String type) {\n int i = 0;\n for(i=0; i<EnumFactory.numberOfTypes; i++) {\n if (type.equals(EnumFactory.typeStrings[i])) {\n break;\n }\n }\n countKeys[i]++;\n String key = String.format(\"%s$%d\", EnumFactory.typeStrings[i],countKeys[i]);\n return key;\n }", "private String createTypeKey(int type, String key) {\r\n\t\treturn type + \"-\" + key;\r\n\t}", "@Override\n\tpublic String getMapKey()\n\t{\n\t\tsbTemp.delete(0, sbTemp.length());\n\t\tsbTemp.append(areaCell.iCityID);\n\t\tsbTemp.append(\"_\");\n\t\tsbTemp.append(areaCell.iAreatype);\n\t\tsbTemp.append(\"_\");\n\t\tsbTemp.append(areaCell.iAreaID);\n\t\tsbTemp.append(\"_\");\n\t\tsbTemp.append(areaCell.iECI);\n\t\tsbTemp.append(\"_\");\n\t\tsbTemp.append(areaCell.iTime);\n\t\tsbTemp.append(\"_\");\n\t\tsbTemp.append(areaCell.iInterface);\n\t\tsbTemp.append(\"_\");\n\t\tsbTemp.append(areaCell.kpiSet);\n\t\treturn sbTemp.toString();\n\t}", "private String generateLnfKey(Class<? extends Control> controlClass, PropertyDescriptor property) {\n \n \t\tString controlName = getSimpleClassName(controlClass);\n \t\tStringBuilder lnfKey = new StringBuilder(controlName);\n \t\tlnfKey.append(\".\"); //$NON-NLS-1$\n \t\tlnfKey.append(property.getName());\n \n \t\treturn lnfKey.toString();\n \n \t}", "String getKeyFormat();", "@Override\n\tpublic String getKey() {\n\t\treturn id+\"\";\n\t}", "KeyColor(String name){\n this.name = name;\n }", "public Key<WritingShape> getGlyphKey(char ch) {\n\t\treturn new Key<WritingShape>(\"\" + ch, WritingShape.class);\n\t}", "public String makeKey ()\n {\n String stop = \"*\"; // default\n\n if (stopFormat.length() > 0)\n stop = String.valueOf(stopFormat.charAt(0));\n\n key = \"<BR>\";\n\n if (code.equals(\"Standard\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><B><FONT COLOR=red>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Drosophila Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>I M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Vertebrate Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>I M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Yeast Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Mold Protozoan Coelenterate Mycoplasma Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>I L M V</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Invertebrate Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>I L M V</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Ciliate Dasycladacean Hexamita Nuclear\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Echinoderm Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Euplotid Nuclear\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Bacterial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>I L M V</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n\n }\n\n else if (code.equals(\"Alternative Yeast Nuclear\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M S</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n\n }\n\n else if (code.equals(\"Ascidian Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n\n }\n\n else if (code.equals(\"Flatworm Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n\n }\n\n else\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n\n }\n\n if (unknownStatus == 1)\n key += (\"<BR>Unknown codon: <TT><FONT COLOR=#ff6633><B>u</B></FONT><BR></TT>\");\n\n\n return (key + \"<HR>\");\n\n}", "private String getStyleAttribute() {\n StringBuilder sb = new StringBuilder();\n\n styleAttribute.forEach((key, value) -> {\n sb.append(key).append(\":\").append(value).append(\";\");\n });\n\n return sb.toString();\n }", "@Override\n\tpublic String getKey() {\n\t\treturn getCid();\n\t}", "@Override\n public int hashCode() {\n\treturn (rowIndex * 10) + colIndex; \n }", "@objid (\"617db22e-55b6-11e2-877f-002564c97630\")\n @Override\n public StyleKey getStyleKey(MetaKey metakey) {\n if (getParent() == null)\n return null;\n return getParent().getStyleKey(metakey);\n }", "public String getKey() {\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tif (getLineNo() != null) {\r\n\t\t\tbuilder.append(getLineNo());\r\n\t\t} else if (this.getEntityId() != null) {\r\n\t\t\tbuilder.append(getEntityId());\r\n\t\t}\r\n\t\treturn builder.toString();\r\n\t}", "default String getKey() {\n return key(getClassName(), getName());\n }", "TemplateModel getKey();", "String getClusteringKey(int index);", "@Override\n\tpublic String getProviderKey() {\n\t\treturn tableTemplateKey;\n\t}", "public String\n toString() \n {\n return \"[\" + pCellKey.toString() + \"]\"; \n }", "public java.lang.String getStyleId()\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(STYLEID$30);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "java.lang.String getClientKey();", "public String getConstraintKey( String role, String contextId )\n {\n return GlobalIds.CONSTRAINT_KEY_PREFIX +\n getDelimiter() +\n contextId +\n getDelimiter()\n + role.toLowerCase();\n }", "@Transient\n public String getCacheKey() {\n return this.getTableName();\n }", "private RowKeyFormat2 makeHashPrefixedRowKeyFormat() {\n ArrayList<RowKeyComponent> components = new ArrayList<RowKeyComponent>();\n components.add(RowKeyComponent.newBuilder()\n .setName(\"NAME\").setType(ComponentType.STRING).build());\n\n // build the row key format\n RowKeyFormat2 format = RowKeyFormat2.newBuilder().setEncoding(RowKeyEncoding.FORMATTED)\n .setSalt(HashSpec.newBuilder().build())\n .setComponents(components)\n .build();\n\n return format;\n }", "public String createCacheKey() {\n return \"organization.\" + userEmail;\n }", "protected String generateKey(){\n Random bi= new Random();\n String returnable= \"\";\n for(int i =0;i<20;i++)\n returnable += bi.nextInt(10);\n return returnable;\n }", "public StyleId getStyleId ();", "public NodeKey createNodeKey();", "@Override\n default String getKey(){\n return key();\n }", "static String makeKey(String id,\n String for_,\n String attrname,\n String attrtype) {\n return format(KEY_FMT, id, for_, attrname, attrtype);\n }", "public String getRowKeyProperty()\n {\n return _rowKeyProperty;\n }", "org.apache.xmlbeans.XmlNMTOKEN xgetKey();", "public Comparable\n getCellKey() \n {\n return pCellKey;\n }", "static public String makeKey(WebSocket ws) {\n\t\treturn String.format(\"%s:%d\", ws.getRemoteSocketAddress().getAddress().getHostAddress(), ws.getRemoteSocketAddress().getPort());\n\t}", "@Override\n\t\tpublic Text createKey() {\n\t\t\treturn null;\n\t\t}", "private static Map<String, CellStyle> createStyles(Workbook wb) {\r\n Map<String, CellStyle> styles = new HashMap<>();\r\n DataFormat df = wb.createDataFormat();\r\n\r\n Font font1 = wb.createFont();\r\n\r\n CellStyle style;\r\n Font headerFont = wb.createFont();\r\n headerFont.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setFont(headerFont);\r\n styles.put(\"header\", style);\r\n\r\n style = wb.createCellStyle();\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(false);\r\n styles.put(\"cell_centered\", style);\r\n\r\n style = wb.createCellStyle();\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(true);\r\n styles.put(\"cell_centered_locked\", style);\r\n// style = createBorderedStyle(wb);\r\n// style.setAlignment(CellStyle.ALIGN_CENTER);\r\n// style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n// style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n// style.setFont(headerFont);\r\n// style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n// styles.put(\"header_date\", style);\r\n font1.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font1);\r\n styles.put(\"cell_b\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(false);\r\n styles.put(\"cell_b_centered\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(true);\r\n styles.put(\"cell_b_centered_locked\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_b_date\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_g\", style);\r\n\r\n Font font2 = wb.createFont();\r\n font2.setColor(IndexedColors.BLUE.getIndex());\r\n font2.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font2);\r\n styles.put(\"cell_bb\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_bg\", style);\r\n\r\n Font font3 = wb.createFont();\r\n font3.setFontHeightInPoints((short) 14);\r\n font3.setColor(IndexedColors.DARK_BLUE.getIndex());\r\n font3.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font3);\r\n style.setWrapText(true);\r\n styles.put(\"cell_h\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setWrapText(true);\r\n styles.put(\"cell_normal\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setWrapText(true);\r\n styles.put(\"cell_normal_centered\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setWrapText(true);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_normal_date\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setIndention((short) 1);\r\n style.setWrapText(true);\r\n styles.put(\"cell_indented\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setFillForegroundColor(IndexedColors.BLUE.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n styles.put(\"cell_blue\", style);\r\n\r\n return styles;\r\n }", "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 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}", "private RowKeyFormat2 emptyCompNameRowKeyFormat() {\n // components of the row key\n ArrayList<RowKeyComponent> components = new ArrayList<RowKeyComponent>();\n components.add(RowKeyComponent.newBuilder()\n .setName(\"\").setType(ComponentType.STRING).build());\n\n // build the row key format\n RowKeyFormat2 format = RowKeyFormat2.newBuilder().setEncoding(RowKeyEncoding.FORMATTED)\n .setSalt(HashSpec.newBuilder().build())\n .setRangeScanStartIndex(1)\n .setComponents(components)\n .build();\n\n return format;\n }", "private RowKeyFormat2 badCompNameRowKeyFormat() {\n // components of the row key\n ArrayList<RowKeyComponent> components = new ArrayList<RowKeyComponent>();\n components.add(RowKeyComponent.newBuilder()\n .setName(\"0\").setType(ComponentType.STRING).build());\n\n // build the row key format\n RowKeyFormat2 format = RowKeyFormat2.newBuilder().setEncoding(RowKeyEncoding.FORMATTED)\n .setSalt(HashSpec.newBuilder().build())\n .setRangeScanStartIndex(1)\n .setComponents(components)\n .build();\n\n return format;\n }", "public org.openxmlformats.schemas.drawingml.x2006.main.STGuid xgetStyleId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.STGuid target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.STGuid)get_store().find_attribute_user(STYLEID$30);\n return target;\n }\n }", "public String keyColor(int i){\r\n if(this.down.contains(this.draw.get(i)))\r\n return \"red\";\r\n return \"black\";\r\n }", "public String keyMode(int i){\r\n if(i >= 15 || this.down.contains(this.draw.get(i)))\r\n return \"solid\";\r\n return \"outline\";\r\n }", "static void drawCellID() { // draws a cross at each cell centre\n\t\tfloat xc,yc;\n\t\t//GeneralPath path = new GeneralPath();\n\t\tif (currentStage[currentSlice-1]>1)\n\t\t{\n\t\t\tfor (int i=0;i<pop.N;i++)\n\t\t\t{\n\t\t\t\txc = (float) ( (Balloon)(pop.BallList.get(i)) ).x0;\n\t\t\t\tyc = (float) ( (Balloon)(pop.BallList.get(i)) ).y0;\n\t\t\t\tfloat arm = 5;\n\n\t\t\t\t// Label Cell number\n\t\t\t\tTextRoi TROI = new TextRoi((int)xc, (int)yc, (\"\"+i),new Font(\"SansSerif\", Font.BOLD, 12));\n\t\t\t\tTROI.setNonScalable(false);\n\t\t\t\tOL.add(TROI);\n\t\t\t}\n\t\t}\n\t}", "java.lang.String getCdkey();", "@Override\n public byte[] getKey() {\n return MetricUtils.concat2(clusterName, topologyName, getTime().getTime()).getBytes();\n\n }", "private void appendKeyGeneratorSettings() {\n Label keyGeneratorSettings = new Label(Localization.lang(\"Key generator settings\"));\n keyGeneratorSettings.getStyleClass().add(\"sectionHeader\");\n builder.add(keyGeneratorSettings, 1, 10);\n builder.add(autoGenerateOnImport, 1, 11);\n builder.add(letterStartA, 2, 11);\n builder.add(warnBeforeOverwriting, 1, 12);\n builder.add(letterStartB, 2, 12);\n builder.add(dontOverwrite, 1, 13);\n builder.add(alwaysAddLetter, 2, 13);\n builder.add(generateOnSave, 1, 14);\n\n builder.add((new Label(Localization.lang(\"Replace (regular expression)\") + ':')), 1, 15);\n builder.add(new Label(Localization.lang(\"by\") + ':'), 2, 15);\n\n builder.add(keyPatternRegex, 1, 16);\n builder.add(keyPatternReplacement, 2, 16);\n\n dontOverwrite.setOnAction(e ->\n // Warning before overwriting is only relevant if overwriting can happen:\n warnBeforeOverwriting.setDisable(dontOverwrite.isSelected()));\n }", "@Override\r\n\tpublic String getGridText()\r\n\t{\r\n\t\t// TODO Auto-generated method stub\\\r\n\t\tString sheet = \"\";\r\n\t\tfor(int i = 0; i <= 20; i++) { //20 rows\r\n\t\t\tfor(char j = 'A'; j <= 'L';j++) { //A through L\r\n\t\t\t\tif(i == 0) { //Creates row headers\r\n\t\t\t\t\tif(j == 'A') { // Creates letter headers\r\n\t\t\t\t\t\tsheet += \" |\"; //pads for headers\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tsheet += String.format(\"%-10c|\",j);\r\n\t\t\t\t} else{\r\n\t\t\t\t\tif(j == 'A') {\r\n\t\t\t\t\t\tsheet += String.format(\"%-3d|\", i);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tsheet += cells[i-1][j-'A'].abbreviatedCellText() + \"|\"; \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//enters new row\r\n\t\t\tsheet += \"\\n\";\r\n\t\t}\r\n\t\t//prints sheet\r\n\t\treturn sheet;\r\n\t}", "private int computeKey(int row, int column) {\n return row * columnDimension + column;\n }", "abstract GridPane createEditDashBoard(String primaryKeyValue);", "public String getTdKey() {\r\n return tdKey;\r\n }", "String key();", "public String getColumnKey(int col){\n return keys.get(col);\n }", "public int getKey() {\n\t\treturn 0;\n\t}", "private RowKeyFormat2 repeatedNamesRowKeyFormat() {\n // components of the row key\n ArrayList<RowKeyComponent> components = new ArrayList<RowKeyComponent>();\n components.add(RowKeyComponent.newBuilder()\n .setName(\"NAME\").setType(ComponentType.STRING).build());\n components.add(RowKeyComponent.newBuilder()\n .setName(\"NAME\").setType(ComponentType.STRING).build());\n\n // build the row key format\n RowKeyFormat2 format = RowKeyFormat2.newBuilder().setEncoding(RowKeyEncoding.FORMATTED)\n .setSalt(HashSpec.newBuilder().build())\n .setComponents(components)\n .build();\n\n return format;\n }", "int getCellid();", "public String getKey() {\n\t\treturn id + \"\";\n\t}", "@Override\n public String generateKey(int round) {\n return this.key.substring(4 * round, 4 * round + 16);\n }", "@Override\n\tpublic String toString(){\n\t\tif(this.getColor()==1){\n\t\t\treturn \"wK\";\n\t\t}else{\n\t\t\treturn \"bK\";\n\t\t}\n\t}", "protected String createUniquePKIndexString(DbEntity entity) {\n List pk = entity.getPrimaryKey();\n\n if (pk == null || pk.size() == 0) {\n throw new CayenneRuntimeException(\n \"Entity '\" + entity.getName() + \"' has no PK defined.\");\n }\n\n StringBuffer buffer = new StringBuffer();\n\n // compound PK doesn't work well with UNIQUE index...\n // create a regular one in this case\n buffer\n .append(pk.size() == 1 ? \"CREATE UNIQUE INDEX \" : \"CREATE INDEX \")\n .append(entity.getName())\n .append(\" (\");\n\n Iterator it = pk.iterator();\n\n // at this point we know that there is at least on PK column\n DbAttribute firstColumn = (DbAttribute) it.next();\n buffer.append(firstColumn.getName());\n\n while (it.hasNext()) {\n DbAttribute column = (DbAttribute) it.next();\n buffer.append(\", \").append(column.getName());\n }\n buffer.append(\")\");\n return buffer.toString();\n }", "AttributeCell createAttributeCell();", "public char getKey(){ return key;}", "private StringBuffer2D makeLettersHeader(){\n int actualWidth = getActualWidth();\n StringBuffer2D sb = new StringBuffer2D();\n //letters\n for(int y=0;y<board.getWidth();++y){\n sb.appendRow(0, \" \"+\"_\".repeat((int) Math.ceil(actualWidth/2)) +\n Color.GREEN_UNDERLINED.escape(getCharForNumber(y)) +\n \"_\".repeat((int) Math.ceil(actualWidth/2)));\n }\n return sb;\n }", "@objid (\"617db239-55b6-11e2-877f-002564c97630\")\n @Override\n public List<StyleKey> getStyleKeys() {\n return Collections.emptyList();\n }", "private RowKeyFormat2 zeroNullableIndexRowKeyFormat() {\n // components of the row key\n ArrayList<RowKeyComponent> components = new ArrayList<RowKeyComponent>();\n components.add(RowKeyComponent.newBuilder()\n .setName(\"NAME\").setType(ComponentType.STRING).build());\n\n // build the row key format\n RowKeyFormat2 format = RowKeyFormat2.newBuilder().setEncoding(RowKeyEncoding.FORMATTED)\n .setSalt(HashSpec.newBuilder().build())\n .setNullableStartIndex(0)\n .setComponents(components)\n .build();\n\n return format;\n }", "short getDefaultKeyIx();", "public static String getKeyTypeName(KeyType type)\n {\n // TODO: should be moved to DBProvider ...\n // MySQL : key identifier\n // SQLServer : key identifier\n // Derby : key identifier\n // PostgreSQL: key identifier\n switch (type) {\n // MySQL: key types ...\n case PRIMARY : return \"PRIMARY KEY\"; // table\n case UNIQUE : return \"UNIQUE\"; // table\n case INDEX : return \"INDEX\"; // table/index\n case UNIQUE_INDEX : return \"UNIQUE INDEX\"; // table/index\n default : return \"UNKNOWN\";\n }\n }", "@Override\n public String generateId() {\n return HiveIdGenerator.generateTableId(getSourceId(), getDatabaseName(),\n getTableName());\n }", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "protected String createPrimaryKeyConstraint(TableModel table) {\r\n\t\tColumnModel[] pks = table.getPrimaryKeyColumns();\r\n\t\tString s = \"\";\r\n\t\tif (pks.length > 1) {\r\n\t\t\ts = \",\\n PRIMARY KEY(\";\r\n\t\t\tString a = \"\";\r\n\t\t\tfor (ColumnModel c : pks) {\r\n\t\t\t\tif (a.length() > 0) {\r\n\t\t\t\t\ta += \", \";\r\n\t\t\t\t}\r\n\t\t\t\ta += this.quote(c.getName());\r\n\t\t\t}\r\n\t\t\ts += a + \")\";\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "protected String getIdentityColumnString() throws MappingException {\n \t\tthrow new MappingException( getClass().getName() + \" does not support identity key generation\" );\n \t}", "private BestLabelKey generateKey(ITopic topic, ITopic theme, boolean strict) {\r\n\t\tif (bestLabelCacheKeys == null) {\r\n\t\t\tbestLabelCacheKeys = HashUtil.getHashMap();\r\n\t\t}\r\n\t\tSet<BestLabelKey> set = bestLabelCacheKeys.get(topic);\r\n\t\tif (set == null) {\r\n\t\t\tset = HashUtil.getHashSet();\r\n\t\t\tbestLabelCacheKeys.put(topic, set);\r\n\t\t}\r\n\t\tBestLabelKey key = new BestLabelKey(topic, theme, strict);\r\n\t\tset.add(key);\r\n\t\treturn key;\r\n\t}", "String getKey(int index);", "public int getKey() {\n\t\t\treturn this.key; // to be replaced by student code\n\t\t}", "@Override\n public int getKey() {\n return key_;\n }", "GroupCell createGroupCell();", "public String licenseKeyFormatting(String S, int K) {\n\t\tS = S.toUpperCase();\n\t\tString[] strs =S.split(\"-\");\n\t\tString res = \"\";\n\t\tfor(String s : strs)\n\t\t\tres+=s;\n\t\tint length = res.length()-1;\n\t\tint startLen = length % K;\n\t\tStringBuffer result = new StringBuffer(res);\n\t\tfor(int i = length; i>=0;){\n\t\t\ti = i-K;\n\t\t\tif(i>=0){\n\t\t\t\tresult.insert(i+1, \"-\");\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result+\"\";\n\t}", "@Override\n public int getKey() {\n return key_;\n }", "String newKey();", "private Object _getRowKey()\n {\n Object data = getRowData();\n \n assert (_rowKeyProperty != null);\n return __resolveProperty(data, _rowKeyProperty);\n }" ]
[ "0.6900571", "0.6371225", "0.61331916", "0.586366", "0.5679988", "0.5607951", "0.5591607", "0.5591207", "0.5524335", "0.5501616", "0.5445716", "0.5440293", "0.54379475", "0.54122853", "0.53981155", "0.5367347", "0.53624225", "0.5321881", "0.5320904", "0.53059566", "0.53033507", "0.52833664", "0.5267841", "0.52548325", "0.5235619", "0.52303493", "0.5229304", "0.5215616", "0.52124274", "0.5209408", "0.52056223", "0.5193156", "0.5191564", "0.519077", "0.51716954", "0.51510656", "0.5146984", "0.5146963", "0.51443803", "0.5123596", "0.5123596", "0.5123596", "0.5123596", "0.5123596", "0.5123596", "0.5123596", "0.5123596", "0.5123596", "0.5123596", "0.5123596", "0.5123596", "0.5123596", "0.51101255", "0.5103385", "0.5092778", "0.5088523", "0.50846356", "0.5084498", "0.5082962", "0.50811493", "0.50778735", "0.50741464", "0.50670886", "0.50636923", "0.50602865", "0.5059929", "0.50579196", "0.5053265", "0.5052649", "0.50494707", "0.50491637", "0.50488394", "0.50467443", "0.503174", "0.5025783", "0.5014545", "0.500327", "0.4999126", "0.49986482", "0.49841183", "0.49795341", "0.49701777", "0.49665374", "0.49599203", "0.49599203", "0.49599203", "0.49599203", "0.49599203", "0.49599203", "0.49593776", "0.4954344", "0.4945456", "0.49422652", "0.49333537", "0.49275705", "0.49200276", "0.49191552", "0.4913315", "0.49084538", "0.49009255" ]
0.67839754
1
Basic treatment of the decorators.
private void treatmentBasicDecorator() throws ConfigurationException { /* treat all default styles non-declared */ treatmentHeaderDecorator(); treatmentGenericDecorator(); treatmentNumericDecorator(); treatmentDateDecorator(); treatmentBooleanDecorator(); treatmentEnumDecorator(); /* treat all the styles non-default override via XConfigCriteria */ for (Map.Entry<String, CellDecorator> object : cellDecoratorMap.entrySet()) { stylesMap.put(object.getKey(), CellStyleHandler.initializeCellStyleByCellDecorator(workbook, object.getValue())); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getDecoratorInfo();", "void decorate(IDecoratedSource decoratedSource);", "public final PythonParser.decorators_return decorators() throws RecognitionException {\n PythonParser.decorators_return retval = new PythonParser.decorators_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n List list_d=null;\n PythonParser.decorator_return d = null;\n d = null;\n\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:440:5: ( (d+= decorator )+ )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:440:7: (d+= decorator )+\n {\n root_0 = (PythonTree)adaptor.nil();\n\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:440:8: (d+= decorator )+\n int cnt13=0;\n loop13:\n do {\n int alt13=2;\n int LA13_0 = input.LA(1);\n\n if ( (LA13_0==AT) ) {\n alt13=1;\n }\n\n\n switch (alt13) {\n \tcase 1 :\n \t // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:440:8: d+= decorator\n \t {\n \t pushFollow(FOLLOW_decorator_in_decorators830);\n \t d=decorator();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) adaptor.addChild(root_0, d.getTree());\n \t if (list_d==null) list_d=new ArrayList();\n \t list_d.add(d.getTree());\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt13 >= 1 ) break loop13;\n \t if (state.backtracking>0) {state.failed=true; return retval;}\n EarlyExitException eee =\n new EarlyExitException(13, input);\n throw eee;\n }\n cnt13++;\n } while (true);\n\n if ( state.backtracking==0 ) {\n\n retval.etypes = list_d;\n \n }\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }", "public static void main(String[] args) {\n Car sportsCar = new SportsCarDecorator(new BaseCar());\n\n //sportsCar.manufactureCar();\n\n /**\n * Demand for Electric Car\n */\n Car electricCar = new ElectricCarDecorator(new BaseCar());\n\n //electricCar.manufactureCar();\n\n /**\n * Create a Sport Electric Car\n */\n\n Car sportsElectricCar = new ElectricCarDecorator(new SportsCarDecorator(new BaseCar()));\n //sportsElectricCar.manufactureCar();\n\n\n Car superCar = new LuxuryCarDecorator(new ElectricCarDecorator(new SportsCarDecorator(new BaseCar())));\n\n superCar.manufactureCar();\n }", "Map<String, Decorator> getDecorators();", "public ContentDecorator() {\r\n super();\r\n }", "public static void main(String[] args) {\n \n //GUI START\n DecoratorPatternDemo decoratorPatternDemo = new DecoratorPatternDemo();\n //GUI END\n\n \n }", "public DecoratorConcret(BiletAbstract biletAbstract) {\r\n\t\tsuper(biletAbstract);\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\r\n\t}", "@Override\n\t protected void applyCustomConfiguration(SiteMeshFilterBuilder builder) {\n\t\t builder.addDecoratorPath(\"/*\", \"/WEB-INF/jsp/decorator/decorator.jsp\")\n//\t\t .addDecoratorPaths(\"/articles/*\", \"/decorators/article.html\",\n//\t\t \"/decoratos/two-page-layout.html\",\n//\t\t \"/decorators/common.html\")\n\t\t // Exclude path from decoration.\n\t\t .addExcludedPath(\"/member/list.do\")\n\t\t .addExcludedPath(\"/base/codeWindow.html*\")\n\t\t .addExcludedPath(\"/base/postWindow.html*\");\n\t\t \n\t\t builder.addTagRuleBundles(new DivExtractingTagRuleBundle());\n\n\t }", "public static void main(String[] args) throws FileNotFoundException {\n\n Ifront ifront2 = new Decorator( new Front() );\n ifront2.foo();\n\n }", "private TreatExpression() {\r\n }", "@Before\n public void setup() {\n ApiAuthProviders authProviders = ApiAuthProviders.builder()\n .cognitoUserPoolsAuthProvider(new FakeCognitoAuthProvider())\n .oidcAuthProvider(new FakeOidcAuthProvider())\n .build();\n decorator = new AuthRuleRequestDecorator(authProviders);\n }", "private void runFajitaCodeDecorator() {\n FajitaJavaCodeDecorator decorator = new FajitaJavaCodeDecorator(configuration);\n decorator.run();\n }", "public OutputDecorator getOutputDecorator()\n/* */ {\n/* 675 */ return this._outputDecorator;\n/* */ }", "private void treatmentSpecificDecorator() throws ConfigurationException {\n\t\tfor (Map.Entry<String, CellDecorator> object : cellDecoratorMap.entrySet()) {\n\t\t\tif (uniqueCellStyle) {\n\t\t\t\t/*\n\t\t\t\t * when activate unique style, set all styles with the declared\n\t\t\t\t * style\n\t\t\t\t */\n\t\t\t\tstylesMap.put(object.getKey(),\n\t\t\t\t\t\tCellStyleHandler.initializeCellStyleByCellDecorator(workbook, cellDecoratorUnique));\n\t\t\t} else {\n\t\t\t\tstylesMap.put(object.getKey(),\n\t\t\t\t\t\tCellStyleHandler.initializeCellStyleByCellDecorator(workbook, object.getValue()));\n\t\t\t}\n\t\t}\n\t}", "public NoiseCleaner(CleaningDecorator next) { super(next); }", "public ProductDecorator() {}", "private void treatmentHeaderDecorator() throws ConfigurationException {\n\t\tif (stylesMap.get(CellStyleHandler.CELL_DECORATOR_HEADER) == null) {\n\t\t\tstylesMap.put(CellStyleHandler.CELL_DECORATOR_HEADER,\n\t\t\t\t\tcellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_HEADER)\n\t\t\t\t\t\t\t? CellStyleHandler.initializeCellStyleByCellDecorator(workbook,\n\t\t\t\t\t\t\t\t\tcellDecoratorMap.get(CellStyleHandler.CELL_DECORATOR_HEADER))\n\t\t\t\t\t\t\t: CellStyleHandler.initializeHeaderCellDecorator(workbook));\n\t\t\tcellDecoratorMap.remove(cellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_HEADER));\n\t\t}\n\t}", "Form endDecorator();", "private void treatmentGenericDecorator() throws ConfigurationException {\n\t\tif (stylesMap.get(CellStyleHandler.CELL_DECORATOR_GENERIC) == null) {\n\t\t\tstylesMap.put(CellStyleHandler.CELL_DECORATOR_GENERIC,\n\t\t\t\t\tcellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_GENERIC)\n\t\t\t\t\t\t\t? CellStyleHandler.initializeCellStyleByCellDecorator(workbook,\n\t\t\t\t\t\t\t\t\tcellDecoratorMap.get(CellStyleHandler.CELL_DECORATOR_GENERIC))\n\t\t\t\t\t\t\t: CellStyleHandler.initializeGenericCellDecorator(workbook));\n\t\t\tcellDecoratorMap.remove(cellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_GENERIC));\n\t\t}\n\t}", "public HTTPHookDecoratorTest(String name) {\n\t\tsuper(name);\n\t}", "private void validateDecorator(IDecorator decorator) {\r\n \t\tif (decorator.getName() != null) {\r\n \t\t\tITextSourceReference declaration = decorator.getAnnotation(CDIConstants.NAMED_QUALIFIER_TYPE_NAME);\r\n \t\t\tif (declaration == null) {\r\n \t\t\t\tdeclaration = decorator.getAnnotation(CDIConstants.DECORATOR_STEREOTYPE_TYPE_NAME);\r\n \t\t\t}\r\n \t\t\tif (declaration == null) {\r\n \t\t\t\tdeclaration = CDIUtil.getNamedStereotypeDeclaration(decorator);\r\n \t\t\t}\r\n \t\t\taddError(CDIValidationMessages.DECORATOR_HAS_NAME, CDIPreferences.DECORATOR_HAS_NAME, declaration, decorator.getResource());\r\n \t\t}\r\n \r\n \t\t/*\r\n \t\t * 2.6.1. Declaring an alternative\r\n \t\t * - decorator is an alternative (Non-Portable behavior)\r\n \t\t */\r\n \t\tif (decorator.isAlternative()) {\r\n \t\t\tITextSourceReference declaration = decorator.getAlternativeDeclaration();\r\n \t\t\tif (declaration == null) {\r\n \t\t\t\tdeclaration = decorator.getDecoratorAnnotation();\r\n \t\t\t}\r\n \t\t\tif(declaration == null) {\r\n \t\t\t\t//for custom implementations\r\n \t\t\t\tdeclaration = decorator.getNameLocation();\r\n \t\t\t}\r\n \t\t\taddError(CDIValidationMessages.DECORATOR_IS_ALTERNATIVE, CDIPreferences.INTERCEPTOR_OR_DECORATOR_IS_ALTERNATIVE, declaration, decorator.getResource());\r\n \t\t}\r\n \r\n \t\t/*\r\n \t\t * 3.3.2. Declaring a producer method\r\n \t\t * - decorator has a method annotated @Produces\r\n \t\t * \r\n \t\t * 3.4.2. Declaring a producer field\r\n \t\t * - decorator has a field annotated @Produces\r\n \t\t */\r\n \t\tSet<IProducer> producers = decorator.getProducers();\r\n \t\tfor (IProducer producer : producers) {\r\n \t\t\taddError(CDIValidationMessages.PRODUCER_IN_DECORATOR, CDIPreferences.PRODUCER_IN_INTERCEPTOR_OR_DECORATOR, producer.getProducesAnnotation(), decorator.getResource());\r\n \t\t}\r\n \r\n \t\tSet<IInjectionPoint> injections = decorator.getInjectionPoints();\r\n \t\tSet<ITextSourceReference> delegates = new HashSet<ITextSourceReference>();\r\n \t\tIInjectionPoint delegate = null;\r\n \t\tfor (IInjectionPoint injection : injections) {\r\n \t\t\tITextSourceReference delegateAnnotation = injection.getDelegateAnnotation();\r\n \t\t\tif(delegateAnnotation!=null) {\r\n \t\t\t\tif(injection instanceof IInjectionPointField) {\r\n \t\t\t\t\tdelegate = injection;\r\n \t\t\t\t\tdelegates.add(delegateAnnotation);\r\n \t\t\t\t}\r\n \t\t\t\tif(injection instanceof IInjectionPointParameter) {\r\n \t\t\t\t\tif(((IInjectionPointParameter) injection).getBeanMethod().getAnnotation(CDIConstants.PRODUCES_ANNOTATION_TYPE_NAME)==null) {\r\n \t\t\t\t\t\tdelegate = injection;\r\n \t\t\t\t\t\tdelegates.add(delegateAnnotation);\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\t/*\r\n \t\t\t\t\t\t * 8.1.2. Decorator delegate injection points\r\n \t\t\t\t\t\t * - injection point that is not an injected field, initializer method parameter or bean constructor method parameter is annotated @Delegate\r\n \t\t\t\t\t\t */\r\n \t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_INJECTION_POINT_DELEGATE, CDIPreferences.ILLEGAL_INJECTION_POINT_DELEGATE, delegateAnnotation, decorator.getResource());\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\tif(delegates.size()>1) {\r\n \t\t\t/*\r\n \t\t\t * 8.1.2. Decorator delegate injection points\r\n \t\t\t * - decorator has more than one delegate injection point\r\n \t\t\t */\r\n \t\t\tfor (ITextSourceReference declaration : delegates) {\r\n \t\t\t\taddError(CDIValidationMessages.MULTIPLE_DELEGATE, CDIPreferences.MULTIPLE_DELEGATE, declaration, decorator.getResource());\r\n \t\t\t}\r\n \t\t} else if(delegates.isEmpty()) {\r\n \t\t\t/*\r\n \t\t\t * 8.1.2. Decorator delegate injection points\r\n \t\t\t * - decorator does not have a delegate injection point\r\n \t\t\t */\r\n \t\t\tIAnnotationDeclaration declaration = decorator.getDecoratorAnnotation();\r\n \t\t\taddError(CDIValidationMessages.MISSING_DELEGATE, CDIPreferences.MISSING_DELEGATE, declaration, decorator.getResource());\r\n \t\t}\r\n \r\n \t\t/*\r\n \t\t * 8.1.3. Decorator delegate injection points\r\n \t\t * - delegate type does not implement or extend a decorated type of the decorator, or specifies different type parameters\r\n \t\t */\r\n \t\tif(delegate!=null) {\r\n \t\t\tIParametedType delegateParametedType = delegate.getType();\r\n \t\t\tif(delegateParametedType!=null) {\r\n \t\t\t\tIType delegateType = delegateParametedType.getType();\r\n \t\t\t\tif(delegateType != null) {\r\n \t\t\t\t\tif(!checkTheOnlySuper(decorator, delegateParametedType)) {\r\n \t\t\t\t\t\tSet<IParametedType> decoratedParametedTypes = decorator.getDecoratedTypes();\r\n \t\t\t\t\t\tList<String> supers = null;\r\n \t\t\t\t\t\tif(!delegateType.isReadOnly()) {\r\n \t\t\t\t\t\t\tgetValidationContext().addLinkedCoreResource(decorator.getResource().getFullPath().toOSString(), delegateType.getResource().getFullPath(), false);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tfor (IParametedType decoratedParametedType : decoratedParametedTypes) {\r\n \t\t\t\t\t\t\tIType decoratedType = decoratedParametedType.getType();\r\n \t\t\t\t\t\t\tif(decoratedType==null) {\r\n \t\t\t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif(!decoratedType.isReadOnly()) {\r\n \t\t\t\t\t\t\t\tgetValidationContext().addLinkedCoreResource(decorator.getResource().getFullPath().toOSString(), decoratedType.getResource().getFullPath(), false);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tString decoratedTypeName = decoratedType.getFullyQualifiedName();\r\n \t\t\t\t\t\t\t// Ignore the type of the decorator class bean\r\n \t\t\t\t\t\t\tif(decoratedTypeName.equals(decorator.getBeanClass().getFullyQualifiedName())) {\r\n \t\t\t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif(decoratedTypeName.equals(\"java.lang.Object\")) { //$NON-NLS-1$\r\n \t\t\t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif(supers==null) {\r\n \t\t\t\t\t\t\t\tsupers = getSuppers(delegateParametedType);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif(supers.contains(decoratedParametedType.getSignature())) {\r\n \t\t\t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\tITextSourceReference declaration = delegate.getDelegateAnnotation();\r\n \t\t\t\t\t\t\t\tif(delegateParametedType instanceof ITypeDeclaration) {\r\n \t\t\t\t\t\t\t\t\tdeclaration = (ITypeDeclaration)delegateParametedType;\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tString typeName = Signature.getSignatureSimpleName(decoratedParametedType.getSignature());\r\n \t\t\t\t\t\t\t\taddError(MessageFormat.format(CDIValidationMessages.DELEGATE_HAS_ILLEGAL_TYPE, typeName), CDIPreferences.DELEGATE_HAS_ILLEGAL_TYPE, declaration, decorator.getResource());\r\n \t\t\t\t\t\t\t\tbreak;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\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}", "void before();", "@Override\n\tpublic void assemble(){\n\t\tsuper.assemble();//This calls the assemble() defined in decorator\n\t\tSystem.out.print(\" Now , Adding features of Sports Car.\");\n\t}", "public String getInfo()\n\t{\n\t\treturn \"Decorate\";\n\t}", "@Override\r\n\tpublic void before(Method m, Object[] arg1, Object traget) throws Throwable {\n\t\tSystem.out.println(\"Before\"+m.getName() + \" this advice call\" );\r\n\t}", "public void introduce() {\n\t\tSystem.out.println(\"[\" + this.className() + \"] \" + this.describeRacer());\n\t}", "@External\r\n\t@SharedFunc\r\n\tpublic MetaVar Trace(){throw new RuntimeException(\"Should never be executed directly, there is probably an error in the Aspect-coding.\");}", "@Override\r\n\tpublic void processInputDetails() {\r\n\t\t// Decorate input details.\r\n\t\tString match = \"\";\r\n\t\tList<String> sentences = id.getSentences();\r\n\r\n\t\tfinal int size = sentences.size();\r\n\t\tfor(int i=0; i<size; i++){\r\n\t\t\tfor(String keyword : listOfKeywords) {\r\n\t\t\t\tmatch = \"(?i)(\\\\b\" + keyword + \"\\\\b)\";\r\n\t\t\t\tsentences.set(i, sentences.get(i).replaceAll(match, (KEYWORD_PREFIX + \"$1\" + KEYWORD_SUFFIX)));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Forward to the next decorator, if any.\r\n\t\tif (null != atd) {\r\n\t\t\tatd.processInputDetails();\r\n\t\t}\r\n\t}", "protected Accumulator<V, R> getDecorated() {\n return decorated;\n }", "@Override\n\tpublic void anular() {\n\n\t}", "private DocumentInterceptor(Context ctx) {\n }", "protected Doodler() {\n\t}", "protected ProductDecorator(Product prod) {\n\t\tproduct = prod;\n\t}", "@Override\r\n\tprotected String doIntercept(ActionInvocation invoker) throws Exception {\n\t\tSystem.out.println(\"ssssssssssss\");\r\n\t\t\r\n\t\treturn invoker.invoke();\r\n\t}", "public void treat()\n\t{\n\t\tstroked();\n\t}", "@Override\n\tpublic void setHasDecorations(boolean hasDecorations) {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "DecoratedCallable(Callable target) {\n super();\n this.target = target;\n }", "Form setDefaultDecoratorsForElementClass(Class<? extends Element> clazz, List<Decorator> decorators);", "public final PythonParser.funcdef_return funcdef() throws RecognitionException {\n PythonParser.funcdef_return retval = new PythonParser.funcdef_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n Token DEF26=null;\n Token NAME27=null;\n Token COLON29=null;\n PythonParser.decorators_return decorators25 = null;\n\n PythonParser.parameters_return parameters28 = null;\n\n PythonParser.suite_return suite30 = null;\n\n\n PythonTree DEF26_tree=null;\n PythonTree NAME27_tree=null;\n PythonTree COLON29_tree=null;\n\n stmt stype = null; \n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:450:5: ( ( decorators )? DEF NAME parameters COLON suite[false] )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:450:7: ( decorators )? DEF NAME parameters COLON suite[false]\n {\n root_0 = (PythonTree)adaptor.nil();\n\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:450:7: ( decorators )?\n int alt14=2;\n int LA14_0 = input.LA(1);\n\n if ( (LA14_0==AT) ) {\n alt14=1;\n }\n switch (alt14) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:450:7: decorators\n {\n pushFollow(FOLLOW_decorators_in_funcdef867);\n decorators25=decorators();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, decorators25.getTree());\n\n }\n break;\n\n }\n\n DEF26=(Token)match(input,DEF,FOLLOW_DEF_in_funcdef870); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n DEF26_tree = (PythonTree)adaptor.create(DEF26);\n adaptor.addChild(root_0, DEF26_tree);\n }\n NAME27=(Token)match(input,NAME,FOLLOW_NAME_in_funcdef872); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n NAME27_tree = (PythonTree)adaptor.create(NAME27);\n adaptor.addChild(root_0, NAME27_tree);\n }\n pushFollow(FOLLOW_parameters_in_funcdef874);\n parameters28=parameters();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, parameters28.getTree());\n COLON29=(Token)match(input,COLON,FOLLOW_COLON_in_funcdef876); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n COLON29_tree = (PythonTree)adaptor.create(COLON29);\n adaptor.addChild(root_0, COLON29_tree);\n }\n pushFollow(FOLLOW_suite_in_funcdef878);\n suite30=suite(false);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, suite30.getTree());\n if ( state.backtracking==0 ) {\n\n Token t = DEF26;\n if ((decorators25!=null?((Token)decorators25.start):null) != null) {\n t = (decorators25!=null?((Token)decorators25.start):null);\n }\n stype = actions.makeFuncdef(t, NAME27, (parameters28!=null?parameters28.args:null), (suite30!=null?suite30.stypes:null), (decorators25!=null?decorators25.etypes:null));\n \n }\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n if ( state.backtracking==0 ) {\n retval.tree = stype; \n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }", "Decorator getDecorator(String id);", "@Override\r\n\tvoid ac() {\n\t\tSystem.out.println(\"normal ac\");\r\n\t}", "default void beforeUse() {\n\t}", "protected abstract void before();", "@Override\n public void addInterceptors( InterceptorRegistry registry ) {\n }", "@Override\n public void beforeFirstLogic() {\n }", "public final void synpred6_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:881:7: ( ( decorators )? DEF )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:881:8: ( decorators )? DEF\n {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:881:8: ( decorators )?\n int alt156=2;\n int LA156_0 = input.LA(1);\n\n if ( (LA156_0==AT) ) {\n alt156=1;\n }\n switch (alt156) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:881:8: decorators\n {\n pushFollow(FOLLOW_decorators_in_synpred6_Python3455);\n decorators();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n match(input,DEF,FOLLOW_DEF_in_synpred6_Python3458); if (state.failed) return ;\n\n }\n }", "@Override\n\tpublic void covidTreatment() {\n\tSystem.out.println(\"FH--covidTreatment\");\n\t\t\n\t}", "@Around(\"execution(public void edu.sjsu.cmpe275.aop.BlogService.*(..))\")\n\tpublic void dummyAdvice(ProceedingJoinPoint joinPoint) {\n\t\tSystem.out.printf(\"Prior to the executuion of the metohd %s\\n\", joinPoint.getSignature().getName());\n\t}", "@Override\n\tpublic void decorate(Alert al) {\n\t\tsuper.al = al;\n\t}", "@Override\n public int[] decorate(SubscriptionList subscriptionList) {\n for (Customer customer:subscriptionList.getSubscription()) {\n System.out.println(\"Notified \" + customer);\n }\n return decorator.decorate(subscriptionList);\n }", "protected void render() {\n\t\tString accion = Thread.currentThread().getStackTrace()[2].getMethodName();\n\t\trender(accion);\n\t}", "@Override\n public void beforeAll(ExtensionContext context) {\n }", "private void courseEffects() {\n\t\t\n\t}", "@Override\r\n\tpublic void configInterceptor(Interceptors me) {\n\r\n\t}", "private AnnotationTarget() {\n void var2_-1;\n void var1_-1;\n }", "@Override\n\tpublic void addInterceptors(InterceptorRegistry registry) {\n\t\tregistry.addInterceptor(thymeleafLayoutInterceptor);\n\t}", "default public void met() {\n\t\tSystem.out.println(\"met called...\");\n\t}", "@Override\r\n public void afterVisit() {\n final MethodCallUtils.EnclosingRefs enclosing = \r\n MethodCallUtils.getEnclosingInstanceReferences(\r\n thisExprBinder, expr,\r\n superClassDecl,\r\n context.theReceiverNode, getEnclosingSyntacticDecl());\r\n /* The transformer will already be set in the map correctly for these\r\n * effects when they are original generated. We are just modifying\r\n * the lock and evidence information for the effects.\r\n */\r\n for (final Effect e : newContext.theEffects.build()) {\r\n Effect maskedEffect = e.mask(thisExprBinder);\r\n if (maskedEffect != null) {\r\n // Mask again if the effect is on the receiver of the anonymous class\r\n if (maskedEffect.affectsReceiver(newContext.theReceiverNode)) {\r\n context.theEffects.add(\r\n Effect.effect(\r\n maskedEffect.getSource(), maskedEffect.isRead(),\r\n new EmptyTarget(new EmptyEvidence(Reason.UNDER_CONSTRUCTION)),\r\n new MaskedEffectEvidence(maskedEffect),\r\n maskedEffect.getNeededLocks()));\r\n } else {\r\n final Target target = maskedEffect.getTarget();\r\n \r\n final TargetEvidence te = target.getEvidence();\r\n if (te instanceof EmptyEvidence\r\n && ((EmptyEvidence) te).getReason() == Reason.METHOD_CALL) {\r\n /* Special case: empty effect that carries lock preconditions */\r\n final ImmutableSet.Builder<NeededLock> newLockSet = ImmutableSet.builder();\r\n for (final NeededLock lock : maskedEffect.getNeededLocks()) {\r\n newLockSet.add(lock.replaceEnclosingInstanceReference(enclosing));\r\n }\r\n context.theEffects.add(\r\n Effect.empty(maskedEffect.getSource(),\r\n new EmptyEvidence(Reason.METHOD_CALL), \r\n ImmutableSet.of(getEvidence()), newLockSet.build()));\r\n } else if (target instanceof InstanceTarget) {\r\n final IRNode ref = target.getReference();\r\n \r\n final IRNode newRef = enclosing.replace(ref);\r\n if (newRef != null) {\r\n final IRNode objectExpr = thisExprBinder.bindThisExpression(newRef);\r\n final Target newTarget = new InstanceTarget(\r\n objectExpr, target.getRegion(),\r\n new EnclosingRefEvidence(maskedEffect.getSource(), ref, newRef));\r\n final Set<NeededLock> newLocks = new HashSet<>();\r\n for (final NeededLock lock : maskedEffect.getNeededLocks()) {\r\n newLocks.add(lock.replaceEnclosingInstanceReference(enclosing));\r\n }\r\n elaborateInstanceTarget(\r\n context.bcaQuery, lockFactory, thisExprBinder, lockModel.get(),\r\n maskedEffect.getSource(), maskedEffect.isRead(), newTarget, getEvidence(),\r\n newLocks, context.theEffects);\r\n } else {\r\n /* XXX: Not sure if it is possible to get here. External\r\n * variable references are turned into ANyInstance targets\r\n * during elaboration.\r\n */\r\n /* 2012-08-24: We have to clean the type to make sure it is not a \r\n * type formal.\r\n */\r\n IJavaType type = thisExprBinder.getJavaType(ref);\r\n if (type instanceof IJavaTypeFormal) {\r\n type = TypeUtil.typeFormalToDeclaredClass(\r\n thisExprBinder.getTypeEnvironment(), (IJavaTypeFormal) type);\r\n }\r\n context.theEffects.add(Effect.effect(\r\n maskedEffect.getSource(), maskedEffect.isRead(),\r\n new AnyInstanceTarget(\r\n (IJavaReferenceType) type, target.getRegion(),\r\n new UnknownReferenceConversionEvidence(\r\n maskedEffect, ref, (IJavaReferenceType) type)),\r\n getEvidence(), maskedEffect.getNeededLocks()));\r\n }\r\n } else {\r\n context.theEffects.add(\r\n maskedEffect.updateEvidence(target.getEvidence(), ImmutableSet.of(getEvidence())));\r\n }\r\n }\r\n }\r\n }\r\n }", "@Test\n public void testDecorateAllPublicMethodsFromTest() {\n Class<? extends Config> dynamicConfigClass = getDynamicConfigClass();\n Method[] methods = dynamicConfigClass.getMethods();\n for (Method method : methods) {\n if (DynamicConfigurationAwareConfigTest.isMethodStatic(method)) {\n continue;\n }\n if (DynamicConfigurationAwareConfigTest.isMethodDeclaredByClass(method, Object.class)) {\n // let's skip methods like wait() or notify() - declared directly in the Object class\n continue;\n }\n // all other public method should be overridden by the dynamic config aware decorator\n if (!(DynamicConfigurationAwareConfigTest.isMethodDeclaredByClass(method, dynamicConfigClass))) {\n Class<?> declaringClass = method.getDeclaringClass();\n Assert.fail(((((((\"Method \" + method) + \" is declared by \") + declaringClass) + \" whilst it should be\") + \" declared by \") + dynamicConfigClass));\n }\n }\n }", "private final void inject() {\n }", "public interface InvocationInstrumenter {\n\n /**\n * Noop implementation if {@link InvocationInstrumenter}.\n */\n InvocationInstrumenter NOOP = new InvocationInstrumenter() {\n @Override\n public void beforeInvocation() {\n }\n\n @Override\n public void afterInvocation(boolean cleanup) {\n }\n };\n\n /**\n * Before call.\n */\n void beforeInvocation();\n\n /**\n * After call.\n *\n * @param cleanup Whether to enforce cleanup\n */\n void afterInvocation(boolean cleanup);\n\n /**\n * After call defaults to not enforcing cleanup.\n */\n default void afterInvocation() {\n afterInvocation(false);\n }\n\n /**\n * Combines multiple instrumenters into one.\n *\n * @param invocationInstrumenters instrumenters to combine\n * @return new instrumenter\n */\n static @NonNull InvocationInstrumenter combine(Collection<InvocationInstrumenter> invocationInstrumenters) {\n if (CollectionUtils.isEmpty(invocationInstrumenters)) {\n return NOOP;\n }\n if (invocationInstrumenters.size() == 1) {\n return invocationInstrumenters.iterator().next();\n }\n return new MultipleInvocationInstrumenter(invocationInstrumenters);\n }\n\n /**\n * Wrappers {@link Runnable} with instrumentation invocations.\n *\n * @param runnable {@link Runnable} to be wrapped\n * @param invocationInstrumenters instrumenters to be used\n * @return wrapper\n */\n static @NonNull Runnable instrument(@NonNull Runnable runnable, Collection<InvocationInstrumenter> invocationInstrumenters) {\n if (CollectionUtils.isEmpty(invocationInstrumenters)) {\n return runnable;\n }\n return instrument(runnable, combine(invocationInstrumenters));\n }\n\n\n /**\n * Wrappers {@link Callable} with instrumentation invocations.\n *\n * @param callable {@link Callable} to be wrapped\n * @param invocationInstrumenters instrumenters to be used\n * @param <V> callable generic param\n * @return wrapper\n */\n static @NonNull <V> Callable<V> instrument(@NonNull Callable<V> callable, Collection<InvocationInstrumenter> invocationInstrumenters) {\n if (CollectionUtils.isEmpty(invocationInstrumenters)) {\n return callable;\n }\n return instrument(callable, combine(invocationInstrumenters));\n }\n\n /**\n * Wrappers {@link Runnable} with instrumentation invocations.\n *\n * @param runnable {@link Runnable} to be wrapped\n * @param invocationInstrumenter instrumenter to be used\n * @return wrapper\n */\n static @NonNull Runnable instrument(@NonNull Runnable runnable, InvocationInstrumenter invocationInstrumenter) {\n if (runnable instanceof InvocationInstrumenterWrappedRunnable) {\n return runnable;\n }\n return new InvocationInstrumenterWrappedRunnable(invocationInstrumenter, runnable);\n }\n\n /**\n * Wrappers {@link Callable} with instrumentation invocations.\n *\n * @param callable {@link Callable} to be wrapped\n * @param invocationInstrumenter instrumenter to be used\n * @param <V> callable generic param\n * @return wrapper\n */\n static @NonNull <V> Callable<V> instrument(@NonNull Callable<V> callable, InvocationInstrumenter invocationInstrumenter) {\n if (callable instanceof InvocationInstrumenterWrappedCallable) {\n return callable;\n }\n return new InvocationInstrumenterWrappedCallable<>(invocationInstrumenter, callable);\n }\n\n}", "@Override\n public Collection<PmCommandDecorator> getDecorators(org.pm4j.core.pm.PmTable.TableChange change) {\n return Collections.emptyList();\n }", "@Override\n public void generateAll(AdviceHook hook) {\n super.generateAll(hook);\n // now the VMA advice templates\n generateStackAdjustTemplates();\n generateShortConstTemplates();\n generateConstTemplates();\n generateLDCTemplates();\n generateLoadTemplates();\n generateStoreTemplates();\n generateIINC();\n generateIfTemplates();\n generateIfCmpTemplates();\n generateGotoTemplates();\n// generateInvokeAfterTemplates();\n }", "public void smell() {\n\t\t\n\t}", "@Override\n public void addDecorator(PmCommandDecorator decorator, org.pm4j.core.pm.PmTable.TableChange... changes) {\n\n }", "public JsonFactory setOutputDecorator(OutputDecorator d)\n/* */ {\n/* 682 */ this._outputDecorator = d;\n/* 683 */ return this;\n/* */ }", "private void treatUniqueDecoratorViaCriteria() throws ConfigurationException {\n\t\tif (uniqueCellStyle) {\n\t\t\t/* treat all the styles declared via annotation */\n\t\t\tfor (Map.Entry<String, CellStyle> object : stylesMap.entrySet()) {\n\t\t\t\tstylesMap.put(object.getKey(),\n\t\t\t\t\t\tCellStyleHandler.initializeCellStyleByCellDecorator(workbook, cellDecoratorUnique));\n\t\t\t}\n\t\t}\n\n\t\t/* treat all default styles non-declared */\n\t\ttreatmentHeaderDecorator();\n\t\ttreatmentGenericDecorator();\n\t\ttreatmentNumericDecorator();\n\t\ttreatmentDateDecorator();\n\t\ttreatmentBooleanDecorator();\n\t\ttreatmentEnumDecorator();\n\n\t\t/* treat all the styles non-default override via XConfigCriteria */\n\t\ttreatmentSpecificDecorator();\n\t}", "public ADecoratorPaintStrategy(APaintStrategy decoree) {\n\t\tsuper(new AffineTransform());\n\t\tthis.decoree = decoree;\n\t}", "protected abstract void runReturnAnnotationHandler();", "@Override\r\n\tprotected void doPre() {\n\t\t\r\n\t}", "public DecorateurCourrier(Courrier<?> c) {\n\t\tsuper(c.getExpediteur(),c.getDestinataire(),c);\n\t}", "public void wrap(CtClass clazz, Collection methodInfos) throws Exception\n {\n for (Iterator iterator = methodInfos.iterator(); iterator.hasNext();)\n {\n org.jboss.aop.MethodInfo methodInfo = (org.jboss.aop.MethodInfo) iterator.next();\n Method method = methodInfo.getAdvisedMethod();\n AOPClassPool classPool = (AOPClassPool) clazz.getClassPool();\n Class[] parameterTypes = method.getParameterTypes();\n CtClass[] javassistParameterTypes = new CtClass[parameterTypes.length];\n for (int i = 0; i < parameterTypes.length; i++)\n {\n classPool.getLocally(parameterTypes[i].getName());\n }\n if (method.getName().indexOf(\"access$\") >= 0)\n {\n continue;\n }\n \n String wrappedName = ClassAdvisor.notAdvisedMethodName(clazz.getName(), method.getName());\n CtMethod wmethod = clazz.getDeclaredMethod(method.getName(), javassistParameterTypes);\n if (wrapper.isNotPrepared(wmethod, WrapperTransformer.SINGLE_TRANSFORMATION_INDEX))\n {\n continue;\n }\n MethodTransformation trans = new MethodTransformation(\n instrumentor,\n clazz,\n clazz.getDeclaredMethod(wrappedName, javassistParameterTypes),\n method.getName(),\n clazz.getDeclaredMethod(method.getName(), javassistParameterTypes),\n wrappedName);\n \n // wrap\n wrapper.wrap(trans.getWMethod(), WrapperTransformer.SINGLE_TRANSFORMATION_INDEX);\n // executeWrapping\n String methodInfoFieldName = getMethodInfoFieldName(trans.getOriginalName(), trans.getHash());\n doWrap(trans, methodInfoFieldName);\n }\n }", "public final PythonParser.decorator_return decorator() throws RecognitionException {\n PythonParser.decorator_return retval = new PythonParser.decorator_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n Token AT19=null;\n Token LPAREN21=null;\n Token RPAREN23=null;\n Token NEWLINE24=null;\n PythonParser.dotted_attr_return dotted_attr20 = null;\n\n PythonParser.arglist_return arglist22 = null;\n\n\n PythonTree AT19_tree=null;\n PythonTree LPAREN21_tree=null;\n PythonTree RPAREN23_tree=null;\n PythonTree NEWLINE24_tree=null;\n\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:417:5: ( AT dotted_attr ( LPAREN ( arglist | ) RPAREN | ) NEWLINE )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:417:7: AT dotted_attr ( LPAREN ( arglist | ) RPAREN | ) NEWLINE\n {\n root_0 = (PythonTree)adaptor.nil();\n\n AT19=(Token)match(input,AT,FOLLOW_AT_in_decorator716); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n AT19_tree = (PythonTree)adaptor.create(AT19);\n adaptor.addChild(root_0, AT19_tree);\n }\n pushFollow(FOLLOW_dotted_attr_in_decorator718);\n dotted_attr20=dotted_attr();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, dotted_attr20.getTree());\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:418:5: ( LPAREN ( arglist | ) RPAREN | )\n int alt12=2;\n int LA12_0 = input.LA(1);\n\n if ( (LA12_0==LPAREN) ) {\n alt12=1;\n }\n else if ( (LA12_0==NEWLINE) ) {\n alt12=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 12, 0, input);\n\n throw nvae;\n }\n switch (alt12) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:418:7: LPAREN ( arglist | ) RPAREN\n {\n LPAREN21=(Token)match(input,LPAREN,FOLLOW_LPAREN_in_decorator726); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n LPAREN21_tree = (PythonTree)adaptor.create(LPAREN21);\n adaptor.addChild(root_0, LPAREN21_tree);\n }\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:419:7: ( arglist | )\n int alt11=2;\n int LA11_0 = input.LA(1);\n\n if ( (LA11_0==NAME||(LA11_0>=LAMBDA && LA11_0<=NOT)||LA11_0==LPAREN||(LA11_0>=STAR && LA11_0<=DOUBLESTAR)||(LA11_0>=PLUS && LA11_0<=MINUS)||(LA11_0>=TILDE && LA11_0<=LBRACK)||LA11_0==LCURLY||(LA11_0>=BACKQUOTE && LA11_0<=STRING)) ) {\n alt11=1;\n }\n else if ( (LA11_0==RPAREN) ) {\n alt11=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 11, 0, input);\n\n throw nvae;\n }\n switch (alt11) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:419:9: arglist\n {\n pushFollow(FOLLOW_arglist_in_decorator736);\n arglist22=arglist();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, arglist22.getTree());\n if ( state.backtracking==0 ) {\n\n retval.etype = actions.makeCall(LPAREN21, (dotted_attr20!=null?dotted_attr20.etype:null), (arglist22!=null?arglist22.args:null), (arglist22!=null?arglist22.keywords:null),\n (arglist22!=null?arglist22.starargs:null), (arglist22!=null?arglist22.kwargs:null));\n \n }\n\n }\n break;\n case 2 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:425:9: \n {\n if ( state.backtracking==0 ) {\n\n retval.etype = actions.makeCall(LPAREN21, (dotted_attr20!=null?dotted_attr20.etype:null));\n \n }\n\n }\n break;\n\n }\n\n RPAREN23=(Token)match(input,RPAREN,FOLLOW_RPAREN_in_decorator780); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n RPAREN23_tree = (PythonTree)adaptor.create(RPAREN23);\n adaptor.addChild(root_0, RPAREN23_tree);\n }\n\n }\n break;\n case 2 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:431:7: \n {\n if ( state.backtracking==0 ) {\n\n retval.etype = (dotted_attr20!=null?dotted_attr20.etype:null);\n \n }\n\n }\n break;\n\n }\n\n NEWLINE24=(Token)match(input,NEWLINE,FOLLOW_NEWLINE_in_decorator802); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n NEWLINE24_tree = (PythonTree)adaptor.create(NEWLINE24);\n adaptor.addChild(root_0, NEWLINE24_tree);\n }\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n if ( state.backtracking==0 ) {\n\n retval.tree = retval.etype;\n\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private void inject() {\n }", "@Before(\"forDaoPackage()\")\r\n\tpublic void beforeAddAccountAdvice() {\r\n\t\tSystem.out.println(\"\\n=======>>>>> execution @Before advice on addAccount\");\r\n\t\t// run this code BEFORE-target object method: \"public void addAccount()\"\r\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onModifierStarted(IModifier<IEntity> arg0, IEntity arg1) {\n\t\t\t\t\t\t\t}", "@Override\n\tpublic void intercept(Object... objects) {\n\t\t\n\t}", "@Override\n protected void doProcess(ITemplateContext context, IModel model, AttributeName attributeName,\n String attributeValue, IElementModelStructureHandler structureHandler) {\n\n // Ensure that every element to this point contained a decorate processor\n for (IProcessableElementTag element : context.getElementStack()) {\n if (element.getAttribute(attributeName) == null) {\n throw new IllegalArgumentException(\"layout:decorate/data-layout-decorate must appear in the root element of your template\");\n }\n }\n\n TemplateModelFinder templateModelFinder = new TemplateModelFinder(context);\n\n // Remove the decorate processor from the root element\n IProcessableElementTag rootElement = (IProcessableElementTag) MetaClass.first(model);\n if (rootElement.hasAttribute(attributeName)) {\n rootElement = context.getModelFactory().removeAttribute(rootElement, attributeName);\n model.replace(0, rootElement);\n }\n\n // Load the entirety of this template\n // TODO: Can probably find a way of preventing this double-loading for #102\n String contentTemplateName = context.getTemplateData().getTemplate();\n IModel contentTemplate = templateModelFinder.findTemplate(contentTemplateName).cloneModel();\n contentTemplate.replace(MetaClass.findIndexOf(contentTemplate, event -> event instanceof IOpenElementTag), rootElement);\n\n // Locate the template to decorate\n FragmentExpression decorateTemplateExpression = new ExpressionProcessor(context).parseFragmentExpression(attributeValue);\n IModel decorateTemplate = templateModelFinder.findTemplate(decorateTemplateExpression).cloneModel();\n\n // Gather all fragment parts from this page to apply to the new document\n // after decoration has taken place\n Map<String, IModel> pageFragments = new FragmentFinder(getDialectPrefix()).findFragments(model);\n\n // Choose the decorator to use based on template mode, then apply it\n TemplateMode templateMode = getTemplateMode();\n XmlDocumentDecorator decorator\n = templateMode == TemplateMode.HTML ? new HtmlDocumentDecorator(context, sortingStrategy)\n : templateMode == TemplateMode.XML ? new XmlDocumentDecorator(context)\n : null;\n if (decorator == null) {\n throw new IllegalArgumentException(\n \"Layout dialect cannot be applied to the \" + templateMode + \" template mode, only HTML and XML template modes are currently supported\"\n );\n }\n IModel resultTemplate = decorator.decorate(decorateTemplate, contentTemplate);\n MetaClass.replaceModel(model, 0, resultTemplate);\n\n // Save layout fragments for use later by layout:fragment processors\n FragmentMap.setForNode(context, structureHandler, pageFragments);\n }", "Session decorate(Session session);", "@Override\n\t\t\tpublic void onModifierStarted(IModifier<IEntity> arg0, IEntity arg1) {\n\t\t\t}", "@Before(\"execution(* add*(org.ms.aopdemo.Account))\") //runs just with param we need fully qualified class name\n\tpublic void beforeAddAccountAdvice() {\n\t\tSystem.out.println(\"\\n Executing @Before advice on addAccount()\");\n\t}", "public void before() {\n }", "public void before() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "static void init() {\n ReplaceRule.define(\"endcomment\",\r\n new Regex(\"\\\\*/\",\"*/${POP}</font>\"));\r\n Comment3 = (new Regex(\"/\\\\*\",\"<font color=\"+\r\n CommentColor+\">/*${+endcomment}\"));\r\n\r\n // Jasmine stuff\r\n Regex.define(\"JasmineEnabled\",\"\",new Validator() {\r\n public int validate(String src,int begin,int end) {\r\n return jasmine_enabled ? end : -1;\r\n }\r\n });\r\n colorize.add(\r\n \"s{(??JasmineEnabled)^\\\\s*;\\\\s*&gt;&gt;.*}\"+\r\n \"{<HR><H3>$&</H3>}\");\r\n colorize.add(\r\n \"s{(??JasmineEnabled)(?:^|\\\\s)\\\\s*;.*}\"+\r\n \"{<font color=\"+CommentColor+\">$&</font>}\");\r\n colorize.add(\r\n \"s{(??JasmineEnabled)\\\\b(?:catch|class|end|field|\"+\r\n \"implements|interface|limit|line|method|source|super|\"+\r\n \"throws|var|stack|locals)\\\\b}{<font color=\"+\r\n DirectiveColor+\"><b>$&</b></font>}\");\r\n colorize.add(\r\n \"s{(??JasmineEnabled)^\\\\w+:}{<font color=\"+\r\n LabelColor+\"><b>$&</b></font>}\");\r\n\r\n // stick all replacement rules into the Transformer\r\n colorize.add(DQuotes);\r\n colorize.add(SQuotes);\r\n colorize.add(Comment1);\r\n colorize.add(Comment2);\r\n colorize.add(Comment3);\r\n colorize.add(PrimitiveTypes);\r\n colorize.add(Keywords);\r\n colorize.add(java_lang);\r\n colorize.add(oper);\r\n colorize.add(Regex.perlCode(\r\n \"s'\\\\w*(Error|Exception|Throwable)\\\\b'<font color=red>$&</font>'\"));\r\n\r\n ReplaceRule.define(\"colorize\",colorize);\r\n\r\n ReplaceRule.define(\"jascode\",new ReplaceRule() {\r\n public void apply(StringBufferLike sb,RegRes rr) {\r\n String s1 = rr.stringMatched(1);\r\n if(s1 != null && s1.equals(\"jas\"))\r\n jasmine_enabled = true;\r\n }\r\n });\r\n\r\n Regex r = new Regex(\"(?i)<(java|jas)code([^>]*?)>\\\\s*\",\r\n \"<!-- made by java2html, \"+\r\n \"see http://javaregex.com -->\"+\r\n \"<table $2 ><tr><td bgcolor=\"+\r\n DocumentBackgroundColor+\r\n \"><pre>${jascode}${+colorize}\");\r\n r.optimize();\r\n\r\n colorize.add(new Regex(\"(?i)\\\\s*</(?:java|jas)code>\",\r\n \"</pre></td></tr></table>${POP}\"));\r\n\r\n html_replacer = r.getReplacer();\r\n\r\n Transformer DoPre = new Transformer(true);\r\n DoPre.add(\"s'(?i)\\\\s*</(?:jav|jas)acode>'$&$POP'\");\r\n DoPre.add(\"s'<'&lt;'\");\r\n DoPre.add(\"s'>'&gt;'\");\r\n DoPre.add(\"s'&'&amp;'\");\r\n ReplaceRule.define(\"DOPRE\",DoPre);\r\n pretran_html = new Regex(\"(?i)<javacode[^>]*>\",\"$&${+DOPRE}\").getReplacer();\r\n pretran_java = DoPre.getReplacer();\r\n }", "@Override\n public void close() throws IOException \n { \n decorator.flush(entries);\n }", "private void treatmentDateDecorator() throws ConfigurationException {\n\t\tif (stylesMap.get(CellStyleHandler.CELL_DECORATOR_DATE) == null) {\n\t\t\tstylesMap.put(CellStyleHandler.CELL_DECORATOR_DATE,\n\t\t\t\t\tcellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_DATE)\n\t\t\t\t\t\t\t? CellStyleHandler.initializeCellStyleByCellDecorator(workbook,\n\t\t\t\t\t\t\t\t\tcellDecoratorMap.get(CellStyleHandler.CELL_DECORATOR_DATE))\n\t\t\t\t\t\t\t: CellStyleHandler.initializeDateCellDecorator(workbook));\n\t\t\tcellDecoratorMap.remove(cellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_DATE));\n\t\t}\n\t}", "@After(\"execution(* test.aspect.lib.Tools.call*(..))\")\n\tpublic void callToolCalled() {\n\t\tlogger.info(\"AFTER ADVICE: Tools callable called\");\n\t}", "@Override\n\tpublic Mediator decorate() {\n\t\n\t\tMediator tf = this.wrappee.decorate();\n\t\ttf.broadcast(new ActionsPaneColorChanged(colorMode));\n//\t\ttf.getActions().setBackground(backgroundColor);\n//\t\ttf.getActions().getDone().setBackground(buttonColor);\n//\t\ttf.getActions().getDone().setForeground(textColor);\n//\t\ttf.getActions().getRemove().setBackground(buttonColor);\n//\t\ttf.getActions().getRemove().setForeground(textColor);\n\t\t\n\t\treturn tf;\n\t}", "@Before(\"springdemo.AOPOrders.Aspect.LuvAopExpressions.forDaoPackageNoGetterSetter()\") // apply pointcut declaration to advice\n public void beforeAddAccountAdvice(){\n System.out.println(\"\\n ===> Executing @Before advice on method\");\n }", "@Test public void currentSpanVisibleToUserInterceptors() throws Exception {\n closeClient(client);\n\n client = newClient(\n new ClientInterceptor() {\n @Override public <ReqT, RespT> ClientCall<ReqT, RespT> interceptCall(\n MethodDescriptor<ReqT, RespT> method, CallOptions callOptions, Channel next) {\n testLogger.info(\"in span!\");\n tracer.currentSpanCustomizer().annotate(\"before\");\n return new ForwardingClientCall.SimpleForwardingClientCall<ReqT, RespT>(\n next.newCall(method, callOptions)) {\n @Override\n public void start(Listener<RespT> responseListener, Metadata headers) {\n tracer.currentSpanCustomizer().annotate(\"start\");\n super.start(responseListener, headers);\n }\n };\n }\n },\n tracing.newClientInterceptor()\n );\n\n GreeterGrpc.newBlockingStub(client).sayHello(HELLO_REQUEST);\n\n assertThat(takeSpan().annotations())\n .extracting(Annotation::value)\n .containsOnly(\"before\", \"start\");\n }", "@Override\n public void test() {\n \n }", "protected DDLambda(Context cxt, String xrayTraceInfo) {\n this();\n this.tracing = new Tracing(xrayTraceInfo);\n this.enhanced = checkEnhanced();\n recordEnhanced(INVOCATION, cxt);\n addTraceContextToMDC();\n startSpan(new HashMap<>(), cxt);\n }", "@Override\n\tpublic void requestLawyer() {\n\t\tSystem.out.println(\"xiaoming-requestLawyer\");\n\t}", "public DDLambda(Headerable req, Context cxt) {\n this();\n this.enhanced = checkEnhanced();\n recordEnhanced(INVOCATION, cxt);\n this.tracing = new Tracing(req);\n this.tracing.submitSegment();\n addTraceContextToMDC();\n startSpan(req.getHeaders(), cxt);\n }", "@Override\n\tpublic void addInterceptors(InterceptorRegistry registry) {\n\t\tregistry.addInterceptor(li).addPathPatterns(\"/**\").excludePathPatterns(\"/index\",\"/login\",\"/ValidateCode.jpg\");\n\t}", "protected void doSomethingElse()\r\n {\r\n \r\n }" ]
[ "0.58746934", "0.58336085", "0.5801752", "0.566975", "0.56221086", "0.56150466", "0.5586697", "0.5485503", "0.54152006", "0.54046303", "0.5355693", "0.532686", "0.5324007", "0.531677", "0.52938116", "0.52260065", "0.52250415", "0.52182317", "0.52110773", "0.52106136", "0.51403683", "0.51324946", "0.5118791", "0.5116294", "0.5087591", "0.50710833", "0.5051505", "0.5045628", "0.5035296", "0.5013173", "0.5003495", "0.4977957", "0.4960728", "0.4957403", "0.49568778", "0.49564284", "0.4937617", "0.49370438", "0.49346772", "0.49252605", "0.4919159", "0.49148193", "0.49069396", "0.49037474", "0.48999965", "0.48850027", "0.48774922", "0.48614907", "0.48607212", "0.48546302", "0.48491538", "0.48409566", "0.48392764", "0.48282284", "0.48281378", "0.4822322", "0.482099", "0.48197526", "0.48132747", "0.48107445", "0.4807741", "0.4806822", "0.47979107", "0.4795566", "0.47889683", "0.47864062", "0.478555", "0.47648302", "0.4761479", "0.47493318", "0.47482497", "0.47368175", "0.4735355", "0.47282666", "0.47182196", "0.47161964", "0.47106788", "0.47089386", "0.4707273", "0.4702169", "0.47017568", "0.46999687", "0.4695527", "0.46919134", "0.46909252", "0.46909252", "0.46856236", "0.4681418", "0.46799344", "0.46643138", "0.46622428", "0.46565974", "0.46561715", "0.46560532", "0.4647742", "0.46473455", "0.4645885", "0.4640416", "0.46372637", "0.46330217" ]
0.6046444
0
Treatment of the decorators using unique decorator declared via criteria. If the unique decorator is activated, will override all others decorators by the unique decorator.
private void treatUniqueDecoratorViaCriteria() throws ConfigurationException { if (uniqueCellStyle) { /* treat all the styles declared via annotation */ for (Map.Entry<String, CellStyle> object : stylesMap.entrySet()) { stylesMap.put(object.getKey(), CellStyleHandler.initializeCellStyleByCellDecorator(workbook, cellDecoratorUnique)); } } /* treat all default styles non-declared */ treatmentHeaderDecorator(); treatmentGenericDecorator(); treatmentNumericDecorator(); treatmentDateDecorator(); treatmentBooleanDecorator(); treatmentEnumDecorator(); /* treat all the styles non-default override via XConfigCriteria */ treatmentSpecificDecorator(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void treatmentSpecificDecorator() throws ConfigurationException {\n\t\tfor (Map.Entry<String, CellDecorator> object : cellDecoratorMap.entrySet()) {\n\t\t\tif (uniqueCellStyle) {\n\t\t\t\t/*\n\t\t\t\t * when activate unique style, set all styles with the declared\n\t\t\t\t * style\n\t\t\t\t */\n\t\t\t\tstylesMap.put(object.getKey(),\n\t\t\t\t\t\tCellStyleHandler.initializeCellStyleByCellDecorator(workbook, cellDecoratorUnique));\n\t\t\t} else {\n\t\t\t\tstylesMap.put(object.getKey(),\n\t\t\t\t\t\tCellStyleHandler.initializeCellStyleByCellDecorator(workbook, object.getValue()));\n\t\t\t}\n\t\t}\n\t}", "private void treatmentBasicDecorator() throws ConfigurationException {\n\t\t/* treat all default styles non-declared */\n\t\ttreatmentHeaderDecorator();\n\t\ttreatmentGenericDecorator();\n\t\ttreatmentNumericDecorator();\n\t\ttreatmentDateDecorator();\n\t\ttreatmentBooleanDecorator();\n\t\ttreatmentEnumDecorator();\n\n\t\t/* treat all the styles non-default override via XConfigCriteria */\n\t\tfor (Map.Entry<String, CellDecorator> object : cellDecoratorMap.entrySet()) {\n\t\t\tstylesMap.put(object.getKey(),\n\t\t\t\t\tCellStyleHandler.initializeCellStyleByCellDecorator(workbook, object.getValue()));\n\t\t}\n\t}", "private void treatmentGenericDecorator() throws ConfigurationException {\n\t\tif (stylesMap.get(CellStyleHandler.CELL_DECORATOR_GENERIC) == null) {\n\t\t\tstylesMap.put(CellStyleHandler.CELL_DECORATOR_GENERIC,\n\t\t\t\t\tcellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_GENERIC)\n\t\t\t\t\t\t\t? CellStyleHandler.initializeCellStyleByCellDecorator(workbook,\n\t\t\t\t\t\t\t\t\tcellDecoratorMap.get(CellStyleHandler.CELL_DECORATOR_GENERIC))\n\t\t\t\t\t\t\t: CellStyleHandler.initializeGenericCellDecorator(workbook));\n\t\t\tcellDecoratorMap.remove(cellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_GENERIC));\n\t\t}\n\t}", "private void treatmentHeaderDecorator() throws ConfigurationException {\n\t\tif (stylesMap.get(CellStyleHandler.CELL_DECORATOR_HEADER) == null) {\n\t\t\tstylesMap.put(CellStyleHandler.CELL_DECORATOR_HEADER,\n\t\t\t\t\tcellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_HEADER)\n\t\t\t\t\t\t\t? CellStyleHandler.initializeCellStyleByCellDecorator(workbook,\n\t\t\t\t\t\t\t\t\tcellDecoratorMap.get(CellStyleHandler.CELL_DECORATOR_HEADER))\n\t\t\t\t\t\t\t: CellStyleHandler.initializeHeaderCellDecorator(workbook));\n\t\t\tcellDecoratorMap.remove(cellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_HEADER));\n\t\t}\n\t}", "Decorator getDecorator(String id);", "private void addCritters(String critter_name, int num) {\n\t\tfor(int i = 0; i<num; i++){\n\t\t\ttry{\n\t\t\t\tCritter.makeCritter(critter_name);\n\t\t\t}catch(InvalidCritterException e){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t protected void applyCustomConfiguration(SiteMeshFilterBuilder builder) {\n\t\t builder.addDecoratorPath(\"/*\", \"/WEB-INF/jsp/decorator/decorator.jsp\")\n//\t\t .addDecoratorPaths(\"/articles/*\", \"/decorators/article.html\",\n//\t\t \"/decoratos/two-page-layout.html\",\n//\t\t \"/decorators/common.html\")\n\t\t // Exclude path from decoration.\n\t\t .addExcludedPath(\"/member/list.do\")\n\t\t .addExcludedPath(\"/base/codeWindow.html*\")\n\t\t .addExcludedPath(\"/base/postWindow.html*\");\n\t\t \n\t\t builder.addTagRuleBundles(new DivExtractingTagRuleBundle());\n\n\t }", "public final PythonParser.decorators_return decorators() throws RecognitionException {\n PythonParser.decorators_return retval = new PythonParser.decorators_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n List list_d=null;\n PythonParser.decorator_return d = null;\n d = null;\n\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:440:5: ( (d+= decorator )+ )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:440:7: (d+= decorator )+\n {\n root_0 = (PythonTree)adaptor.nil();\n\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:440:8: (d+= decorator )+\n int cnt13=0;\n loop13:\n do {\n int alt13=2;\n int LA13_0 = input.LA(1);\n\n if ( (LA13_0==AT) ) {\n alt13=1;\n }\n\n\n switch (alt13) {\n \tcase 1 :\n \t // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:440:8: d+= decorator\n \t {\n \t pushFollow(FOLLOW_decorator_in_decorators830);\n \t d=decorator();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) adaptor.addChild(root_0, d.getTree());\n \t if (list_d==null) list_d=new ArrayList();\n \t list_d.add(d.getTree());\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt13 >= 1 ) break loop13;\n \t if (state.backtracking>0) {state.failed=true; return retval;}\n EarlyExitException eee =\n new EarlyExitException(13, input);\n throw eee;\n }\n cnt13++;\n } while (true);\n\n if ( state.backtracking==0 ) {\n\n retval.etypes = list_d;\n \n }\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }", "private void validateDecorator(IDecorator decorator) {\r\n \t\tif (decorator.getName() != null) {\r\n \t\t\tITextSourceReference declaration = decorator.getAnnotation(CDIConstants.NAMED_QUALIFIER_TYPE_NAME);\r\n \t\t\tif (declaration == null) {\r\n \t\t\t\tdeclaration = decorator.getAnnotation(CDIConstants.DECORATOR_STEREOTYPE_TYPE_NAME);\r\n \t\t\t}\r\n \t\t\tif (declaration == null) {\r\n \t\t\t\tdeclaration = CDIUtil.getNamedStereotypeDeclaration(decorator);\r\n \t\t\t}\r\n \t\t\taddError(CDIValidationMessages.DECORATOR_HAS_NAME, CDIPreferences.DECORATOR_HAS_NAME, declaration, decorator.getResource());\r\n \t\t}\r\n \r\n \t\t/*\r\n \t\t * 2.6.1. Declaring an alternative\r\n \t\t * - decorator is an alternative (Non-Portable behavior)\r\n \t\t */\r\n \t\tif (decorator.isAlternative()) {\r\n \t\t\tITextSourceReference declaration = decorator.getAlternativeDeclaration();\r\n \t\t\tif (declaration == null) {\r\n \t\t\t\tdeclaration = decorator.getDecoratorAnnotation();\r\n \t\t\t}\r\n \t\t\tif(declaration == null) {\r\n \t\t\t\t//for custom implementations\r\n \t\t\t\tdeclaration = decorator.getNameLocation();\r\n \t\t\t}\r\n \t\t\taddError(CDIValidationMessages.DECORATOR_IS_ALTERNATIVE, CDIPreferences.INTERCEPTOR_OR_DECORATOR_IS_ALTERNATIVE, declaration, decorator.getResource());\r\n \t\t}\r\n \r\n \t\t/*\r\n \t\t * 3.3.2. Declaring a producer method\r\n \t\t * - decorator has a method annotated @Produces\r\n \t\t * \r\n \t\t * 3.4.2. Declaring a producer field\r\n \t\t * - decorator has a field annotated @Produces\r\n \t\t */\r\n \t\tSet<IProducer> producers = decorator.getProducers();\r\n \t\tfor (IProducer producer : producers) {\r\n \t\t\taddError(CDIValidationMessages.PRODUCER_IN_DECORATOR, CDIPreferences.PRODUCER_IN_INTERCEPTOR_OR_DECORATOR, producer.getProducesAnnotation(), decorator.getResource());\r\n \t\t}\r\n \r\n \t\tSet<IInjectionPoint> injections = decorator.getInjectionPoints();\r\n \t\tSet<ITextSourceReference> delegates = new HashSet<ITextSourceReference>();\r\n \t\tIInjectionPoint delegate = null;\r\n \t\tfor (IInjectionPoint injection : injections) {\r\n \t\t\tITextSourceReference delegateAnnotation = injection.getDelegateAnnotation();\r\n \t\t\tif(delegateAnnotation!=null) {\r\n \t\t\t\tif(injection instanceof IInjectionPointField) {\r\n \t\t\t\t\tdelegate = injection;\r\n \t\t\t\t\tdelegates.add(delegateAnnotation);\r\n \t\t\t\t}\r\n \t\t\t\tif(injection instanceof IInjectionPointParameter) {\r\n \t\t\t\t\tif(((IInjectionPointParameter) injection).getBeanMethod().getAnnotation(CDIConstants.PRODUCES_ANNOTATION_TYPE_NAME)==null) {\r\n \t\t\t\t\t\tdelegate = injection;\r\n \t\t\t\t\t\tdelegates.add(delegateAnnotation);\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\t/*\r\n \t\t\t\t\t\t * 8.1.2. Decorator delegate injection points\r\n \t\t\t\t\t\t * - injection point that is not an injected field, initializer method parameter or bean constructor method parameter is annotated @Delegate\r\n \t\t\t\t\t\t */\r\n \t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_INJECTION_POINT_DELEGATE, CDIPreferences.ILLEGAL_INJECTION_POINT_DELEGATE, delegateAnnotation, decorator.getResource());\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\tif(delegates.size()>1) {\r\n \t\t\t/*\r\n \t\t\t * 8.1.2. Decorator delegate injection points\r\n \t\t\t * - decorator has more than one delegate injection point\r\n \t\t\t */\r\n \t\t\tfor (ITextSourceReference declaration : delegates) {\r\n \t\t\t\taddError(CDIValidationMessages.MULTIPLE_DELEGATE, CDIPreferences.MULTIPLE_DELEGATE, declaration, decorator.getResource());\r\n \t\t\t}\r\n \t\t} else if(delegates.isEmpty()) {\r\n \t\t\t/*\r\n \t\t\t * 8.1.2. Decorator delegate injection points\r\n \t\t\t * - decorator does not have a delegate injection point\r\n \t\t\t */\r\n \t\t\tIAnnotationDeclaration declaration = decorator.getDecoratorAnnotation();\r\n \t\t\taddError(CDIValidationMessages.MISSING_DELEGATE, CDIPreferences.MISSING_DELEGATE, declaration, decorator.getResource());\r\n \t\t}\r\n \r\n \t\t/*\r\n \t\t * 8.1.3. Decorator delegate injection points\r\n \t\t * - delegate type does not implement or extend a decorated type of the decorator, or specifies different type parameters\r\n \t\t */\r\n \t\tif(delegate!=null) {\r\n \t\t\tIParametedType delegateParametedType = delegate.getType();\r\n \t\t\tif(delegateParametedType!=null) {\r\n \t\t\t\tIType delegateType = delegateParametedType.getType();\r\n \t\t\t\tif(delegateType != null) {\r\n \t\t\t\t\tif(!checkTheOnlySuper(decorator, delegateParametedType)) {\r\n \t\t\t\t\t\tSet<IParametedType> decoratedParametedTypes = decorator.getDecoratedTypes();\r\n \t\t\t\t\t\tList<String> supers = null;\r\n \t\t\t\t\t\tif(!delegateType.isReadOnly()) {\r\n \t\t\t\t\t\t\tgetValidationContext().addLinkedCoreResource(decorator.getResource().getFullPath().toOSString(), delegateType.getResource().getFullPath(), false);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tfor (IParametedType decoratedParametedType : decoratedParametedTypes) {\r\n \t\t\t\t\t\t\tIType decoratedType = decoratedParametedType.getType();\r\n \t\t\t\t\t\t\tif(decoratedType==null) {\r\n \t\t\t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif(!decoratedType.isReadOnly()) {\r\n \t\t\t\t\t\t\t\tgetValidationContext().addLinkedCoreResource(decorator.getResource().getFullPath().toOSString(), decoratedType.getResource().getFullPath(), false);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tString decoratedTypeName = decoratedType.getFullyQualifiedName();\r\n \t\t\t\t\t\t\t// Ignore the type of the decorator class bean\r\n \t\t\t\t\t\t\tif(decoratedTypeName.equals(decorator.getBeanClass().getFullyQualifiedName())) {\r\n \t\t\t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif(decoratedTypeName.equals(\"java.lang.Object\")) { //$NON-NLS-1$\r\n \t\t\t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif(supers==null) {\r\n \t\t\t\t\t\t\t\tsupers = getSuppers(delegateParametedType);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif(supers.contains(decoratedParametedType.getSignature())) {\r\n \t\t\t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\tITextSourceReference declaration = delegate.getDelegateAnnotation();\r\n \t\t\t\t\t\t\t\tif(delegateParametedType instanceof ITypeDeclaration) {\r\n \t\t\t\t\t\t\t\t\tdeclaration = (ITypeDeclaration)delegateParametedType;\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tString typeName = Signature.getSignatureSimpleName(decoratedParametedType.getSignature());\r\n \t\t\t\t\t\t\t\taddError(MessageFormat.format(CDIValidationMessages.DELEGATE_HAS_ILLEGAL_TYPE, typeName), CDIPreferences.DELEGATE_HAS_ILLEGAL_TYPE, declaration, decorator.getResource());\r\n \t\t\t\t\t\t\t\tbreak;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\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}", "Form setDefaultDecoratorsForElementClass(Class<? extends Element> clazz, List<Decorator> decorators);", "public abstract String getDecoratorInfo();", "private void decorateUIDelegateMouseListener(Component component) {\n // replace the first MouseListener that appears to be installed by the UI Delegate\n final MouseListener[] mouseListeners = component.getMouseListeners();\n for (int i = mouseListeners.length-1; i >= 0; i--) {\n if (mouseListeners[i].getClass().getName().indexOf(\"TableUI\") != -1) {\n component.removeMouseListener(mouseListeners[i]);\n component.addMouseListener(new ExpandAndCollapseMouseListener(mouseListeners[i]));\n break;\n }\n }\n }", "Map<String, Decorator> getDecorators();", "private void generalizeCSACriteria(){\n\t\tArrayList<ServiceTemplate> comps = new ArrayList<ServiceTemplate>() ;\n\t\tArrayList<Criterion> crit = new ArrayList<Criterion>() ;\n\t\t\n\t\tcomps = this.data.getServiceTemplates();\n\t\tcrit = this.data.getCriteria();\n\t\t\n\t\tfor(ServiceTemplate c : comps){\n\t\t\tfor(Criterion cr : crit){\n\t\t\t\ttry {\n\t\t\t\t\tCriterion temp = (Criterion) BeanUtils.cloneBean(cr);\n\t\t\t\t\tc.addCrit(temp);\n\t\t\t\t} catch (IllegalAccessException | InstantiationException | InvocationTargetException | NoSuchMethodException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n public void afterVisit() {\n final MethodCallUtils.EnclosingRefs enclosing = \r\n MethodCallUtils.getEnclosingInstanceReferences(\r\n thisExprBinder, expr,\r\n superClassDecl,\r\n context.theReceiverNode, getEnclosingSyntacticDecl());\r\n /* The transformer will already be set in the map correctly for these\r\n * effects when they are original generated. We are just modifying\r\n * the lock and evidence information for the effects.\r\n */\r\n for (final Effect e : newContext.theEffects.build()) {\r\n Effect maskedEffect = e.mask(thisExprBinder);\r\n if (maskedEffect != null) {\r\n // Mask again if the effect is on the receiver of the anonymous class\r\n if (maskedEffect.affectsReceiver(newContext.theReceiverNode)) {\r\n context.theEffects.add(\r\n Effect.effect(\r\n maskedEffect.getSource(), maskedEffect.isRead(),\r\n new EmptyTarget(new EmptyEvidence(Reason.UNDER_CONSTRUCTION)),\r\n new MaskedEffectEvidence(maskedEffect),\r\n maskedEffect.getNeededLocks()));\r\n } else {\r\n final Target target = maskedEffect.getTarget();\r\n \r\n final TargetEvidence te = target.getEvidence();\r\n if (te instanceof EmptyEvidence\r\n && ((EmptyEvidence) te).getReason() == Reason.METHOD_CALL) {\r\n /* Special case: empty effect that carries lock preconditions */\r\n final ImmutableSet.Builder<NeededLock> newLockSet = ImmutableSet.builder();\r\n for (final NeededLock lock : maskedEffect.getNeededLocks()) {\r\n newLockSet.add(lock.replaceEnclosingInstanceReference(enclosing));\r\n }\r\n context.theEffects.add(\r\n Effect.empty(maskedEffect.getSource(),\r\n new EmptyEvidence(Reason.METHOD_CALL), \r\n ImmutableSet.of(getEvidence()), newLockSet.build()));\r\n } else if (target instanceof InstanceTarget) {\r\n final IRNode ref = target.getReference();\r\n \r\n final IRNode newRef = enclosing.replace(ref);\r\n if (newRef != null) {\r\n final IRNode objectExpr = thisExprBinder.bindThisExpression(newRef);\r\n final Target newTarget = new InstanceTarget(\r\n objectExpr, target.getRegion(),\r\n new EnclosingRefEvidence(maskedEffect.getSource(), ref, newRef));\r\n final Set<NeededLock> newLocks = new HashSet<>();\r\n for (final NeededLock lock : maskedEffect.getNeededLocks()) {\r\n newLocks.add(lock.replaceEnclosingInstanceReference(enclosing));\r\n }\r\n elaborateInstanceTarget(\r\n context.bcaQuery, lockFactory, thisExprBinder, lockModel.get(),\r\n maskedEffect.getSource(), maskedEffect.isRead(), newTarget, getEvidence(),\r\n newLocks, context.theEffects);\r\n } else {\r\n /* XXX: Not sure if it is possible to get here. External\r\n * variable references are turned into ANyInstance targets\r\n * during elaboration.\r\n */\r\n /* 2012-08-24: We have to clean the type to make sure it is not a \r\n * type formal.\r\n */\r\n IJavaType type = thisExprBinder.getJavaType(ref);\r\n if (type instanceof IJavaTypeFormal) {\r\n type = TypeUtil.typeFormalToDeclaredClass(\r\n thisExprBinder.getTypeEnvironment(), (IJavaTypeFormal) type);\r\n }\r\n context.theEffects.add(Effect.effect(\r\n maskedEffect.getSource(), maskedEffect.isRead(),\r\n new AnyInstanceTarget(\r\n (IJavaReferenceType) type, target.getRegion(),\r\n new UnknownReferenceConversionEvidence(\r\n maskedEffect, ref, (IJavaReferenceType) type)),\r\n getEvidence(), maskedEffect.getNeededLocks()));\r\n }\r\n } else {\r\n context.theEffects.add(\r\n maskedEffect.updateEvidence(target.getEvidence(), ImmutableSet.of(getEvidence())));\r\n }\r\n }\r\n }\r\n }\r\n }", "@VisibleForTesting\n void reportOnce() {\n additionalAttributes = additionalAttributesSupplier.get();\n if (additionalAttributes == null) {\n additionalAttributes = Collections.emptyMap();\n }\n\n metricRegistry.getGauges().forEach(this::reportGauge);\n\n metricRegistry.getCounters().forEach(this::reportCounter);\n\n metricRegistry.getMeters().forEach(this::reportMeter);\n\n metricRegistry.getHistograms().forEach(this::reportHistogram);\n\n metricRegistry.getTimers().forEach(this::reportTimer);\n }", "public static void main(String[] args) {\n Car sportsCar = new SportsCarDecorator(new BaseCar());\n\n //sportsCar.manufactureCar();\n\n /**\n * Demand for Electric Car\n */\n Car electricCar = new ElectricCarDecorator(new BaseCar());\n\n //electricCar.manufactureCar();\n\n /**\n * Create a Sport Electric Car\n */\n\n Car sportsElectricCar = new ElectricCarDecorator(new SportsCarDecorator(new BaseCar()));\n //sportsElectricCar.manufactureCar();\n\n\n Car superCar = new LuxuryCarDecorator(new ElectricCarDecorator(new SportsCarDecorator(new BaseCar())));\n\n superCar.manufactureCar();\n }", "@Override\n public void addDecorator(PmCommandDecorator decorator, org.pm4j.core.pm.PmTable.TableChange... changes) {\n\n }", "@Override\n public Collection<PmCommandDecorator> getDecorators(org.pm4j.core.pm.PmTable.TableChange change) {\n return Collections.emptyList();\n }", "List<Decorator> getDefaultDecoratorsForElementClass(Class<? extends Element> clazz);", "private void treatmentEnumDecorator() throws ConfigurationException {\n\t\tif (stylesMap.get(CellStyleHandler.CELL_DECORATOR_ENUM) == null) {\n\t\t\tstylesMap.put(CellStyleHandler.CELL_DECORATOR_ENUM,\n\t\t\t\t\tcellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_ENUM)\n\t\t\t\t\t\t\t? CellStyleHandler.initializeCellStyleByCellDecorator(workbook,\n\t\t\t\t\t\t\t\t\tcellDecoratorMap.get(CellStyleHandler.CELL_DECORATOR_ENUM))\n\t\t\t\t\t\t\t: CellStyleHandler.initializeGenericCellDecorator(workbook));\n\t\t\tcellDecoratorMap.remove(cellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_ENUM));\n\t\t}\n\t}", "public void or(Criteria criteria) {\r\n\t\toredCriteria.add(criteria);\r\n\t}", "public void or(Criteria criteria) {\r\n\t\toredCriteria.add(criteria);\r\n\t}", "public void or(Criteria criteria) {\r\n\t\toredCriteria.add(criteria);\r\n\t}", "public void or(Criteria criteria) {\r\n\t\toredCriteria.add(criteria);\r\n\t}", "public void or(Criteria criteria) {\r\n\t\toredCriteria.add(criteria);\r\n\t}", "public void or(Criteria criteria) {\r\n\t\toredCriteria.add(criteria);\r\n\t}", "public void or(Criteria criteria) {\r\n\t\toredCriteria.add(criteria);\r\n\t}", "public void or(Criteria criteria) {\r\n\t\toredCriteria.add(criteria);\r\n\t}", "public void or(Criteria criteria) {\r\n\t\toredCriteria.add(criteria);\r\n\t}", "public void or(Criteria criteria) {\n\t\toredCriteria.add(criteria);\n\t}", "public void or(Criteria criteria) {\n\t\toredCriteria.add(criteria);\n\t}", "public void or(Criteria criteria) {\n\t\toredCriteria.add(criteria);\n\t}", "public void or(Criteria criteria) {\n\t\toredCriteria.add(criteria);\n\t}", "public void or(Criteria criteria) {\n\t\toredCriteria.add(criteria);\n\t}", "public void or(Criteria criteria) {\n\t\toredCriteria.add(criteria);\n\t}", "public void or(Criteria criteria) {\n\t\toredCriteria.add(criteria);\n\t}", "public void or(Criteria criteria) {\n\t\toredCriteria.add(criteria);\n\t}", "public void or(Criteria criteria) {\n\t\toredCriteria.add(criteria);\n\t}", "public void or(Criteria criteria) {\n\t\toredCriteria.add(criteria);\n\t}", "public void or(Criteria criteria) {\n\t\toredCriteria.add(criteria);\n\t}", "public void or(Criteria criteria) {\n\t\toredCriteria.add(criteria);\n\t}", "public void or(Criteria criteria) {\n\t\toredCriteria.add(criteria);\n\t}", "Form addDefaultDecoratorForElementClass(Class<? extends Element> clazz, Decorator decorator);", "private void treatmentBooleanDecorator() throws ConfigurationException {\n\t\tif (stylesMap.get(CellStyleHandler.CELL_DECORATOR_BOOLEAN) == null) {\n\t\t\tstylesMap.put(CellStyleHandler.CELL_DECORATOR_BOOLEAN,\n\t\t\t\t\tcellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_BOOLEAN)\n\t\t\t\t\t\t\t? CellStyleHandler.initializeCellStyleByCellDecorator(workbook,\n\t\t\t\t\t\t\t\t\tcellDecoratorMap.get(CellStyleHandler.CELL_DECORATOR_BOOLEAN))\n\t\t\t\t\t\t\t: CellStyleHandler.initializeBooleanCellDecorator(workbook));\n\t\t\tcellDecoratorMap.remove(cellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_BOOLEAN));\n\t\t}\n\t}", "private void withdrawIntercepts() {\n TrafficSelector.Builder selector = DefaultTrafficSelector.builder();\n selector.matchEthType(Ethernet.TYPE_IPV4);\n packetService.cancelPackets(selector.build(), PacketPriority.REACTIVE, appId);\n selector.matchEthType(Ethernet.TYPE_ARP);\n packetService.cancelPackets(selector.build(), PacketPriority.REACTIVE, appId);\n selector.matchEthType(Ethernet.TYPE_IPV6);\n packetService.cancelPackets(selector.build(), PacketPriority.REACTIVE, appId);\n }", "Form removeDecorator(String id);", "@Test\n public void ownerArgumentNotAddedForNonRestrictedReadWithUserPools() throws AmplifyException {\n final AuthorizationType mode = AuthorizationType.AMAZON_COGNITO_USER_POOLS;\n\n // OwnerCreate class only has restriction on CREATE\n for (SubscriptionType subscriptionType : SubscriptionType.values()) {\n GraphQLRequest<OwnerCreate> originalRequest = createRequest(OwnerCreate.class, subscriptionType);\n GraphQLRequest<OwnerCreate> modifiedRequest = decorator.decorate(originalRequest, mode);\n assertNull(getOwnerField(modifiedRequest));\n }\n\n // OwnerUpdate class only has restriction on UPDATE\n for (SubscriptionType subscriptionType : SubscriptionType.values()) {\n GraphQLRequest<OwnerUpdate> originalRequest = createRequest(OwnerUpdate.class, subscriptionType);\n GraphQLRequest<OwnerUpdate> modifiedRequest = decorator.decorate(originalRequest, mode);\n assertNull(getOwnerField(modifiedRequest));\n }\n\n // OwnerDelete class only has restriction on DELETE\n for (SubscriptionType subscriptionType : SubscriptionType.values()) {\n GraphQLRequest<OwnerDelete> originalRequest = createRequest(OwnerDelete.class, subscriptionType);\n GraphQLRequest<OwnerDelete> modifiedRequest = decorator.decorate(originalRequest, mode);\n assertNull(getOwnerField(modifiedRequest));\n }\n }", "public ADecoratorPaintStrategy(APaintStrategy decoree) {\n\t\tsuper(new AffineTransform());\n\t\tthis.decoree = decoree;\n\t}", "public interface SessionDecorator\n{\n \n /**\n * Decorates the session and returns another decorated session.\n * \n * @param session\n */\n Session decorate(Session session);\n \n /**\n * Decorates the session and returns another decorated session\n * with the user ID used to acquire the session\n * \n * @param session\n * @param userID\n */\n Session decorate(Session session, String userID);\n \n}", "public final void synpred6_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:881:7: ( ( decorators )? DEF )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:881:8: ( decorators )? DEF\n {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:881:8: ( decorators )?\n int alt156=2;\n int LA156_0 = input.LA(1);\n\n if ( (LA156_0==AT) ) {\n alt156=1;\n }\n switch (alt156) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:881:8: decorators\n {\n pushFollow(FOLLOW_decorators_in_synpred6_Python3455);\n decorators();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n match(input,DEF,FOLLOW_DEF_in_synpred6_Python3458); if (state.failed) return ;\n\n }\n }", "public NoiseCleaner(CleaningDecorator next) { super(next); }", "private void treatmentDateDecorator() throws ConfigurationException {\n\t\tif (stylesMap.get(CellStyleHandler.CELL_DECORATOR_DATE) == null) {\n\t\t\tstylesMap.put(CellStyleHandler.CELL_DECORATOR_DATE,\n\t\t\t\t\tcellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_DATE)\n\t\t\t\t\t\t\t? CellStyleHandler.initializeCellStyleByCellDecorator(workbook,\n\t\t\t\t\t\t\t\t\tcellDecoratorMap.get(CellStyleHandler.CELL_DECORATOR_DATE))\n\t\t\t\t\t\t\t: CellStyleHandler.initializeDateCellDecorator(workbook));\n\t\t\tcellDecoratorMap.remove(cellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_DATE));\n\t\t}\n\t}", "private List<Method> getTargetMethods(Class<? extends Annotation> ann) {\n List<List<Method>> list = mutableCopy(\n removeShadowed(removeOverrides(annotatedWith(allTargetMethods, ann))));\n \n // Reverse processing order to super...clazz for befores\n if (ann == Before.class || ann == BeforeClass.class) {\n Collections.reverse(list);\n }\n \n // Shuffle at class level.\n Random rnd = new Random(runnerRandomness.seed);\n for (List<Method> clazzLevel : list) {\n Collections.shuffle(clazzLevel, rnd);\n }\n \n return flatten(list);\n }", "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }", "public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }", "public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }", "public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }", "public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }", "public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }", "public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }", "public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }", "public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }", "public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }", "public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }", "public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }", "public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }", "public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }", "public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }", "public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }", "public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }", "public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }", "public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }", "public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }", "public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }", "public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }", "public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }", "public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }" ]
[ "0.6135098", "0.5010086", "0.49301863", "0.4705664", "0.46653143", "0.4659662", "0.46550122", "0.46029985", "0.447184", "0.4463738", "0.44223157", "0.43842548", "0.42965323", "0.42851543", "0.42801398", "0.42198533", "0.4215516", "0.4205783", "0.41985002", "0.41943863", "0.41784024", "0.4166217", "0.4166217", "0.4166217", "0.4166217", "0.4166217", "0.4166217", "0.4166217", "0.4166217", "0.4166217", "0.41581327", "0.41581327", "0.41581327", "0.41581327", "0.41581327", "0.41581327", "0.41581327", "0.41581327", "0.41581327", "0.41581327", "0.41581327", "0.41581327", "0.41581327", "0.4147207", "0.414345", "0.41381055", "0.41290846", "0.4126771", "0.4111114", "0.4107045", "0.41007563", "0.4098783", "0.4079678", "0.40683234", "0.4067095", "0.4067095", "0.4067095", "0.4067095", "0.4067095", "0.4067095", "0.4067095", "0.4067095", "0.4067095", "0.4067095", "0.4067095", "0.4067095", "0.4067095", "0.4067095", "0.4067095", "0.4067095", "0.4067095", "0.4067095", "0.4067095", "0.4067095", "0.4067095", "0.4067095", "0.4065758", "0.4065758", "0.4065758", "0.4065758", "0.4065758", "0.4065758", "0.4065758", "0.4065758", "0.4065758", "0.4065758", "0.4065758", "0.4065758", "0.4065758", "0.4065758", "0.4065758", "0.4065758", "0.4065758", "0.4065758", "0.4065758", "0.4065758", "0.4065758", "0.4065758", "0.4065758", "0.4065758" ]
0.74349594
0
Set the header decorator by default if not declared via annotation.
private void treatmentHeaderDecorator() throws ConfigurationException { if (stylesMap.get(CellStyleHandler.CELL_DECORATOR_HEADER) == null) { stylesMap.put(CellStyleHandler.CELL_DECORATOR_HEADER, cellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_HEADER) ? CellStyleHandler.initializeCellStyleByCellDecorator(workbook, cellDecoratorMap.get(CellStyleHandler.CELL_DECORATOR_HEADER)) : CellStyleHandler.initializeHeaderCellDecorator(workbook)); cellDecoratorMap.remove(cellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_HEADER)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setHeader(String arg0, String arg1) {\n\n }", "public void setHeader(String header) {\n\t\tthis.header = header;\n\t\tthis.handleConfig(\"header\", header);\n\t}", "void setHeader(java.lang.String header);", "public void setHeaderFlag(boolean flag) {\n configuration.put(ConfigTag.HEADER, flag);\n }", "public void setHeader(String header) {\n this.header = header;\n }", "@attribute(value = \"\", required = false, defaultValue = \"default value is false\")\r\n\tpublic void setHeader(Boolean isHeader) {\r\n\t\tthis.header = isHeader;\r\n\t}", "public void setHeader(String header) {\n\t\tthis.header = header;\n\t}", "public void setHeader(String header) {\n\t\t_header = header;\n\t}", "@Override\n public void setHeaderIndices() {\n }", "void setHeader(HttpServletResponse response, String name, String value);", "void setHeader(String headerName, String headerValue);", "public void setRequestHeader(Header header) {\n \n Header[] headers = getRequestHeaderGroup().getHeaders(header.getName());\n \n for (int i = 0; i < headers.length; i++) {\n getRequestHeaderGroup().removeHeader(headers[i]);\n }\n \n getRequestHeaderGroup().addHeader(header);\n \n }", "public void setHeader(String _header) {\n\t\tthis.header = _header;\n\t}", "public void setPageHeader(String header)\n {\n // ignore\n }", "public void setHeader(boolean isHeader) {\n this.isHeader = isHeader;\n }", "public Header() {\n\t\tsuper(tag(Header.class)); \n\t}", "void setHeader(@NonNull String name, @Nullable String value) {\n if (value == null) {\n removeHeader(name);\n } else {\n headers.put(name, value);\n }\n }", "public <T> void setHeaderOrFooter(boolean header, @Nullable T data,\n @Nullable IViewHolderGenerator<T> generator) {\n if (generator == null) {\n mHolderGenerators.remove(data.getClass().hashCode());\n if (header) {\n mHeader = null;\n } else {\n mFooter = null;\n }\n return;\n }\n mHolderGenerators.put(data.getClass().hashCode(), generator);\n if (header) {\n mHeader = data;\n } else {\n mFooter = data;\n }\n }", "@Override\n public void addHeader(String arg0, String arg1) {\n\n }", "void setHeaderAccessibility(String firstName, String am, String shot);", "HttpClientRequest header(CharSequence name, CharSequence value);", "public UserAgentHeaderInterceptor(String userAgent)\n {\n super(HEADER_NAME, userAgent);\n }", "@Override\n public String getHeader(String name) {\n if (name.equalsIgnoreCase(\"Authorization\")) {\n return getAuthorizationHeader();\n } else {\n return super.getHeader(name);\n }\n }", "public void setHeader(String header) {\n this.header = header == null ? null : header.trim();\n }", "default boolean hasHeader() {\n return true;\n }", "@Override\n\tpublic void addHeader(String name, String value) {\n\t}", "@Override\n public String setValue(String value) {\n throw new UnsupportedOperationException(\n \"default headers cannot be changed\");\n }", "@Override\n public void setHeader(String name, String value) {\n this._getHttpServletResponse().setHeader(name, value);\n }", "@JsonProperty(PROTECTED_HEADER)\n public H getHeader();", "interface HeadersService {\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: fixtures.azurespecials.Headers customNamedRequestId\" })\n @POST(\"azurespecials/customNamedRequestId\")\n Observable<Response<ResponseBody>> customNamedRequestId(@Header(\"foo-client-request-id\") String fooClientRequestId, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: fixtures.azurespecials.Headers customNamedRequestIdParamGrouping\" })\n @POST(\"azurespecials/customNamedRequestIdParamGrouping\")\n Observable<Response<ResponseBody>> customNamedRequestIdParamGrouping(@Header(\"accept-language\") String acceptLanguage, @Header(\"foo-client-request-id\") String fooClientRequestId, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: fixtures.azurespecials.Headers customNamedRequestIdHead\" })\n @HEAD(\"azurespecials/customNamedRequestIdHead\")\n Observable<Response<Void>> customNamedRequestIdHead(@Header(\"foo-client-request-id\") String fooClientRequestId, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n }", "interface HeaderService {\n @Headers(\"Content-Type: application/json; charset=utf-8\")\n @POST(\"azurespecials/customNamedRequestId\")\n Call<ResponseBody> customNamedRequestId(@Header(\"foo-client-request-id\") String fooClientRequestId, @Header(\"accept-language\") String acceptLanguage);\n\n }", "public static void header(String s) {\n\t\t// header2.set(s);\n\t}", "private HeaderUtil() {}", "public Class<?> header() {\n return header;\n }", "public void addRequestHeader(String name, String value);", "default boolean visitHeader() {\n\t\treturn true;\n\t}", "@Override\n\tpublic void addRequestHeader(String headername, String value) {\n \t// We are not adding in common http headers \n \tif (!COMMON_HTTP_HEADERS.contains(headername.toLowerCase())) {\n \t\ttransLogModelThreadLocal.get().getRequestHeadersMap().put(headername, value);\n \t}\n\t}", "@Override\n\t\tpublic String getHeader(String name) {\n\t\t\treturn null;\n\t\t}", "protected void addDynamicHeaders() {\n }", "@Override\n public RestGetRequestBuilder withHeader(String name, String value) {\n requestBuilder.header(name, value);\n return this;\n }", "public void setHeader(final Header header) {\n mHeader=header;\n updateFields();\n }", "public void addRequestHeader(Header header) {\n LOG.trace(\"HttpMethodBase.addRequestHeader(Header)\");\n\n if (header == null) {\n LOG.debug(\"null header value ignored\");\n } else {\n getRequestHeaderGroup().addHeader(header);\n }\n }", "public interface ReplacesHeader extends Parameters, Header {\n /**\n *set the to tag of the Replaces header.\n *@param tag - the tag to set.\n *@throws NullPointerException if null tag is set.\n *@throws ParseException if invalid characters are in the tag.\n */\n public void setToTag(String tag) throws ParseException,NullPointerException;\n\n /**\n *Set the From tag of the Replaces header.\n *@param tag - the tag to set.\n *@throws NullPointerException if null tag is set.\n *@throws ParseException if invalid characters are in the tag.\n */\n public void setFromTag(String tag) throws ParseException,NullPointerException;\n\n /**\n *Get the previously set to tag or <it>Null</it> if no tag set.\n */\n public String getToTag();\n\n /**\n *Get the previously set From tag or <it>Null</it> if no tag set.\n */\n public String getFromTag();\n \n /**\n *Set the CallId of the Replaces header.\n *@param callId - the callId to set.\n *@throws NullPointerException if null tag is set.\n *@throws ParseException if invalid characters are in the tag.\n */\n public void setCallId(String callId) throws ParseException,NullPointerException;\n\n /**\n * get the previously set call Id or Null if nothing has been set.\n */\n public String getCallId();\n\n /**\n * The header NAME.\n */\n public final static String NAME = \"Replaces\";\n\n}", "Header createHeader();", "HttpClientRequest addHeader(CharSequence name, CharSequence value);", "@Override\r\n\tpublic void loadHeader() {\n\r\n\t}", "public void setDecoratedDefinition(BeanDefinitionHolder decoratedDefinition)\n/* */ {\n/* 214 */ this.decoratedDefinition = decoratedDefinition;\n/* */ }", "public ResourceClient setHeaderOverride( String theName, String theValue ) {\r\n\t\t// this implementation may seem heavy-weight BUT it should be called very\r\n\t\t// rarely and when it does it cannot interfere with any existing calls \r\n\t\t// that may be using/iterating over the collection\r\n\t\tPreconditions.checkArgument( !Strings.isNullOrEmpty( theName ), \"need a header name\" );\r\n\r\n\t\ttheName = \"override.header.\" + theName; // tales does this by having 'override.header.' prepended to the header name\r\n\t\tsynchronized( this.overrideLock ) {\r\n\t\t\tMap<String,String > newOverrides = new HashMap<String, String>( this.headerOverrides );\r\n\t\t\tif( theValue == null ) {\r\n\t\t\t\tnewOverrides.remove( theName );\r\n\t\t\t} else {\r\n\t\t\t\tnewOverrides.put( theName, theValue );\r\n\t\t\t}\r\n\t\t\tthis.headerOverrides = newOverrides;\r\n\t\t\tthis.externalHeaderOverrides = Collections.unmodifiableMap( newOverrides );\r\n\t\t}\r\n\t\treturn this;\r\n\t}", "public void setColumnHeaderView(Component paramComponent) {\n/* 1143 */ if (getColumnHeader() == null) {\n/* 1144 */ setColumnHeader(createViewport());\n/* */ }\n/* 1146 */ getColumnHeader().setView(paramComponent);\n/* */ }", "@Override\n public void setDateHeader(String arg0, long arg1) {\n\n }", "private void setBottomSheetHeader(View child) {\n if (child instanceof BottomSheetBehaviorView) {\n View view = child.findViewWithTag(BottomSheetHeaderView.TAG);\n if (view != null && view instanceof BottomSheetHeaderView) {\n BottomSheetBehaviorView b = (BottomSheetBehaviorView) child;\n RNBottomSheetBehavior behavior = b.behavior;\n headerView = (BottomSheetHeaderView) view;\n headerView.registerFields();\n headerView.toggle(behavior.getState() == RNBottomSheetBehavior.STATE_COLLAPSED);\n behavior.setHeader(headerView);\n }\n }\n }", "protected void updateHeader() {\n\t}", "@Given(\"^API Headers are set$\")\n public void apiHeadersAreSet(){\n\n myRequest.contentType(ContentType.JSON)\n .baseUri(\"http://10.4.10.105/api/v1/\")\n .header(\"Auth-token\",\"ec6effac-7b12-4021-ba80-c682169cff60\");\n\n }", "@Api(1.1)\n @NonNull\n public Builder header(@NonNull String key, @NonNull String value) {\n mRequestBuilder.header(key, value);\n return this;\n }", "@Override\n public void setIntHeader(String arg0, int arg1) {\n\n }", "public interface PrivacyHeader extends Header\n{\n\n /**\n * Name of PrivacyHeader\n */\n public final static String NAME = \"Privacy\";\n\n\n /**\n * Set Privacy header value\n * @param privacy -- privacy type to set.\n */\n public void setPrivacy(String privacy) throws ParseException;\n\n /**\n * Get Privacy header value\n * @return privacy token name\n */\n public String getPrivacy();\n\n\n}", "public final void header() throws RecognitionException {\n\t\tToken ACTION3=null;\n\n\t\ttry {\n\t\t\t// org/antlr/gunit/gUnit.g:83:8: ( '@header' ACTION )\n\t\t\t// org/antlr/gunit/gUnit.g:83:10: '@header' ACTION\n\t\t\t{\n\t\t\tmatch(input,30,FOLLOW_30_in_header157); \n\t\t\tACTION3=(Token)match(input,ACTION,FOLLOW_ACTION_in_header159); \n\n\t\t\t\t\tint pos1, pos2;\n\t\t\t\t\tif ( (pos1=(ACTION3!=null?ACTION3.getText():null).indexOf(\"package\"))!=-1 && (pos2=(ACTION3!=null?ACTION3.getText():null).indexOf(';'))!=-1 ) {\n\t\t\t\t\t\tgrammarInfo.setGrammarPackage((ACTION3!=null?ACTION3.getText():null).substring(pos1+8, pos2).trim());\t// substring the package path\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.err.println(\"error(line \"+ACTION3.getLine()+\"): invalid header\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "RequestBuilder setHeaderParameters(Map<String, List<String>> headerParams);", "RequestBuilder addHeaderParameter(String key, String value);", "void addHeader(HttpServletResponse response, String name, String value);", "@Test\n\t\tpublic void testAddHeader() throws Exception{\n\t\t\temail.addHeader(this.goodHeaderName, this.goodHeaderValue);\n\t\t}", "public Builder header(final String name, final String value) {\n headers.put(name, value);\n return this;\n }", "public io.confluent.developer.InterceptTest.Builder setReqHeaders(java.lang.String value) {\n validate(fields()[5], value);\n this.req_headers = value;\n fieldSetFlags()[5] = true;\n return this;\n }", "public void onHeaderRefresing();", "public interface HeadeName {\n public void setHeaderName(String text);\n}", "public void setRowHeaderView(Component paramComponent) {\n/* 1074 */ if (getRowHeader() == null) {\n/* 1075 */ setRowHeader(createViewport());\n/* */ }\n/* 1077 */ getRowHeader().setView(paramComponent);\n/* */ }", "void decorate(IDecoratedSource decoratedSource);", "public void setHeader(String header, String value)\n\t{\n\t\tif (httpServletResponse != null)\n\t\t{\n\t\t\thttpServletResponse.setHeader(header, value);\n\t\t}\n\t}", "private Thing headers(String methodName, Thing[] args, Evaller evaller,\n\t\t\tFramelike frame, Syntax src) throws FisherException {\n\t\tcheckNumberOfArgs(0, 1, methodName, args, evaller, frame, src);\n\t\tif(args.length == 0)\n\t\t\treturn http.getHeaders();\n\t\telse{\n\t\t\t// FIXME: how much checking of args?\n\t\t\tcheckArg(args[0], RecordTh.class, null);\n\t\t\treturn http.setHeaders((RecordTh)args[0]);\n\t\t\t}\n\t}", "public abstract Builder headers(String... paramVarArgs);", "public void setDateHeader(String header, long date)\n\t{\n\t\tif (httpServletResponse != null)\n\t\t{\n\t\t\thttpServletResponse.setDateHeader(header, date);\n\t\t}\n\t}", "@GetMapping(value=\"/person/header\", headers=\"X-API-VERSION=1\")\n public PersonV1 headerV1() {\n return new PersonV1(\"Bob Charlie\");\n }", "public void setHeaders(Map headers);", "public void setHeader(JMSControl.HeaderType type,Object value);", "void enableAutomaticHeaderImage();", "abstract public void header();", "protected JTableHeader createDefaultTableHeader() {\r\n \treturn new JTableHeader(columnModel) {\r\n \t\t\r\n \t\tprivate static final long serialVersionUID = 1L;\r\n \t\t\r\n \t\tpublic String getToolTipText(MouseEvent e) {\r\n \t\t\tjava.awt.Point p = e.getPoint();\r\n \t\t\tint index = columnModel.getColumnIndexAtX(p.x);\r\n \t\t\tint realColumnIndex = convertColumnIndexToModel(index);\r\n \t\t\tif ((realColumnIndex >= 0) && (realColumnIndex < getModel().getColumnCount()))\r\n \t\t\t\treturn \"The column \" + getModel().getColumnName(realColumnIndex);\r\n \t\t\telse\r\n \t\t\t\treturn \"\";\r\n \t\t}\r\n \t};\r\n }", "private HttpEntity<?> setTokenToHeaders() {\n HttpHeaders headers = new HttpHeaders();\n headers.set(\"Authorization\", this.token.getToken_type() + \" \" + this.token.getAccess_token());\n headers.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));\n return new HttpEntity<>(null, headers);\n }", "public interface CommandCustomHeader {\n\n}", "public void setCaller(ElementHeader caller)\n {\n this.caller = caller;\n }", "public void setHeader(String key, String value) {\n\t\tmHeaderParams.put(key, value);\n\t}", "public void setHeader() {\n tvHeader.setText(getResources().getString(R.string.text_skill));\n tvDots.setVisibility(View.INVISIBLE);\n }", "public Header(DOMelement element){\n\t\tsuper(tag(Header.class),element);\n\t}", "private void manageHeaderView() {\n PickupBoyDashboard.getInstance().manageHeaderVisibitlity(false);\n HeaderViewManager.getInstance().InitializeHeaderView(null, view, manageHeaderClick());\n HeaderViewManager.getInstance().setHeading(true, mActivity.getResources().getString(R.string.bokings));\n HeaderViewManager.getInstance().setLeftSideHeaderView(true, R.drawable.left_arrow);\n HeaderViewManager.getInstance().setRightSideHeaderView(false, R.drawable.left_arrow);\n HeaderViewManager.getInstance().setLogoView(false);\n HeaderViewManager.getInstance().setProgressLoader(false, false);\n\n }", "public void configurePinnedHeader(View header, int position, int alpha) {\n\t\t PinnedHeaderCache cache = (PinnedHeaderCache) header.getTag();\n\t\n\t\t if (cache == null) {\n\t\t cache = new PinnedHeaderCache();\n\t\t cache.titleView = (TextView) header.findViewById(R.id.header_text);\n\t\t cache.textColor = cache.titleView.getTextColors();\n\t\t cache.background = header.getBackground();\n\t\t header.setTag(cache);\n\t\t }\n\t\t\n\t\t int section = getSectionForPosition(position);\n\t\t \n\t\t if (section != -1) {\n\t\t\t String title = (String) mIndexer.getSections()[section];\n\t\t\t cache.titleView.setText(title);\n\t\t\t\n\t\t\t if (alpha == 255) {\n\t\t\t // Opaque: use the default background, and the original text color\n\t\t\t header.setBackgroundDrawable(cache.background);\n\t\t\t cache.titleView.setTextColor(cache.textColor);\n\t\t\t } else {\n\t\t\t // Faded: use a solid color approximation of the background, and\n\t\t\t // a translucent text color\n\t\t\t \tfinal int diffAlpha = 255 - alpha;\n\t\t\t \tfinal int red = Color.red(mPinnedHeaderBackgroundColor);\n\t\t\t \tfinal int diffRed = 255 - red;\n\t\t\t \tfinal int green = Color.green(mPinnedHeaderBackgroundColor);\n\t\t\t \tfinal int diffGreen = 255 - green;\n\t\t\t \tfinal int blue = Color.blue(mPinnedHeaderBackgroundColor);\n\t\t\t \tfinal int diffBlue = 255 - blue;\n\t\t\t header.setBackgroundColor(Color.rgb(\n\t\t\t \t\tred + (diffRed * diffAlpha / 255),\n\t\t\t \t\tgreen + (diffGreen * diffAlpha / 255),\n\t\t\t \t\tblue + (diffBlue * diffAlpha / 255)));\n\t\t\t\n\t\t\t int textColor = cache.textColor.getDefaultColor();\n\t\t\t cache.titleView.setTextColor(Color.argb(alpha,\n\t\t\t Color.red(textColor), Color.green(textColor), Color.blue(textColor)));\n\t\t\t }\n\t\t }\n\t\t}", "void setPageHeader(PageHeader pageHeader);", "void setPageHeader(PageHeader pageHeader);", "@Override\n public void setDateHeader(String name, long date) {\n this._getHttpServletResponse().setDateHeader(name, date);\n }", "public void setResponseHeader(Response.Header header, String value) {\n setNonStandardHeader(header.code, value);\n }", "public HttpsConnection setHeader(final String key, final String value) {\n log.log(Level.INFO, \"Set Header: \" + key + \": \" + value);\n this.mHeaders.put(key, value);\n return this;\n }", "@Override\n public StreamHeader getHeader() throws Exception {\n return header;\n }", "public void setCalled(ElementHeader called)\n {\n this.called = called;\n }", "protected void initializeHeader() throws PiaRuntimeException, IOException{\n try{\n super.initializeHeader();\n if( firstLineOk && headersObj == null ){\n\t// someone just give us the first line\n\theadersObj = new Headers();\n }\n }catch(PiaRuntimeException e){\n throw e;\n }catch(IOException ioe){\n throw ioe;\n }\n }", "void addHeader(String headerName, String headerValue);", "boolean isSetHeader();", "@Test\n public void customHeadersTest() {\n // TODO: test customHeaders\n }", "public void setCustomHeader(String customHeader) {\n this.customHeader = customHeader;\n }", "@Override\n public void setElementHeader(ElementHeader elementHeader)\n {\n this.elementHeader = elementHeader;\n }", "public abstract void setMimeHeader(String name, String value);", "@Override\n public void addHeader(String name, String value) {\n this._getHttpServletResponse().addHeader(name, value);\n }" ]
[ "0.619255", "0.6015486", "0.5965419", "0.5862763", "0.5718692", "0.5659235", "0.5640693", "0.5636441", "0.5588507", "0.55425173", "0.55328435", "0.5523334", "0.5523318", "0.5516298", "0.5455047", "0.5451324", "0.5441693", "0.5430191", "0.54109675", "0.53997725", "0.5387918", "0.5369022", "0.5359405", "0.5357503", "0.5357285", "0.5345318", "0.53066295", "0.5300541", "0.52957255", "0.52641976", "0.52493083", "0.52436143", "0.5229839", "0.52038056", "0.517735", "0.5173734", "0.51708186", "0.5167882", "0.51569426", "0.5149211", "0.5143569", "0.51336855", "0.5126028", "0.51180387", "0.5107693", "0.5104495", "0.5100512", "0.50989246", "0.5092444", "0.5091936", "0.5091781", "0.5091619", "0.50835466", "0.5081151", "0.508115", "0.50757235", "0.5073685", "0.50721157", "0.50586385", "0.505051", "0.50449663", "0.5044024", "0.50392467", "0.5031646", "0.5012858", "0.5009212", "0.49808827", "0.49603897", "0.49554333", "0.49501202", "0.4936019", "0.49340937", "0.49321902", "0.492986", "0.49171698", "0.4912927", "0.49042928", "0.49015713", "0.4894385", "0.4892877", "0.48924783", "0.48866624", "0.48755577", "0.48728642", "0.4872762", "0.48666131", "0.48666131", "0.48588353", "0.48554993", "0.48499298", "0.48492008", "0.48353404", "0.4828853", "0.48267922", "0.48236027", "0.4822262", "0.48193768", "0.4817077", "0.48157492", "0.48071238" ]
0.5861994
4
Set the generic decorator by default if not declared via annotation.
private void treatmentGenericDecorator() throws ConfigurationException { if (stylesMap.get(CellStyleHandler.CELL_DECORATOR_GENERIC) == null) { stylesMap.put(CellStyleHandler.CELL_DECORATOR_GENERIC, cellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_GENERIC) ? CellStyleHandler.initializeCellStyleByCellDecorator(workbook, cellDecoratorMap.get(CellStyleHandler.CELL_DECORATOR_GENERIC)) : CellStyleHandler.initializeGenericCellDecorator(workbook)); cellDecoratorMap.remove(cellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_GENERIC)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Form addDefaultDecoratorForElementClass(Class<? extends Element> clazz, Decorator decorator);", "Form setDefaultDecoratorsForElementClass(Class<? extends Element> clazz, List<Decorator> decorators);", "public void setGeneric(java.lang.String generic) {\r\n this.generic = generic;\r\n }", "public void setGeneric(T t)\t\t//setting a generic var\n\t{\n\t\t\n\t\tthis.t=t;\n\t}", "public interface Defaulter<T> {\n\n /**\n *\n * @param type the type of the object to construct its default value.\n * @return\n */\n T getDefault(Class<? extends T> type);\n}", "public void setGenericDao(GenericDao genericDao) {\n\t\tthis.genericDao = genericDao;\n\t}", "public Framework_annotation<T> build_annotation();", "public ClaseGenerica(T objeto){\n this.objeto=objeto;\n }", "public Framework_annotation<T> build_normal();", "public void setGenericAttributes (List<GenericAttribute> genericAttributes) {\n this.genericAttributes = genericAttributes;\n }", "public void setDecoratingTemplate(String decoratingTemplate) {\n this.decoratingTemplate = decoratingTemplate;\n }", "public Generic(){\n\t\tthis(null);\n\t}", "public GenericDelegatorLoader() {\n this(null, null);\n }", "public void setDecoratedDefinition(BeanDefinitionHolder decoratedDefinition)\n/* */ {\n/* 214 */ this.decoratedDefinition = decoratedDefinition;\n/* */ }", "public void setDefaultValue(String value) {\n decorator.setDefaultValue(value);\n }", "List<Decorator> getDefaultDecoratorsForElementClass(Class<? extends Element> clazz);", "public interface Framework_annotation<T extends Annotation> {\n \n // a builder call which returns the original Framework object\n public Framework_annotation<T> build_normal();\n \n // a builder call which requires that the T be of type Annotation or a subtype of that\n public Framework_annotation<T> build_annotation();\n \n // a call which returns a T element\n public <U extends T> U get();\n \n \n}", "@SuppressWarnings(\"unchecked\")\n private ConvertibleType(Type genericType, TypedMap<T> annotations, Method getter) {\n this.typeConverter = annotations.typeConverter();\n this.attributeType = annotations.attributeType();\n\n if (typeConverter != null) {\n final ConvertibleType<T> target = ConvertibleType.<T>of(typeConverter);\n this.targetType = target.targetType;\n this.params = target.params;\n } else if (genericType instanceof ParameterizedType) {\n final Type[] paramTypes = ((ParameterizedType)genericType).getActualTypeArguments();\n this.targetType = annotations.targetType();\n this.params = new ConvertibleType[paramTypes.length];\n for (int i = 0; i < paramTypes.length; i++) {\n this.params[i] = ConvertibleType.<T>of(paramTypes[i]);\n }\n } else {\n this.targetType = annotations.targetType();\n this.params = new ConvertibleType[0];\n }\n\n this.setter = getter == null ? null : StandardBeanProperties.MethodReflect.setterOf(getter);\n this.getter = getter;\n }", "public JsonFactory setInputDecorator(InputDecorator d)\n/* */ {\n/* 611 */ this._inputDecorator = d;\n/* 612 */ return this;\n/* */ }", "protected Class<? extends Annotation> getAutowiredAnnotationType() {\n return this.autowiredAnnotationType;\n }", "BasicRestAnnotation() {\n\t}", "public void setGenericDAO(final GenericDAO genericDAO) {\n\t\tthis.genericDAO = genericDAO;\n\t}", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E addAnnotation(CtAnnotation<? extends Annotation> annotation);", "Decorator getDecorator(String id);", "@Override\r\n\tpublic void setTipo(Tipo t) {\n\t\t\r\n\t}", "public void setDefaultValueGenerator(Generator<V> generator);", "@Override\n public boolean isGeneric() { \n return false;\n }", "public void setT(Type t) {\n \t\tthis.t = t;\n \t}", "public interface ChartDecorator extends Chart\r\n{\r\n\t/**\r\n\t * \r\n\t * @return the chart \r\n\t */\r\n\tpublic Chart getChart();\r\n\t\r\n\t/**\r\n\t * \r\n\t * @param chart the char\r\n\t */\r\n\tpublic void setChart(Chart chart);\r\n}", "public ProductDecorator() {}", "public interface AbstractComponentDecorator extends Component {\n void setComponent(Component component);\n}", "@MyFirstAnnotation(name=\"tom\",description=\"write by tom\")\n\tpublic UsingMyFirstAnnotation(){\n\t\t\n\t}", "public Registry(@NotNull T defaultValue) {\n this(defaultValue.getClass().getSimpleName(), defaultValue);\n }", "public GenericController(GenericService genericService) {\n this.genericService = genericService;\n }", "@Override\n public void configure(Map<String, ?> config) {\n KafkaSpanDecorator customDecorator = \n (KafkaSpanDecorator)config.get(\"kafka.producer.decorator\");\n \n if (customDecorator != null) {\n decorators.add(customDecorator);\n }\n }", "public void setAutowiredAnnotationType(Class<? extends Annotation> autowiredAnnotationType) {\n Assert.notNull(autowiredAnnotationType, \"'autowiredAnnotationType' must not be null\");\n this.autowiredAnnotationType = autowiredAnnotationType;\n }", "T defaultValue();", "public DefaultCommand(com.netflix.hystrix.HystrixCommand.Setter setter) {\n\t\tsuper(setter);\n\t}", "public static GenericBootstrap byDefaultProvider() {\n return new GenericBootstrapImpl();\n }", "Form removeDefaultDecoratorsForElementClass(Class<? extends Element> clazz);", "@com.exedio.cope.instrument.Generated // customize with @WrapperType(genericConstructor=...)\n\t\tprivate Target(final com.exedio.cope.SetValue<?>... setValues){super(setValues);}", "@Override\n\tpublic void setInterface(Class<T> interfaceClass) {\n\t\t\n\t}", "public interface IGenericDao {\n\n default String getBasePackage() {\n return null;\n }\n\n default String getInterface() {\n return \"me.seu.mybatis.GenericMapper\";\n }\n\n default String getMapperFullClassName(Class modelClass) {\n return null;\n }\n}", "public GenericDelegatorLoader(String delegatorName) {\n this(delegatorName, null);\n }", "public UseBeanBaseTag(Class<?> defaultClass)\n {\n this(defaultClass, null);\n }", "private static <T extends Annotation> T onElement(Class<T> clazz, T defaultValue, AnnotatedElement... elements) {\n for (AnnotatedElement element : elements) {\n T ann = element.getAnnotation(clazz);\n if (ann != null) return ann;\n }\n return defaultValue;\n }", "public Class<? extends Annotation> annotationType() {\n\t\treturn null;\r\n\t}", "protected void addDefaultAutowirePropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Configuration_defaultAutowire_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Configuration_defaultAutowire_feature\", \"_UI_Configuration_type\"),\r\n\t\t\t\t SpringConfigDslPackage.Literals.CONFIGURATION__DEFAULT_AUTOWIRE,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "public GenericDelegatorLoader(String delegatorName, Class<?> caller) {\n\t this.delegatorName = delegatorName != null ? delegatorName : \"default\";\n callerClazz = caller != null ? caller : GenericDelegatorLoader.class;\n\t}", "public SimpleGeneric(T param) {\n this.objRef = param;\n }", "public void testGenericMethod() {\n \n }", "public DecoratorConcret(BiletAbstract biletAbstract) {\r\n\t\tsuper(biletAbstract);\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\r\n\t}", "public HTTPHookDecoratorTest(String name) {\n\t\tsuper(name);\n\t}", "@Override\n\tpublic void set(T e) {\n\t\t\n\t}", "default void configureChild(Tag<? extends Type> tag) {\n // noop\n }", "@Override\n\tprotected HTTPHookDecorator getFixture() {\n\t\treturn (HTTPHookDecorator)fixture;\n\t}", "public interface PersonWrapper<T extends PersonEntity> extends Wrapper<T> {\n\n default PersonName getName() {\n return getWrapped().getNameInfo();\n }\n\n default String getFirstName() {\n return getName().getFirstName();\n }\n\n default String getLastName() {\n return getName().getLastName();\n }\n\n default String getMiddleName() {\n return getName().getMiddleName();\n }\n\n default String getSuffix() {\n return getName().getSuffix();\n }\n}", "public interface AbstractInjector<T> {\n /**\n * 注射代码\n *\n * @param finder\n * @param target\n * @param source\n */\n void inject(Finder finder, T target, Object source);\n\n /**\n * 设置间隔时间\n *\n * @param time\n */\n void setIntervalTime(long time);\n}", "public A annotation() {\n\t\treturn proxy(annotation, loader, className, map);\n\t}", "public interface TaReviewsService extends GenericService<TaReviews,String> {\n}", "public void setGenericHelp(String t, String s) {\n genericHelpTitle = t;\n genericHelp = s;\n }", "interface WithCustomToolkitSettings {\n /**\n * Specifies customToolkitSettings.\n * @param customToolkitSettings the customToolkitSettings parameter value\n * @return the next definition stage\n */\n WithCreate withCustomToolkitSettings(CustomToolkitSettings customToolkitSettings);\n }", "default void onDiscovery(@Nonnull A annotation, @Nonnull Class<? extends C> type) {\n }", "@com.exedio.cope.instrument.Generated // customize with @WrapperType(genericConstructor=...)\n\tprotected HookStampItem(final com.exedio.cope.SetValue<?>... setValues){super(setValues);}", "default void declare(T property) {\n declare(property.getSimpleName(), () -> property);\n }", "public Generador(Generic generic) {\r\n this.generic = generic;\r\n this.Num_Atributes = this.generic.getClass().getDeclaredFields().length;\r\n this.SuperDeclaredFields = this.generic.getClass().getSuperclass().getDeclaredFields();\r\n this.DeclaredFields = this.generic.getClass().getDeclaredFields();\r\n }", "public interface IGQLDynamicAttributeGetterSetter<ENTITY_TYPE, GETTER_ATTRIBUTE_TYPE, SETTER_ATTRIBUTE_TYPE>\n\t\textends\n\t\t\tIGQLDynamicAttributeGetter<ENTITY_TYPE, GETTER_ATTRIBUTE_TYPE>,\n\t\t\tIGQLDynamicAttributeSetter<ENTITY_TYPE, SETTER_ATTRIBUTE_TYPE> {\n\n}", "@Nullable\n protected abstract T substituteDefault(@Nullable T value);", "public ComponentFactory(Class<T> annotationType) {\n this(annotationType, \"value\");\n }", "public void setT(boolean t) {\n\tthis.t = t;\n }", "void set(T t);", "public interface Generified {\n\n\n /**\n * @return The information about this entity generification.<br>\n * The generics metadata for this element\n */\n Generics generic();\n\n}", "public JsonFactory setOutputDecorator(OutputDecorator d)\n/* */ {\n/* 682 */ this._outputDecorator = d;\n/* 683 */ return this;\n/* */ }", "@Override\n\tpublic T proxy() {\n\t\tfinal ClassLoader loader = Thread.currentThread().getContextClassLoader();\n\n\t\t// extract the generic type's interfaces\n\t\tfinal Set<?> ifaceSet = typeToken.getTypes().interfaces().rawTypes();\n\t\tfinal boolean appendGT = !ifaceSet.contains(GenericTyped.class);\n\t\tfinal int ifaceCount = ifaceSet.size() + (appendGT ? 1 : 0);\n\t\tfinal Class<?>[] interfaces = new Class<?>[ifaceCount];\n\t\tifaceSet.toArray(interfaces);\n\t\tif (appendGT) interfaces[ifaceCount - 1] = GenericTyped.class;\n\n\t\t// NB: Technically, this cast is not safe, because T might not be\n\t\t// an interface, and thus might not be one of the proxy's types.\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tfinal T proxy = (T) Proxy.newProxyInstance(loader, interfaces, this);\n\t\treturn proxy;\n\t}", "public interface ITransformationConfigurator<T extends ITransformation, L extends ITransformationLauncher> {\n\n\tL configure(T t, IModel... inputs);\n\t\n}", "@Component\r\npublic interface UserMapper extends BaseMapper<User> {\r\n\r\n}", "private T setDefaultValue(T t) {\n\t\tif(t.getStatus() == null) {\n\t\t\tt.setStatus(1);\n\t\t}\n\t\tif(t.getCreateTime() == null) {\n\t\t\tt.setCreateTime(new Date());\n\t\t}\n\t\tif(t.getUpdateTime() == null) {\n\t\t\tt.setUpdateTime(new Date());\n\t\t}\n\t\treturn t;\n\t}", "public DefaultRegisteredServiceAccessStrategy() {\n this(true, true);\n }", "@Override\n protected void configure(Object tool, Map<String,Object> configuration)\n {\n super.configure(tool, configuration);\n\n Method init = getInit();\n if (init != null)\n {\n // ctx should, in all cases where a tool has such a method,\n // actually be a View(Tool)Context, but we don't want to link\n // to that class here, so as not to pollute the generic jar\n Object ctx = configuration.get(ToolContext.CONTEXT_KEY);\n if (ctx != null)\n {\n invoke(init, tool, ctx);\n }\n }\n }", "public <T> T init(Class clazz) {\n classIndexer = new ClassIndexer(clazz);\n\n T object;\n try {\n object = (T) clazz.newInstance();\n } catch (InstantiationException ex) {\n //Logger.getLogger(CDIC.class.getName()).log(Level.SEVERE, \"Klasse \" + clazz.getName() + \" besitzt keinen Default-Konstruktor!\", ex);\n object = constructorInjection(clazz);\n if (object == null) {\n return null;\n }\n } catch (IllegalAccessException ex) {\n Logger.getLogger(CDIC.class.getName()).log(Level.SEVERE, \"Konstruktor ist private...\", ex);\n return null;\n }\n return inject(object);\n }", "@Override\r\n\tpublic Annotation annotate() {\n\t\treturn null;\r\n\t}", "public interface BaseView<T> {\n void setPresenter(@NonNull T presenter);\n}", "public void setToDefault();", "public final void mT__30() throws RecognitionException {\n try {\n int _type = T__30;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:28:7: ( '@Override' )\n // InternalMyDsl.g:28:9: '@Override'\n {\n match(\"@Override\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Override\r\n\tpublic void configInterceptor(Interceptors me) {\n\r\n\t}", "void setDefaultEndpoint(Endpoint defaultEndpoint);", "private static void setDefaultConfig() {\n AgentConfig agentConfig = HypertraceConfig.get();\n OpenTelemetryConfig.setDefault(OTEL_EXPORTER, \"zipkin\");\n OpenTelemetryConfig.setDefault(\n OTEL_EXPORTER_ZIPKIN_SERVICE_NAME, agentConfig.getServiceName().getValue());\n OpenTelemetryConfig.setDefault(\n OTEL_PROPAGATORS, toOtelPropagators(agentConfig.getPropagationFormatsList()));\n OpenTelemetryConfig.setDefault(\n OTEL_EXPORTER_ZIPKIN_ENDPOINT, agentConfig.getReporting().getEndpoint().getValue());\n OpenTelemetryConfig.setDefault(\n OTEL_EXPORTER_ZIPKIN_SERVICE_NAME, agentConfig.getServiceName().getValue());\n }", "public interface BaseNewView<T> {\n\n /**\n * 设置presenter对象\n *\n * @param presenter\n */\n void setPresenter(T presenter);\n\n /**\n * 初始化views\n *\n * @param view\n */\n void initViews(View view);\n}", "protected DecoratorString<ARXNode> getTooltipDecorator() {\n return this.tooltipDecorator;\n }", "default void onPreConstruct(@Nonnull A annotation, @Nonnull Class<? extends C> type) {\n }", "public boolean usesTypeAnnotations() {\n return true;\n }", "public DefaultFieldDecorator(ElementLocatorFactory factory) {\n\t\tthis.factory = factory;\n\t}", "public static <T> void registerNewGetterWrap(Class<T> type,\n ToIntFunction<T> getter) {\n registerNewGetter(type, returnGiven(getter));\n }", "protected void setToDefault(){\n\n\t}", "public native void set(T value);", "public ContentDecorator() {\r\n super();\r\n }", "public interface Getter<T>\n{\n /**\n * Returns the data.\n * \n * @return data\n */\n public T get();\n}", "public void configure(T aView) { }", "public final void mT__65() throws RecognitionException {\n try {\n int _type = T__65;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalUniMapperGenerator.g:44:7: ( 'default_hack_' )\n // InternalUniMapperGenerator.g:44:9: 'default_hack_'\n {\n match(\"default_hack_\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public void mo41789a(T t) {\n lazySet(t);\n }" ]
[ "0.5576015", "0.5358036", "0.533877", "0.5324552", "0.5010879", "0.49688926", "0.47807336", "0.47358745", "0.46768498", "0.46614882", "0.46506897", "0.46090126", "0.4603588", "0.45440352", "0.45365506", "0.4512856", "0.45021757", "0.45021114", "0.44895577", "0.4459681", "0.44567937", "0.4452608", "0.44433725", "0.4431152", "0.4424227", "0.44071525", "0.44055784", "0.43929937", "0.43827382", "0.435071", "0.4332494", "0.43305466", "0.4327821", "0.43252116", "0.43194088", "0.42896423", "0.4282193", "0.4268843", "0.4267105", "0.42506313", "0.42439565", "0.42310447", "0.4223345", "0.42204803", "0.42199084", "0.42195088", "0.42151365", "0.42053002", "0.41896114", "0.41762438", "0.41641578", "0.41556937", "0.41472867", "0.41409406", "0.41386664", "0.41357416", "0.4121737", "0.4111868", "0.41077554", "0.41034302", "0.41002372", "0.4098937", "0.40926084", "0.40868694", "0.40688577", "0.4057533", "0.40559965", "0.40462813", "0.40411603", "0.40252906", "0.4025048", "0.40224582", "0.40219554", "0.40188897", "0.40182692", "0.40092552", "0.39985594", "0.39921904", "0.39893895", "0.39886314", "0.3986965", "0.39854002", "0.39782745", "0.39717087", "0.3971262", "0.3969015", "0.39655465", "0.3961582", "0.39615384", "0.39550185", "0.39515686", "0.39514217", "0.39382663", "0.39374107", "0.39371276", "0.39349854", "0.3918092", "0.39143336", "0.3904311", "0.38980225" ]
0.5469052
1
Set the numeric decorator by default if not declared via annotation.
private void treatmentNumericDecorator() throws ConfigurationException { if (stylesMap.get(CellStyleHandler.CELL_DECORATOR_NUMERIC) == null) { stylesMap.put(CellStyleHandler.CELL_DECORATOR_NUMERIC, cellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_NUMERIC) ? CellStyleHandler.initializeCellStyleByCellDecorator(workbook, cellDecoratorMap.get(CellStyleHandler.CELL_DECORATOR_NUMERIC)) : CellStyleHandler.initializeNumericCellDecorator(workbook)); cellDecoratorMap.remove(cellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_NUMERIC)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default T handleNumber(double val) {\n throw new UnsupportedOperationException();\n }", "public double getDefault(){\n return number;\n }", "NumericalAttribute(String name, int valueType) {\n\t\tsuper(name, valueType);\n\t\tregisterStatistics(new NumericalStatistics());\n\t\tregisterStatistics(new WeightedNumericalStatistics());\n\t\tregisterStatistics(new MinMaxStatistics());\n\t\tregisterStatistics(new UnknownStatistics());\n\t}", "public void set(double val);", "public void setNumber(String newValue);", "@JsonSetter(\"number\")\r\n public void setNumber (String value) { \r\n this.number = value;\r\n }", "public void defNumber(String fieldname, String numberFormat) {\r\n calls.put(fieldname, new DecimalFormat(numberFormat));\r\n }", "@Override\n public boolean setParameter(String parameterName, double value) {\n return false;\n }", "@Override\r\npublic void setNumber(int number) {\n\tsuper.setNumber(number);\r\n}", "public void set(double d);", "public void setDef(float def);", "void set_num(ThreadContext tc, RakudoObject classHandle, double Value);", "public void setDefaultValue(String value) {\n decorator.setDefaultValue(value);\n }", "public void setDefaultNumber(Integer defaultNumber) {\n this.defaultNumber = defaultNumber;\n }", "public void setGivenNum(double input) {\n givenNum = input;\n }", "void setSupplier(Supplier<Number> supplier);", "static public void setDefaultDouble (double newMissingDouble) {\n defaultDouble = newMissingDouble;\n }", "public void setNewMember(double value) {\n }", "public void defValor(double v) {\r\n\t\tthis.v = v;\r\n\t}", "public void setNum(int num) {\r\n this.num = num;\r\n }", "public default boolean hasNumber() {\n\t\treturn false;\n\t}", "@JSProperty(\"min\")\n void setMin(double value);", "public void setNumer(float newNumer){\n\t\tnumer = newNumer;\n\t}", "@Override\r\n\tprotected KDTextField getNumberCtrl() {\n\t\treturn null;\r\n\t}", "public Literal setLiteralNumber(Double literalData);", "@JSProperty(\"max\")\n void setMax(double value);", "void setNumber(int num) {\r\n\t\tnumber = num;\r\n\t}", "void setDefaultFractionCounter(int defaultFractionCounter);", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public ProductDecorator() {}", "public NumberInterpolator(NumericColumn<T> col) {\n super(col);\n this.col = col;\n }", "public void setDefaultValueGenerator(Generator<V> generator);", "public int getNumeric() {\r\n\t\treturn numeric;\r\n\t}", "public Double getDouble(String key, Double defaultValue);", "public int getDefault(){\n return number;\n }", "public MyDouble() {\n this.setValue(0);\n }", "public void setParam(String paramName, double value);", "public void setNumerator(int num)\r\n {\r\n this.numerator = num;\r\n }", "public void setNum(Integer num) {\n this.num = num;\n }", "public void setNum(Integer num) {\n this.num = num;\n }", "public void setPreco(Double preco);", "private void setDefaultValueIfMissing() {\n if (!getType().isNumber() || !hasValidation()) {\n return;\n }\n if (!hasDefaultValue()) {\n if (validation.hasMinimum()) {\n setDefaultValue(validation.getMinimum());\n } else {\n if (validation.hasMaximum()) {\n setDefaultValue(validation.getMaximum());\n }\n }\n }\n }", "@Override\n\tpublic void setClassValue(final double value) {\n\n\t}", "public void setX(Double x);", "@Override\n\tpublic void visit(NumericBind arg0) {\n\t\t\n\t}", "public int getNumericValue() {\n return value;\n }", "public void setValue(Number value) {\n this.value = value;\n }", "public NumberMetaFormat() {\n this(Locale.getDefault());\n }", "void setValue(double value);", "@Override\r\n\tpublic Buffer setDouble(int pos, double d) {\n\t\treturn null;\r\n\t}", "@Doc(\"The value to use if the variable is accessed when it has never been set.\")\n\t@BindNamedArgument(\"default\")\n\tpublic Double getDefaultValue() {\n\t\treturn defaultValue;\n\t}", "public abstract void setDecimation(float decimation);", "public abstract void setDoubleImpl(String str, double d, Resolver<Void> resolver);", "Form addDefaultDecoratorForElementClass(Class<? extends Element> clazz, Decorator decorator);", "public abstract void setGen(int i, double value);", "@Override\n public double numValue(int numId) {\n return 0;\n }", "double getDouble(String key, double defaultValue);", "public void setA(double value) {\n this.a = value;\n }", "public DoubleValue(double num) {\n this.num = num;\n }", "public NumericValue(final double value) {\n this.value = value;\n }", "public void setValue(double value) {\n this.value = value; \n }", "public void setG(double aG);", "@JSProperty(\"floor\")\n void setFloor(double value);", "public static void configTextFieldAsNumericInput(TextField tf, boolean allowDouble, Callback<Number, Void> onNewValidValue) {\n\t\ttf.setText(\"0\");\n\t\ttf.textProperty().addListener((obs, oldVal, newVal) -> {\n\t\t\tif(!newVal.isEmpty()) {\n\t\t\t\tif(Util.validNumericTextEntryStr(newVal, allowDouble)) {// first see if the new one is valid, use it if it is\n\t\t\t\t\tif(allowDouble && newVal.matches(\"(-|^)[0-9]+(\\\\.|,)$\"))\n\t\t\t\t\t\tnewVal += \"0\"; // add a trailing 0 if needed\n\t\t\t\t\tif(allowDouble) // allocate the correct numeric type\n\t\t\t\t\t\tonNewValidValue.call(new Double(newVal));\n\t\t\t\t\telse\n\t\t\t\t\t\tonNewValidValue.call(new Integer(newVal));\n\t\t\t\t} else if(Util.validNumericTextEntryStr(oldVal, allowDouble)) { // if not, try the old one, and revert back if need be\n\t\t\t\t\ttf.setText(oldVal);\n\t\t\t\t} \n\n\t\t\t\telse {// if that's no good just set it to 0\n\t\t\t\t\ttf.setText(\"0.0\");\n\t\t\t\t\tonNewValidValue.call(0);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\ttf.focusedProperty().addListener((obs, oldVal, newVal) -> {\n\t\t\tif(tf.getText().isEmpty())\n\t\t\t\ttf.setText(\"0\");\n\t\t});\n\t}", "@Override\n public JsonParser.NumberType numberType() {\n // most types non-numeric, so:\n return null;\n }", "public void setNum(int num) {\n\t\tthis.num = num;\n\t}", "public NumericField() {\n\t\tsuper();\n\t}", "public interface Gauge extends Metric {\n\n /**\n * Set the supplier of gauge value.\n * @param supplier the supplier of gauge value.\n */\n void setSupplier(Supplier<Number> supplier);\n\n /**\n * Get the supplier of gauge value.\n * @return the supplier of gauge value.\n */\n Supplier<Number> getSupplier();\n}", "public void setNum (java.lang.Integer num) {\r\n\t\tthis.num = num;\r\n\t}", "public long getNumerator();", "@JSProperty(\"tickAmount\")\n void setTickAmount(double value);", "public NumberFormat getDefaultNumberFormat()\n {\n return valueRenderer.defaultNumberFormat;\n }", "public void setValue(Number value) {\n setAttributeInternal(VALUE, value);\n }", "public interface ChartDecorator extends Chart\r\n{\r\n\t/**\r\n\t * \r\n\t * @return the chart \r\n\t */\r\n\tpublic Chart getChart();\r\n\t\r\n\t/**\r\n\t * \r\n\t * @param chart the char\r\n\t */\r\n\tpublic void setChart(Chart chart);\r\n}", "public Series setNumber( int theInteger) {\n\t\tmyNumber = new IntegerDt(theInteger); \n\t\treturn this; \n\t}", "@Deprecated\n <T extends Number> void register(Gauge<T> gauge);", "@JSProperty(\"softMin\")\n void setSoftMin(double value);", "@JSProperty(\"softMax\")\n void setSoftMax(double value);", "public Number getNumberValue();", "public void setValue(double value) {\n this.value = value;\n }", "public void setValue(double value) {\n this.value = value;\n }", "public void setValue(double value) {\n this.value = value;\n }", "protected IExpressionValue getNum() throws TableFunctionMalformedException {\r\n\t\tvalue = \"\";\r\n\r\n\t\tif (!((isNumeric(look)) || ((look == '.') && (value.indexOf('.') == -1))))\r\n\t\t\texpected(\"Number\");\r\n\r\n\t\twhile ((isNumeric(look))\r\n\t\t\t\t|| ((look == '.') && (value.indexOf('.') == -1))) {\r\n\t\t\tvalue += look;\r\n\t\t\tnextChar();\r\n\t\t}\r\n\r\n\t\ttoken = '#';\r\n\t\tskipWhite();\r\n\r\n\t\t// Debug.println(\"GetNum returned \" + Float.parseFloat(value));\r\n\t\treturn new SimpleProbabilityValue(Float.parseFloat(value));\r\n\t}", "public void setNumericalLimit(double value) {\n\tif (value < 0) {\n\t String msg = errorMsg(\"lessThanZero\", value);\n\t throw new IllegalArgumentException(msg);\n\t}\n\tNUMERICAL_LIMIT = value;\n }", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "public abstract void setMontant(Double unMontant);", "void setDouble(String key, double val);", "public int getNumerator(){\n\n\t\treturn myNumerator;\n }", "public boolean setInputNumericValue(int pos, double value){\r\n\t\tAttribute at = (Attribute)Attributes.getInputAttribute(pos);\r\n\t\tif (at.getType() == Attribute.NOMINAL) return false;\r\n\t\telse{\r\n\t\t\tif (at.isInBounds(value)){\r\n\t\t\t\trealValues[0][pos] = value;\r\n\t\t\t\tmissingValues[0][pos] = false;\r\n\t\t\t\tanyMissingValue[0] = false;\r\n\t\t\t\tfor (int i=0; i<missingValues[0].length; i++) \r\n\t\t\t\t\tanyMissingValue[0] |= missingValues[0][i];\r\n\t\t\t}\r\n\t\t\telse return false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public void setNumber(int number)\n {\n Number = number;\n }", "public NumberedParameter(ParameterType type, int number) {\n this.type = type;\n this.number = number;\n }", "public Double getDouble(double defaultVal) {\n return get(ContentType.DoubleType, defaultVal);\n }", "public void setDoubleStat(MetricDef metric, double value){\n doubleMetrics.put(metric.metricId(), value);\n }", "@JsonProperty(\"aNumber\")\n public void setaNumber(Double aNumber) {\n this.aNumber = aNumber;\n }", "@JsonGetter(\"number\")\r\n public String getNumber ( ) { \r\n return this.number;\r\n }", "public SeriesInstance setNumber( int theInteger) {\n\t\tmyNumber = new IntegerDt(theInteger); \n\t\treturn this; \n\t}", "Form setDefaultDecoratorsForElementClass(Class<? extends Element> clazz, List<Decorator> decorators);", "public Series setNumber(IntegerDt theValue) {\n\t\tmyNumber = theValue;\n\t\treturn this;\n\t}", "@Test\n public void testSetNumberDouble() {\n factory.setNumber(0.25).setCurrency(\"EUR\");\n assertEquals(Geldbetrag.valueOf(\"0.25 EUR\"), factory.create());\n }", "public void setDefaultNumberFormat(NumberFormat format)\n {\n valueRenderer.defaultNumberFormat = format;\n }" ]
[ "0.57023984", "0.55538726", "0.5299485", "0.5257124", "0.517415", "0.5151641", "0.51387054", "0.505678", "0.5046441", "0.50387895", "0.50257653", "0.5019857", "0.4926213", "0.49117088", "0.49083808", "0.4905677", "0.48969427", "0.4862385", "0.4859484", "0.48421505", "0.481042", "0.4801013", "0.4776424", "0.47760823", "0.47502884", "0.47477508", "0.47439742", "0.4740441", "0.4737555", "0.47324106", "0.47303426", "0.47265202", "0.4719451", "0.4711078", "0.46974954", "0.4695644", "0.4695169", "0.46910188", "0.46867827", "0.46867827", "0.46780744", "0.46767056", "0.46710494", "0.46577048", "0.46477023", "0.4638029", "0.4634946", "0.46261454", "0.4624765", "0.46218634", "0.4610564", "0.4607465", "0.4603126", "0.4602908", "0.46026126", "0.46024293", "0.46009377", "0.45996252", "0.45981628", "0.45979708", "0.45964473", "0.45874307", "0.45811537", "0.4571896", "0.45670182", "0.4562054", "0.45580232", "0.4557453", "0.455489", "0.45540035", "0.4550284", "0.4548194", "0.45411867", "0.4539801", "0.45385385", "0.4533578", "0.45311585", "0.452115", "0.4519239", "0.45151114", "0.45151114", "0.45151114", "0.45059606", "0.45015982", "0.44985962", "0.44982842", "0.44981724", "0.44876745", "0.44860417", "0.4485934", "0.44816694", "0.44787923", "0.44692838", "0.44687247", "0.446589", "0.44652385", "0.44644308", "0.4462905", "0.44609404", "0.44569606" ]
0.61188734
0
Set the date decorator by default if not declared via annotation.
private void treatmentDateDecorator() throws ConfigurationException { if (stylesMap.get(CellStyleHandler.CELL_DECORATOR_DATE) == null) { stylesMap.put(CellStyleHandler.CELL_DECORATOR_DATE, cellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_DATE) ? CellStyleHandler.initializeCellStyleByCellDecorator(workbook, cellDecoratorMap.get(CellStyleHandler.CELL_DECORATOR_DATE)) : CellStyleHandler.initializeDateCellDecorator(workbook)); cellDecoratorMap.remove(cellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_DATE)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void setDate() {\n\n\t}", "public DefaultImpl() {\n this(DEFAULT_DATE_FORMAT);\n }", "protected DateFieldMetadata() {\r\n\r\n\t}", "public void SetDate(Date date);", "abstract Date getDefault();", "public void setDate() {\n this.date = new Date();\n }", "public void setServiceDate(java.util.Date value);", "@Test\r\n\tpublic void testSetDate() {\n\t\tfail(\"Not yet implemented\");\r\n\t}", "void setDate(Date data);", "public void setDate(Date date) {\r\n this.date = date;\r\n }", "public static String getDate() {\n return annotation != null ? annotation.date() : \"Unknown\";\n }", "public void setDate(DateTime \n date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "void setDate(java.lang.String date);", "@Test\n void setDate() {\n }", "@Override\n\tpublic void initDate() {\n\n\t}", "public void setDate(int date){\n this.date = date;\n }", "@ApiModelProperty(value = \"The date when the claim was entered.\")\n public DtoValueNullableDateTime getDate() {\n return date;\n }", "void setDateDisabled(final Date dateDisabled);", "@Override\n public void date_()\n {\n }", "public void setDate(Date date) {\n setDate(date, null);\n }", "public void setDate(Date date) {\n\t\n\t\tthis.date = date;\n\t\n\t}", "public void setDate(int dt) {\n date = dt;\n }", "public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}", "public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}", "public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}", "@Override\n public void setUserTimestamp(Date date) {\n }", "public void setStartDate(Date s);", "public void setDate(String date){\n this.date = date;\n }", "public void setCreatedAt(final Date value)\n\t{\n\t\tsetCreatedAt( getSession().getSessionContext(), value );\n\t}", "public void setStartDate(java.util.Date value);", "public void setDate(String date){\n this.date = date;\n }", "private ARXDate() {\r\n this(\"Default\");\r\n }", "public void setRequestDate(Date requestDate);", "public void setDate(long value) {\n this.date = value;\n }", "void setCreateDate(Date date);", "public void setUpdatedAt(final Date value)\n\t{\n\t\tsetUpdatedAt( getSession().getSessionContext(), value );\n\t}", "@Override\n public void date()\n {\n }", "@Override\n\t\t\tpublic void setValue(Date value) {\n\t\t\t\tsuper.setValue(value);\n\t\t\t\tstart_cal_date = value.getTime();\n\t\t\t\tinfo_loader.load();\n\t\t\t}", "public void setDate(Date date) {\n mDate = date;\n }", "public void setsaledate(Timestamp value) {\n setAttributeInternal(SALEDATE, value);\n }", "public void setGioBatDau(Date gioBatDau);", "public void setDate(final Date date) {\n this.date = date;\n }", "public void setFechaInclusion(Date fechaInclusion)\r\n/* 155: */ {\r\n/* 156:174 */ this.fechaInclusion = fechaInclusion;\r\n/* 157: */ }", "public void setFechaDesde(Date fechaDesde)\r\n/* 169: */ {\r\n/* 170:293 */ this.fechaDesde = fechaDesde;\r\n/* 171: */ }", "public void setFechaHasta(Date fechaHasta)\r\n/* 179: */ {\r\n/* 180:312 */ this.fechaHasta = fechaHasta;\r\n/* 181: */ }", "public void setDate(Date date) {\n\t\tthis.date = date;\n\t}", "public void setDate(Date date) {\n\t\tthis.date = date;\n\t}", "public void setDate(Date date) {\n\t\tthis.date = date;\n\t}", "public void setDate(String date) {\r\n this.date = date;\r\n }", "public void setFechaExclusion(Date fechaExclusion)\r\n/* 165: */ {\r\n/* 166:182 */ this.fechaExclusion = fechaExclusion;\r\n/* 167: */ }", "public void setDateFormatOverride(DateFormat formatter) {\n/* 563 */ this.dateFormatOverride = formatter;\n/* 564 */ fireChangeEvent();\n/* */ }", "public void _Date() {\n testProperty(\"Date\", new PropertyTester() {\n protected Object getNewValue(String prop, Object old) {\n return utils.isVoid(old) ? new Integer(6543) :\n super.getNewValue(prop, old) ;\n }\n }) ;\n }", "public abstract void setDate(Timestamp uneDate);", "@Test\n void getAndSetDate() {\n }", "public void setEditDate(Date editDate)\r\n/* */ {\r\n/* 193 */ this.editDate = editDate;\r\n/* */ }", "public com.luisjrz96.streaming.birthsgenerator.models.BirthInfo.Builder setDate(long value) {\n validate(fields()[5], value);\n this.date = value;\n fieldSetFlags()[5] = true;\n return this;\n }", "public void setDateCreated(Date dateCreated);", "public void setBirthday(Date birthday);", "public void setDate(String date) {\n this.date = date;\n }", "public void setDate(String date) {\n this.date = date;\n }", "public void setDate(String date) {\n this.date = date;\n }", "public void setDate(String date) {\n this.date = date;\n }", "public void setDate(String date) {\n this.date = date;\n }", "public void setBirthDate(Date birthDate);", "public CustomDateSerializer() {\n this(null);\n }", "public void setDate(long date)\r\n/* 199: */ {\r\n/* 200:299 */ setDate(\"Date\", date);\r\n/* 201: */ }", "@Bean(name = \"dateFormatter\")\n public SimpleDateFormat dateFormatter() {\n return new SimpleDateFormat(\"dd/MM/yyyy\");\n }", "public void setDate( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), DATE, value);\r\n\t}", "private String setDate() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(new Date());\n }", "public void setDateText(String date);", "public void setMakedate(Date makedate) {\n this.makedate = makedate;\n }", "public void setFecha(Fecha fecha) {\r\n this.fecha = fecha;\r\n }", "public void setDate(java.util.Calendar value) {\r\n\t\tBase.set(this.model, this.getResource(), DATE, value);\r\n\t}", "public static void setDate() {\r\n\t\tDate.set(DateFormat.getDateTimeInstance(DateFormat.SHORT,\r\n\t\t\t\tDateFormat.LONG, Locale.getDefault()).format(\r\n\t\t\t\tnew java.util.Date()));\r\n\t}", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate);", "public void setDate(java.lang.String date) {\n this.date = date;\n }", "public void setDate(String parName, Date parVal) throws HibException;", "public void setDate(Date date) {\n\t\t\n\t\tdate_ = date;\n\t}", "public Builder setDate(long value) {\n bitField0_ |= 0x00000002;\n date_ = value;\n onChanged();\n return this;\n }", "public void setValue(java.util.Date value) {\n this.value = value;\n }", "public Date getDate(Date defaultVal) {\n return get(ContentType.DateType, defaultVal);\n }", "date initdate(date iDate)\n {\n iDate.updateElementValue(\"date\");\n return iDate;\n }", "public void setDate(Calendar date)\n {\n this.date = date;\n }", "public void setDate(Date date) {\r\n \t\tthis.startDate = date;\r\n \t}", "private void initDate(View view) {\n\n\t}", "public void setDate(String date) {\n while (!date.endsWith(\"00\")){\n date+=\"0\";\n }\n try{\n this.date = FORMATTER.parse(date.trim());\n }catch (ParseException e){\n throw new RuntimeException(e);\n }\n\n }", "public void setDate(Date date) {\n\t\tthis._date = date;\n\t}", "public void setNotiCreated(Date value) {\r\n setAttributeInternal(NOTICREATED, value);\r\n }", "Employee setBirthdate(Date birthdate);" ]
[ "0.64224917", "0.61059403", "0.6097086", "0.60750777", "0.60061353", "0.59854996", "0.5970162", "0.59407973", "0.59328574", "0.5893147", "0.5843494", "0.58401984", "0.58206475", "0.58206475", "0.58206475", "0.58206475", "0.58206475", "0.58206475", "0.58206475", "0.58206475", "0.58206475", "0.57883793", "0.5756623", "0.57361835", "0.57258415", "0.5720549", "0.5718428", "0.57169485", "0.5695498", "0.5692933", "0.56928426", "0.5691231", "0.5691231", "0.5691231", "0.56891763", "0.5681016", "0.568077", "0.5671922", "0.5650391", "0.56016463", "0.55969936", "0.55916697", "0.5573296", "0.5572659", "0.5572638", "0.5560786", "0.55537426", "0.5546356", "0.55463415", "0.5525642", "0.5520317", "0.55157393", "0.55144095", "0.55114543", "0.55110055", "0.55110055", "0.55110055", "0.5510691", "0.55069953", "0.54996216", "0.5491117", "0.54872096", "0.5477695", "0.54776764", "0.54739493", "0.5471563", "0.54408634", "0.5438167", "0.5438167", "0.5438167", "0.5438167", "0.5438167", "0.5436123", "0.5434221", "0.5427522", "0.542635", "0.540963", "0.54089195", "0.5408116", "0.53974736", "0.5392707", "0.53877026", "0.53726184", "0.53583276", "0.53583276", "0.53583276", "0.5353228", "0.53491664", "0.5346116", "0.5340814", "0.53305876", "0.53290313", "0.5325033", "0.5320037", "0.53084946", "0.53031075", "0.5293885", "0.52931815", "0.5278553", "0.52781385" ]
0.6281901
1
Set the boolean decorator by default if not declared via annotation.
private void treatmentBooleanDecorator() throws ConfigurationException { if (stylesMap.get(CellStyleHandler.CELL_DECORATOR_BOOLEAN) == null) { stylesMap.put(CellStyleHandler.CELL_DECORATOR_BOOLEAN, cellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_BOOLEAN) ? CellStyleHandler.initializeCellStyleByCellDecorator(workbook, cellDecoratorMap.get(CellStyleHandler.CELL_DECORATOR_BOOLEAN)) : CellStyleHandler.initializeBooleanCellDecorator(workbook)); cellDecoratorMap.remove(cellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_BOOLEAN)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setBoolean(boolean value);", "void set(boolean value);", "public void setTallied(java.lang.Boolean value);", "public void setIsModifier(java.lang.Boolean value);", "void setNullable(boolean nullable);", "public void setEnabled(Boolean value) { this.myEnabled = value.booleanValue(); }", "public void setOn(boolean arg) {\n isOn = arg;\n }", "public void setEnabled(boolean aFlag) { _enabled = aFlag; }", "public void set(boolean bol);", "default boolean trySetBoolean(boolean value) {\n if (this.isValidBoolean(value)) {\n this.setBoolean(value);\n return true;\n } else {\n return false;\n }\n }", "void set(boolean on);", "public Boolean getBooleanAttribute();", "public boolean getBoolean();", "public abstract void setInput(boolean value);", "@objid (\"b47d48ab-22b9-48c5-87ec-5f1f114e042d\")\n void setIsEvent(boolean value);", "public void setAugment(boolean aValue);", "public void setIsDefault(boolean value) {\n this.isDefault = value;\n }", "private static boolean booleanAnnotation(ObjectMeta metadata, String annotation, boolean defaultValue, String... deprecatedAnnotations) {\n String str = annotation(annotation, null, metadata, deprecatedAnnotations);\n return str != null ? parseBoolean(str) : defaultValue;\n }", "public void setHasCustom(boolean hasCustom);", "public void setOp(boolean value) {}", "void setBoolean(String key, boolean val);", "BooleanProperty getOn();", "public boolean setEnabled(boolean enable);", "String booleanAttributeToGetter(String arg0);", "public abstract void setBooleanImpl(String str, boolean z, Resolver<Void> resolver);", "public void set_boolean(boolean param) {\n this.local_boolean = param;\n }", "boolean getBoolean();", "boolean getBoolean();", "public void setDirezione(boolean direzione) {\n\r\n }", "public void setValue(boolean value) {\n this.value = value;\n }", "public void setMyBool(boolean myBoolIn) {\n myBool = myBoolIn;\n }", "public void setBooleanValue(String booleanValue) { this.booleanValue = booleanValue; }", "public void setSummable(Boolean summable);", "public void setDefaultValue(Boolean value) {\n\t\tthis.value = value;\n\t}", "default boolean asBool() {\n\t\tthrow new EvaluatorException(\"Expecting a bool value\");\n\t}", "@Override\n\tpublic void setHasDecorations(boolean hasDecorations) {\n\t\t\n\t}", "public void onChanged(Boolean bool) {\n int i;\n if (bool != null) {\n LocationActivitySettingItem a = this.f107703a.mo102020a();\n C7573i.m23582a((Object) bool, \"it\");\n if (bool.booleanValue()) {\n i = 0;\n } else {\n i = 8;\n }\n a.setVisibility(i);\n }\n }", "public void setBoolean(Boolean value) {\r\n\t\ttype(ConfigurationItemType.BOOLEAN);\r\n\t\tthis.booleanValue = value;\r\n\t}", "public void setValue(boolean value) {\n this.value = value;\n }", "public void setEnabled(boolean enabled);", "public void setEnabled(boolean enabled);", "@JsProperty void setChecked(boolean value);", "public void setIsAutoNumbered(java.lang.Boolean value);", "@Override\n\tpublic void setBool(boolean bool) {\n\t\t/*\n\t\t * Handles the translation of boolean to the internal representation (Color, int, whatever we decide)\n\t\t */\n\t\tint BLACK = 0x000000;\n\t\tint WHITE = 0xFFFFFF;\n\t\tcolor = bool ? BLACK : WHITE;\n\n\t}", "@JsonSetter(\"dnisEnabled\")\r\n public void setDnisEnabled (boolean value) { \r\n this.dnisEnabled = value;\r\n }", "private BooleanValueProvider() {\n this.state = true;\n }", "public void setRequired(boolean required);", "public ElementDefinitionDt setIsModifier( boolean theBoolean) {\n\t\tmyIsModifier = new BooleanDt(theBoolean); \n\t\treturn this; \n\t}", "public void setBool(String parName, boolean parVal) throws HibException;", "@Override\n\tpublic void setEnabled(boolean flag) {\n\t\t\n\t}", "public void setBool(String name, Boolean value) {\n parameters.get(name).setValue(value);\n }", "public Boolean() {\n\t\tsuper(false);\n\t}", "public void setProperty(String propertyName, boolean value);", "@Deprecated\n public void setIsDefault(Boolean isDefault) {\n this.isDefault = isDefault;\n }", "public SimpleBooleanProperty getUseDefault() {\n return useDefault;\n }", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "public void setAktif(java.lang.Boolean value) {\n this.aktif = value;\n }", "public Builder setDeclarativelyConfigured(boolean value) {\n \n declarativelyConfigured_ = value;\n onChanged();\n return this;\n }", "void setManualCheck (boolean value);", "public void setForua(boolean newValue);", "public void setA ( boolean a ) {\n\n\tthis.a = a;\n }", "@Override\n public void setAttribute(boolean f)\n {\n checkState();\n attribute = f;\n }", "void setRequired(boolean required);", "public boolean getBoolean(String key, boolean defaultValue);", "void setSet(boolean set);", "public interface IBooleanProperty {\n /**\n * A simple implementation that holds its own state.\n */\n class WithState implements IBooleanProperty {\n private boolean value;\n\n public WithState(boolean value) {\n this.value = value;\n }\n\n @Override\n public boolean getBoolean() {\n return this.value;\n }\n\n @Override\n public void setBoolean(boolean value) {\n this.value = value;\n }\n\n @Override\n public boolean isValidBoolean(boolean value) {\n return true;\n }\n }\n\n /**\n * Get the boolean value.\n * @return the boolean value\n */\n boolean getBoolean();\n\n /**\n * Set the boolean value, regardless of it being a valid value or not.\n * The validity of the boolean value should be evaluated with isValidBoolean.\n * @param value the boolean value\n */\n void setBoolean(boolean value);\n\n /**\n * Returns true if the boolean value is valid.\n * @param value the boolean value\n * @return true if the boolean value is valid\n */\n boolean isValidBoolean(boolean value);\n\n /**\n * Try to set the boolean value. Returns true if it succeeded.\n * @param value the boolean value\n * @return true if it succeeded\n */\n default boolean trySetBoolean(boolean value) {\n if (this.isValidBoolean(value)) {\n this.setBoolean(value);\n return true;\n } else {\n return false;\n }\n }\n}", "@objid (\"9ecad15f-7403-4692-8909-d35b3a624c86\")\n void setIsException(boolean value);", "public void setFlag(Boolean flag) {\n this.flag = flag;\n }", "public PropertyBoolean(String name) {\n super(name);\n }", "public void setDefault(boolean value) {\n this._default = value;\n }", "public void setT(boolean t) {\n\tthis.t = t;\n }", "public void setWhitelisted ( boolean value ) {\n\t\texecute ( handle -> handle.setWhitelisted ( value ) );\n\t}", "static public boolean getDefaultBoolean() {\n return defaultBoolean;\n }", "protected void setInflicted(boolean x)\n {\n meteorInflicted = x;\n }", "public void setSoft(boolean soft);", "public void setRequiresTaxCertificate (boolean RequiresTaxCertificate)\n{\nset_Value (COLUMNNAME_RequiresTaxCertificate, Boolean.valueOf(RequiresTaxCertificate));\n}", "public void setOptional(Boolean optional) {\n this.optional = optional;\n }", "public void setIsCalculated(Boolean value) {\n this.isCalculated = value;\n }", "public void onChanged(Boolean bool) {\n if (bool != null) {\n C41389o oVar = this.f107704a;\n C7573i.m23582a((Object) bool, \"it\");\n oVar.mo102021a(bool.booleanValue());\n }\n }", "void setTouchable(Boolean touchable);", "public Boolean getBoolean(String key, Boolean defaultValue);", "void setIsManaged(boolean isManaged);", "public BooleanValue(boolean bool) {\r\n this.val = bool;\r\n }", "void writeBool(boolean value);", "public void enableSelfView(boolean val);", "public void set(boolean a, boolean b) {\n\t\ta = b;\r\n\t}", "public Builder setIsStatic(boolean value) {\n\n isStatic_ = value;\n onChanged();\n return this;\n }", "public static boolean booleanAnnotation(HasMetadata resource, String annotation, boolean defaultValue, String... deprecatedAnnotations) {\n ObjectMeta metadata = resource.getMetadata();\n String str = annotation(annotation, null, metadata, deprecatedAnnotations);\n return str != null ? parseBoolean(str) : defaultValue;\n }", "public void setAnnounced(Boolean newValue);", "public void setProtection(boolean value);", "public void setOp ( boolean value ) {\n\t\texecute ( handle -> handle.setOp ( value ) );\n\t}", "BoolOperation createBoolOperation();", "public Binding setIsExtensible( boolean theBoolean) {\n\t\tmyIsExtensible = new BooleanDt(theBoolean); \n\t\treturn this; \n\t}", "void setHasAppliedModifier(boolean hasAppliedModifier);", "void setProtection(boolean value);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);" ]
[ "0.66637444", "0.6500837", "0.6491164", "0.6410353", "0.6248796", "0.61685157", "0.61309236", "0.6096352", "0.60659546", "0.605272", "0.60453933", "0.60007083", "0.59999555", "0.59953344", "0.5969191", "0.59618855", "0.59555906", "0.59442693", "0.59167546", "0.59129614", "0.5903702", "0.58749205", "0.58572865", "0.58264226", "0.5796195", "0.5792539", "0.57820976", "0.57820976", "0.57792604", "0.5753171", "0.5752008", "0.57412", "0.5711914", "0.5706953", "0.5702453", "0.5701126", "0.56849724", "0.5672867", "0.566452", "0.5659492", "0.5659492", "0.5652945", "0.5640154", "0.5625685", "0.56222236", "0.55977064", "0.55970883", "0.5585598", "0.55705297", "0.55703", "0.55624163", "0.556206", "0.55540276", "0.5536564", "0.5532945", "0.5531745", "0.5531745", "0.5531745", "0.5531745", "0.5531725", "0.55290866", "0.5528833", "0.55243087", "0.5515792", "0.5509117", "0.55065906", "0.5504889", "0.5483613", "0.54789984", "0.54740095", "0.5460454", "0.54520494", "0.5447551", "0.5443352", "0.5442827", "0.54373604", "0.5436845", "0.5435194", "0.5427345", "0.54254866", "0.54244167", "0.54174024", "0.5415538", "0.54154307", "0.541515", "0.541185", "0.5411743", "0.54110533", "0.5408838", "0.54068565", "0.54052085", "0.5402171", "0.5398022", "0.5390394", "0.5389894", "0.5386326", "0.5386225", "0.5382412", "0.5380269", "0.5380269" ]
0.59403175
18
Set the enumeration decorator by default if not declared via annotation.
private void treatmentEnumDecorator() throws ConfigurationException { if (stylesMap.get(CellStyleHandler.CELL_DECORATOR_ENUM) == null) { stylesMap.put(CellStyleHandler.CELL_DECORATOR_ENUM, cellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_ENUM) ? CellStyleHandler.initializeCellStyleByCellDecorator(workbook, cellDecoratorMap.get(CellStyleHandler.CELL_DECORATOR_ENUM)) : CellStyleHandler.initializeGenericCellDecorator(workbook)); cellDecoratorMap.remove(cellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_ENUM)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setEnumerated(boolean value) {\r\n this.enumerated = value;\r\n }", "public void setEnumerated(boolean value) {\n this.enumerated = value;\n }", "@com.exedio.cope.instrument.Generated // customize with @WrapperType(constructor=...) and @WrapperInitial\n\[email protected]({\"RedundantSuppression\",\"TypeParameterExtendsFinalClass\",\"UnnecessarilyQualifiedInnerClassAccess\"})\n\tWrapEnumItem()\n\t{\n\t\tthis(com.exedio.cope.SetValue.EMPTY_ARRAY);\n\t}", "@com.exedio.cope.instrument.Generated // customize with @WrapperType(genericConstructor=...)\n\tprivate WrapEnumItem(final com.exedio.cope.SetValue<?>... setValues){super(setValues);}", "public Actuator() {\t\t\n\t\t// Typ ist standardäßig disabled\n\t\tthis.setType(\"disabled\");\n\t\tthis.setMyFunction(new LinkedList<Function>());\n\t}", "public static void set_EnumDecl(String v) throws RuntimeException\n {\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaEnumDeclCmd, v);\n UmlCom.check();\n \n _enum_decl = v;\n }", "@Override\r\n\tpublic void visit(EnumDefinition enumDefinition) {\n\r\n\t}", "public void setInhertance(Enumerator newValue);", "public static void set_EnumItemDecl(String v) throws RuntimeException\n {\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaEnumItemDeclCmd, v);\n UmlCom.check();\n \n _enum_item_decl = v;\n }", "public Enum() \n { \n set(\"\");\n }", "private FunctionEnum(String value) {\n\t\tthis.value = value;\n\t}", "public interface IDeltaMonitor {\n\n void freeze();\n\n void unfreeze();\n\n enum Default implements IDeltaMonitor {\n NONE() {\n\n @Override\n public void freeze() {}\n\n @Override\n public void unfreeze() {}\n }\n }\n}", "public Enum(String val) \n { \n set(val);\n }", "protected DynamicEnumerationMenu() {\n super(true);\n }", "protected String getEnumeration()\n {\n return enumeration;\n }", "public static void set_EnumPatternItemDecl(String v) throws RuntimeException\n {\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaEnumPatternItemDeclCmd, v);\n UmlCom.check();\n \n _enum_pattern_item_decl = v;\n \n }", "public Value setDontEnum() {\n checkNotUnknown();\n if (isDontEnum())\n return this;\n Value r = new Value(this);\n r.flags &= ~ATTR_DONTENUM_ANY;\n r.flags |= ATTR_DONTENUM;\n return canonicalize(r);\n }", "public void attributeDecl(String elementName, String attributeName, String type, String[] enumeration, String defaultType, XMLString defaultValue, XMLString nonNormalizedDefaultValue, Augmentations augmentations) throws XNIException {\n if (fDTDHandler != null) {\n fDTDHandler.attributeDecl(elementName, attributeName, type, enumeration, defaultType, defaultValue, nonNormalizedDefaultValue, augmentations);\n }\n}", "public static void set_EnumPatternDecl(String v) throws RuntimeException\n {\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaEnumPatternDeclCmd, v);\n UmlCom.check();\n \n _enum_pattern_decl = v;\n \n }", "public interface CustomMof14EnumLiteralClass extends javax.jmi.reflect.RefClass {\n /**\n * The default factory operation used to create an instance object.\n * @return The created instance object.\n */\n public CustomMof14EnumLiteral createCustomMof14EnumLiteral();\n}", "void setValue(gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type.Value.Enum value);", "public EnumValueConverter() {\n }", "CommandEnum(String commandEnum) {\n this.label = commandEnum;\n }", "public IotaImpl(IotaEnum iotaEnum, Integer value) {\n _iotaEnum = iotaEnum ;\n _value = value ;\n }", "public Registry registerEnum(EnumIO<?> eio, int id);", "public void setDefaultValueGenerator(Generator<V> generator);", "@com.exedio.cope.instrument.Generated\n\tprivate WrapEnumItem(final com.exedio.cope.ActivationParameters ap){super(ap);}", "Enumeration createEnumeration();", "@DISPID(201)\r\n public void enumDone() {\r\n throw new UnsupportedOperationException();\r\n }", "protected static Enum<?> _enumDefault(AnnotationIntrospector intr, AnnotatedClass annotatedClass, Enum<?>[] enums) {\n return (intr != null) ? intr.findDefaultEnumValue(annotatedClass, enums) : null;\n }", "Form setDefaultDecoratorsForElementClass(Class<? extends Element> clazz, List<Decorator> decorators);", "private CommonEnum(int value) {\n\t\tthis.value = value;\n\t}", "protected boolean setEnum(String name, Object value, PropertyDescriptor pd, Object bean)\n throws IllegalAccessException, InvocationTargetException, NoSuchMethodException{\n\n assert (name != null);\n assert (value != null);\n assert (pd != null);\n assert (bean != null);\n\n boolean success = false;\n Class propertyType = pd.getPropertyType();\n\n\n try{\n pd.getWriteMethod().invoke(bean, Enum.valueOf(propertyType, value.toString()));\n success = true;\n }\n catch (IllegalArgumentException e){\n\n //check if the emum has a parse(String) method, and use it if it does.\n Method parseMethod = propertyType.getDeclaredMethod(\"parse\", String.class);\n Enum parsedEnum = (Enum) parseMethod.invoke(\n propertyType.getEnumConstants()[0], value);\n pd.getWriteMethod().invoke(bean, parsedEnum);\n success = true;\n }\n\n return success;\n }", "Rule EnumValue() {\n return Sequence(\n Identifier(),\n Optional(EnumConst()),\n Optional(ListSeparator()),\n WhiteSpace(),\n actions.pushEnumValueNode());\n }", "public interface FruitControl\n{\n\t@Target(ElementType.FIELD)\n\t@Retention(RetentionPolicy.RUNTIME)\n\tpublic @interface FruitName\n\t{\n\t\tString value() default \"\";\n\t}\n\n\tenum Color\n\t{\n\t\tRED, BULE, GREEN\n\t}\n\n\t@Target(ElementType.FIELD)\n\t@Retention(RetentionPolicy.RUNTIME)\n\t@interface FruitColor\n\t{\n\t\tColor fruitColor() default Color.RED;\n\t}\n\n\t@Target(ElementType.METHOD)\n\t@Retention(RetentionPolicy.RUNTIME)\n\t@interface FruitProvider\n\t{\n\t\tint id() default -1;\n\n\t\tString name() default \"\";\n\n\t\tString address();\n\t}\n\n\n\tpublic class Apple\n\t{\n\n\t\t@FruitName(\"MyApple\")\n\t\tprivate String appleName;\n\n\t\t@FruitColor(fruitColor = Color.GREEN)\n\t\tprivate String appleColor;\n\n\t\tprivate String appleProvider;\n\n\t\t@FruitProvider(address = \"深圳车公庙\", name = \"GibsonCool\")\n\t\tprivate void setAppleProvider()\n\t\t{\n\n\t\t}\n\t}\n\n\n}", "@Accessor(qualifier = \"converterClass\", type = Accessor.Type.SETTER)\n\tpublic void setConverterClass(final ExportConverterEnum value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(CONVERTERCLASS, value);\n\t}", "public final void mT__175() throws RecognitionException {\n try {\n int _type = T__175;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:173:8: ( 'Enumeration' )\n // InternalMyDsl.g:173:10: 'Enumeration'\n {\n match(\"Enumeration\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public void setVisibility(Enumerator newValue);", "public void setVisibility(Enumerator newValue);", "public interface Food2 extends Food {\n enum Appetizer implements Food {\n\n }\n}", "public CustomMof14EnumLiteral createCustomMof14EnumLiteral();", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }", "@JsonTypeInfo(use=JsonTypeInfo.Id.MINIMAL_CLASS, include=JsonTypeInfo.As.PROPERTY)\n public interface EnumInterface { }", "@Override\n public String visit(EnumDeclaration n, Object arg) {\n return null;\n }", "Form addDefaultDecoratorForElementClass(Class<? extends Element> clazz, Decorator decorator);", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "public Enum(String name, String val) \n { \n super(name); \n set(val);\n }", "EnumRef createEnumRef();", "public EnumerationIteratorAdaptor(Enumeration enumeration) {\n this.enumeration = enumeration;\n }", "DefaultAttribute()\n {\n }", "public String getElement()\n {\n return \"enum\";\n }", "@JSProperty(\"ordinal\")\n void setOrdinal(boolean value);", "CommandEnum() {}", "@Test\n @TestForIssue(jiraKey = \"HHH-10402\")\n public void testEnumeratedTypeResolutions() {\n final MetadataImplementor mappings = ((MetadataImplementor) (addAnnotatedClass(EnumeratedSmokeTest.EntityWithEnumeratedAttributes.class).buildMetadata()));\n mappings.validate();\n final PersistentClass entityBinding = mappings.getEntityBinding(EnumeratedSmokeTest.EntityWithEnumeratedAttributes.class.getName());\n validateEnumMapping(entityBinding.getProperty(\"notAnnotated\"), ORDINAL);\n validateEnumMapping(entityBinding.getProperty(\"noEnumType\"), ORDINAL);\n validateEnumMapping(entityBinding.getProperty(\"ordinalEnumType\"), ORDINAL);\n validateEnumMapping(entityBinding.getProperty(\"stringEnumType\"), STRING);\n }", "public void setEtat(EnumEtatOperation etat) {\r\n this.etat = etat;\r\n }", "private void registerDefaultConverters()\n {\n registerBaseClassConverter(EnumConverter.getInstance(), Enum.class);\n }", "public static M1.Builder setSingleEnum(M1.Builder caretAfterThis) {\n // EXPECT-NEXT: Proto2Lite.proto / M1.single_enum\n return caretAfterThis.setSingleEnum(\n // EXPECT-NEXT: Proto2Lite.proto / Shapes\n /* caretAfterThis */ Shapes.\n // EXPECT-NEXT: Proto2Lite.proto / CIRCLE\n /* caretAfterThis */ CIRCLE);\n }", "@Override\n public void addEnumComment(InnerEnum innerEnum, IntrospectedTable introspectedTable) {\n if (suppressAllComments) {\n return;\n }\n\n StringBuilder sb = new StringBuilder();\n\n innerEnum.addJavaDocLine(\"/**\");\n // addJavadocTag(innerEnum, false);\n sb.append(\" * \");\n sb.append(introspectedTable.getFullyQualifiedTable());\n innerEnum.addJavaDocLine(sb.toString());\n innerEnum.addJavaDocLine(\" */\");\n }", "BasicRestAnnotation() {\n\t}", "public Value setNotDontEnum() {\n checkNotUnknown();\n if (isNotDontEnum())\n return this;\n Value r = new Value(this);\n r.flags &= ~ATTR_DONTENUM_ANY;\n r.flags |= ATTR_NOTDONTENUM;\n return canonicalize(r);\n }", "private AnalysisMethodEnum(String name) {\n\t\tthis.methodName = name;\n\t}", "public void setDefaultValue(String value) {\n decorator.setDefaultValue(value);\n }", "EEnumLiteral createEEnumLiteral();", "protected EnumTypeAdapterFactory allowUnregistered(){\n\t\tallowUnregistered = true;\n\t\treturn this;\n\t}", "@SuppressWarnings(\"unchecked\")\r\n public SettableEnumField(final SettableEnumValue<T> value) {\r\n final Class<T> enumClass = value.getEnumClass();\r\n this.addStyleName(\"settableEnum\");\r\n {\r\n int index = 0;\r\n indexToEnumMap = new HashMap<Integer, T>();\r\n enumToIndexMap = new EnumMap<T, Integer>(enumClass);\r\n for (T possibleValue : enumClass.getEnumConstants()) {\r\n indexToEnumMap.put(index, possibleValue);\r\n enumToIndexMap.put(possibleValue, index);\r\n String displayName;\r\n if (possibleValue instanceof EnumWithName) {\r\n // If it has display names, use those\r\n displayName = ((EnumWithName) possibleValue).getName();\r\n } else {\r\n // Otherwise use the enum's java identifier as a name\r\n displayName = possibleValue.name();\r\n }\r\n this.addItem(displayName);\r\n index++;\r\n }\r\n }\r\n setSelectedIndex(enumToIndex(value.getValue()));\r\n disposer.observe(value, new Observer() {\r\n public void onChange() {\r\n SettableEnumField.this.setSelectedIndex(enumToIndex(value.getValue()));\r\n }\r\n });\r\n addChangeHandler(new ChangeHandler() {\r\n public void onChange(ChangeEvent changeEvent) {\r\n value.setValue(indexToEnum(getSelectedIndex()));\r\n }\r\n });\r\n }", "EnumLiteralExp createEnumLiteralExp();", "@Override\n\tpublic void visit(EnumSpecifier n) {\n\t\tif (n.getF0().getChoice() instanceof EnumSpecifierWithList) {\n\t\t\tEnumSpecifierWithList node = (EnumSpecifierWithList) n.getF0().getChoice();\n\t\t\tif (!node.getF1().present()) {\n\t\t\t\tStringBuilder newNodeString = new StringBuilder(\"enum\");\n\t\t\t\tnewNodeString.append(\" \" + Builder.getNewTempName(\"enum\"));\n\t\t\t\tnewNodeString.append(\" { \" + node.getF3().getInfo().getString() + \"} \");\n\t\t\t\tn.getF0().setChoice(FrontEnd.parseAlone(newNodeString.toString(), EnumSpecifierWithList.class));\n\t\t\t}\n\t\t}\n\t\tn.getF0().accept(this);\n\t}", "public JsonDeserializer<?> modifyEnumDeserializer(DeserializationConfig config, JavaType type, BeanDescription beanDesc, JsonDeserializer<?> deserializer)\n/* */ {\n/* 104 */ return deserializer;\n/* */ }", "public void setGenders(final List<EnumerationValue> value)\r\n\t{\r\n\t\tsetGenders( getSession().getSessionContext(), value );\r\n\t}", "void visitEnumValue(EnumValue value);", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E addAnnotation(CtAnnotation<? extends Annotation> annotation);", "@Accessor(qualifier = \"mode\", type = Accessor.Type.SETTER)\n\tpublic void setMode(final ImpExValidationModeEnum value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(MODE, value);\n\t}", "private Enums(int i)\n\t {\n\t System.out.println(2);\n\t }", "public interface EnumParameter extends ParameterValue {\r\n}", "public IotaEnum getIotaEnum() {\n return _iotaEnum ;\n }", "public void setDecoratedDefinition(BeanDefinitionHolder decoratedDefinition)\n/* */ {\n/* 214 */ this.decoratedDefinition = decoratedDefinition;\n/* */ }", "public void setOnAcceptBranchsequenceType(Enumerator newValue);", "private EnumButton(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public GQLMethodEnumMetaData setEnumClass(final Class<? extends Enum<?>> enumClass) {\n\t\tthis.enumClass = enumClass;\n\t\treturn this;\n\t}", "public Type setCode(DataTypeEnum theValue) {\n\t\tgetCodeElement().setValueAsEnum(theValue);\n\t\treturn this;\n\t}", "private SheetTraitEnum(int value, String name, String literal) {\r\n\t\tthis.value = value;\r\n\t\tthis.name = name;\r\n\t\tthis.literal = literal;\r\n\t}", "EnumValueDefinition createEnumValueDefinition();" ]
[ "0.5909447", "0.5872474", "0.5726942", "0.5652186", "0.55164516", "0.5499968", "0.5498837", "0.54968333", "0.54636157", "0.545721", "0.5177794", "0.51589596", "0.511908", "0.5029502", "0.5002483", "0.49996778", "0.49934345", "0.49707666", "0.49674705", "0.49393398", "0.49309742", "0.48732743", "0.48495805", "0.4847149", "0.48237944", "0.48228413", "0.48223683", "0.48068747", "0.47812405", "0.4756047", "0.47534493", "0.47438094", "0.47413248", "0.47381344", "0.47166884", "0.4673574", "0.4671178", "0.46649826", "0.46649826", "0.4662454", "0.4659774", "0.4659586", "0.4659586", "0.46357012", "0.46226895", "0.46219352", "0.46196136", "0.46196136", "0.46196136", "0.46196136", "0.461684", "0.461684", "0.461684", "0.461684", "0.461684", "0.461684", "0.461684", "0.461684", "0.461684", "0.461684", "0.461684", "0.461684", "0.461684", "0.461684", "0.460406", "0.45883128", "0.45874044", "0.4587112", "0.45860192", "0.45834026", "0.45762938", "0.45733434", "0.4572314", "0.45630947", "0.45610225", "0.45597273", "0.45487124", "0.4539646", "0.45393854", "0.45275155", "0.45151567", "0.45128605", "0.4495154", "0.44885123", "0.44882208", "0.44875398", "0.44874126", "0.4484784", "0.44833678", "0.44666037", "0.4452669", "0.44476393", "0.4442137", "0.44335115", "0.4430543", "0.44297594", "0.442069", "0.44167855", "0.44159785", "0.44107437" ]
0.5557852
4
Set the all nondefault decorators declared via annotation. If the unique decorator is activated, will override all others decorators by the unique decorator.
private void treatmentSpecificDecorator() throws ConfigurationException { for (Map.Entry<String, CellDecorator> object : cellDecoratorMap.entrySet()) { if (uniqueCellStyle) { /* * when activate unique style, set all styles with the declared * style */ stylesMap.put(object.getKey(), CellStyleHandler.initializeCellStyleByCellDecorator(workbook, cellDecoratorUnique)); } else { stylesMap.put(object.getKey(), CellStyleHandler.initializeCellStyleByCellDecorator(workbook, object.getValue())); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Form setDefaultDecoratorsForElementClass(Class<? extends Element> clazz, List<Decorator> decorators);", "private void treatUniqueDecoratorViaCriteria() throws ConfigurationException {\n\t\tif (uniqueCellStyle) {\n\t\t\t/* treat all the styles declared via annotation */\n\t\t\tfor (Map.Entry<String, CellStyle> object : stylesMap.entrySet()) {\n\t\t\t\tstylesMap.put(object.getKey(),\n\t\t\t\t\t\tCellStyleHandler.initializeCellStyleByCellDecorator(workbook, cellDecoratorUnique));\n\t\t\t}\n\t\t}\n\n\t\t/* treat all default styles non-declared */\n\t\ttreatmentHeaderDecorator();\n\t\ttreatmentGenericDecorator();\n\t\ttreatmentNumericDecorator();\n\t\ttreatmentDateDecorator();\n\t\ttreatmentBooleanDecorator();\n\t\ttreatmentEnumDecorator();\n\n\t\t/* treat all the styles non-default override via XConfigCriteria */\n\t\ttreatmentSpecificDecorator();\n\t}", "List<Decorator> getDefaultDecoratorsForElementClass(Class<? extends Element> clazz);", "Form removeDefaultDecoratorsForElementClass(Class<? extends Element> clazz);", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E setAnnotations(List<CtAnnotation<? extends Annotation>> annotation);", "public static void clearDecoratorPrefs() {\n getUIStore().setValue(IPerforceUIConstants.PREF_FILE_OPEN_ICON, 0);\n getUIStore().setValue(IPerforceUIConstants.PREF_FILE_SYNC_ICON, 0);\n getUIStore().setValue(IPerforceUIConstants.PREF_FILE_SYNC2_ICON, 0);\n getUIStore()\n .setValue(IPerforceUIConstants.PREF_FILE_UNRESOLVED_ICON, 0);\n getUIStore().setValue(IPerforceUIConstants.PREF_FILE_LOCK_ICON, 0);\n getUIStore().setValue(IPerforceUIConstants.PREF_FILE_OTHER_ICON, 0);\n }", "Map<String, Decorator> getDecorators();", "@Override\n public void setQualifiers(final Annotation[] annos) {\n }", "private void treatmentBasicDecorator() throws ConfigurationException {\n\t\t/* treat all default styles non-declared */\n\t\ttreatmentHeaderDecorator();\n\t\ttreatmentGenericDecorator();\n\t\ttreatmentNumericDecorator();\n\t\ttreatmentDateDecorator();\n\t\ttreatmentBooleanDecorator();\n\t\ttreatmentEnumDecorator();\n\n\t\t/* treat all the styles non-default override via XConfigCriteria */\n\t\tfor (Map.Entry<String, CellDecorator> object : cellDecoratorMap.entrySet()) {\n\t\t\tstylesMap.put(object.getKey(),\n\t\t\t\t\tCellStyleHandler.initializeCellStyleByCellDecorator(workbook, object.getValue()));\n\t\t}\n\t}", "Set<Class<? extends Annotation>> getScanMethodAnnotations();", "default List<AnnotationContext<?>> allAnnotations() {\n\n return annotations().stream()\n .flatMap(annotation -> annotation.valueType().<Stream<AnnotationContext<?>>>map(valueType -> {\n if (valueType.isArray()) {\n final TypeContext componentType = valueType.arrayComponentType();\n final AnnotationContext<Repeatable> rep = componentType.annotation(Repeatable.class);\n if (rep != null && rep.value().equals(annotation.annotationType())) {\n final Annotation[] repeated = annotation.value();\n return Arrays.stream(repeated).map(AnnotationContext::new);\n }\n }\n return Stream.of(annotation);\n }).orElseGet(() -> Stream.of(annotation)))\n .collect(Collectors.toList());\n }", "private void treatmentGenericDecorator() throws ConfigurationException {\n\t\tif (stylesMap.get(CellStyleHandler.CELL_DECORATOR_GENERIC) == null) {\n\t\t\tstylesMap.put(CellStyleHandler.CELL_DECORATOR_GENERIC,\n\t\t\t\t\tcellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_GENERIC)\n\t\t\t\t\t\t\t? CellStyleHandler.initializeCellStyleByCellDecorator(workbook,\n\t\t\t\t\t\t\t\t\tcellDecoratorMap.get(CellStyleHandler.CELL_DECORATOR_GENERIC))\n\t\t\t\t\t\t\t: CellStyleHandler.initializeGenericCellDecorator(workbook));\n\t\t\tcellDecoratorMap.remove(cellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_GENERIC));\n\t\t}\n\t}", "@Override\n public Collection<PmCommandDecorator> getDecorators(org.pm4j.core.pm.PmTable.TableChange change) {\n return Collections.emptyList();\n }", "private List<Method> getTargetMethods(Class<? extends Annotation> ann) {\n List<List<Method>> list = mutableCopy(\n removeShadowed(removeOverrides(annotatedWith(allTargetMethods, ann))));\n \n // Reverse processing order to super...clazz for befores\n if (ann == Before.class || ann == BeforeClass.class) {\n Collections.reverse(list);\n }\n \n // Shuffle at class level.\n Random rnd = new Random(runnerRandomness.seed);\n for (List<Method> clazzLevel : list) {\n Collections.shuffle(clazzLevel, rnd);\n }\n \n return flatten(list);\n }", "Form addDefaultDecoratorForElementClass(Class<? extends Element> clazz, Decorator decorator);", "private AnnotationTarget() {\n void var2_-1;\n void var1_-1;\n }", "@Override\n\tpublic void setHasDecorations(boolean hasDecorations) {\n\t\t\n\t}", "public void autonomous() {\n for (int i = 0; i < teleopControllers.size(); i++) {\n ((EventController) teleopControllers.elementAt(i)).disable();\n }\n for (int i = 0; i < autoControllers.size(); i++) {\n ((EventController) autoControllers.elementAt(i)).enable();\n }\n\n }", "public synchronized void clear() {\n synchronized (this.factories) {\n for (Map.Entry<String, CachedAnnotator> entry : new HashSet<>(this.factories.entrySet())) {\n // Unmount the annotator\n Optional.ofNullable(entry.getValue()).flatMap(ann -> Optional.ofNullable(ann.annotator.getIfDefined())).ifPresent(Annotator::unmount);\n // Remove the annotator\n this.factories.remove(entry.getKey());\n }\n }\n }", "public void setDefaultRestrictions() {\n addPolicy(DISABLE_EXIT);\n addPolicy(DISABLE_ANY_FILE_MATCHER);\n addPolicy(DISABLE_SECURITYMANAGER_CHANGE);\n //addPolicy(DISABLE_REFLECTION_UNTRUSTED);\n addPolicy(DISABLE_EXECUTION);\n addPolicy(DISABLE_TEST_SNIFFING);\n addPolicy(DISABLE_REFLECTION_SELECTIVE);\n addPolicy(DISABLE_SOCKETS);\n\n InterceptorBuilder.installAgent();\n InterceptorBuilder.initDefaultTransformations();\n }", "public final void synpred6_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:881:7: ( ( decorators )? DEF )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:881:8: ( decorators )? DEF\n {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:881:8: ( decorators )?\n int alt156=2;\n int LA156_0 = input.LA(1);\n\n if ( (LA156_0==AT) ) {\n alt156=1;\n }\n switch (alt156) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:881:8: decorators\n {\n pushFollow(FOLLOW_decorators_in_synpred6_Python3455);\n decorators();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n match(input,DEF,FOLLOW_DEF_in_synpred6_Python3458); if (state.failed) return ;\n\n }\n }", "Set<? extends Class<? extends Annotation>> annotations();", "public final PythonParser.decorators_return decorators() throws RecognitionException {\n PythonParser.decorators_return retval = new PythonParser.decorators_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n List list_d=null;\n PythonParser.decorator_return d = null;\n d = null;\n\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:440:5: ( (d+= decorator )+ )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:440:7: (d+= decorator )+\n {\n root_0 = (PythonTree)adaptor.nil();\n\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:440:8: (d+= decorator )+\n int cnt13=0;\n loop13:\n do {\n int alt13=2;\n int LA13_0 = input.LA(1);\n\n if ( (LA13_0==AT) ) {\n alt13=1;\n }\n\n\n switch (alt13) {\n \tcase 1 :\n \t // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:440:8: d+= decorator\n \t {\n \t pushFollow(FOLLOW_decorator_in_decorators830);\n \t d=decorator();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) adaptor.addChild(root_0, d.getTree());\n \t if (list_d==null) list_d=new ArrayList();\n \t list_d.add(d.getTree());\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt13 >= 1 ) break loop13;\n \t if (state.backtracking>0) {state.failed=true; return retval;}\n EarlyExitException eee =\n new EarlyExitException(13, input);\n throw eee;\n }\n cnt13++;\n } while (true);\n\n if ( state.backtracking==0 ) {\n\n retval.etypes = list_d;\n \n }\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }", "@Pointcut(\"forDAOPackage() && !(getter() || setter())\")\n\tpublic void exceptGettersAndSetters() {}", "@MyFirstAnnotation(name=\"tom\",description=\"write by tom\")\n\tpublic UsingMyFirstAnnotation(){\n\t\t\n\t}", "private void validateDecorator(IDecorator decorator) {\r\n \t\tif (decorator.getName() != null) {\r\n \t\t\tITextSourceReference declaration = decorator.getAnnotation(CDIConstants.NAMED_QUALIFIER_TYPE_NAME);\r\n \t\t\tif (declaration == null) {\r\n \t\t\t\tdeclaration = decorator.getAnnotation(CDIConstants.DECORATOR_STEREOTYPE_TYPE_NAME);\r\n \t\t\t}\r\n \t\t\tif (declaration == null) {\r\n \t\t\t\tdeclaration = CDIUtil.getNamedStereotypeDeclaration(decorator);\r\n \t\t\t}\r\n \t\t\taddError(CDIValidationMessages.DECORATOR_HAS_NAME, CDIPreferences.DECORATOR_HAS_NAME, declaration, decorator.getResource());\r\n \t\t}\r\n \r\n \t\t/*\r\n \t\t * 2.6.1. Declaring an alternative\r\n \t\t * - decorator is an alternative (Non-Portable behavior)\r\n \t\t */\r\n \t\tif (decorator.isAlternative()) {\r\n \t\t\tITextSourceReference declaration = decorator.getAlternativeDeclaration();\r\n \t\t\tif (declaration == null) {\r\n \t\t\t\tdeclaration = decorator.getDecoratorAnnotation();\r\n \t\t\t}\r\n \t\t\tif(declaration == null) {\r\n \t\t\t\t//for custom implementations\r\n \t\t\t\tdeclaration = decorator.getNameLocation();\r\n \t\t\t}\r\n \t\t\taddError(CDIValidationMessages.DECORATOR_IS_ALTERNATIVE, CDIPreferences.INTERCEPTOR_OR_DECORATOR_IS_ALTERNATIVE, declaration, decorator.getResource());\r\n \t\t}\r\n \r\n \t\t/*\r\n \t\t * 3.3.2. Declaring a producer method\r\n \t\t * - decorator has a method annotated @Produces\r\n \t\t * \r\n \t\t * 3.4.2. Declaring a producer field\r\n \t\t * - decorator has a field annotated @Produces\r\n \t\t */\r\n \t\tSet<IProducer> producers = decorator.getProducers();\r\n \t\tfor (IProducer producer : producers) {\r\n \t\t\taddError(CDIValidationMessages.PRODUCER_IN_DECORATOR, CDIPreferences.PRODUCER_IN_INTERCEPTOR_OR_DECORATOR, producer.getProducesAnnotation(), decorator.getResource());\r\n \t\t}\r\n \r\n \t\tSet<IInjectionPoint> injections = decorator.getInjectionPoints();\r\n \t\tSet<ITextSourceReference> delegates = new HashSet<ITextSourceReference>();\r\n \t\tIInjectionPoint delegate = null;\r\n \t\tfor (IInjectionPoint injection : injections) {\r\n \t\t\tITextSourceReference delegateAnnotation = injection.getDelegateAnnotation();\r\n \t\t\tif(delegateAnnotation!=null) {\r\n \t\t\t\tif(injection instanceof IInjectionPointField) {\r\n \t\t\t\t\tdelegate = injection;\r\n \t\t\t\t\tdelegates.add(delegateAnnotation);\r\n \t\t\t\t}\r\n \t\t\t\tif(injection instanceof IInjectionPointParameter) {\r\n \t\t\t\t\tif(((IInjectionPointParameter) injection).getBeanMethod().getAnnotation(CDIConstants.PRODUCES_ANNOTATION_TYPE_NAME)==null) {\r\n \t\t\t\t\t\tdelegate = injection;\r\n \t\t\t\t\t\tdelegates.add(delegateAnnotation);\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\t/*\r\n \t\t\t\t\t\t * 8.1.2. Decorator delegate injection points\r\n \t\t\t\t\t\t * - injection point that is not an injected field, initializer method parameter or bean constructor method parameter is annotated @Delegate\r\n \t\t\t\t\t\t */\r\n \t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_INJECTION_POINT_DELEGATE, CDIPreferences.ILLEGAL_INJECTION_POINT_DELEGATE, delegateAnnotation, decorator.getResource());\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\tif(delegates.size()>1) {\r\n \t\t\t/*\r\n \t\t\t * 8.1.2. Decorator delegate injection points\r\n \t\t\t * - decorator has more than one delegate injection point\r\n \t\t\t */\r\n \t\t\tfor (ITextSourceReference declaration : delegates) {\r\n \t\t\t\taddError(CDIValidationMessages.MULTIPLE_DELEGATE, CDIPreferences.MULTIPLE_DELEGATE, declaration, decorator.getResource());\r\n \t\t\t}\r\n \t\t} else if(delegates.isEmpty()) {\r\n \t\t\t/*\r\n \t\t\t * 8.1.2. Decorator delegate injection points\r\n \t\t\t * - decorator does not have a delegate injection point\r\n \t\t\t */\r\n \t\t\tIAnnotationDeclaration declaration = decorator.getDecoratorAnnotation();\r\n \t\t\taddError(CDIValidationMessages.MISSING_DELEGATE, CDIPreferences.MISSING_DELEGATE, declaration, decorator.getResource());\r\n \t\t}\r\n \r\n \t\t/*\r\n \t\t * 8.1.3. Decorator delegate injection points\r\n \t\t * - delegate type does not implement or extend a decorated type of the decorator, or specifies different type parameters\r\n \t\t */\r\n \t\tif(delegate!=null) {\r\n \t\t\tIParametedType delegateParametedType = delegate.getType();\r\n \t\t\tif(delegateParametedType!=null) {\r\n \t\t\t\tIType delegateType = delegateParametedType.getType();\r\n \t\t\t\tif(delegateType != null) {\r\n \t\t\t\t\tif(!checkTheOnlySuper(decorator, delegateParametedType)) {\r\n \t\t\t\t\t\tSet<IParametedType> decoratedParametedTypes = decorator.getDecoratedTypes();\r\n \t\t\t\t\t\tList<String> supers = null;\r\n \t\t\t\t\t\tif(!delegateType.isReadOnly()) {\r\n \t\t\t\t\t\t\tgetValidationContext().addLinkedCoreResource(decorator.getResource().getFullPath().toOSString(), delegateType.getResource().getFullPath(), false);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tfor (IParametedType decoratedParametedType : decoratedParametedTypes) {\r\n \t\t\t\t\t\t\tIType decoratedType = decoratedParametedType.getType();\r\n \t\t\t\t\t\t\tif(decoratedType==null) {\r\n \t\t\t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif(!decoratedType.isReadOnly()) {\r\n \t\t\t\t\t\t\t\tgetValidationContext().addLinkedCoreResource(decorator.getResource().getFullPath().toOSString(), decoratedType.getResource().getFullPath(), false);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tString decoratedTypeName = decoratedType.getFullyQualifiedName();\r\n \t\t\t\t\t\t\t// Ignore the type of the decorator class bean\r\n \t\t\t\t\t\t\tif(decoratedTypeName.equals(decorator.getBeanClass().getFullyQualifiedName())) {\r\n \t\t\t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif(decoratedTypeName.equals(\"java.lang.Object\")) { //$NON-NLS-1$\r\n \t\t\t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif(supers==null) {\r\n \t\t\t\t\t\t\t\tsupers = getSuppers(delegateParametedType);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif(supers.contains(decoratedParametedType.getSignature())) {\r\n \t\t\t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\tITextSourceReference declaration = delegate.getDelegateAnnotation();\r\n \t\t\t\t\t\t\t\tif(delegateParametedType instanceof ITypeDeclaration) {\r\n \t\t\t\t\t\t\t\t\tdeclaration = (ITypeDeclaration)delegateParametedType;\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tString typeName = Signature.getSignatureSimpleName(decoratedParametedType.getSignature());\r\n \t\t\t\t\t\t\t\taddError(MessageFormat.format(CDIValidationMessages.DELEGATE_HAS_ILLEGAL_TYPE, typeName), CDIPreferences.DELEGATE_HAS_ILLEGAL_TYPE, declaration, decorator.getResource());\r\n \t\t\t\t\t\t\t\tbreak;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\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}", "@Override\n\tpublic Annotation[] getDeclaredAnnotations() {\n\t\treturn null;\n\t}", "public ScanCommonVisitor() {\n\t\tannotationVisitors = new HashMap<String, AnnotationVisitor>();\n\t}", "@NoProxy\n @NoWrap\n public void setOverrides(final Collection<BwEventAnnotation> val) {\n overrides = val;\n }", "@Word(word = \"First\", value = 1) \n\t public static void newMethod(){ \n\t\t FullAnnotationProgram obj = new FullAnnotationProgram(); \n\n\t try{ \n\t Class<?> c = obj.getClass(); \n\n\t // Obtain the annotation for newMethod \n\t Method m = c.getMethod(\"newMethod\"); \n\t \n\t // Display the full annotation \n\t Annotation anno = m.getAnnotation(CustomRepeatAnnots.class); \n\t System.out.println(anno); \n\t }catch (NoSuchMethodException e){ \n\t System.out.println(e); \n\t } \n\t }", "private static void stripAllMembers(TypeDeclaration tyDecl) {\n if (TypeDeclaration.kind(tyDecl.modifiers) == TypeDeclaration.ANNOTATION_TYPE_DECL) {\n // Do not modify annotations at all.\n return;\n }\n tyDecl.superclass = null;\n tyDecl.superInterfaces = null;\n tyDecl.annotations = null;\n tyDecl.methods = null;\n tyDecl.memberTypes = null;\n tyDecl.fields = null;\n if (TypeDeclaration.kind(tyDecl.modifiers) == TypeDeclaration.CLASS_DECL) {\n // Create a default constructor so that the class is proper.\n ConstructorDeclaration constructor = tyDecl.createDefaultConstructor(true, true);\n // Mark only constructor as private so that it can not be instantiated.\n constructor.modifiers = ClassFileConstants.AccPrivate;\n // Clear a bit that is used for marking the constructor as default as it makes JDT\n // assume that the constructor is public.\n constructor.bits &= ~ASTNode.IsDefaultConstructor;\n // Mark the class as final so that it can not be extended.\n tyDecl.modifiers |= ClassFileConstants.AccFinal;\n tyDecl.modifiers &= ~ClassFileConstants.AccAbstract;\n }\n }", "public static void enableAnnotations(final WebApplication application) {\n\t\tfinal Boolean enabled = application.getMetaData(ANNOTATIONS_ENABLED_KEY);\n\t\tif (!Boolean.TRUE.equals(enabled)) {\n\t\t\ttry {\n\t\t\t\tClass.forName(\"org.wicketstuff.config.MatchingResources\");\n\t\t\t\tClass.forName(\"org.springframework.core.io.support.PathMatchingResourcePatternResolver\");\n\t\t\t} catch (final ClassNotFoundException e) {\n\t\t\t\tthrow new WicketRuntimeException(\"in order to enable wicketstuff-merged-resources' annotation support, \"\n\t\t\t\t\t\t+ \"wicketstuff-annotations and spring-core must be on the path \"\n\t\t\t\t\t\t+ \"(see http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-annotation for details)\");\n\t\t\t}\n\t\t\tapplication.addComponentInstantiationListener(new ContributionInjector());\n\t\t\tapplication.setMetaData(ANNOTATIONS_ENABLED_KEY, Boolean.TRUE);\n\t\t}\n\t}", "public interface AbstractComponentDecorator extends Component {\n void setComponent(Component component);\n}", "@MyFirstAnnotation(name = \"Tom\")\n public void someMethod() {\n\n }", "@UniqueID(\"ProvidedID\")\n\t\[email protected]\n\t\tprivate void uniqueIdAnnotation() {\n\t\t}", "public void setDecoratedDefinition(BeanDefinitionHolder decoratedDefinition)\n/* */ {\n/* 214 */ this.decoratedDefinition = decoratedDefinition;\n/* */ }", "@Override\n\tpublic Set<Class<? extends CoreAnnotation>> requires() {\n\t\tArraySet<Class<? extends CoreAnnotation<?>>> set = new ArraySet<Class<? extends CoreAnnotation<?>>>();\n\t\tif (heat != null && Evaluators.contains(heat)) {\n\t\t\tset.add(MusicalHeatScoreAnnotation.class);\n\t\t\tset.add(MusicalHeatAnnotation.class);\n\t\t}\n\t\tif (musicentity != null && Evaluators.contains(musicentity)) {\n\t\t\tset.add(MusicalEntityAnnotation.class);\n\t\t}\n\t\treturn Collections.unmodifiableSet(set);\n\t}", "public void setCompositorAsAll() {\n _compositor = ALL;\n }", "@Override\n\tpublic Annotation[] getAnnotations() {\n\t\treturn null;\n\t}", "@Pointcut(\"forDAOPackage() && !(forDAOPackageSetters() || forDAOPackageGetters())\")\n\tprivate void forDAOPackageNoGettesAndSetters() {}", "@Pointcut(\"(@annotation(javax.annotation.security.PermitAll) || @within(javax.annotation.security.PermitAll))\")\n public void permitAll() {\n }", "@Override\n\t protected void applyCustomConfiguration(SiteMeshFilterBuilder builder) {\n\t\t builder.addDecoratorPath(\"/*\", \"/WEB-INF/jsp/decorator/decorator.jsp\")\n//\t\t .addDecoratorPaths(\"/articles/*\", \"/decorators/article.html\",\n//\t\t \"/decoratos/two-page-layout.html\",\n//\t\t \"/decorators/common.html\")\n\t\t // Exclude path from decoration.\n\t\t .addExcludedPath(\"/member/list.do\")\n\t\t .addExcludedPath(\"/base/codeWindow.html*\")\n\t\t .addExcludedPath(\"/base/postWindow.html*\");\n\t\t \n\t\t builder.addTagRuleBundles(new DivExtractingTagRuleBundle());\n\n\t }", "@Pointcut(\"execution(* com.luv2code.aopdemo.dao.*.set*(..))\")\n\tprivate void forDAOPackageSetters() {}", "public void setOmittedProperties(Set<OmittedProperty> omit) {\n\t\tfor (OmittedProperty o : omit) {\n\t\t\ttry {\n\t\t\t\txstream.omitField(Class.forName(o.getClassName()), o.getPropertyName());\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\tlogger.error(e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "@RunMe(2)\n private void dontTestThis() {\n System.out.println(\"dontTestThis\");\n }", "void removeAutopadding() {\n unset();\n for (int counter = springs.size() - 1; counter >= 0; counter--) {\n Spring spring = springs.get(counter);\n if (spring instanceof AutoPreferredGapSpring) {\n if (((AutoPreferredGapSpring)spring).getUserCreated()) {\n ((AutoPreferredGapSpring)spring).reset();\n } else {\n springs.remove(counter);\n }\n } else if (spring instanceof Group) {\n ((Group)spring).removeAutopadding();\n }\n }\n }", "private void registerPrinters() {\n List<Class> classes = null;\n try {\n classes = ReflectionUtils.getAnnotatedClasses(PrinterAnnotation.class);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n if(classes != null && classes.size() != 0) {\n for(Class aClass : classes) {\n try {\n Class<?> clazz = aClass;\n if (clazz.isAnnotationPresent(PrinterAnnotation.class) &&\n clazz.getAnnotation(PrinterAnnotation.class).parent() == PrinterAnnotation.NULL.class) {\n AbstractPrinter printer = (AbstractPrinter) clazz.newInstance();\n registerSignaturePrinters(printer);\n printers.put(clazz.getAnnotation(PrinterAnnotation.class).type(), printer);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n }", "private void decorateUIDelegateMouseListener(Component component) {\n // replace the first MouseListener that appears to be installed by the UI Delegate\n final MouseListener[] mouseListeners = component.getMouseListeners();\n for (int i = mouseListeners.length-1; i >= 0; i--) {\n if (mouseListeners[i].getClass().getName().indexOf(\"TableUI\") != -1) {\n component.removeMouseListener(mouseListeners[i]);\n component.addMouseListener(new ExpandAndCollapseMouseListener(mouseListeners[i]));\n break;\n }\n }\n }", "public void resetAll() {\n triggered = false;\n classBlacklist.clear();\n policies.clear();\n protectedFiles.clear();\n System.setSecurityManager(defaultSecurityManager);\n }", "void removeAnnotations() {\n if (currentIndicators.isEmpty()) {\n return;\n }\n // remove annotations from the model\n synchronized (annotationModelLockObject) {\n if (annotationModel instanceof IAnnotationModelExtension) {\n ((IAnnotationModelExtension) annotationModel).replaceAnnotations(\n currentIndicators.toArray(new Annotation[currentIndicators.size()]),\n null);\n } else {\n for (Annotation annotation : currentIndicators) {\n annotationModel.removeAnnotation(annotation);\n }\n }\n currentIndicators = Lists.newArrayList();\n }\n }", "public JsonFactory setInputDecorator(InputDecorator d)\n/* */ {\n/* 611 */ this._inputDecorator = d;\n/* 612 */ return this;\n/* */ }", "private void setConstructors(Class<?> token) throws ImplerException {\n Constructor<?>[] constructors = token.getDeclaredConstructors();\n if (!token.isInterface() &&\n Arrays.stream(constructors)\n .allMatch(constructor -> Modifier.isPrivate(constructor.getModifiers()))) {\n throw new ImplerException(\"token hasn't non-private constructor\");\n }\n for (Constructor<?> constructor : constructors) {\n setExecutable(constructor, \"\", new StringBuilder(\"super(\"), true);\n }\n }", "@Before\n public void setup() {\n ApiAuthProviders authProviders = ApiAuthProviders.builder()\n .cognitoUserPoolsAuthProvider(new FakeCognitoAuthProvider())\n .oidcAuthProvider(new FakeOidcAuthProvider())\n .build();\n decorator = new AuthRuleRequestDecorator(authProviders);\n }", "@Override\n public void addDecorator(PmCommandDecorator decorator, org.pm4j.core.pm.PmTable.TableChange... changes) {\n\n }", "public ClassAnnotationMetaDataFilter(Class<?>[] annos) {\n _annos = new HashSet<>();\n for (Class<?> anno : annos) {\n _annos.add(Type.getDescriptor(anno));\n }\n }", "@RegionEffects(\"writes publicField; reads defaultField\")\n private void someButNotAll() {\n publicField = privateField;\n protectedField = defaultField;\n }", "@Override\n public void visit(Tree.AnnotationList al) {\n }", "TypeConstraintMappingContext<C> ignoreAllAnnotations();", "public JsonFactory setOutputDecorator(OutputDecorator d)\n/* */ {\n/* 682 */ this._outputDecorator = d;\n/* 683 */ return this;\n/* */ }", "@SuppressWarnings(\"unchecked\")\n private List<Node> getDecoratorsOfClass(AClass ac) {\n List<Node> instanceDecorators = new ArrayList<>();\n List<Node> staticDecorators = new ArrayList<>();\n List<Node> constructorParameterDecorators = new ArrayList<>();\n List<Node> classDecorators = (List<Node>)(List<?>)ac.getDecorators();\n for (MemberDefinition<?> member : ac.getBody().getBody()) {\n if (!member.isConcrete()) continue;\n List<Node> decorators = getMemberDecorators(member);\n if (member.isConstructor()) {\n constructorParameterDecorators.addAll(decorators);\n } else if (member.isStatic()) {\n staticDecorators.addAll(decorators);\n } else {\n instanceDecorators.addAll(decorators);\n }\n }\n List<Node> result = new ArrayList<>();\n result.addAll(instanceDecorators);\n result.addAll(staticDecorators);\n result.addAll(constructorParameterDecorators);\n result.addAll(classDecorators);\n return result;\n }", "private void initReservedAttributes()\n {\n addIgnoreProperty(ATTR_IF_NAME);\n addIgnoreProperty(ATTR_REF);\n addIgnoreProperty(ATTR_UNLESS_NAME);\n addIgnoreProperty(ATTR_BEAN_CLASS);\n addIgnoreProperty(ATTR_BEAN_NAME);\n }", "public void setAnnotations(Annotations annotations) {\n\t\tthis.annotations = annotations;\n\t}", "@DISPID(1610940430) //= 0x6005000e. The runtime will prefer the VTID if present\n @VTID(36)\n Collection annotationSets();", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E addAnnotation(CtAnnotation<? extends Annotation> annotation);", "public void addAllCustomElements() {\n getModel().getCustomElements().forEach(ce -> {\n try {\n add(ce);\n } catch (ElementNotPermittedInViewException e) {\n // ignore\n }\n });\n }", "Set<Class<? extends Annotation>> getScanTypeAnnotations();", "@VisibleForTesting\n void reportOnce() {\n additionalAttributes = additionalAttributesSupplier.get();\n if (additionalAttributes == null) {\n additionalAttributes = Collections.emptyMap();\n }\n\n metricRegistry.getGauges().forEach(this::reportGauge);\n\n metricRegistry.getCounters().forEach(this::reportCounter);\n\n metricRegistry.getMeters().forEach(this::reportMeter);\n\n metricRegistry.getHistograms().forEach(this::reportHistogram);\n\n metricRegistry.getTimers().forEach(this::reportTimer);\n }", "Decorator getDecorator(String id);", "private void injectViews() {\n Field[] declaredFields = getClass().getDeclaredFields();\n for (Field declaredField : declaredFields) {\n if(declaredField.isAnnotationPresent(InjectView.class)) {\n declaredField.setAccessible(true);\n try {\n declaredField.set(this, findViewById(declaredField.getAnnotation(InjectView.class).value()));\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n }\n }\n }", "public void setAnnotations(String Annotations) {\n this.Annotations.add(Annotations);\n }", "public void setAngularDirectives(List<AngularDirectiveBase> angularDirectives)\n {\n this.angularDirectives = angularDirectives;\n }", "private Map<String, String[]> extractAnnotations(Set<Class<? extends HttpServlet>> controllers) {\n Map<String, String[]> roles = new HashMap<>();\n\n controllers.forEach(controller -> {\n addRoles(controller.getAnnotation(Secured.class)\n , controller.getAnnotation(WebServlet.class)\n , roles);\n });\n\n return roles;\n }", "protected void updateAnnotations(CompilationUnit ast, IProgressMonitor progressMonitor) {\n if (ast == null || progressMonitor.isCanceled()) {\n return;\n }\n // add annotations\n OverriddenElementFinder visitor = new OverriddenElementFinder();\n ast.accept(visitor);\n // may be already cancelled\n if (progressMonitor.isCanceled()) {\n return;\n }\n // add annotations to the model\n updateAnnotations(visitor.indicators);\n }", "void unsetAuto();", "public static void RegLockAll() {\n\t\tfor (int i = 0; i < TargetCode.methods.size(); i++) {\n\t\t\tTargetCode nowTargetCode = TargetCode.methods.get(i);\n\t\t\tRegLock(nowTargetCode);\n\t\t}\n\t}", "private void setAttributesIntoStrategy() {\n ResolverStrategy strategy = _resolverStrategy;\n strategy.setProperty(\n ResolverStrategy.PROPERTY_LOAD_PACKAGE_MAPPINGS, \n _loadPackageMappings);\n strategy.setProperty(\n ResolverStrategy.PROPERTY_USE_INTROSPECTION, _useIntrospector);\n strategy.setProperty(\n ResolverStrategy.PROPERTY_MAPPING_LOADER, _mappingLoader);\n strategy.setProperty(\n ResolverStrategy.PROPERTY_INTROSPECTOR, _introspector);\n }", "public void setListeners(Collection<RetryListener> globalListeners) {\n\t\tArrayList<RetryListener> retryListeners = new ArrayList<>(globalListeners);\n\t\tAnnotationAwareOrderComparator.sort(retryListeners);\n\t\tthis.globalListeners = retryListeners.toArray(new RetryListener[0]);\n\t}", "@Override\npublic void setAttributes() {\n\t\n}", "public ElementMap[] getAnnotations() {\r\n return union.value();\r\n }", "@Override\n public Set<? extends Element> process(SetMultimap<Class<? extends Annotation>, Element> elementsByAnnotation) {\n\n for(TypeElement typeElement: typesIn(elementsByAnnotation.values())){\n try{\n ValidationReport<TypeElement> report = validator.validateAnnotationParameter(typeElement);\n report.printMessagesTo(messager);\n if(report.isClean()){\n Optional<AnnotationMirror> mirror = MoreElements.getAnnotationMirror(typeElement, SymEncrypt.class);\n if(mirror.isPresent()){\n\n\n SymEncPara.Builder paraBuilder = SymEncPara.builder().setClassName(ClassName.get(typeElement).simpleName()).setTypeElement(typeElement)\n .setAlgorithm(EncryptConstant.AES).setBlockMode(EncryptConstant.CBC).setPaddingMode(EncryptConstant.PKCS5PADDING).setKeySize(EncryptConstant.KEYSIZE).setIvParameterMethodName(Optional.absent()).setKeyMethodName(Optional.absent());\n\n //deal with annotation parameter\n for(Map.Entry<? extends ExecutableElement, ? extends AnnotationValue> entry : mirror.get().getElementValues().entrySet()){\n Name elementName = entry.getKey().getSimpleName();\n if(elementName.contentEquals(\"algorithm\")){\n paraBuilder = paraBuilder.setAlgorithm((String)(entry.getValue().getValue()));\n }else if(elementName.contentEquals(\"blockMode\")){\n paraBuilder = paraBuilder.setBlockMode((String)(entry.getValue().getValue()));\n }else if(elementName.contentEquals(\"paddingMode\")){\n paraBuilder = paraBuilder.setPaddingMode((String)(entry.getValue().getValue()));\n }else if(elementName.contentEquals(\"keySize\")){\n paraBuilder = paraBuilder.setKeySize((Integer)(entry.getValue().getValue()));\n }else{\n //TODO deal with this error\n }\n }\n\n //need to check if there are module present, any way provides method check shall be available\n\n //deal with method parameter\n //notice we assume that methods are annotated with Provides annotation and there shall be no more than one method return that type\n TypeMirror secretKey = daggerElements.getTypeElement(\"javax.crypto.SecretKey\").asType();\n TypeMirror ivParameter = daggerElements.getTypeElement(\"javax.crypto.spec.IvParameterSpec\").asType();\n for(ExecutableElement executableElement : methodsIn(typeElement.getEnclosedElements())){\n if(MoreElements.isAnnotationPresent(executableElement, Provides.class)){\n TypeMirror returnType = executableElement.getReturnType();\n if(daggerTypes.isSameType(returnType, secretKey)){\n paraBuilder = paraBuilder.setKeyMethodName(Optional.of(executableElement.getSimpleName()));\n }else if(daggerTypes.isSameType(returnType, ivParameter)){\n paraBuilder = paraBuilder.setIvParameterMethodName(Optional.of(executableElement.getSimpleName()));\n }\n }\n }\n\n\n generator.generate(paraBuilder.build());\n }\n }\n }catch(SourceFileGenerationException e){\n e.printMessageTo(messager);\n }\n\n }\n return ImmutableSet.of();\n }", "void setupInvalidators() {\n for (int index = 0; index < length; ++index) {\n addInvalidator(vsym(index), makeItemInvalidate(index));\n }\n addInvalidator(sizeSymbol, makeInvalidateSize());\n }", "@Override\n public void addInterceptors(InterceptorRegistry registry) {\n registry.addInterceptor( whitelist() );\n }", "private void registerSignaturePrinters(AbstractPrinter printer) {\n List<Class> classes = null;\n try {\n classes = ReflectionUtils.getAnnotatedClasses(PrinterAnnotation.class);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n if(classes != null && classes.size() != 0) {\n for(Class aClass : classes) {\n try {\n Class<?> clazz = aClass;\n if (clazz.isAnnotationPresent(PrinterAnnotation.class)\n && clazz.getAnnotation(PrinterAnnotation.class).parent() == printer.getClass()) {\n AbstractPrinter signaturePrinter = (AbstractPrinter)clazz.newInstance();\n printer.addSignaturePrinter(clazz.getAnnotation(PrinterAnnotation.class).type(), signaturePrinter);\n registerSignaturePrinters(signaturePrinter);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedTwice_cf16418() {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" @java.lang.Override java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).annotated(com.squareup.javapoet.AnnotationSpec.builder(java.lang.Override.class).build()).toString();\n // StatementAdderOnAssert create null value\n java.lang.Object vc_7130 = (java.lang.Object)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_7130);\n // AssertGenerator replace invocation\n boolean o_annotatedTwice_cf16418__12 = // StatementAdderMethod cloned existing statement\n type.equals(vc_7130);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedTwice_cf16418__12);\n org.junit.Assert.assertEquals(expected, actual);\n }", "private void unsetMultipleChecks() {\r\n\r\n checkNemenyi.setEnabled(false);\r\n checkShaffer.setEnabled(false);\r\n checkBergman.setEnabled(false);\r\n\r\n }", "public abstract String getDecoratorInfo();", "public void triggerAllAggregators() {\n Map<Integer, TimedDataAggregator> aggregatorMap = new HashMap<>();\n aggregatorMap.putAll(FeatureAggregators.getInstance().getAggregatorMap());\n aggregatorMap.putAll(StateAggregators.getInstance().getAggregatorMap());\n aggregatorMap.putAll(ClassificationAggregators.getInstance().getAggregatorMap());\n aggregatorMap.putAll(TrustLevelAggregators.getInstance().getAggregatorMap());\n\n // create shadow loopers for all aggregators\n Map<Integer, ShadowLooper> shadowLooperMap = createShadowLoopers(aggregatorMap);\n\n // set duration according to record\n long duration = record.getRecorder().getStopTimestamp() - record.getRecorder().getStartTimestamp();\n\n // trigger all aggregators\n triggerAggregators(aggregatorMap, shadowLooperMap, duration);\n }", "public void setValidators(@Nullable @NonnullElements final List<CredentialValidator> validators) {\n checkSetterPreconditions();\n if (validators != null) {\n credentialValidators = List.copyOf(validators);\n } else {\n credentialValidators = Collections.emptyList();\n }\n }", "protected void initParameterGenerators() {\n Map<String, List<Annotation>> methodAnnotationMap = initMethodAnnotationByParameterName();\n\n // 2.create ParameterGenerators by method parameters, merge annotations with method annotations\n initMethodParameterGenerators(methodAnnotationMap);\n\n // 3.create ParameterGenerators remains method annotations\n initRemainMethodAnnotationsParameterGenerators(methodAnnotationMap);\n }", "private static void addAnnotations(Elements elements, AnnotatedTypeFactory atypeFactory,\n AnnotatedTypeMirror alub,\n ArrayList<AnnotatedTypeMirror> types) {\n Set<AnnotatedTypeMirror> visited = Collections.newSetFromMap(new IdentityHashMap<AnnotatedTypeMirror,Boolean>());\n addAnnotationsImpl(elements, atypeFactory, alub, visited, types);\n }", "public void getAllAttributeTypes(List<IAttributeType<?>> all);", "@org.junit.Before\n public void turnOffAllAccessDetection() {\n Settings.INSTANCE.set(Settings.SETT_MTD_ACCS, \"false\"); /* Not tested here. */\n Settings.INSTANCE.set(Settings.SETT_FLD_ACCS, \"false\"); /* Not tested here. */\n }", "void initGlobalAttributes() {\n\n\t}", "public List<J.Annotation> getAllAnnotations() {\n List<Annotation> allAnnotations = new ArrayList<>(leadingAnnotations);\n for (J.Modifier modifier : modifiers) {\n allAnnotations.addAll(modifier.getAnnotations());\n }\n if (typeExpression != null && typeExpression instanceof J.AnnotatedType) {\n allAnnotations.addAll(((J.AnnotatedType) typeExpression).getAnnotations());\n }\n return allAnnotations;\n }", "private void treatmentEnumDecorator() throws ConfigurationException {\n\t\tif (stylesMap.get(CellStyleHandler.CELL_DECORATOR_ENUM) == null) {\n\t\t\tstylesMap.put(CellStyleHandler.CELL_DECORATOR_ENUM,\n\t\t\t\t\tcellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_ENUM)\n\t\t\t\t\t\t\t? CellStyleHandler.initializeCellStyleByCellDecorator(workbook,\n\t\t\t\t\t\t\t\t\tcellDecoratorMap.get(CellStyleHandler.CELL_DECORATOR_ENUM))\n\t\t\t\t\t\t\t: CellStyleHandler.initializeGenericCellDecorator(workbook));\n\t\t\tcellDecoratorMap.remove(cellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_ENUM));\n\t\t}\n\t}", "private void installAttributeEditors(Element element, GridBagConstraints gbcLeft, GridBagConstraints gbcRight, UMLAttributeModificationListener listener, boolean readonly, boolean attributes, boolean documentationOnly, JButton okButton)\n {\n for (EClass cls : new UMLHierarchyFinder(element).findSortedHierarchy())\n {\n // see if we can find any attributes here\n List<EAttribute> attrs = new ArrayList<EAttribute>();\n if (attributes)\n for (TreeIterator iter = cls.eAllContents(); iter.hasNext();)\n {\n Object obj = iter.next();\n if (obj instanceof EAttribute)\n {\n EAttribute attr = (EAttribute) obj;\n if (!rejectAttribute(attr, documentationOnly))\n attrs.add((EAttribute) obj);\n }\n }\n \n List<EReference> refs = new ArrayList<EReference>();\n if (!attributes)\n for (TreeIterator iter = cls.eAllContents(); iter.hasNext();)\n {\n Object obj = iter.next();\n if (obj instanceof EReference)\n {\n EReference ref = (EReference) obj;\n if (!rejectReference(ref))\n refs.add(ref);\n }\n }\n \n // only add a category if it has a valid attribute\n if (!attrs.isEmpty() || !refs.isEmpty())\n {\n String name = cls.getName();\n if (name.equals(\"J_DiagramHolder\"))\n name = \"Diagram information\";\n\n if (!documentationOnly)\n {\n JLabel cat = new JLabel(name);\n cat.setFont(cat.getFont().deriveFont(Font.BOLD));\n gbcLeft.gridwidth = 2;\n insetPanel.add(cat, gbcLeft);\n gbcLeft.gridwidth = 1;\n \n // increment\n gbcLeft.gridy++;\n gbcRight.gridy++;\n }\n \n for (EAttribute attr : attrs)\n {\n UMLAttributeViewer viewer = makeAttributeViewer(element, attr, listener, documentationOnly, okButton);\n viewers.add(viewer);\n viewer.installAttributeEditor(\"from \" + cls.getName(), insetPanel, gbcLeft, gbcRight, !documentationOnly, okButton);\n if (readonly)\n viewer.getEditor().setEnabled(false);\n }\n for (EReference ref : refs)\n {\n UMLAttributeViewer viewer = makeAttributeViewer(element, ref, listener, documentationOnly, okButton);\n viewers.add(viewer);\n viewer.installAttributeEditor(\"from \" + cls.getName(), insetPanel, gbcLeft, gbcRight, !documentationOnly, okButton);\n if (readonly)\n viewer.getEditor().setEnabled(false);\n }\n }\n }\n }", "@Override\n\tpublic void setListeners() {\n\t\tet1.setOnClickListener(this);\n\t\tet2.setOnClickListener(this);\n\t\tet3.setOnClickListener(this);\n\t\tet4.setOnClickListener(this);\n\t\tet5.setOnClickListener(this);\n\t\tet6.setOnClickListener(this);\n\t\tet7.setOnClickListener(this);\n\t\tet8.setOnClickListener(this);\n\t\tet9.setOnClickListener(this);\n\t\tet10.setOnClickListener(this);\n\t\tet11.setOnClickListener(this);\n\t\tet12.setOnClickListener(this);\n\t\tet13.setOnClickListener(this);\n\t\tet14.setOnClickListener(this);\n\t}", "private ImmutableSet<Property> annotationBuilderPropertySet(TypeElement annotationType) {\n Nullables nullables = Nullables.fromMethods(processingEnv, ImmutableList.of());\n // Translate the annotation elements into fake Property instances. We're really only interested\n // in the name and type, so we can use them to declare a parameter of the generated\n // @AutoAnnotation method. We'll generate a parameter for every element, even elements that\n // don't have setters in the builder. The generated builder implementation will pass the default\n // value from the annotation to those parameters.\n return methodsIn(annotationType.getEnclosedElements()).stream()\n .filter(m -> m.getParameters().isEmpty() && !m.getModifiers().contains(Modifier.STATIC))\n .map(method -> annotationBuilderProperty(method, nullables))\n .collect(toImmutableSet());\n }", "@Override\r\n\tpublic Annotation annotate() {\n\t\treturn null;\r\n\t}", "@PostConstruct\n\tprivate void registerAllAnalyser() {\n\n\t\t// Get configuration for analysers\n\t\tMap<String, Map<String, String>> analyserProperties = analysisConfiguration.getAnalyserConfig();\n\n\t\t//get all analyser class\n\t\tReflections reflections = new Reflections(\"eu.ill.puma.analysis.analyser\");\n\n\t\t//iterate\n\t\tfor (Class analyserClass : reflections.getTypesAnnotatedWith(Analyser.class)) {\n\n\t\t\t//get annotation\n\t\t\tAnalyser analyser = (Analyser) analyserClass.getAnnotation(Analyser.class);\n\n\t\t\t// create new pool for analyser\n\t\t\tif (analyser != null) {\n\t\t\t\tthis.analyserPools.put(analyser.name(), new AnalyserPool(analyser, analyserClass, analyserProperties.get(analyser.name())));\n\n\t\t\t\tif (analyser.enabled()) {\n\t\t\t\t\tthis.enabledAnalysers.add(analyser.name());\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tlog.error(\"Failed to get instance of analyser with class \" + analyserClass);\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.57288724", "0.53687483", "0.5077088", "0.50603944", "0.48692945", "0.47329345", "0.46995017", "0.46633714", "0.46241546", "0.45988545", "0.4578289", "0.45278093", "0.45251366", "0.45217898", "0.45076573", "0.44830948", "0.44580218", "0.44431424", "0.43957767", "0.439024", "0.43461898", "0.4344641", "0.43399796", "0.43039364", "0.42997488", "0.42657652", "0.42522168", "0.42490426", "0.42407098", "0.42200825", "0.42118835", "0.4199482", "0.4183631", "0.41749984", "0.41749343", "0.41655374", "0.41623464", "0.41604516", "0.4158415", "0.41450882", "0.41162592", "0.41131067", "0.41121453", "0.4111774", "0.40998846", "0.40872696", "0.40803084", "0.40792277", "0.4075233", "0.40639147", "0.4056258", "0.4050224", "0.40372926", "0.4035721", "0.40335923", "0.4032919", "0.40275532", "0.40261877", "0.40126193", "0.40062085", "0.40046826", "0.40008408", "0.3970997", "0.39701235", "0.39678887", "0.3953395", "0.39510053", "0.3945615", "0.39392227", "0.39302805", "0.39232814", "0.3917782", "0.3916583", "0.39140707", "0.39022705", "0.38982162", "0.38920864", "0.38881442", "0.38778892", "0.38760766", "0.38702014", "0.38671753", "0.3865047", "0.38594618", "0.3859392", "0.38583627", "0.38547912", "0.3853273", "0.38501537", "0.38425657", "0.3837862", "0.38361916", "0.38355798", "0.383371", "0.38323373", "0.38316873", "0.38295564", "0.38272303", "0.3826659", "0.3826208" ]
0.54328525
1
/ access modifiers changed from: 0000
public void GetListaTjWomenResponseBean() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Member mo23408O();", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "@Override\n protected void prot() {\n }", "public void m23075a() {\n }", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "public void mo115190b() {\n }", "public abstract void mo70713b();", "public abstract String mo118046b();", "public /* bridge */ /* synthetic */ void mo55097d() {\n super.mo55097d();\n }", "private void m50366E() {\n }", "public final void mo91715d() {\n }", "public abstract void mo53562a(C18796a c18796a);", "private stendhal() {\n\t}", "public abstract Object mo26777y();", "public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }", "public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }", "public void mo38117a() {\n }", "public abstract C14408a mo11607a();", "public void mo1403c() {\n }", "public abstract void m15813a();", "public abstract Object mo1185b();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public abstract void mo27385c();", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public abstract void mo27386d();", "public abstract Object mo1771a();", "public void mo1531a() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:04.534 -0500\", hash_original_method = \"E4DEB0C107DDB25A537EF0E89F1C04F8\", hash_generated_method = \"2E76AFD8C90588F5139C0C2D28CAEA05\")\n \nprivate static int translateCodingErrorAction(CodingErrorAction action) {\n if (action == CodingErrorAction.REPORT) {\n return 0;\n } else if (action == CodingErrorAction.IGNORE) {\n return 1;\n } else if (action == CodingErrorAction.REPLACE) {\n return 2;\n } else {\n throw new AssertionError(); // Someone changed the enum.\n }\n }", "public void mo21779D() {\n }", "@Override\n public int retroceder() {\n return 0;\n }", "private Rekenhulp()\n\t{\n\t}", "void m1864a() {\r\n }", "public void mo12628c() {\n }", "public abstract void mo42329d();", "public abstract void mo56925d();", "public void O000000o() {\r\n super.O000000o();\r\n this.O0000o0 = false;\r\n }", "public void mo12930a() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public abstract void mo6549b();", "public abstract void mo27464a();", "public int method_113() {\r\n return 0;\r\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 }", "public void mo55254a() {\n }", "public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }", "public abstract C7036b mo24411d();", "public void mo97908d() {\n }", "public void method_4270() {}", "public void mo21825b() {\n }", "public abstract void mo30696a();", "public abstract int mo41077c();", "private PropertyAccess() {\n\t\tsuper();\n\t}", "public final /* bridge */ /* synthetic */ void mo43571c() {\n super.mo43571c();\n }", "public abstract String mo41079d();", "public int method_209() {\r\n return 0;\r\n }", "public void mo55254a() {\n }", "public abstract void mo35054b();", "protected void mo6255a() {\n }", "public void mo115188a() {\n }", "public abstract String mo11611b();", "public abstract void mo20899UO();", "public abstract void mo70702a(C30989b c30989b);", "public abstract long mo9229aD();", "public void mo23813b() {\n }", "protected boolean func_70814_o() { return true; }", "public interface C0764b {\n}", "public interface C0777a {\n }", "public void mo9848a() {\n }", "@Override\n public void perish() {\n \n }", "public final void mo92083O() {\n }", "public abstract long mo24409b();", "public abstract int mo13680b();", "public abstract C mo29734a();", "public void mo21879u() {\n }", "public interface C0939c {\n }", "public void mo21782G() {\n }", "public void mo97906c() {\n }", "public void mo44053a() {\n }", "public void mo4359a() {\n }", "public interface C0136c {\n }", "public void mo21787L() {\n }", "public void mo21800a() {\n }", "public void mo21781F() {\n }", "public abstract void mo42331g();", "public abstract void mo133131c() throws InvalidDataException;", "protected boolean func_70041_e_() { return false; }", "public interface C0938b {\n }", "private AccessType(String rtCode) {\n\t this.rtCode = rtCode;\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public final void mo92082N() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public abstract C13619e mo34787a();", "public abstract void mo102899a();", "public abstract String mo13682d();", "public void mo21791P() {\n }", "public abstract int mo9747l();" ]
[ "0.65168345", "0.6417889", "0.6403412", "0.6346675", "0.6299906", "0.62951195", "0.6244629", "0.6228537", "0.620437", "0.6192846", "0.6189669", "0.61808765", "0.6173851", "0.6169742", "0.616948", "0.6162881", "0.6150504", "0.6149917", "0.61402553", "0.6134384", "0.6133215", "0.6132091", "0.61185074", "0.61123616", "0.61056376", "0.6103969", "0.61017185", "0.6098234", "0.6079347", "0.6079246", "0.60791034", "0.6077395", "0.60729754", "0.6041395", "0.60256493", "0.60169536", "0.6015826", "0.60151106", "0.6013114", "0.60013115", "0.5998371", "0.59860754", "0.59848595", "0.59848595", "0.59848595", "0.59848595", "0.59848595", "0.59848595", "0.59848595", "0.598462", "0.5978975", "0.59778947", "0.59774643", "0.59727186", "0.5969569", "0.5967532", "0.5963771", "0.5953787", "0.5952977", "0.59515095", "0.5951448", "0.59418756", "0.59380716", "0.5937042", "0.5933502", "0.59258235", "0.5920355", "0.5919339", "0.59180367", "0.5910083", "0.5909217", "0.5907112", "0.5900161", "0.5897533", "0.58957314", "0.58927464", "0.5882746", "0.58764744", "0.58723474", "0.58707637", "0.5866063", "0.584263", "0.58394545", "0.5838862", "0.583529", "0.58348346", "0.58324844", "0.58285266", "0.58264506", "0.58255637", "0.58253694", "0.58250713", "0.582227", "0.5818361", "0.581547", "0.5813973", "0.5811735", "0.5806413", "0.5805687", "0.58014107", "0.57993686" ]
0.0
-1
each time agent check fails count increses and when count is 4 agent is disconnected
public String getAgentConfig() { return agentConfig; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "private void freeAgent() {\n }", "private void checkRetries(final int counter) throws InterruptedException {\n\t\tif (counter > retries) {\n\t\t\tthrow new IllegalStateException(\"Remote server did not started correctly\");\n\t\t}\n\t\tThread.sleep(2000);\n\t}", "private void countConnectFinished() {\n \t\tcurrentlyConnectingSockets.decrementAndGet();\n \t\tsynchronized (this) {\n \t\t\tthis.notifyAll();\n \t\t}\n \t}", "private void removeDuplicateUserAgents() throws Exception {\n Db db = getDb();\n try {\n db.enter();\n Map<Integer, Integer> dups = new HashMap<Integer, Integer>();\n _logger.info(\"checking duplicate user agents\");\n String sqlSelectDupUA = \"select a1.t_http_agent_id, a2.t_http_agent_id FROM http.t_http_agent a1, http.t_http_agent a2 WHERE a1.t_http_agent_id <> a2.t_http_agent_id AND a1.agent_name = a2.agent_name AND a1.version = a2.version AND a1.authorized = 'ALLOWED' ORDER BY a1.t_http_agent_id\";\n PreparedStatement pstSelDups = db.prepareStatement(sqlSelectDupUA);\n ResultSet rsDups = db.executeQuery(pstSelDups);\n if (rsDups.next()) {\n do {\n dups.put(Integer.valueOf(rsDups.getInt(1)), Integer.valueOf(rsDups.getInt(2)));\n } while (rsDups.next());\n } else {\n _logger.debug(\"removeDuplicateUserAgents 1 - no rows found.\");\n }\n _logger.debug(dups.size() + \" user agents duplicated\");\n if (dups.size() == 0) return;\n String sqlSelUAD = \"SELECT count, calc_day FROM http.t_http_agent_daily WHERE t_http_agent_id = ?\";\n String sqlUpdUAD = \"UPDATE http.t_http_agent_daily SET count = count + ? WHERE calc_day = ? AND t_http_agent_id = ?\";\n String sqlDelUAD = \"DELETE FROM http.t_http_agent_daily WHERE t_http_agent_id = ?\";\n PreparedStatement pstSelUAD = db.prepareStatement(sqlSelUAD);\n PreparedStatement pstUpdUAD = db.prepareStatement(sqlUpdUAD);\n PreparedStatement pstDelUAD = db.prepareStatement(sqlDelUAD);\n for (Iterator<Map.Entry<Integer, Integer>> it = dups.entrySet().iterator(); it.hasNext(); ) {\n try {\n db.enter();\n Map.Entry<Integer, Integer> kv = it.next();\n Integer key = kv.getKey();\n Integer dupToRemove = kv.getValue();\n pstSelUAD.setInt(1, dupToRemove.intValue());\n ResultSet rsSelUAD = db.executeQuery(pstSelUAD);\n if (rsSelUAD.next()) {\n do {\n pstUpdUAD.setInt(1, rsSelUAD.getInt(1));\n pstUpdUAD.setDate(2, rsSelUAD.getDate(2));\n pstUpdUAD.setInt(3, key.intValue());\n db.executeUpdate(pstUpdUAD);\n } while (rsSelUAD.next());\n } else {\n _logger.debug(\"removeDuplicateUserAgents 2 - no rows found.\");\n }\n pstDelUAD.setInt(1, dupToRemove.intValue());\n db.executeUpdate(pstDelUAD);\n } finally {\n db.exit();\n }\n }\n _logger.debug(\"Finished removing duplicate rows in http_agent_daily\");\n String sqlSelectUADates = \"SELECT first_occurence, last_occurence FROM http.t_http_agent WHERE t_http_agent_id = ?\";\n String sqlUpdateUA = \"UPDATE http.t_http_agent SET first_occurence = timestamp_smaller(first_occurence, ?), last_occurence = timestamp_larger(last_occurence, ?) WHERE t_http_agent_id = ?\";\n String sqlDeleteUA = \"DELETE FROM http.t_http_agent WHERE t_http_agent_id = ?\";\n PreparedStatement pstSelDates = db.prepareStatement(sqlSelectUADates);\n PreparedStatement pstUpdUA = db.prepareStatement(sqlUpdateUA);\n PreparedStatement pstDelUA = db.prepareStatement(sqlDeleteUA);\n for (Iterator<Map.Entry<Integer, Integer>> it = dups.entrySet().iterator(); it.hasNext(); ) {\n try {\n db.enter();\n Map.Entry<Integer, Integer> kv = it.next();\n Integer key = kv.getKey();\n Integer dupToRemove = kv.getValue();\n pstSelDates.setInt(1, dupToRemove.intValue());\n ResultSet rsSelUA = db.executeQuery(pstSelDates);\n if (rsSelUA.next()) {\n pstUpdUA.setTimestamp(1, rsSelUA.getTimestamp(1));\n pstUpdUA.setTimestamp(2, rsSelUA.getTimestamp(2));\n pstUpdUA.setInt(3, key.intValue());\n db.executeUpdate(pstUpdUA);\n }\n pstDelUA.setInt(1, dupToRemove.intValue());\n db.executeUpdate(pstDelUA);\n } finally {\n db.exit();\n }\n }\n _logger.debug(\"Finished removing duplicate rows in http_agent\");\n } finally {\n db.exit();\n }\n }", "private void verifyAlive(int coordID, int procID, int electedID, String token) {\r\n\tSystem.out.println(\"so im here now\" + coordID);\r\n\t\tlong time = 3000;\r\n\t\ttry {\r\n\t\t\tThread.sleep(time);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tif(procID>6) {\r\n \tprocID = procID - 6;\r\n }\r\n try {\r\n socket = new Socket(\"127.0.0.1\", 8080+procID);\r\n out = new PrintWriter(socket.getOutputStream());\r\n out.println(token);\r\n out.flush();\r\n out.close();\r\n socket.close();\r\n //ring.currentAlive = electedID;\r\n } catch(Exception ex) {\r\n \tverifyAlive(coordID, procID+1, electedID, token); // pass to next next if next was unavailable\r\n }\r\n\t//}\r\n}", "private void incWaiters()\r\n/* 443: */ {\r\n/* 444:530 */ if (this.waiters == 32767) {\r\n/* 445:531 */ throw new IllegalStateException(\"too many waiters: \" + this);\r\n/* 446: */ }\r\n/* 447:533 */ this.waiters = ((short)(this.waiters + 1));\r\n/* 448: */ }", "private void decrConnectionCount() {\n connectionCount.dec();\n }", "public void performCheckAfterPlayerMove() {\n\t\tagentsMoved += 1;\n\t\t\n\t\tif(agentsMoved == agents) {\n\t\t\troundsPlayed += 1;\n\t\t\tmoveRobots();\n\t\t\tagentsMoved = 0;\n\t\t\t\n\t\t\t//restart game at new level after the robots has moved\n\t\t\tif(roundsPlayed > server.getRoundsPerLevel()) {\n\t\t\t\tHandleCommunication.broadcastToClient(null, server.getConnectedClientList(), SendSetting.NextLevel, server, null);\n\t\t\t\troundsPlayed = 0;\n\t\t\t}\n\t\t}\n\t}", "void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }", "public void addConsecutiveLoginAttempts(){\n\t\tconsecutiveLoginAttempts++;\t\n\t}", "private void machineFailover(GridServiceAgent agent) throws Exception {\n LogUtils.log(\"Stopping agent \" + agent.getUid());\n stopByonMachine(getElasticMachineProvisioningCloudifyAdapter(), agent, OPERATION_TIMEOUT, TimeUnit.MILLISECONDS);\n repetitiveAssertNumberOfGSAsRemoved(1, OPERATION_TIMEOUT);\n \n // check CLOUDIFY-2180\n repetitiveAssertFailoverAware();\n GsmTestUtils.waitForScaleToCompleteIgnoreCpuSla(pu, 1, OPERATION_TIMEOUT);\n \n // check ESM not tried to start too many machines, which would eventually result in machine start failure\n repetitiveAssertNoStartMachineFailures();\n }", "protected short maxRetries() { return 15; }", "public int onLoop() throws InterruptedException{\n \tif(inventory.isFull()) {\r\n\t\t\tinventory.dropAll(\"Logs\");\r\n\t\t\tsleep(random(2500,4000));\r\n\t\t\tshortTermAntiban();\r\n\t\t}else {\r\n\t\t\tcutTree();\r\n\t\t\tsleep(random(500,1000));\r\n\t\t}\r\n \t\r\n\r\n \t\r\n \t\r\n return 500;\r\n }", "public static void main(String... args) {\n List<Integer> data = new ArrayList<Integer>();\n data.add(1);\n data.add(1);\n data.add(1);\n data.add(1);\n data.add(2);\n data.add(2);\n data.add(3);\n data.add(4);\n data.add(4);\n data.add(4);\n data.add(4);\n data.add(5);\n data.add(5);\n data.add(5);\n data.add(5);\n data.add(6);\n data.add(6);\n data.add(7);\n data.add(7);\n data.add(7);\n data.add(8);\n data.add(9);\n data.add(10);\n data.add(10);\n data.add(10);\n data.add(10);\n data.add(10);\n data.add(11);\n data.add(12);\n data.add(12);\n\n int count = droppedRequests(data);\n System.out.println(count);\n }", "private static void setFailed() {\n HealthCheck.failed = true;\n }", "void doCheckHealthy();", "public void incrementExcepionalSessions() {\n exceptionalSessions++;\n }", "private void incrementFailures() {\n totalFailures++;\n totalTunitFailures++;\n }", "private void maintain(){\n ArrayList<Integer> shutDown = new ArrayList<Integer>();\n for (String addr : slaveMap.keySet()){\n if (!responderList.containsKey(slaveMap.get(addr))){\n shutDown.add(slaveMap.get(addr));\n }\n }\n //print\n for (Integer id : shutDown){\n synchronized (slaveList) {\n slaveList.remove(id);\n }\n }\n //TODO: one a slave lost control, what should ArcherDFS do?\n }", "public void incrementNumDisconnects() {\n this.numDisconnects.incrementAndGet();\n }", "public void resetMissedCallsCount();", "public void fix_gamesFailed() {\n this._gamesFailed -= 1;\n }", "private void checkLastLifeSign() {\n // > 0 means that client has already connected and meanwhile sent\n // one or more messages and the lifesign system is activated\n if (nextLifeSignAwaited > 0 && nextLifeSignAwaited < System.currentTimeMillis()) {\n // lifesign not in time\n System.out.println(\"Kein lifesign erhalten\");\n lifeSignSucceeded = true;\n stopped = true;\n try {\n socketLayer.close();\n } catch (Exception ex) {\n // nothing to do\n }\n }\n }", "private void error() {\n this.error = true;\n this.clients[0].error();\n this.clients[1].error();\n }", "private boolean findNextAvailableAgent(ArrayList<IAgent> arrayList) {\n\n for (IAgent agent : arrayList) {\n try {\n if (agent.checkIfOnSpawn()) {\n return false;\n }\n } catch (RemoteException e) {\n return false;\n }\n }\n\n for (IAgent agent : arrayList) {\n try {\n if (arrayList.size() < Integer.parseInt(String.valueOf(dialog.getCountAgents().getSelectedItem()))) {\n if (iPlayerList.get(agent.getName()).getPoints() >= agentsValue) {\n for (int[] spawn : playingField.getSpawnFields()) {\n if (playingField.requestField(spawn[0], spawn[1])) {\n IAgent newAgent = new AgentImpl(agent.getName(), agent.getStrategy(), playingField);\n newAgent.setColor(agent.getColor());\n newAgent.setPosx(spawn[0]);\n newAgent.setPosy(spawn[1]);\n newAgent.setCapacity(Integer.parseInt(dialog.getCapacityField().getText()));\n newAgent.getRememberField().setiPlayerList(playingField.getiPlayerList());\n playingField.setOccupancy(spawn[0], spawn[1], newAgent);\n ArrayList<IAgent> templist = new ArrayList<>();\n for (IAgent list : playersAgentsMap.get(agent.getName())) {\n templist.add(list);\n }\n templist.add(newAgent);\n playersAgentsMap.put(agent.getName(), templist);\n iPlayerList.get(agent.getName()).setPoints(iPlayerList.get(agent.getName()).getPoints() - agentsValue);\n return true;\n }\n\n }\n\n }\n }\n } catch (RemoteException e) {\n System.out.println(e.getMessage());\n return false;\n }\n }\n return false;\n\n }", "void check_and_send(){\r\n\t\twhile(not_ack_yet <= WINDOW_SIZE){\r\n\t\t\tif(covered_datagrams >= total_datagrams)\r\n\t\t\t\treturn;\r\n\t\t\t//send one data more\r\n\t\t\tcovered_datagrams++;\r\n\t\t\tbyte[] data_to_send = Helper.get_bytes(data_send,(covered_datagrams-1)*BLOCK_SIZE,BLOCK_SIZE);\r\n\t\t\tDataDatagram send = new DataDatagram((short)the_connection.session_num,\r\n\t\t\t\t\t(short)(covered_datagrams),data_to_send,the_connection);\r\n\t\t\tsend.send_datagram();\r\n\t\t\tput_and_set_timer(send);\r\n\t\t}\r\n\t}", "private void init() {\n healthCheckTimer.newTimeout(\n new TimerTask() {\n @Override\n public void run(Timeout timeout) throws Exception {\n if (!isStop) {\n List<BrpcChannel> newHealthyInstances = new ArrayList<BrpcChannel>();\n Iterator<BrpcChannel> iter = unhealthyInstances.iterator();\n while (iter.hasNext()) {\n BrpcChannel instance = iter.next();\n boolean isHealthy = isInstanceHealthy(instance.getIp(), instance.getPort());\n if (isHealthy) {\n newHealthyInstances.add(instance);\n }\n }\n\n List<BrpcChannel> newUnhealthyInstances = new ArrayList<BrpcChannel>();\n iter = healthyInstances.iterator();\n while (iter.hasNext()) {\n BrpcChannel instance = iter.next();\n boolean isHealthy = isInstanceHealthy(instance.getIp(), instance.getPort());\n if (!isHealthy) {\n newUnhealthyInstances.add(instance);\n }\n }\n\n healthyInstances.addAll(newHealthyInstances);\n unhealthyInstances.removeAll(newHealthyInstances);\n\n healthyInstances.removeAll(newUnhealthyInstances);\n unhealthyInstances.addAll(newUnhealthyInstances);\n notifyInvalidInstance(newUnhealthyInstances);\n\n healthCheckTimer.newTimeout(this,\n rpcClient.getRpcClientOptions().getHealthyCheckIntervalMillis(),\n TimeUnit.MILLISECONDS);\n }\n\n }\n },\n rpcClient.getRpcClientOptions().getHealthyCheckIntervalMillis(),\n TimeUnit.MILLISECONDS);\n }", "void onRunawayReactionsDetected()\n {\n final List<String> observerNames =\n Arez.shouldCheckInvariants() && BrainCheckConfig.verboseErrorMessages() ?\n _pendingObservers.stream().map( Node::getName ).collect( Collectors.toList() ) :\n null;\n\n if ( ArezConfig.purgeReactionsWhenRunawayDetected() )\n {\n _pendingObservers.clear();\n }\n\n if ( Arez.shouldCheckInvariants() )\n {\n fail( () -> \"Arez-0101: Runaway reaction(s) detected. Observers still running after \" + _maxReactionRounds +\n \" rounds. Current observers include: \" + observerNames );\n }\n }", "public int manyConnections() {\n\t\tint ammound = 0;\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tif(this.get(i).clientAlive) {\n\t\t\t\tammound++;\n\t\t\t}\n\t\t\tSystem.out.println(\"Ist Client Nr. \" + i + \" frei? \" + !this.get(i).isAlive());\n\t\t}\n\t\treturn ammound;\n\t\t\n\t}", "public void initAnalizeFaileds3ConsecutiveTimes() throws ParseException, Exception{\n \n for(int i=0;i<this.serversList.size();++i){\n for(Client client:this.serversList.get(i).getClients()){\n client.analyzeInfoBackup();\n }\n }\n \n for(int i=0;i<this.serversList.size();++i){\n Server server = this.serversList.get(i);\n Server serverContainClientsFaileds;\n serverContainClientsFaileds = new Server(server.getNameServer(),this.getClientsFaileds3ConsecutiveTimes(server));\n this.serverListfailedConsecutives.add(serverContainClientsFaileds);\n }\n \n this.isAnalyzeDone = true;\n }", "@Override\n public void onAgentDisconnect(long agentId, Status state) {\n }", "public void incrementRetryCount() {\n this.retryCount++;\n }", "private void incrConnectionCount() {\n connectionCount.inc();\n }", "public synchronized Vector<String> proceedNextCycle(){\n\t\tVector<String> agentids=new Vector<String>(waitingAgents);\n\t\twaitingAgents.clear();\n\t\tnotifyAll();\n\t\treturn agentids;\n\t}", "@Override\n public void onFailure(int i) {\n discoverPeersTillSuccess();\n }", "private int checkRegisteredSensors() {\n\n int counter = 0;\n\n if (listSensorDB.size() < 1) {\n Log.d(getClass().getName(), \"Lista de sensores cadastrados é ZERO! Retornando de checkRegisteredSensors()\");\n return 0;\n }\n\n if (HSSensor.getInstance().getListSensorOn().size() < 1)\n HSSensor.getInstance().setListSensorOn(listSensorDB);\n\n\n for (Sensor sensor : HSSensor.getInstance().getListSensorOn()) {\n\n Socket sock = new Socket();\n if (sensor.getIp().isEmpty()) {\n Log.d(getClass().getName(), \"O IP do sensor [\" + sensor.getNome() + \"] está vazio. Acabou de ser configurado? \" +\n \"Nada a fazer em checkRegisteredSensors()\");\n continue;\n }\n\n SocketAddress addr = new InetSocketAddress(sensor.getIp(), 8000);\n\n try {\n\n sock.connect(addr, 5000);\n Log.d(getClass().getName(), \"Conectamos em \" + sensor.getIp());\n\n\n PrintWriter pout = new PrintWriter(sock.getOutputStream());\n\n pout.print(\"getinfo::::::::\\n\");\n pout.flush();\n\n Log.d(getClass().getName(), \"Enviado getinfo:::::::: para \" + sensor.getIp() + \" - Aguardando resposta...\");\n\n byte[] b = new byte[256];\n\n sock.setSoTimeout(5000);\n int bytes = sock.getInputStream().read(b);\n sock.close();\n\n String result = new String(b, 0, bytes - 1);\n Log.d(getClass().getName(), \"Recebida resposta de \" + sensor.getIp() + \" para nosso getinfo::::::::\");\n\n Sensor tmpSensor = buildSensorFromGetInfo(result);\n if (tmpSensor == null) {\n Log.d(getClass().getName(), \"Resposta de \" + sensor.getIp() + \" nao é um sensor valido!\");\n Log.d(getClass().getName(), \"Resposta: \" + result);\n continue;\n }\n\n if (sensor.equals(tmpSensor)) {\n\n sensor.setActive(true);\n counter++;\n\n Log.d(getClass().getName(), \"Resposta de \" + sensor.getIp() + \" é um sensor valido!\");\n Log.d(getClass().getName(), \"Sensor \" + sensor.getNome() + \" : \" + sensor.getIp() + \" PAREADO!\");\n }\n\n\n } catch (Exception e) {\n\n if (e.getMessage() != null) {\n Log.d(getClass().getName(), e.getMessage());\n }\n sensor.setActive(false);\n }\n\n }\n\n return counter;\n }", "@Override\npublic boolean retry(ITestResult result) {\n\tif(minretryCount<=maxretryCount){\n\t\t\n\t\tSystem.out.println(\"Following test is failing====\"+result.getName());\n\t\t\n\t\tSystem.out.println(\"Retrying the test Count is=== \"+ (minretryCount+1));\n\t\t\n\t\t//increment counter each time by 1  \n\t\tminretryCount++;\n\n\t\treturn true;\n\t}\n\treturn false;\n}", "public int getRecoveryRetries();", "private void combinedEdgeDetection() {\n if(isDetectingEdge())\n {\n if(currentCount == 0)\n {\n debugTimer.start();\n }\n currentCount++;\n// SmartDashboard.putInt(\"current count: \", currentCount);\n }\n else{//otherwise, leave the count at 0\n currentCount = 0;\n }\n //once the count reaches the minimum required for detection\n if(currentCount >= minDetectionCount)\n {\n //invert the current state of detection\n currentlyDetecting = !currentlyDetecting;\n// SmartDashboard.putDouble(\"timer count: \", debugTimer.get());\n debugTimer.stop();\n debugTimer.reset();\n }\n\t}", "@Test\n public void participantsWithMismatchTest() throws Exception {\n List<ClusterParticipant> participants = new ArrayList<>();\n // create a latch with init value = 2 and add it to second participant. This latch will count down under certain condition\n CountDownLatch invocationLatch = new CountDownLatch(3);\n MockClusterParticipant participant1 =\n new MockClusterParticipant(new ArrayList<>(), new ArrayList<>(), new ArrayList<>(), null, null, null);\n MockClusterParticipant participant2 =\n new MockClusterParticipant(new ArrayList<>(), new ArrayList<>(), new ArrayList<>(), null, null,\n invocationLatch);\n participants.add(participant1);\n participants.add(participant2);\n clusterAgentsFactory.setClusterParticipants(participants);\n AmbryServer server =\n new AmbryServer(new VerifiableProperties(props), clusterAgentsFactory, notificationSystem, time);\n server.startup();\n // initially, two participants have consistent sealed/stopped replicas. Verify that:\n // 1. checker is instantiated 2. no mismatch event is emitted.\n assertNotNull(\"The mismatch metric should be created\",\n server.getServerMetrics().sealedReplicasMismatchCount);\n assertNotNull(\"The mismatch metric should be created\",\n server.getServerMetrics().partiallySealedReplicasMismatchCount);\n assertEquals(\"Sealed replicas mismatch count should be 0\", 0,\n server.getServerMetrics().sealedReplicasMismatchCount.getCount());\n assertEquals(\"Sealed replicas mismatch count should be 0\", 0,\n server.getServerMetrics().partiallySealedReplicasMismatchCount.getCount());\n assertEquals(\"Stopped replicas mismatch count should be 0\", 0,\n server.getServerMetrics().stoppedReplicasMismatchCount.getCount());\n // induce mismatch for sealed and stopped replica list\n // add 1 sealed replica to participant1\n ReplicaId mockReplica1 = Mockito.mock(ReplicaId.class);\n when(mockReplica1.getReplicaPath()).thenReturn(\"12\");\n participant1.setReplicaSealedState(mockReplica1, ReplicaSealStatus.SEALED);\n // add 1 stopped replica to participant2\n ReplicaId mockReplica2 = Mockito.mock(ReplicaId.class);\n when(mockReplica2.getReplicaPath()).thenReturn(\"4\");\n participant2.setReplicaStoppedState(Collections.singletonList(mockReplica2), true);\n // add 1 partially sealed replica to participant2\n ReplicaId mockReplica3 = Mockito.mock(ReplicaId.class);\n when(mockReplica2.getReplicaPath()).thenReturn(\"5\");\n participant2.setReplicaSealedState(mockReplica3, ReplicaSealStatus.PARTIALLY_SEALED);\n assertTrue(\"The latch didn't count to zero within 5 secs\", invocationLatch.await(5, TimeUnit.SECONDS));\n assertTrue(\"Sealed replicas mismatch count should be non-zero\",\n server.getServerMetrics().sealedReplicasMismatchCount.getCount() > 0);\n assertTrue(\"Partially sealed replicas mismatch count should be non-zero\",\n server.getServerMetrics().partiallySealedReplicasMismatchCount.getCount() > 0);\n assertTrue(\"Stopped replicas mismatch count should be non-zero\",\n server.getServerMetrics().stoppedReplicasMismatchCount.getCount() > 0);\n server.shutdown();\n }", "public int retry() {\r\n\t\treturn ++retryCount;\r\n\t}", "@Override\n protected void callCorps() throws Exception {\n\n ThreadMXBean threadMXBean = ManagementFactory.getThreadMXBean();\n long[] idThread = threadMXBean.findDeadlockedThreads();\n\n\n if (idThread != null) {\n for (int i = 0; i < idThread.length; i++) {\n long l = idThread[i];\n logger.error(\"Il semble qu'il y ait un deadLock Thread ID : \" + l);\n\n }\n }\n }", "@Override\n public void processClusterInvalidationsNext() {\n }", "private void startEliminateExpiredClient() {\n this.expiredExecutorService.scheduleAtFixedRate(() -> {\n long currentTime = System.currentTimeMillis();\n List<ClientInformation> clients = ClientManager.getAllClient();\n if (clients != null && clients.size() > 0) {\n clients.stream().forEach(client -> {\n String clientId = ClientManager.getClientId(client.getAddress(), client.getPort());\n long intervalSeconds = (currentTime - client.getLastReportTime()) / 1000;\n if (intervalSeconds > configuration.getExpiredExcludeThresholdSeconds()\n && ClientStatus.ON_LINE.equals(client.getStatus())) {\n client.setStatus(ClientStatus.OFF_LINE);\n ClientManager.updateClientInformation(client);\n log.info(\"MessagePipe Client:{},status updated to offline.\", clientId);\n } else if (intervalSeconds <= configuration.getExpiredExcludeThresholdSeconds()\n && ClientStatus.OFF_LINE.equals(client.getStatus())) {\n client.setStatus(ClientStatus.ON_LINE);\n ClientManager.updateClientInformation(client);\n log.info(\"MessagePipe Client:{},status updated to online.\", clientId);\n }\n });\n }\n }, 5, configuration.getCheckClientExpiredIntervalSeconds(), TimeUnit.SECONDS);\n }", "public void zeroConsecutiveLoginAttempts(){\n\t\tconsecutiveLoginAttempts = 0;\t\n\t}", "@Test(priority = 25)\n\tpublic void verifytheCountisDisplayingandUpdatingproperlyBypublishingVisitingandGeneratingLeads() throws Exception {\n\t\tOverviewTradusPROPage overviewPage = new OverviewTradusPROPage(driver);\n\t\twaitTill(3000);\n\t\t/*LoginTradusPROPage loginPage = new LoginTradusPROPage(driver);\n\t\tloginPage.setAccountEmailAndPassword(userName, pwd);\n\t\tclick(loginPage.LoginButton);*/\n\t\texplicitWaitFortheElementTobeVisible(driver, overviewPage.sellerLogoonHeader);\n\t\twaitTill(3000);\n\t\tint visitCountOnWebSite = Integer.parseInt(getText(overviewPage.visitsCountunderPopularAds));\n\t\tint leadsCountOnWebSite = Integer.parseInt(getText(overviewPage.leadsCountunderPopularAds));\n\t\twaitTill(3000);\n\t\tFile popularAdsData = new File(System.getProperty(\"user.dir\") + \"\\\\PopularAdsStats.txt\");\n\t\tif (!popularAdsData.exists()) {\n\t\t\tpopularAdsData.createNewFile();\n\t\t}\n\t\tBufferedReader br = new BufferedReader(new FileReader(popularAdsData));\n\t\tString st;int visit=0;int leads=0;\n\t\twhile ((st = br.readLine()) != null)\n\t\t{\n\t\tString[] words=st.split(\"@\");\n\t\tfor(int i=0;i<=words.length;i++) {\n\t\t\tswitch(i)\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\t visit=Integer.parseInt(words[i].replace(\"Number of visits =\", \"\").trim());\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t leads=Integer.parseInt(words[i].replace(\"Number of Leads =\", \"\").trim());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t}\n\t\t//System.out.println(visit+\" \"+leads);\n\t\t\n\t\tAssert.assertTrue(visitCountOnWebSite>visit && leadsCountOnWebSite>leads, \" Visits and Leads count are not updating properly under popular Ads section\");\n\t\t\n\t\tFileWriter fw = new FileWriter(popularAdsData);\n\t\tString temp = \"Number of visits = \" + visitCountOnWebSite + \"@\";\n\t\ttemp += \"Number of Leads = \" + leadsCountOnWebSite;\n\t\tfw.write(temp);\n\t\twaitTill(3000);\n\t\tif (fw != null)\n\t\t\tfw.close();\n\t\tLeadsTradusPROPPage leadsObj=new LeadsTradusPROPPage(driver);\n\t\tleadsObj.leadsGenerationinTPRO();\n\t\t\n\t}", "private void increaseAttempts() {\n attempts++;\n }", "@Override\n protected void onAfterSplitBrainHealed(HazelcastInstance[] instances) {\n mergeLifecycleListener.await();\n\n assertContainsCounterStatsEventually(true, instances[0], instances[1]);\n assertContainsCounterStatsEventually(false, instances[2]);\n }", "private void checkRequests()\n\t{\n\t\t// to be honest I don't see why this can't be 5 seconds, but I'm trying 1 second\n\t\t// now as the existing 0.1 second is crazy given we're checking for events that occur\n\t\t// at 60+ second intervals\n\n\t\tif ( mainloop_loop_count % MAINLOOP_ONE_SECOND_INTERVAL != 0 ){\n\n\t\t\treturn;\n\t\t}\n\n\t\tfinal long now =SystemTime.getCurrentTime();\n\n\t\t//for every connection\n\t\tfinal ArrayList peer_transports = peer_transports_cow;\n\t\tfor (int i =peer_transports.size() -1; i >=0 ; i--)\n\t\t{\n\t\t\tfinal PEPeerTransport pc =(PEPeerTransport)peer_transports.get(i);\n\t\t\tif (pc.getPeerState() ==PEPeer.TRANSFERING)\n\t\t\t{\n\t\t\t\tfinal List expired = pc.getExpiredRequests();\n\t\t\t\tif (expired !=null &&expired.size() >0)\n\t\t\t\t{ // now we know there's a request that's > 60 seconds old\n\t\t\t\t\tfinal boolean isSeed =pc.isSeed();\n\t\t\t\t\t// snub peers that haven't sent any good data for a minute\n\t\t\t\t\tfinal long timeSinceGoodData =pc.getTimeSinceGoodDataReceived();\n\t\t\t\t\tif (timeSinceGoodData <0 ||timeSinceGoodData >60 *1000)\n\t\t\t\t\t\tpc.setSnubbed(true);\n\n\t\t\t\t\t//Only cancel first request if more than 2 mins have passed\n\t\t\t\t\tDiskManagerReadRequest request =(DiskManagerReadRequest) expired.get(0);\n\n\t\t\t\t\tfinal long timeSinceData =pc.getTimeSinceLastDataMessageReceived();\n\t\t\t\t\tfinal boolean noData =(timeSinceData <0) ||timeSinceData >(1000 *(isSeed ?120 :60));\n\t\t\t\t\tfinal long timeSinceOldestRequest = now - request.getTimeCreated(now);\n\n\n\t\t\t\t\t//for every expired request \n\t\t\t\t\tfor (int j = (timeSinceOldestRequest >120 *1000 && noData) ? 0 : 1; j < expired.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//get the request object\n\t\t\t\t\t\trequest =(DiskManagerReadRequest) expired.get(j);\n\t\t\t\t\t\t//Only cancel first request if more than 2 mins have passed\n\t\t\t\t\t\tpc.sendCancel(request);\t\t\t\t//cancel the request object\n\t\t\t\t\t\t//get the piece number\n\t\t\t\t\t\tfinal int pieceNumber = request.getPieceNumber();\n\t\t\t\t\t\tPEPiece\tpe_piece = pePieces[pieceNumber];\n\t\t\t\t\t\t//unmark the request on the block\n\t\t\t\t\t\tif ( pe_piece != null )\n\t\t\t\t\t\t\tpe_piece.clearRequested(request.getOffset() /DiskManager.BLOCK_SIZE);\n\t\t\t\t\t\t// remove piece if empty so peers can choose something else, except in end game\n\t\t\t\t\t\tif (!piecePicker.isInEndGameMode())\n\t\t\t\t\t\t\tcheckEmptyPiece(pieceNumber);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}", "private void countConnectingSocket() {\n \t\tcurrentlyConnectingSockets.incrementAndGet();\n \t}", "int getRetries();", "private boolean failInReporting() {\n\t\tboolean toForget = false;\n\t\t//synchronized (this) {\n\t\t\tif (++this.failureCount >= this.config.getNumOfFailuresBeforeForgetCollector()) {\n\t\t\t\ttoForget = true;\n\t\t\t\tthis.failureCount = 0;\n\t\t\t}\n\t\t//}\n\n\t\t// forget\n\t\tif (toForget) {\n\t\t\tlogger.log(Level.WARNING, \"Forget a stat collector.\");\n\n\t\t\tthis.provider.setMessagingCollectorAddress(null);\n\t\t}\n\n\t\treturn toForget;\n\t}", "private void countSocketClose() {\n \t\tcurrentlyOpenSockets.decrementAndGet();\n \t\tsynchronized (this) {\n \t\t\tthis.notifyAll();\n \t\t}\n \n \t}", "@Test(timeout = 4000)\n public void test090() throws Throwable {\n DBUtil.resetMonitors();\n }", "@Test\n public void testReportBadSink_PastThreshold() {\n List<ServerName> serverNames = Lists.newArrayList();\n for (int i = 0; i < 30; i++) {\n serverNames.add(mock(ServerName.class));\n }\n when(replicationEndpoint.getRegionServers())\n .thenReturn(serverNames);\n\n\n sinkManager.chooseSinks();\n // Sanity check\n assertEquals(3, sinkManager.getNumSinks());\n\n ServerName serverName = sinkManager.getSinksForTesting().get(0);\n\n SinkPeer sinkPeer = new SinkPeer(serverName, mock(AdminService.BlockingInterface.class));\n\n sinkManager.reportSinkSuccess(sinkPeer); // has no effect, counter does not go negative\n for (int i = 0; i <= ReplicationSinkManager.DEFAULT_BAD_SINK_THRESHOLD; i++) {\n sinkManager.reportBadSink(sinkPeer);\n }\n\n // Reporting a bad sink more than the threshold count should remove it\n // from the list of potential sinks\n assertEquals(2, sinkManager.getNumSinks());\n\n //\n // now try a sink that has some successes\n //\n serverName = sinkManager.getSinksForTesting().get(0);\n\n sinkPeer = new SinkPeer(serverName, mock(AdminService.BlockingInterface.class));\n for (int i = 0; i <= ReplicationSinkManager.DEFAULT_BAD_SINK_THRESHOLD-1; i++) {\n sinkManager.reportBadSink(sinkPeer);\n }\n sinkManager.reportSinkSuccess(sinkPeer); // one success\n sinkManager.reportBadSink(sinkPeer);\n\n // did not remove the sink, since we had one successful try\n assertEquals(2, sinkManager.getNumSinks());\n\n for (int i = 0; i <= ReplicationSinkManager.DEFAULT_BAD_SINK_THRESHOLD-2; i++) {\n sinkManager.reportBadSink(sinkPeer);\n }\n // still not remove, since the success reset the counter\n assertEquals(2, sinkManager.getNumSinks());\n\n sinkManager.reportBadSink(sinkPeer);\n // but we exhausted the tries\n assertEquals(1, sinkManager.getNumSinks());\n }", "private void testMediatorFaultCounts(String table) throws AnalyticsException {\n log.info(\"Checking mediator faults count in \" + table + \" table:\");\n for (int proxyNumber = 0; proxyNumber < NUMBER_OF_PROXIES; proxyNumber++) {\n for (int mediatorNumber = 1; mediatorNumber <= NUMBER_OF_MEDIATORS; mediatorNumber++) {\n int expectedFaultCount = 0;\n if (mediatorNumber == NUMBER_OF_MEDIATORS) {\n expectedFaultCount = NUMBER_OF_FAULTS;\n }\n String mediatorId = \"AccuracyTestProxy_\" + proxyNumber + \"@\" + mediatorNumber + \":mediator_\" + \n mediatorNumber;\n int count = getCounts(table, TestConstants.FAULT_COUNT, mediatorId);\n Assert.assertEquals(count, expectedFaultCount, \"Fault count is incorrect for \" + mediatorId + \n \" in per-minute table.\");\n }\n log.info(\"AccuracyTestProxy_\" + proxyNumber + \": All mediators: Ok\");\n }\n }", "private boolean waitForAO()\n {\n int countOfRetry = 15;\n do\n {\n try\n {\n log.debug(\"Attempting to wait for AO.\");\n activeObjects.count(MessageMapping.class);\n log.debug(\"Attempting to wait for AO - DONE.\");\n stop = true;\n return true;\n }\n catch (PluginException e)\n {\n countOfRetry--;\n try\n {\n Thread.sleep(5000);\n }\n catch (InterruptedException ie)\n {\n // nothing to do\n }\n }\n }\n while (countOfRetry > 0 && !stop);\n log.debug(\"Attempting to wait for AO - UNSUCCESSFUL.\");\n return false;\n }", "private synchronized static void decrementNumberOfOpenSockets() {\r\n\r\n\t\tnumberOfOpenSockets--;\r\n\t}", "private void decWaiters()\r\n/* 451: */ {\r\n/* 452:537 */ this.waiters = ((short)(this.waiters - 1));\r\n/* 453: */ }", "public void honourDesiredCount() {\n int totalDeploymentCount = getDeployments().size();\n// log.info(\"[Total count] \" + totalDeploymentCount + \" [Desired Count] \" + desiredCount);\n\n while (totalDeploymentCount < desiredCount) {\n log.info(\"Scaling UP: REASON -> [Total Count] \" + totalDeploymentCount + \" < [Desired Count] \" +\n desiredCount);\n\n scaleUp(\"honourDesiredCount\");\n totalDeploymentCount = getDeployments().size();\n }\n }", "public void onTryFails(int currentRetryCount, Exception e) {}", "public void incrementAbortedTrades() {\n abortedTrades++;\n }", "@After\n public void tearDown(){\n client.generateReport(false);\n // Releases the client so that other clients can approach the agent in the near future.\n client.releaseClient();\n }", "public void setup() {\naddBehaviour(new TickerBehaviour(this, 100) {\n//call onTick every 1000ms\nprotected void onTick() {\n//Count down\nif (w > 0) {\nSystem.out.println(w + \" seconds left.\");\n\nw--;\n} else {\nSystem.out.println(\"Bye, bye\");\nmyAgent.doDelete(); //Delete this agent\n}\n}\n});\n}", "public void resetAttackAttempts() {\r\n\t\tattackAttempts = 0;\r\n\t}", "public void radarLostContact() {\n if (status == 1 || status == 18) {\n status = 0;\n flightCode = \"\";\n passengerList = null;\n faultDescription = \"\";\n itinerary = null;\n gateNumber = -1;\n }//END IF\n }", "@Test\n public void trackingEnabled_reliabilityTrigger_repeatedFailures() throws Exception {\n // Set up device configuration.\n configureTrackingEnabled();\n\n int retriesAllowed = 3;\n int checkDelayMillis = 5 * 60 * 1000;\n configureReliabilityConfigSettings(retriesAllowed, checkDelayMillis);\n\n PackageVersions oldPackageVersions = new PackageVersions(1, 1);\n PackageVersions currentPackageVersions = new PackageVersions(2, 2);\n\n // Simulate there being a newer version installed than the one recorded in storage.\n configureValidApplications(currentPackageVersions);\n\n // Force the storage into a state we want.\n mPackageStatusStorage.forceCheckStateForTests(\n PackageStatus.CHECK_COMPLETED_FAILURE, oldPackageVersions);\n\n // Initialize the package tracker.\n assertTrue(mPackageTracker.start());\n\n // Check the intent helper is properly configured.\n checkIntentHelperInitializedAndReliabilityTrackingEnabled();\n\n // Check the initial storage state.\n checkPackageStorageStatus(PackageStatus.CHECK_COMPLETED_FAILURE, oldPackageVersions);\n\n for (int i = 0; i < retriesAllowed + 1; i++) {\n // Simulate a reliability trigger.\n mPackageTracker.triggerUpdateIfNeeded(false /* packageChanged */);\n\n // Assert the PackageTracker did trigger an update.\n checkUpdateCheckTriggered(currentPackageVersions);\n\n // Check the PackageTracker failure count before calling recordCheckResult.\n assertEquals(i, mPackageTracker.getCheckFailureCountForTests());\n\n // Simulate a check failure.\n CheckToken checkToken = mFakeIntentHelper.captureAndResetLastToken();\n mPackageTracker.recordCheckResult(checkToken, false /* success */);\n\n // Peek inside the package tracker to make sure it is tracking failure counts properly.\n assertEquals(i + 1, mPackageTracker.getCheckFailureCountForTests());\n\n // Confirm nothing has changed.\n mFakeIntentHelper.assertUpdateNotTriggered();\n checkPackageStorageStatus(PackageStatus.CHECK_COMPLETED_FAILURE,\n currentPackageVersions);\n\n // Check reliability triggering is in the correct state.\n if (i <= retriesAllowed) {\n mFakeIntentHelper.assertReliabilityTriggerScheduled();\n } else {\n mFakeIntentHelper.assertReliabilityTriggerNotScheduled();\n }\n }\n }", "public int check(){\r\n\r\n\treturn count ++;\r\n\t\r\n}", "protected void processDisconnection(){}", "public static void decreaseNumberOfClients()\n {\n --numberOfClients;\n }", "private void gestioneDisconnessione(Exception e) {\n\t\tLOG.info(\"Client disconnesso\");\n\t\tthis.completeWithError(e);\n\t\tthis.running=false;\n\t}", "public void action()\n {\n if(timeout > 0 && timeout < 2)\n {\n timeout = 0;\n agent.removeBehaviour(introNegotiation);\n introNegotiation = null;\n counter = 0;\n\n\n }\n //If this is the very first time getting to this state or if the timeout reset the counter to 0\n if(counter < 1)\n {\n //Clean the list of receivers in case there is something\n if(!receivers.isEmpty())\n receivers.removeAllElements();\n //Calculate the duration of the intro\n calculateDurationIntro();\n //Find a receiver\n findAllReceivers();\n constructACLMessage();\n introNegotiation = new IntroNegotiation(agent,msg);\n introNegotiation.setDataStore(getDataStore());\n agent.addBehaviour(introNegotiation);\n }\n\n\n //Handle where I'm heading to from here.\n switch (steps)\n {\n case 0:\n transition = 29;\n break;\n case 1:\n agent.removeBehaviour(introNegotiation);\n introNegotiation = null;\n transition = 17;\n\n }\n\n\n\n }", "public void actionPerformed(ActionEvent e) {\n Debug.signal(Debug.WARNING, null, \"Wotlas Web Server unreachable. Trying again... (\" + this.nbTry + \"/12)\");\n this.nbTry++;\n }", "int getUnreachableCount();", "public void mo36001i() {\n String str = \"Failed to close timed out socket \";\n try {\n this.f31914m.close();\n } catch (Exception e) {\n Logger logger = this.f31913l;\n Level level = Level.WARNING;\n StringBuilder sb = new StringBuilder();\n sb.append(str);\n sb.append(this.f31914m);\n logger.log(level, sb.toString(), e);\n } catch (AssertionError e2) {\n if (C14287m.m45725a(e2)) {\n Logger logger2 = this.f31913l;\n Level level2 = Level.WARNING;\n StringBuilder sb2 = new StringBuilder();\n sb2.append(str);\n sb2.append(this.f31914m);\n logger2.log(level2, sb2.toString(), e2);\n return;\n }\n throw e2;\n }\n }", "public void setKillCount(){\n killCount = killCount + 1;\n System.out.println(\"Kill count: \"+ killCount);\n }", "public static void treatPdpError(int downloadAttempts) {\n\t\t\n\t}", "void ensure(int count);", "protected void onTick() {\n//Count down\nif (w > 0) {\nSystem.out.println(w + \" seconds left.\");\n\nw--;\n} else {\nSystem.out.println(\"Bye, bye\");\nmyAgent.doDelete(); //Delete this agent\n}\n}", "protected abstract void onMaxAttempts(final Exception exception);", "@Test(timeout = 10000L)\n public void testNbIdleNodes() throws Exception {\n CommonDriverAdminTests.testNbIdleNodes(client, nbNodes);\n }", "private synchronized static void incrementNumberOfOpenSockets() {\r\n\r\n\t\tnumberOfOpenSockets++;\r\n\t}", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n int int0 = DBUtil.getOpenConnectionCount();\n assertEquals(0, int0);\n }", "public void decRetryCount() {\n\t\tint cont = getRetryCount(); \n\t\tif (cont > 0) cont--;\n\t\tsetRetryCount(cont);\n\t}", "private void processPeers() {\n\t\tif (System.currentTimeMillis() - lastPeerUpdate > 20000) {\n\t\t\tupdatePeers();\n\t\t\tlastPeerUpdate = System.currentTimeMillis();\n\t\t}\n\t\tif (System.currentTimeMillis() - lastPeerCheck > 5000) {\n\t\t\tcleanPeerList();\n\t\t\tlastPeerCheck = System.currentTimeMillis();\n\t\t}\n\t}", "private void mutateNode(Node node, int tries) throws InterruptedException{\n \r\n \r\n int numOfInfected = 0;\r\n node.setOk(false);\r\n Node in = null;\r\n \r\n Thread.sleep(1000);\r\n \r\n boolean success = false;\r\n for(int x = 0; x < tries; x++){\r\n //System.out.println(\"Try - \" + x);\r\n if(infectednodes.size() == nodes.size()){\r\n System.out.println(\"ALL NODES INFECTED\");\r\n success = true;\r\n break;\r\n }\r\n if(in == null){\r\n in = node;\r\n }\r\n if(!infectednodes.contains(in)){\r\n infectednodes.add(in);\r\n }\r\n \r\n //System.out.println(\"INFECTED: \" + infectednodes);\r\n //System.out.println(\"RECOVERING: \" + recoveringnodes);\r\n //System.out.println(\"RECOVERED: \" + recoveringnodes);\r\n \r\n boolean pass = false;\r\n int rc = 0;\r\n int sleep = 1;\r\n do{\r\n //get random connection from in\r\n rc = new Random().nextInt(in.getConnected().size());\r\n Node rcn = (Node) in.getConnected().get(rc);\r\n \r\n \r\n \r\n //link not ok\r\n if(!rcn.getOk()){\r\n //x++;\r\n continue;\r\n }else if(!rcn.allConnectionsOk()){\r\n System.out.println(\"ALL CONNECTIONS INFECTED TO NODE:\" + rcn);\r\n int is = new Random().nextInt(infectednodes.size());\r\n in = (Node) infectednodes.get(is); \r\n //x++;\r\n continue;\r\n }else if(rcn.getOk() || rcn.recovering){\r\n if(rcn.recovering){\r\n rcn.setRecovering(false);\r\n recoveringnodes.remove(rcn);\r\n }\r\n if(in.getNodeLink().infectLink(rcn)){\r\n infectednodes.add(rcn);\r\n }else{\r\n recoverNode(rcn);\r\n }\r\n sleep = rcn.diff;\r\n pass = true;\r\n }\r\n }while(!pass);\r\n \r\n try {\r\n Thread.sleep((50*sleep)+sleep);\r\n } catch (Exception ex) {}\r\n \r\n \r\n \r\n if(!in.recovering){\r\n recoverNode(in);\r\n }\r\n int is = infectednodes.size();\r\n in = (Node) infectednodes.get(is-1); \r\n \r\n }\r\n System.out.println(\"END OF TRIES\");\r\n //break\r\n }", "public void countDeaths() {\n\t\tfor (LogLineData d : dataList) {\n\n\t\t\tif (!d.getDeadName().equals(\"<WORLD>\")) {\n\t\t\t\tint deadIndex = getKillerIndex(d.getDeadName());\n\n\t\t\t\tif (deadIndex == -1) {\n\t\t\t\t\tNinja n = new Ninja(d.getDeadName());\n\t\t\t\t\tn.setDeathsNumber(1);\n\t\t\t\t\tkillers.add(n);\n\t\t\t\t} else {\n\t\t\t\t\tint death = killers.get(deadIndex).getDeathsNumber();\n\t\t\t\t\tkillers.get(deadIndex).setDeathsNumber(death + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic boolean retry(ITestResult result) {\n\n if (!result.isSuccess()) { //Check if test not succeed\n if (count < maxTry) { //Check if maxtry count is reached\n count++; //Increase the maxTry count by 1\n System.out.println(\"is this working?\"); \n result.setStatus(ITestResult.FAILURE); //Mark test as failed\n return true; //Tells TestNG to re-run the test\n } else {\n result.setStatus(ITestResult.FAILURE); //If maxCount reached,test marked as failed\n }\n }\n else {\n result.setStatus(ITestResult.SUCCESS); //If test passes, TestNG marks it as passed\n }\n return false;\n\t}", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\r\n\t\tprivate void checkJobInstanceStatus() {\r\n \t\r\n \tString checkId = UUID.randomUUID().toString();\r\n \t\r\n \tlogger.info(checkId + \", [LivingTaskManager]: start checkJobInstanceStatus\"\r\n \t\t\t+ \", mapSize:\" + livingJobInstanceClientMachineMap.size() \r\n \t\t\t+ \", keySet:\" + LoggerUtil.displayJobInstanceId(livingJobInstanceClientMachineMap.keySet()));\r\n \t\r\n \tint checkAmount = 0;\r\n \t\r\n \tIterator iterator = livingJobInstanceClientMachineMap.entrySet().iterator();\r\n \t\twhile(iterator.hasNext()) { \r\n \t\t\tMap.Entry entry = (Map.Entry)iterator.next();\r\n \t\t\tServerJobInstanceMapping.JobInstanceKey key = (ServerJobInstanceMapping.JobInstanceKey)entry.getKey();\r\n \t\t\t\r\n \t\t\tList<RemoteMachine> machineList = (List<RemoteMachine>)entry.getValue();\r\n \t\t\t\r\n \t\t\tif(CollectionUtils.isEmpty(machineList)) {\r\n \t\t\t\tlogger.info(checkId + \", [LivingTaskManager]: checkJobInstanceStatus machineList isEmpty\"\r\n \t \t\t\t+ \", mapSize:\" + livingJobInstanceClientMachineMap.size() + \", key:\" + key);\r\n \t\t\t\tcontinue ;\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tsynchronized(machineList) {\r\n \t\t\t\tIterator<RemoteMachine> iteratorMachineList = machineList.iterator();\r\n \t\t\t\twhile(iteratorMachineList.hasNext()) {\r\n \t\t\t\t\t\r\n \t\t\t\t\tRemoteMachine client = iteratorMachineList.next();\r\n \t\t\t\t\t\r\n \t\t\t\t\tResult<String> checkResult = null;\r\n try {\r\n client.setTimeout(serverConfig.getHeartBeatCheckTimeout());\r\n InvocationContext.setRemoteMachine(client);\r\n checkResult = clientService.heartBeatCheckJobInstance(key.getJobType(), key.getJobId(), key.getJobInstanceId());\r\n handCheckResult(key, checkResult, client);\r\n } catch (Throwable e) {\r\n logger.error(\"[LivingTaskManager]: task checkJobInstanceStatus error, key:\" + key, e);\r\n handCheckResult(key, null, client);\r\n } finally {\r\n \tcheckAmount ++;\r\n }\r\n \t\t\t\t\t\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\t\r\n \t\t}\r\n \t\t\r\n \t\tlogger.info(checkId + \", [LivingTaskManager]: finish checkJobInstanceStatus\"\r\n \t\t\t\t+ \", mapSize:\" + livingJobInstanceClientMachineMap.size() + \", checkAmount:\" + checkAmount);\r\n }", "@Test(timeout = 4000)\n public void test62() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n connectionFactories0.getXAConnectionFactory();\n int int0 = connectionFactories0.getXATopicConnectionFactoryCount();\n assertEquals(0, int0);\n }", "public void setAsUp () \n\t{ \n\t\tn.setFailureState(true);\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}", "@Test(timeOut = DEFAULT_TEST_TIMEOUT, enabled=true)\n public void testFailedMachineWhileEsmIsDown() throws Exception {\n deployPu();\n // hold reference to agent before restarting the lus \n final GridServiceAgent agent = getAgent(pu);\n final ElasticServiceManager[] esms = admin.getElasticServiceManagers().getManagers();\n assertEquals(\"Expected only 1 ESM instance. instead found \" + esms.length, 1, esms.length);\n killEsm();\n machineFailover(agent);\n assertUndeployAndWait(pu);\n }", "@Test(timeout = 4000)\n public void test42() throws Throwable {\n String string0 = EWrapperMsgGenerator.managedAccounts(\"autionImbalance\");\n assertEquals(\"Connected : The list of managed accounts are : [autionImbalance]\", string0);\n }", "protected int getMaxRetries()\n {\n return heartbeat.getMaxRetries();\n }", "public void honourMaxCount() {\n // Get free and total counts\n int freeCount = getFreeLaunchers().size();\n int totalCount = getTotalLaunchers().size();\n\n // Scale down if max is exceeded, irrespective of free buffer count\n if (totalCount > maxCount) {\n log.info(\"Scaling down until [freeBufferCount] \" + freeBufferCount + \" is met since [Max Count] \"\n + maxCount + \" has been exceeded.\");\n\n while (freeCount <= freeBufferCount){\n log.info(\"Scaling DOWN: REASON -> [Total Count] \" + totalCount + \" > [Max Count] \" + maxCount);\n scaleDown();\n freeCount = getFreeLaunchers().size();\n }\n\n totalCount = getTotalLaunchers().size();\n freeCount = getFreeLaunchers().size();\n\n log.info(\"Stats after scale down operation: [Total Count] \" + totalCount + \", [Free Count] \" + freeCount);\n\n return;\n }\n\n // Don't scale down if there are not enough free launchers\n if (freeCount <= freeBufferCount) {\n log.info(\"Not scaling down since [Free Count] \" + freeCount + \" <= [Free Buffer Size] \" +\n freeBufferCount + \"...\");\n return;\n }\n\n // Don't scale down if the desired count is not exceeded\n if (totalCount <= desiredCount) {\n log.info(\"Not scaling down since [Total Count] \" + totalCount + \" <= [Desired Count] \" +\n desiredCount + \"...\");\n return;\n }\n\n // Scale down if desired count is exceeded, but with more free launchers than buffer count by stepDown count\n // TODO: to test scale down\n if ((freeCount - stepDown) >= freeBufferCount) {\n log.info(\"Scaling DOWN: REASON -> [Total Count] \" + totalCount + \" > [Desired Count] \" + desiredCount +\n \" AND [Free Count] - [Step Down] \" + freeCount + \" - \" + stepDown +\n \" >= [Free Buffer Count] \" + freeBufferCount);\n\n scaleDown();\n return;\n }\n\n // If after scaling down there wouldn't be enough free launchers, don't scale down\n log.info(\"Not scaling down since [Free Count] + [Step Down] \" + freeCount + \" + \" + stepDown +\n \" < [Free Buffer Count] \" + freeBufferCount);\n }", "public static void playerEffectivelyEndsBattlePhase() {\r\n for (int index = 1; index <= 5; index++){\r\n SummonedMonster MonsterCPU = SummonedMonster.getNthSummonedMonster(index, false);\r\n if (MonsterCPU.isExisting) {\r\n MonsterCPU.canStillAttackThisTurn = false;\r\n }\r\n }\r\n endAttack(false);\r\n }", "@Override\r\n\tpublic void run() {\n\t if (isDone) {\r\n\t\ttimer.cancel();\r\n\t\treturn;\r\n\t }\r\n\t \r\n\t if (interestedList.size() == 0) {\r\n\t\treturn;\r\n\t }\r\n\t \r\n\t synchronized (interestedList) {\r\n\t\tint index = (int)(Math.random()*interestedList.size());\r\n\t\tif (ouNbr != 0 && interestedList.get(index) != ouNbr) {\r\n\t\t //System.out.println(\"Optimistically Unchoke \" + interestedList.get(index));\r\n\t\t Message.sendMsg(new UnChoke(), connmap.get(interestedList.get(index)).getOutputStream());\r\n\t\t \r\n\t\t if (ouNbr != 0 && !prefNbrs.contains(ouNbr)) {\r\n\t\t\t//System.out.println(\"Optimistically Choke \" + ouNbr);\r\n\t\t\tMessage.sendMsg(new Choke(), connmap.get(ouNbr).getOutputStream());\r\n\t\t }\r\n\t\t ouNbr = interestedList.get(index);\r\n\t\t log (\"Peer \" + pid + \" has the optimistically-unchoked neighbot \" + ouNbr);\r\n\t\t}\r\n\t }\r\n\t \r\n\t}", "public static void increaseNumberOfClients()\n {\n ++numberOfClients;\n }" ]
[ "0.6720606", "0.62569386", "0.62342644", "0.57732415", "0.5649688", "0.5644036", "0.559276", "0.5564212", "0.5557913", "0.55405456", "0.5503192", "0.549559", "0.54873335", "0.5472435", "0.5461717", "0.54518324", "0.5425421", "0.5425253", "0.5422307", "0.5418722", "0.5395395", "0.53843695", "0.53798723", "0.53785557", "0.53546584", "0.5350598", "0.5326249", "0.5313011", "0.53123224", "0.5295748", "0.529359", "0.5292873", "0.52857417", "0.5283088", "0.5279785", "0.5275134", "0.5273567", "0.52637047", "0.52586925", "0.5233928", "0.5218725", "0.52173054", "0.5211508", "0.52092284", "0.52071595", "0.52045184", "0.5201085", "0.51913106", "0.5180218", "0.517778", "0.5169816", "0.51663065", "0.5164465", "0.5160037", "0.5159785", "0.51520216", "0.51514584", "0.51477", "0.51363975", "0.5134471", "0.513358", "0.51313233", "0.5126132", "0.5120093", "0.51192904", "0.5108456", "0.51063734", "0.5099837", "0.50930375", "0.5091659", "0.5086574", "0.50859314", "0.5081577", "0.5079252", "0.5076974", "0.5072783", "0.50719076", "0.50655514", "0.5056636", "0.5054547", "0.5043979", "0.50403553", "0.50367206", "0.5032012", "0.5031231", "0.5028945", "0.5024489", "0.5020991", "0.5019881", "0.5018541", "0.5017543", "0.50150204", "0.5013622", "0.50060755", "0.50026405", "0.5002331", "0.500056", "0.5000441", "0.49991614", "0.49887145", "0.498749" ]
0.0
-1
/ User clicked cancel so do some stuff
public void onClick(DialogInterface dialog, int whichButton) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onCancelClicked();", "public void cancel() { Common.exitWindow(cancelBtn); }", "public void onCancelClick()\r\n {\r\n\r\n }", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public abstract boolean cancel();", "public void cancel()\n\t{\n\t}", "@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}", "protected abstract void handleCancel();", "private void cancelButtonActionPerformed(ActionEvent e) {\n }", "protected abstract void onCancel();", "void btnCancel();", "private void cancel(ActionEvent e){\r\n // Clear textfields\r\n clearFields();\r\n // If coming from appt management screen, go back there\r\n if (fromAppt){\r\n goToManageApptScreen();\r\n }\r\n // Otherwise, set the current client to null and go to the landing page \r\n else {\r\n currClient = null;\r\n LandingPage.returnToLandingPage();\r\n }\r\n }", "void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }", "public boolean cancel();", "public void onCancelClicked() {\n close();\n }", "@Override\r\n\tpublic void cancel() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void cancel() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void cancel() {\n\t\t\n\t}", "public void onCancel();", "void onCancel();", "void onCancelButtonPressed();", "public void handleCancelButton(ActionEvent e) {\n\t\tclose();\n\t}", "public void cancelButtonPressed(ActionEvent event) throws IOException {\n returnToMainScreen(event);\n }", "public void cancel() {\n\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "public void cancel();", "@Override\n public void cancel() {\n }", "void cancel();", "void cancel();", "void cancel();", "void cancel();", "void cancel();", "@Override\n\tpublic void onCancel(DialogInterface arg0) {\n\t\t\n\t}", "private void cancel() {\n\t\tfinish();\n\t}", "@Override\n public void onCancel(DialogInterface dialog) {\n cancel(true);\n }", "public void cancelButtonPressed(View view) {\r\n\t\tthis.finish();\r\n\t}", "@Override\n public void cancel() {\n\n }", "public void cancel( String reason );", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcancel();\n\t\t\t}", "@Override\n public void cancel() {\n\n }", "@Override\n public void onCancel(DialogInterface arg0) {\n\n }", "void onCancel(int key);", "public void cancel(){\n cancelled = true;\n }", "public void cancel() {\r\n\t\tthis.cancel = true;\r\n\t}", "@Override\n public void OnCancelButtonPressed() {\n }", "@Override\n public void cancel() {\n }", "private void actionCancel() {\n\t\tselectedDownload.cancel();\n\t\tupdateButtons();\n\t}", "@Override\n public void OnCancelButtonPressed() {\n }", "public void onCancelButtonClick() {\n close();\n }", "public void cancel() {\n writeData(ESC.CMD_CANCEL);\n }", "@Override\n\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\tpublic void onCancel() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t}", "void cancelOriginal();", "@Override\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\n\t\t}", "public void cancelDialog() {dispose();}", "@Override\n\t\tpublic void onCancel() {\n \n \t}", "@Override\r\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\r\n\t\t\t\t\t}", "@Override\r\n\t\tpublic void onCancel() {\n\t\t}", "public void handleCancelButton(ActionEvent actionEvent) throws IOException {\n ScreenLoader.display(\"customerSearchScreen\",\"Customer Search\",actionEvent);\n }", "@Override\n public void onCancel() {\n }", "public void onCancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onCancel() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\n public void cancel() {\n super.cancel();\n\n /** Flag cancel user request\n */\n printingCanceled.set(true);\n\n /** Show a warning message\n */\n JOptionPane.showMessageDialog( MainDemo.this , \"Lorem Ipsum printing task canceled\", \"Task canceled\" , JOptionPane.WARNING_MESSAGE );\n }", "public void cancel()\n\t{\n\t\t_buttonHit = true;\n\t}", "public void cancel() throws Exception {\n\t\tgetControl(\"cancelButton\").click();\n\t}", "void cancelButton_actionPerformed(ActionEvent e)\n\t{\n\t\tcloseDlg();\n }", "public void cancelButton() {\n this.setMultQuestionSet(null);\n this.setSingleQuestionSet(null);\n this.setTextQuestionSet(null);\n this.setDateQuestionSet(null);\n System.out.println(\"Done pressing cancel button\");\n }", "private void onCancel()\n\t{\n\t\tdispose();\n\t}", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\tcancel(true);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}", "@Override\n protected void onCancel() {\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n }", "@Override\n public void onCancel() {\n Log.w(tag, \"post cancel\" + this.getRequestURI());\n cancelmDialog();\n super.onCancel();\n }", "protected abstract void handleCancel() throws Exception;", "public void cancel() {\n btCancel().push();\n }", "public synchronized void cancel() {\n }", "public void onCancelPressed(View view) {\n finish();\n }", "public void onCancel() {\n\t\t\t\t\t}", "public void Cancel(View v)\n\t{\n\t\tfinish();\n\t}", "@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\r\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "public void onCancelPressed(View v) {\n finish();\n }", "private void onCancel() {\n\t\tdispose();\n\t}", "@Override\n\t\t\t\t\t\tpublic void doCancel() {\n\t\t\t\t\t\t\tcommonDialog.dismiss();\n\t\t\t\t\t\t}", "private void onCancel() {\n System.exit(0);\r\n dispose();\r\n }", "public void onCancelClicked(View v) {\n goBackToStart();\n }", "public void onCancelClicked(View v) {\n goBackToStart();\n }", "private void onCancel() {\n data.put(\"cerrado\",true);\n dispose();\n }", "@Override\n public void onClick(View v) {\n buttonCancelClicked();\n }", "public void clickedCancel(View view) {\n \treturnResult(Activity.RESULT_CANCELED);\n }", "@Override\n public void onCancel() {\n\n }" ]
[ "0.813386", "0.8038097", "0.78671783", "0.7824543", "0.7824543", "0.7824543", "0.7824543", "0.7824543", "0.7824543", "0.77766436", "0.7750306", "0.7745657", "0.77434987", "0.7735942", "0.7733378", "0.7725916", "0.7707398", "0.7697548", "0.76816523", "0.76741374", "0.76499736", "0.76420575", "0.7632825", "0.7627577", "0.75946194", "0.7593572", "0.7587264", "0.7586528", "0.75850284", "0.75705403", "0.75705403", "0.75705403", "0.7569044", "0.75572455", "0.75411284", "0.75411284", "0.75411284", "0.75411284", "0.75411284", "0.75410414", "0.75260186", "0.75126487", "0.75026625", "0.74952507", "0.749263", "0.74907243", "0.74907243", "0.74907243", "0.74891603", "0.7484481", "0.74644357", "0.7452215", "0.7443381", "0.7437824", "0.74341476", "0.74329084", "0.7432208", "0.7420232", "0.74068636", "0.74058104", "0.7404164", "0.73921704", "0.7389387", "0.738697", "0.738668", "0.73826313", "0.736967", "0.73548865", "0.7345539", "0.7343183", "0.734254", "0.73416144", "0.7330471", "0.7327385", "0.7322116", "0.73136854", "0.73097277", "0.7308352", "0.7302747", "0.728686", "0.7283056", "0.72730476", "0.7269206", "0.72618294", "0.7257281", "0.7255968", "0.72538614", "0.72466403", "0.72383475", "0.7232", "0.72188467", "0.720802", "0.7200244", "0.71986544", "0.7196102", "0.7190017", "0.7190017", "0.71883684", "0.7176875", "0.71762675", "0.71684015" ]
0.0
-1
Creates a new instance of Recognizer
public CommandLineFSRecognizer() { init(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ICharacterRecognizer create (ReceiptClass receiptClass) {\n return CharacterRecognizerFactory.dispatch(receiptClass);\n }", "com.google.cloud.speech.v2.Recognizer getRecognizer();", "public MyNLP()\n\t{\n\t\t//create StanfordNLP\n\t\tsnlp = new StanfordNLP();\n\t\t//create Recognizer\n\t\trec = new MyRecognizer();\n\t\t//build recognizers\n\t\trec.build();\n\t\t//create SentimentalAnalysis\n\t\tsa = new SentimentalAnalysis();\n\t}", "@Override\r\n\t\t\tpublic void recognizerStarted() {\n\r\n\t\t\t}", "private void setupRecognizer(File assetsDir) throws IOException {\n\n recognizer = defaultSetup()\n .setAcousticModel(new File(assetsDir, \"en-us-ptm\"))\n .setDictionary(new File(assetsDir, \"cmudict-en-us.dict\"))\n\n // To disable logging of raw audio comment out this call (takes a lot of space on the device)\n .setRawLogDir(assetsDir)\n\n // Threshold to tune for keyphrase to balance between false alarms and misses\n .setKeywordThreshold(1e-45f)\n\n // Use context-independent phonetic search, context-dependent is too slow for mobile\n .setBoolean(\"-allphone_ci\", true)\n\n .getRecognizer();\n recognizer.addListener(this);\n\n /** In your application you might not need to add all those searches.\n * They are added here for demonstration. You can leave just one.\n */\n\n // Create keyword-activation search.\n recognizer.addKeyphraseSearch(KWS_SEARCH, KEYPHRASE);\n\n // Create grammar-based search for selection between demos\n File menuGrammar = new File(assetsDir, \"menu.gram\");\n recognizer.addGrammarSearch(MENU_SEARCH, menuGrammar);\n\n // Create grammar-based search for digit recognition\n File digitsGrammar = new File(assetsDir, \"digits.gram\");\n recognizer.addGrammarSearch(DIGITS_SEARCH, digitsGrammar);\n\n // Create language model search\n File languageModel = new File(assetsDir, \"weather.dmp\");\n recognizer.addNgramSearch(FORECAST_SEARCH, languageModel);\n\n // Phonetic search\n File phoneticModel = new File(assetsDir, \"en-phone.dmp\");\n recognizer.addAllphoneSearch(PHONE_SEARCH, phoneticModel);\n }", "private void setupRecognizer(File assetsDir) throws IOException {\n\n recognizer = SpeechRecognizerSetup.defaultSetup()\n .setAcousticModel(new File(assetsDir, \"ru-ru-ptm\"))\n .setDictionary(new File(assetsDir, \"dict_ru.dict\"))\n .setBoolean(\"-remove_noise\", true)\n //.setRawLogDir(assetsDir) // To disable logging of raw audio comment out this call (takes a lot of space on the device)\n .setKeywordThreshold(1e-7f)\n .getRecognizer();\n recognizer.addListener(this);\n\n /* In your application you might not need to add all those searches.\n They are added here for demonstration. You can leave just one.\n */\n\n\n // Create keyword-activation search.\n recognizer.addKeyphraseSearch(KEYPHRASE, KEYPHRASE);\n\n // Create grammar-based search for selection between demos\n File menuGrammar = new File(assetsDir, \"menu.gram\");\n recognizer.addGrammarSearch(MENU_SEARCH, menuGrammar);\n\n // Create grammar-based search for digit recognition\n File digitsGrammar = new File(assetsDir, \"digits.gram\");\n recognizer.addGrammarSearch(DIGITS_SEARCH, digitsGrammar);\n\n // Phonetic search\n File phoneticModel = new File(assetsDir, \"jsgf_ru.gram\");\n recognizer.addAllphoneSearch(ANIMAL_SEARCH, phoneticModel);\n }", "com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder();", "public Voice() {\n /* Make the utteranceProcessors a synchronized list to avoid\n * some threading issues.\n */\n utteranceProcessors = Collections.synchronizedList(new ArrayList());\n\tfeatures = new FeatureSetImpl();\n\tfeatureProcessors = new HashMap();\n\n\ttry {\n\t nominalRate = Float.parseFloat(\n\t\t Utilities.getProperty(PROP_PREFIX + \"speakingRate\",\"150\"));\n\t pitch = Float.parseFloat(\n\t\t Utilities.getProperty(PROP_PREFIX + \"pitch\",\"100\"));\n\t range = Float.parseFloat(\n\t\t Utilities.getProperty(PROP_PREFIX + \"range\",\"10\"));\n\t volume = Float.parseFloat(\n\t\t Utilities.getProperty(PROP_PREFIX + \"volume\",\"1.0\"));\n\t} catch (SecurityException se) {\n\t // can't get properties, just use defaults\n\t}\n outputQueue = null;\n audioPlayer = null;\n defaultAudioPlayer = null;\n }", "@Override\n public CreateEntityRecognizerResult createEntityRecognizer(CreateEntityRecognizerRequest request) {\n request = beforeClientExecution(request);\n return executeCreateEntityRecognizer(request);\n }", "public Voice() {\n }", "public SELF the_analyzer_is_instantiated() {\n analyzer = builder.build();\n return self();\n }", "private void setup(Command cmd) throws RuntimeException, PropertyException, IOException, EngineException{\n\t\tbaseRec = new BaseRecognizer(((JSGFGrammar) cm.lookup(\"jsgfGrammar\")).getGrammarManager());\n\t\trecognizer = (Recognizer) cm.lookup(\"recognizer\");\n\t\tmicrophone = (Microphone) cm.lookup(\"microphone\");\n\n\t\tbaseRec.allocate();\n\t\trecognizer.allocate();\n\t}", "public RtfOptimizer()\n {\n }", "private void startVoiceRecognitionActivity()\n {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Voice recognition Demo...\");\n startActivityForResult(intent, REQUEST_CODE);\n }", "public RecognitionTest(String testName) {\n super(testName);\n }", "public PredictorListener buildPredictor();", "private Vocabulary() {\n }", "private RecognizeOptions getRecognizeOptions(InputStream audio) {\n return new RecognizeOptions.Builder()\n .audio(audio)\n .contentType(ContentType.OPUS.toString())\n .model(RecognizeOptions.Model.EN_GB_BROADBANDMODEL)\n .interimResults(true)\n .inactivityTimeout(2000)\n .build();\n }", "private void recognize() {\n //Setup our Reco transaction options.\n Transaction.Options options = new Transaction.Options();\n options.setDetection(resourceIDToDetectionType(R.id.long_endpoint));\n options.setLanguage(new Language(\"eng-USA\"));\n options.setEarcons(startEarcon, stopEarcon, errorEarcon, null);\n\n //Add properties to appServerData for use with custom service. Leave empty for use with NLU.\n JSONObject appServerData = new JSONObject();\n //Start listening\n recoTransaction = speechSession.recognizeWithService(\"M10253_A3221\", appServerData, options, recoListener);\n }", "private void startVoiceRecognitionActivity()\n\t{\n\t\tSystem.out.println(\"Starting activity lel\");\n\t\tIntent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\tintent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n\t\t\t\tRecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n\t\tintent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Voice recognition Demo...\");\n\t\tstartActivityForResult(intent, VOICE_REQUEST_CODE);\n\t}", "private Recommendation() {\r\n }", "static synchronized public void staticInitialize()\n {\n if (!isInitialized)\n {\n if (!startedInitializing)\n {\n startedInitializing = true;\n\n cm = new ConfigurationManager(SphinxSignalInfoProvider.class.getResource(\"hellongram.config.xml\"));\n\n // allocate the recognizer\n System.out.println(\"Loading spinx recognizer...\");\n recognizer = (Recognizer) cm.lookup(\"recognizer\");\n recognizer.allocate();\n\n //speechClassifier = (SpeechClassifier) cm.lookup(\"speechClassifier\");\n //speechClassifier.initialize();\n\n inMindDataProcessor = (InMindDataProcessor) cm.lookup(\"inMindDataProcessor\");\n\n inMindByteDataSource = (InMindByteDataSource) cm.lookup(\"inMindByteDataSource\");\n\n\n isInitialized = true;\n System.out.println(\"Spinx recognizer loaded.\");\n\n recognizerThread = new Thread(() -> {\n try\n {\n while (true)\n {\n recognizer.recognize();\n }\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n });\n recognizerThread.start();\n }\n }\n }", "public void startVoiceRecognition() {\n startVoiceRecognition(null);\n }", "MatchController createMatchController();", "private void startVoiceRecognitionActivity() {\n\t\tIntent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\tintent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n\t\tintent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"What food are you stocking right now?\");\n\t\tstartActivityForResult(intent, SPEECH_REQCODE);\n\t}", "public void startSpeechRecognition() {\n\t\tIntent i = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\ti.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, \"en-GB\");\n\t\ttry {\n\t\t\tstartActivityForResult(i, REQUEST_OK);\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}", "private WordNet() {\n }", "public RecognizeRequest setRecognizeConfiguration(RecognizeConfigurationsInternal recognizeConfiguration) {\n this.recognizeConfiguration = recognizeConfiguration;\n return this;\n }", "public void makeInstance() {\n\t\t// Create the attributes, class and text\n\t\tFastVector fvNominalVal = new FastVector(2);\n\t\tfvNominalVal.addElement(\"ad1\");\n\t\tfvNominalVal.addElement(\"ad2\");\n\t\tAttribute attribute1 = new Attribute(\"class\", fvNominalVal);\n\t\tAttribute attribute2 = new Attribute(\"text\",(FastVector) null);\n\t\t// Create list of instances with one element\n\t\tFastVector fvWekaAttributes = new FastVector(2);\n\t\tfvWekaAttributes.addElement(attribute1);\n\t\tfvWekaAttributes.addElement(attribute2);\n\t\tinstances = new Instances(\"Test relation\", fvWekaAttributes, 1); \n\t\t// Set class index\n\t\tinstances.setClassIndex(0);\n\t\t// Create and add the instance\n\t\tInstance instance = new Instance(2);\n\t\tinstance.setValue(attribute2, text);\n\t\t// Another way to do it:\n\t\t// instance.setValue((Attribute)fvWekaAttributes.elementAt(1), text);\n\t\tinstances.add(instance);\n \t\tSystem.out.println(\"===== Instance created with reference dataset =====\");\n\t\tSystem.out.println(instances);\n\t}", "public VisionSubsystem() {\n\n }", "boolean hasRecognizer();", "public Match( ) {\n\n }", "public FeatureExtraction() {\n\t}", "public NgramAnalyser(String inp) \n {\n this(1,inp);\n }", "private void createCameraSource() {\n Context ctx = getApplicationContext();\n Point displaySize = new Point();\n getWindowManager().getDefaultDisplay().getRealSize(displaySize);\n\n // dummy detector saving the last frame in order to send it to Microsoft in case of face detection\n ImageFetchingDetector imageFetchingDetector = new ImageFetchingDetector();\n\n // We need to provide at least one detector to the camera :x\n FaceDetector faceDetector = new FaceDetector.Builder(ctx).build();\n faceDetector.setProcessor(\n new LargestFaceFocusingProcessor.Builder(faceDetector, new FaceTracker(imageFetchingDetector))\n .build());\n\n BarcodeDetector barcodeDetector = new BarcodeDetector.Builder(ctx).build();\n //barcodeDetector.setProcessor(new BarcodeDetectionProcessor());\n barcodeDetector.setProcessor(\n new FirstFocusingProcessor<Barcode>(barcodeDetector, new BarcodeTracker())\n );\n\n TextRecognizer textRecognizer = new TextRecognizer.Builder(ctx).build();\n textRecognizer.setProcessor(new OcrDetectionProcessor());\n // TODO: Check if the TextRecognizer is operational.\n\n MultiDetector multiDetector = new MultiDetector.Builder()\n .add(imageFetchingDetector)\n .add(faceDetector)\n .add(barcodeDetector)\n .add(textRecognizer)\n .build();\n\n mCameraSource = new CameraSource.Builder(ctx, multiDetector)\n .setFacing(CameraSource.CAMERA_FACING_BACK)\n .setAutoFocusEnabled(true)\n .setRequestedFps(5.0f)\n .setRequestedPreviewSize(displaySize.y, displaySize.x)\n .build();\n }", "public HomeworkVoice() {\n super();\n }", "public static GenUnigram getInstance() {\n if (MODEL == null) {\n MODEL = new GenUnigram();\n }\n return MODEL;\n }", "private void manageSpeechRecognition() {\n\n mRecognizerIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n mRecognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_PREFERENCE, Locale.getDefault().getLanguage().trim());\n mRecognizerIntent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, this.getPackageName());\n mRecognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n mRecognizerIntent.putExtra(RecognizerIntent.EXTRA_PARTIAL_RESULTS, true);\n mRecognizerIntent.putExtra(RecognizerIntent.EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS, 100);\n\n mRecognizerIntent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, 3);\n\n mSongSpeechRecognitionListener = new SongSpeechRecognitionListener(mRippleBackground, mFloatingActionButton);\n\n mSpeechRecognizer = SpeechRecognizer.createSpeechRecognizer(this);\n mSpeechRecognizer.setRecognitionListener(mSongSpeechRecognitionListener);\n\n }", "public WordCount() {\n }", "private SpreedWord() {\n\n }", "private void initSpeechRecognizer(String userwordPath) {\n mRecognizer = SpeechRecognizer.createRecognizer(mCallerActivity, mInitListener);\n //if(mRecognizer == null){\n // Log.e(\"mRecognizer\",\"NULL!!\");\n //}\n// Log.e(TAG, \"initSpeechRecognizer: \"+ this.getPackageName());\n String userwordContent = FucUtil.readFile(mCallerActivity, userwordPath, \"utf-8\");\n int ret = mRecognizer.updateLexicon(\"userword\", userwordContent, mLexiconListener);\n Log.d(LOG_TAG, \"update lexicon fail, error code: \" + ret);\n mSharedPreferences = mCallerActivity.getSharedPreferences(mCallerActivity.getPackageName(),\tMODE_PRIVATE);\n }", "public RecognitionResult recognize(Mat inputImage){\n return recoApp.recognition(inputImage);\n }", "public ObjectFactory() {\n super(grammarInfo);\n }", "public Gov() {\n }", "public Grammar() {\n }", "java.lang.String getRecognizerId();", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n imageview=(ImageView) findViewById(R.id.imageView);\n Display display=getWindowManager().getDefaultDisplay();\n Point size=new Point();\n display.getSize(size);\n width=size.x;\n height=size.y;\n if(height>width){small=width;check=1;}\n else small=height;\n x=width/2;\n y=height/2;\n Bitmap b = Bitmap.createBitmap(width,height,Bitmap.Config.ARGB_8888);\n imageview.setImageBitmap(b);\n c = new Canvas(b);\n c.drawColor(Color.BLACK);\n paint = new Paint();\n paint.setAntiAlias(false);\n paint.setStyle(Paint.Style.FILL);\n\n paint.setColor(Color.BLUE);\n c.drawCircle(x, y, r, paint);\n\n speak=(Button) findViewById(R.id.speak);\n wordsList=(ListView) findViewById(R.id.listView);\n PackageManager pm =getPackageManager();\n List<ResolveInfo> activities =pm.queryIntentActivities(\n new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH),0);\n if(activities.size() == 0)\n {\n speak.setEnabled(false);\n speak.setText(\"Recognizer not present\" );\n }\n }", "private VerifierFactory() {\n }", "public SimilarityBasedRecommender()\n\t{\n\t\taWordIndex = generateWordIndex(); // when a new SimilarityBasedRecommender is created, we refresh the wordIndex.\n\t}", "public Surgeon() {\n }", "public WordDictionary() {\n\n }", "public void recognizeMicrophone() {\n if (recognizer != null) {\n setUiState(STATE_DONE);\n recognizer.cancel();\n recognizer = null;\n } else {\n setUiState(STATE_MIC);\n try {\n recognizer = new SpeechRecognizer(model);\n recognizer.addListener(this);\n recognizer.startListening();\n } catch (IOException e) {\n setErrorState(e.getMessage());\n }\n }\n }", "private ToneDetection() { }", "public Set instantiate() throws IOException {\n String chars = ((JTextArea)wizard.getProperty(\"imageTextArea\")).getText();\n BufferedImage imageWithChars = (BufferedImage)wizard.getProperty(\"image\"); // this returns BufferedImage\n Dimension resolution = (Dimension) wizard.getProperty(\"resolution\");\n String trainingSetName = (String) wizard.getProperty(\"trainigSetName\");\n String neuralNetworkName = (String) wizard.getProperty(\"networkName\");\n String neurons = (String) wizard.getProperty(\"neurons\");\n String transferFunction = (String) wizard.getProperty(\"transferFunction\");\n\n ImageIO.write(imageWithChars, \"jpg\",new File(\"imageWithText.jpg\")); // write chars image to file to see how it looks\n\n // create training set and neural network\n TextRecognitionManager tcrManager = TextRecognitionManager.getInstance(); \n tcrManager.createTrainingSet(imageWithChars, chars, resolution, trainingSetName);\n tcrManager.createNeuralNetwork(neuralNetworkName,transferFunction , resolution, neurons);\n \n // open chars recognition top component (used for testing)\n TopComponent tc = WindowManager.getDefault().findTopComponent(\"TCRTopComponent\");\n tc.open();\n \n // maybe return ts and nn files here in order to open corrresponding project folders...\n return Collections.EMPTY_SET;\n }", "public ActivityRecognitionListener(String name) {\n super(name);\n }", "public SELF the_analyzer_recognizes(Class... classHierarchyToScanFor) {\n builder.addHierarchy(classHierarchyToScanFor);\n return self();\n }", "private Glossary() {\n\n }", "public TrackCoach() {\n\n\t}", "public Training() {\n }", "public Leagues() {\n }", "Match createMatch();", "@Override\n public CreateDocumentClassifierResult createDocumentClassifier(CreateDocumentClassifierRequest request) {\n request = beforeClientExecution(request);\n return executeCreateDocumentClassifier(request);\n }", "public static ConverterRunner createInstance() { return new ConverterRunner(); }", "public Builder setRecognitionId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n recognitionId_ = value;\n onChanged();\n return this;\n }", "public Training() {\n\n }", "public void run() {\n System.out.println(\"main recognition loop started\");\n while (true) {\n try { \n // ask the recognizer to recognize text in the recording\n if(recognizer.getState()==Recognizer.State.READY) {\n Result result = recognizer.recognize(); \n // got a result\n if (result != null) {\n resultText = result.getBestFinalResultNoFiller();\n if(resultText.length()>0) {\n // System.out.println(\"[\"+result.getStartFrame()+\",\"+result.getEndFrame()+\"]\");\n// System.out.println(result.getTimedBestResult(false, true));\n makeEvent();\n }\n }\n }\n }\n catch (Exception e) { \n System.out.println(\"exception Occured \"); \n e.printStackTrace(); \n System.exit(1);\n }\n }\n }", "public interface IRecognitionPlugin {\n /**\n * Base class for output data received from recognition plug-in.\n */\n public class RecognitionOutput {\n }\n\n /**\n * Base class for input data supplied to recognition plug-in.\n */\n public class RecognitionInput {\n private MediaFormat mediaFormat;\n private Frame frame;\n\n /**\n * Sets media format of the content.\n *\n * @param mediaFormat\n */\n public void setMediaFormat(MediaFormat mediaFormat) {\n this.mediaFormat = mediaFormat;\n }\n\n /**\n * Gets media format of the content.\n *\n * @return Media format.\n */\n public MediaFormat getMediaFormat() {\n return mediaFormat;\n }\n\n /**\n * Sets a frame.\n *\n * @param frame\n */\n public void setFrame(Frame frame) {\n this.frame = frame;\n }\n\n /**\n * Gets a frame.\n *\n * @return Frame.\n */\n public Frame getFrame() {\n return frame;\n }\n }\n\n /**\n * Interface for signaling upon content recognition status.\n */\n public interface RecognitionEvent {\n /**\n * Called to notify that content recognition is done.\n */\n public void onContentRecognized(IRecognitionPlugin plugin, RecognitionOutput output);\n }\n\n /**\n * Starts recognition plug-in.\n */\n public void start();\n\n /**\n * Stops recognition plug-in.\n */\n public void stop();\n\n /**\n * Performs content recognition.\n *\n * @param input Data for content recognition.\n * @return Content recognition output.\n */\n public RecognitionOutput recognize(RecognitionInput input);\n}", "private TweetRiver() { }", "public GTFTranslator()\r\n {\r\n // do nothing - no variables to instantiate\r\n }", "public SearchDocument() {\n super();\n }", "Analyzer() {\n\t\tthis(\"\");\n\t}", "public Randomizer()\r\n {\r\n }", "public LarvaSkeleton() {\n\n }", "public WordDictionary() {\n \n \n }", "private void startVoiceRecognitionActivity() {\n\t\t// Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\t// intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n\t\t// RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n\t\t// intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n\t\t// \"Diga o valor do produto\");\n\t\t// intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_PREFERENCE, \"pt-BR\");\n\t\t// // intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_PREFERENCE,\n\t\t// \"en-US\");\n\t\t// intent.putExtra(RecognizerIntent.EXTRA_ONLY_RETURN_LANGUAGE_PREFERENCE,\n\t\t// true);\n\t\t// startActivityForResult(intent, VOICE_RECOGNITION_REQUEST_CODE);\n\t\tUtils.startVoiceRecognitionActivity(this, Utils.nomeProdutoMessage);\n\t}", "public FileCarRecognizer(Path inDir, Path outDir) {\n watcher = new DirectoryWatcher(inDir);\n saver = new FileSaver(outDir);\n }", "private CandidateGenerator() {\n\t}", "public RoAnalyzer() {\n this.stemExclusionSet = RomanianAnalyzer.getDefaultStopSet();\n }", "public MagicSearch createMagicSearch();", "public interface ScoreAnalyzerFactory {\n ScoreAnalyzer create(ScoreProperties scoreProperties);\n}", "public abstract void startVoiceRecognition(String language);", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "public CreateDocumentController() {\n }", "public Train(){\n}", "public Generation(){\n\t\twords = new ArrayList<String>();\n\t}", "private MultiRecognizerGrammarMatch(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private PatternBuilder() { }", "public PartOfSpeechTagger newPartOfSpeechTagger( String className )\r\n\t{\r\n\t\tPartOfSpeechTagger partOfSpeechTagger\t= null;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tpartOfSpeechTagger\t=\r\n\t\t\t\t(PartOfSpeechTagger)Class.forName(\r\n\t\t\t\t\tclassName ).newInstance();\r\n\t\t}\r\n\t\tcatch ( Exception e )\r\n\t\t{\r\n\t\t\tString fixedClassName\t=\r\n\t\t\t\t(String)taggerClassMap.get( className );\r\n\r\n\t\t\tif ( fixedClassName != null )\r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tpartOfSpeechTagger\t=\r\n\t\t\t\t\t\t(PartOfSpeechTagger)Class.forName(\r\n\t\t\t\t\t\t\tfixedClassName ).newInstance();\r\n\t\t\t\t}\r\n\t\t\t\tcatch ( Exception e2 )\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.err.println(\r\n\t\t\t\t\t\t\"Unable to create part of speech tagger of class \" +\r\n\t\t\t\t\t\tfixedClassName + \", using trigram tagger.\" );\r\n\r\n\t\t\t\t\tpartOfSpeechTagger\t= new TrigramTagger();\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\tSystem.err.println(\r\n\t\t\t\t\t\"Unable to create part of speech tagger of class \" +\r\n\t\t\t\t\tclassName + \", using trigram tagger.\" );\r\n\r\n\t\t\t\tpartOfSpeechTagger\t= new TrigramTagger();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn partOfSpeechTagger;\r\n\t}", "public CreateKonceptWorker() {\n\t\tsuper();\n\t\tthis.koncept = new KoncepteParaula();\n\t}", "public KedaConfiguration() {\n }", "public Controller () {\r\n puzzle = null;\r\n words = new ArrayList <String> ();\r\n fileManager = new FileIO ();\r\n }", "@PostMapping()\n\tpublic ResponseEntity<Measure> Recognize(@RequestBody RecognitionDto request) {\n\t\tif(request == null)\n\t\t\treturn new ResponseEntity<>(HttpStatus.BAD_REQUEST);\n\t\tPerson person = personRespository.getOne(request.getPerson_id());\t\t\n\t\tif(person == null || request.getUrl() == null || request.getUrl() == \"\")\n\t\t\treturn new ResponseEntity<>(HttpStatus.BAD_REQUEST);\t\n\t\tImage image = new Image (request.getUrl(), person);\n\t\timageRespository.save(image);\n\t\tMeasure measure = faceApiService.GetMesures(request.getUrl());\n\t\tmeasure.setImage(image);\n\t\tif (measure != null) {\n\t\t\tmeasuresRespository.save(measure);\n\t\t\treturn new ResponseEntity<>(HttpStatus.OK);\n\t\t}\t\n\t\treturn new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);\n\t}", "public Finder() {\n \n }", "public TargetGeneratorModel()\n {\n }", "protected Analyzer() {\n super();\n this.inputClasses = null;\n this.outputFeatures = null;\n this.producesRankings = false;\n this.producesScores = false;\n }", "Instance createInstance();", "public FeatureSynthesisMain() {\n super();\n }", "public static GestorPersonas instanciar(){\n \n if(gestor == null){\n gestor = new GestorPersonas();\n }\n return gestor;\n }", "public SearchedRecipeController() {\n }", "public BasicRecognition (Glyph glyph)\r\n {\r\n super(glyph);\r\n }" ]
[ "0.6085506", "0.60848266", "0.6048725", "0.57988584", "0.5709433", "0.56745243", "0.55067563", "0.54741174", "0.54366386", "0.5422798", "0.53859615", "0.53849685", "0.5368146", "0.53512704", "0.5308702", "0.5261718", "0.5255612", "0.52520615", "0.52112913", "0.5202836", "0.51827025", "0.5166259", "0.5166146", "0.5142062", "0.51152265", "0.5111492", "0.5109721", "0.5096962", "0.5065689", "0.50559783", "0.50469726", "0.50390756", "0.5020108", "0.50064534", "0.49902722", "0.49832392", "0.49710318", "0.49687415", "0.49674752", "0.49610424", "0.4956395", "0.4940055", "0.49364275", "0.49197072", "0.48998287", "0.48837215", "0.48754033", "0.48727754", "0.48681438", "0.4867124", "0.48569873", "0.48544002", "0.48436975", "0.48310947", "0.48277456", "0.48196533", "0.48183647", "0.4816622", "0.48099825", "0.4806033", "0.48023903", "0.4802271", "0.48001558", "0.4793025", "0.47891295", "0.4788845", "0.4788721", "0.47877026", "0.47869334", "0.47760266", "0.47716355", "0.47703606", "0.47660777", "0.47656664", "0.4762522", "0.47582766", "0.4750991", "0.4748437", "0.47479707", "0.47464076", "0.47384176", "0.47360325", "0.47336656", "0.47330782", "0.47314104", "0.47310674", "0.47275513", "0.47260067", "0.4725651", "0.4723436", "0.47230121", "0.47109786", "0.4707583", "0.47021392", "0.46976513", "0.4693912", "0.4693273", "0.4691206", "0.46893063", "0.4687579" ]
0.6465914
0
Create an empty customizable filesystem info. That is intended for creating of new filesystem information, that were not recognized automatically.
public FSInfo createFSInfo() { return new CommandLineVcsFileSystemInfo(FileUtil.normalizeFile(new File("")), null, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\n private HsmFileSystemInfo() {\n this((String) null);\n }", "@Model \r\n\tprivate static String getDefaultName() {\r\n\t\treturn \"new_fileSystem\";\r\n\t}", "protected FileSystem createFileSystem()\n throws SmartFrogException, RemoteException {\n ManagedConfiguration conf = createConfiguration();\n FileSystem fileSystem = DfsUtils.createFileSystem(conf);\n return fileSystem;\n }", "private SensorData collectFSInfo() throws SigarException {\n \n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Collecting File System Information\");\n }\n \n SensorData data = new SensorData();\n \n FileSystem[] fileSystems = sigar.getFileSystemList();\n \n List<FileSystemInfo> fsInfoList = new ArrayList<FileSystemInfo>();\n \n for (FileSystem fs : fileSystems) {\n \n FileSystemInfo info = new FileSystemInfo();\n \n info.setDiskName(fs.getDevName());\n info.setLocation(fs.getDirName());\n info.setType(fs.getSysTypeName());\n \n FileSystemUsage fsu = sigar.getFileSystemUsage(fs.getDirName());\n \n info.setTotalMB(fsu.getTotal() / 1024);\n info.setUsedMB(fsu.getUsed() / 1024);\n \n fsInfoList.add(info);\n }\n \n data.add(SensorAttributeConstants.FileSystemConstants.FS_DATA, fsInfoList);\n \n return data;\n }", "@Override\n public void createDirectory(File storageName) throws IOException {\n }", "public FileSystem getDefaultFileSystem () {\n return system;\n }", "DiscFileSystemInfo getFileSystemInfo(String path) throws IOException;", "protected FileSystem() {\n\t}", "private void createFileHierarchie() throws IOException {\r\n\t\tlog.debug(\"START: SBIWebServer.createFileHierarchie\");\r\n\t\t// Create logs directory if not exist\r\n\t\tPath logPath = Paths.get(DEFAULT_LOG_LOCATION);\r\n\t\tif (!Files.exists(logPath)) {\r\n\t\t\tFiles.createDirectory(Paths.get(DEFAULT_LOG_LOCATION));\r\n\t\t\tlog.debug(\"Directory \"+DEFAULT_LOG_LOCATION+\" created\");\r\n\t\t}else {\r\n\t\t\tlog.debug(\"Directory \"+DEFAULT_LOG_LOCATION+\" already exists\");\r\n\t\t}\r\n\t\t\r\n\t\t// Create default server.xml\r\n\t\tPath serverConfigPath = Paths.get(CONFIG_SERVER_LOCATION);\r\n\t\tif (!Files.exists(serverConfigPath)) {\r\n\t\t\tXmlServerConfig xml = ConfigurationFactory.createDefaultXmlServerConfig();\r\n\t\t\ttry {\r\n\t\t\t\tXmlHelper.storeXml(xml, new File(CONFIG_SERVER_LOCATION));\r\n\t\t\t\tlog.debug(\"File \"+CONFIG_SERVER_LOCATION+\" created\");\r\n\t\t\t} catch (JAXBException e) {\r\n\t\t\t\tlog.error(\"Cannot store \"+CONFIG_SERVER_LOCATION,e);\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tlog.debug(\"File \"+CONFIG_SERVER_LOCATION+\" already exists\");\r\n\t\t}\r\n\t\tlog.debug(\"END: SBIWebServer.createFileHierarchie\");\r\n\t}", "@Override\n public StorageOutputStream create(File file) throws IOException {\n\treturn null;\n }", "public static IRcSettingInfo createEmptyRcSettingInfo(CFolderData data){\n\t\treturn createRcSettingInfo(data, PathInfo.EMPTY_INFO);\n\t}", "public interface IFileSystem {\n\n /** */\n String TOP_DIRECTORY_ONLY = \"TopDirectoryOnly\";\n /** */\n String ALL_DIRECTORIES = \"AllDirectories\";\n\n /**\n * Gets a value indicating whether the file system is read-only or\n * read-write.\n *\n * @return true if the file system is read-write.\n */\n boolean canWrite();\n\n /**\n * Gets a value indicating whether the file system is thread-safe.\n */\n boolean isThreadSafe();\n\n /**\n * Gets the root directory of the file system.\n */\n DiscDirectoryInfo getRoot();\n\n /**\n * Copies an existing file to a new file.\n *\n * @param sourceFile The source file.\n * @param destinationFile The destination file.\n */\n void copyFile(String sourceFile, String destinationFile) throws IOException;\n\n /**\n * Copies an existing file to a new file, allowing overwriting of an\n * existing file.\n *\n * @param sourceFile The source file.\n * @param destinationFile The destination file.\n * @param overwrite Whether to permit over-writing of an existing file.\n */\n void copyFile(String sourceFile, String destinationFile, boolean overwrite) throws IOException;\n\n /**\n * Creates a directory.\n *\n * @param path The path of the new directory.\n */\n void createDirectory(String path) throws IOException;\n\n /**\n * Deletes a directory.\n *\n * @param path The path of the directory to delete.\n */\n void deleteDirectory(String path) throws IOException;\n\n /**\n * Deletes a directory, optionally with all descendants.\n *\n * @param path The path of the directory to delete.\n * @param recursive Determines if the all descendants should be deleted.\n */\n void deleteDirectory(String path, boolean recursive) throws IOException;\n\n /**\n * Deletes a file.\n *\n * @param path The path of the file to delete.\n */\n void deleteFile(String path) throws IOException;\n\n /**\n * Indicates if a directory exists.\n *\n * @param path The path to test.\n * @return true if the directory exists.\n */\n boolean directoryExists(String path) throws IOException;\n\n /**\n * Indicates if a file exists.\n *\n * @param path The path to test.\n * @return true if the file exists.\n */\n boolean fileExists(String path) throws IOException;\n\n /**\n * Indicates if a file or directory exists.\n *\n * @param path The path to test.\n * @return true if the file or directory exists.\n */\n boolean exists(String path) throws IOException;\n\n /**\n * Gets the names of subdirectories in a specified directory.\n *\n * @param path The path to search.\n * @return list of directories.\n */\n List<String> getDirectories(String path) throws IOException;\n\n /**\n * Gets the names of subdirectories in a specified directory matching a\n * specified search pattern.\n *\n * @param path The path to search.\n * @param searchPattern The search string to match against.\n * @return list of directories matching the search pattern.\n */\n List<String> getDirectories(String path, String searchPattern) throws IOException;\n\n /**\n * Gets the names of subdirectories in a specified directory matching a\n * specified search pattern, using a value to determine whether to search\n * subdirectories.\n *\n * @param path The path to search.\n * @param searchPattern The search string to match against.\n * @param searchOption Indicates whether to search subdirectories.\n * @return list of directories matching the search pattern.\n */\n List<String> getDirectories(String path, String searchPattern, String searchOption) throws IOException;\n\n /**\n * Gets the names of files in a specified directory.\n *\n * @param path The path to search.\n * @return list of files.\n */\n List<String> getFiles(String path) throws IOException;\n\n /**\n * Gets the names of files in a specified directory.\n *\n * @param path The path to search.\n * @param searchPattern The search string to match against.\n * @return list of files matching the search pattern.\n */\n List<String> getFiles(String path, String searchPattern) throws IOException;\n\n /**\n * Gets the names of files in a specified directory matching a specified\n * search pattern, using a value to determine whether to search\n * subdirectories.\n *\n * @param path The path to search.\n * @param searchPattern The search string to match against.\n * @param searchOption Indicates whether to search subdirectories.\n * @return list of files matching the search pattern.\n */\n List<String> getFiles(String path, String searchPattern, String searchOption) throws IOException;\n\n /**\n * Gets the names of all files and subdirectories in a specified directory.\n *\n * @param path The path to search.\n * @return list of files and subdirectories matching the search pattern.\n */\n List<String> getFileSystemEntries(String path) throws IOException;\n\n /**\n * Gets the names of files and subdirectories in a specified directory\n * matching a specified search pattern.\n *\n * @param path The path to search.\n * @param searchPattern The search string to match against.\n * @return list of files and subdirectories matching the search pattern.\n */\n List<String> getFileSystemEntries(String path, String searchPattern) throws IOException;\n\n /**\n * Moves a directory.\n *\n * @param sourceDirectoryName The directory to move.\n * @param destinationDirectoryName The target directory name.\n */\n void moveDirectory(String sourceDirectoryName, String destinationDirectoryName) throws IOException;\n\n /**\n * Moves a file.\n *\n * @param sourceName The file to move.\n * @param destinationName The target file name.\n */\n void moveFile(String sourceName, String destinationName) throws IOException;\n\n /**\n * Moves a file, allowing an existing file to be overwritten.\n *\n * @param sourceName The file to move.\n * @param destinationName The target file name.\n * @param overwrite Whether to permit a destination file to be overwritten.\n */\n void moveFile(String sourceName, String destinationName, boolean overwrite) throws IOException;\n\n /**\n * Opens the specified file.\n *\n * @param path The full path of the file to open.\n * @param mode The file mode for the created stream.\n * @return The new stream.\n */\n SparseStream openFile(String path, FileMode mode) throws IOException;\n\n /**\n * Opens the specified file.\n *\n * @param path The full path of the file to open.\n * @param mode The file mode for the created stream.\n * @param access The access permissions for the created stream.\n * @return The new stream.\n */\n SparseStream openFile(String path, FileMode mode, FileAccess access) throws IOException;\n\n /**\n * Gets the attributes of a file or directory.\n *\n * @param path The file or directory to inspect.\n * @return The attributes of the file or directory.\n */\n Map<String, Object> getAttributes(String path) throws IOException;\n\n /**\n * Sets the attributes of a file or directory.\n *\n * @param path The file or directory to change.\n * @param newValue The new attributes of the file or directory.\n */\n void setAttributes(String path, Map<String, Object> newValue) throws IOException;\n\n /**\n * Gets the creation time (in local time) of a file or directory.\n *\n * @param path The path of the file or directory.\n * @return The creation time.\n */\n long getCreationTime(String path) throws IOException;\n\n /**\n * Sets the creation time (in local time) of a file or directory.\n *\n * @param path The path of the file or directory.\n * @param newTime The new time to set.\n */\n void setCreationTime(String path, long newTime) throws IOException;\n\n /**\n * Gets the creation time (in UTC) of a file or directory.\n *\n * @param path The path of the file or directory.\n * @return The creation time.\n */\n long getCreationTimeUtc(String path) throws IOException;\n\n /**\n * Sets the creation time (in UTC) of a file or directory.\n *\n * @param path The path of the file or directory.\n * @param newTime The new time to set.\n */\n void setCreationTimeUtc(String path, long newTime) throws IOException;\n\n /**\n * Gets the last access time (in local time) of a file or directory.\n *\n * @param path The path of the file or directory.\n * @return The last access time.\n */\n long getLastAccessTime(String path) throws IOException;\n\n /**\n * Sets the last access time (in local time) of a file or directory.\n *\n * @param path The path of the file or directory.\n * @param newTime The new time to set.\n */\n void setLastAccessTime(String path, long newTime) throws IOException;\n\n /**\n * Gets the last access time (in UTC) of a file or directory.\n *\n * @param path The path of the file or directory.\n * @return The last access time.\n */\n long getLastAccessTimeUtc(String path) throws IOException;\n\n /**\n * Sets the last access time (in UTC) of a file or directory.\n *\n * @param path The path of the file or directory.\n * @param newTime The new time to set.\n */\n void setLastAccessTimeUtc(String path, long newTime) throws IOException;\n\n /**\n * Gets the last modification time (in local time) of a file or directory.\n *\n * @param path The path of the file or directory.\n * @return The last write time.\n */\n long getLastWriteTime(String path) throws IOException;\n\n /**\n * Sets the last modification time (in local time) of a file or directory.\n *\n * @param path The path of the file or directory.\n * @param newTime The new time to set.\n */\n void setLastWriteTime(String path, long newTime) throws IOException;\n\n /**\n * Gets the last modification time (in UTC) of a file or directory.\n *\n * @param path The path of the file or directory.\n * @return The last write time.\n */\n long getLastWriteTimeUtc(String path) throws IOException;\n\n /**\n * Sets the last modification time (in UTC) of a file or directory.\n *\n * @param path The path of the file or directory.\n * @param newTime The new time to set.\n */\n void setLastWriteTimeUtc(String path, long newTime) throws IOException;\n\n /**\n * Gets the length of a file.\n *\n * @param path The path to the file.\n * @return The length in bytes.\n */\n long getFileLength(String path) throws IOException;\n\n /**\n * Gets an object representing a possible file.\n *\n * The file does not need to exist.\n *\n * @param path The file path.\n * @return The representing object.\n */\n DiscFileInfo getFileInfo(String path) throws IOException;\n\n /**\n * Gets an object representing a possible directory.\n *\n * The directory does not need to exist.\n *\n * @param path The directory path.\n * @return The representing object.\n */\n DiscDirectoryInfo getDirectoryInfo(String path) throws IOException;\n\n /**\n * Gets an object representing a possible file system object (file or\n * directory).\n *\n * The file system object does not need to exist.\n *\n * @param path The file system path.\n * @return The representing object.\n */\n DiscFileSystemInfo getFileSystemInfo(String path) throws IOException;\n\n /**\n * Reads the boot code of the file system into a byte array.\n *\n * @return The boot code, or {@code null} if not available.\n */\n byte[] readBootCode() throws IOException;\n\n /**\n * Size of the Filesystem in bytes\n */\n long getSize() throws IOException;\n\n /**\n * Used space of the Filesystem in bytes\n */\n long getUsedSpace() throws IOException;\n\n /**\n * Available space of the Filesystem in bytes\n */\n long getAvailableSpace() throws IOException;\n\n}", "private void createFiOrDi(Directory root, String type, int freeBlock) {\n\t\tif(Constants.DIRECTORY_FILE.equals(type)) {\n\t\t\tsector.put(freeBlock, new Directory());\n\t\t} else {\n\t\t\tsector.put(freeBlock, new Data());\n\t\t}\n\t}", "public UnixFakeFileSystem() {\n this.setDirectoryListingFormatter(new UnixDirectoryListingFormatter());\n }", "public static IRcSettingInfo createEmptyRcSettingInfo(CFileData data){\n\t\treturn createRcSettingInfo(data, PathInfo.EMPTY_INFO);\n\t}", "private void initFileSystem() {\n\tchkSD();\n\t appDirectory = new File(\"/sdcard/Subway/\");\n\n\t\tif(appDirectory.mkdirs()){\n\t\t\t//BRAND NEW PERSON PROJECT FIRST TIME THEY HAVE THE PHONE\n\t\t\tLog.e(\"SY\", \"First time with app!\");\n\t\t\tchangeUser();\n\t\t\n\t\t}\n\t\telse{\n\t\t\tappDirectory.mkdirs();\n\t\t\tLog.e(\"MYTT\", \"Used the App before\");\n\t\t\t\n\t\t\talreadyThereProjects = new ArrayList<String>();\n\n\t\t\t// Note that Arrays.asList returns a horrible fixed length list, Make\n\t\t\t// sure to cast to ArrayList\n\n\t\t\t\talreadyThereProjects = new ArrayList<String>(Arrays.asList(appDirectory.list()));\n\t\t\t\tif(alreadyThereProjects.size()>0)\n\t\t\t\t{\n\t\t\t\tuserID=Integer.parseInt( alreadyThereProjects.get(0).substring(5));\n\t\t\t\tmakeUser();\n\t\t\t\tloadUpAllPics();\n\t\t\t\tLog.e(\"SY\", \"THERE WAS ALREADY ONE:\"+alreadyThereProjects.get(0).substring(5));\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tchangeUser();\n\t\t\t\t}\n\t\t\t\n\t\t}\n\n\n\t\t\t\n}", "public SystemInfo() {\r\n\t}", "public DiskEncryptionInfo() {\n }", "private void createCatalogFileIfNoneExists(){\n\t\t\n\t\tinOut = new IOUtility();\n\t\t\n\t\tif (inOut.checkLocalCache()) {\n\t\t\tcatalog = inOut.readCatalogFromFile();\n\t\t}\n\n\t\telse {\n\n\t\t\ttry {\n\t\t\t\tinOut.createCatalogFile();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t} \n\t\t}\n\t\t\n\t}", "@Before\n public void init(){\n spaceCapacity = 20;\n fileSystem = new FileSystem(spaceCapacity);\n }", "@Override\n public FSDataOutputStream create(Path f) throws IOException {\n return super.create(f);\n }", "private FileUtil() {\n \t\tsuper();\n \t}", "Data() throws IOException {\n // Initialise new default path from scratch\n path = Path.of(\"src/main/data/duke.txt\");\n new File(\"src/main/data\").mkdirs();\n new File(path.toString()).createNewFile();\n }", "public FileInfo()\r\n {\r\n hash = new HashInfo();\r\n }", "private SystemInfo() {\n }", "private FSDataOutputStream createNewFile() throws Exception {\n\t\tlogger.traceEntry();\n\t\tPath newFile = new Path(rootDirectory, \"dim_\" + System.currentTimeMillis() + \".json\");\n\t\tlogger.debug(\"Creating file \" + newFile.getName());\n\t\tFSDataOutputStream dataOutputStream = null;\n\n\t\tif (!hadoopFileSystem.exists(newFile)) {\n\t\t\tdataOutputStream = hadoopFileSystem.create(newFile);\n\t\t} else {\n\t\t\tdataOutputStream = hadoopFileSystem.append(newFile);\n\t\t}\n\n\t\tdataOutputStreams.clear();\n\t\tdataOutputStreams.add(dataOutputStream);\n\t\tlogger.traceExit();\n\t\treturn dataOutputStream;\n\t}", "private FSUtils() {\n }", "public static FileData createEntity() {\n FileData fileData = Reflections.createObj(FileData.class, Lists.newArrayList(\n\t\t FileData.F_NAME\n\t\t,FileData.F_PATH\n\t\t,FileData.F_SIZE\n\t\t,FileData.F_TYPE\n\t\t,FileData.F_DESCRIPTION\n ),\n\n\t\t DEFAULT_NAME\n\n\t\t,DEFAULT_PATH\n\n\t\t,DEFAULT_SIZE\n\n\t\t,DEFAULT_TYPE\n\n\n\n\n\n\n\t\t,DEFAULT_DESCRIPTION\n\n\t);\n return fileData;\n }", "public interface CreateInfo {\n\n /**\n * 创建目录容器\n */\n void superContextPath();\n\n}", "public static FileSystemOptions getDefaultFileSystemOptions()\n {\n return defaultOptions;\n }", "public void openBlankXmlFile() {\n\t\t\n\t\t// the root of the xmlElement tree\n\t\trootNode = new XmlNode(this);\n\t\tXmlElement rootField = rootNode.getXmlElement();\n\t\t\n\t\trootField.setName(\"rootElement\", true);\n\t\t\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\trootNode.addChild(newNode);\n\t}", "private void init() throws IOException {\n if (Files.exists(getBaseConfigPath()) && !Files.isDirectory(getBaseConfigPath())) {\n throw new IOException(\"Base config path exists and is not a directory \" + getBaseConfigPath());\n }\n\n if (!Files.exists(getBaseConfigPath())) {\n Files.createDirectories(getBaseConfigPath());\n }\n\n\n if (Files.exists(nodeIdPath) && !Files.isRegularFile(nodeIdPath)) {\n throw new IOException(\"NodeId file is not a regular directory!\");\n }\n\n if (Files.exists(clusterNamePath) && !Files.isRegularFile(clusterNamePath)) {\n throw new IOException(\"Cluster name is not a regular directory!\");\n }\n\n if (!Files.isWritable(getBaseConfigPath())) {\n throw new IOException(\"Can't write to the base configuration path!\");\n }\n }", "public final static void createNullFile(String nFile) {\r\n File file = new File(nFile);\r\n try {\r\n if (!file.exists())\r\n file.createNewFile();\r\n }\r\n catch (IOException ex) {\r\n }\r\n }", "@Test\n public void testConstructor_Custom_Store_File() {\n\n File file = new File(\n System.getProperty(\"java.io.tmpdir\") + File.separator + \"oasis-list-testConstructor_Custom_Store_File\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n File[] subDirs = file.listFiles();\n\n assertNotNull(subDirs);\n }", "private FileEntry() {\n // intentionally empty\n }", "public interface IFileSysOperationsFactory\n{\n public IPathCopier getCopier(boolean requiresDeletionBeforeCreation);\n\n public IImmutableCopier getImmutableCopier();\n\n public IPathRemover getRemover();\n\n public IPathMover getMover();\n\n /**\n * Tries to find the <code>ssh</code> executable.\n * \n * @return <code>null</code> if not found.\n */\n public File tryFindSshExecutable();\n\n /**\n * Returns the rsync executable on the incoming host, if any has been set. Otherwise <code>null</code> is returned.\n */\n public String tryGetIncomingRsyncExecutable();\n\n /**\n * Returns the rsync executable on the incoming host, if any has been set. Otherwise <code>null</code> is returned.\n */\n public String tryGetOutgoingRsyncExecutable();\n}", "@BeforeClass\n public static void createOriginalFSImage() throws IOException {\n MiniDFSCluster cluster = null;\n try {\n Configuration conf = new Configuration();\n conf.setBoolean(DFSConfigKeys.DFS_NAMENODE_ACLS_ENABLED_KEY, true);\n conf.setBoolean(DFSConfigKeys.DFS_STORAGE_POLICY_ENABLED_KEY, true);\n\n File[] nnDirs = MiniDFSCluster.getNameNodeDirectory(\n MiniDFSCluster.getBaseDirectory(), 0, 0);\n tempDir = nnDirs[0];\n\n cluster = new MiniDFSCluster.Builder(conf).build();\n cluster.waitActive();\n DistributedFileSystem hdfs = cluster.getFileSystem();\n\n Path dir = new Path(\"/dir_wo_sp\");\n hdfs.mkdirs(dir);\n\n dir = new Path(\"/dir_wo_sp/sub_dir_wo_sp\");\n hdfs.mkdirs(dir);\n\n dir = new Path(\"/dir_wo_sp/sub_dir_w_sp_allssd\");\n hdfs.mkdirs(dir);\n hdfs.setStoragePolicy(dir, ALLSSD_STORAGE_POLICY_NAME);\n\n Path file = new Path(\"/dir_wo_sp/file_wo_sp\");\n try (FSDataOutputStream o = hdfs.create(file)) {\n o.write(123);\n o.close();\n }\n\n file = new Path(\"/dir_wo_sp/file_w_sp_allssd\");\n try (FSDataOutputStream o = hdfs.create(file)) {\n o.write(123);\n o.close();\n hdfs.setStoragePolicy(file, HdfsConstants.ALLSSD_STORAGE_POLICY_NAME);\n }\n\n dir = new Path(\"/dir_w_sp_allssd\");\n hdfs.mkdirs(dir);\n hdfs.setStoragePolicy(dir, HdfsConstants.ALLSSD_STORAGE_POLICY_NAME);\n\n dir = new Path(\"/dir_w_sp_allssd/sub_dir_wo_sp\");\n hdfs.mkdirs(dir);\n\n file = new Path(\"/dir_w_sp_allssd/file_wo_sp\");\n try (FSDataOutputStream o = hdfs.create(file)) {\n o.write(123);\n o.close();\n }\n\n dir = new Path(\"/dir_w_sp_allssd/sub_dir_w_sp_hot\");\n hdfs.mkdirs(dir);\n hdfs.setStoragePolicy(dir, HdfsConstants.HOT_STORAGE_POLICY_NAME);\n\n // Write results to the fsimage file\n hdfs.setSafeMode(SafeModeAction.ENTER, false);\n hdfs.saveNamespace();\n\n // Determine the location of the fsimage file\n originalFsimage = FSImageTestUtil.findLatestImageFile(FSImageTestUtil\n .getFSImage(cluster.getNameNode()).getStorage().getStorageDir(0));\n if (originalFsimage == null) {\n throw new RuntimeException(\"Didn't generate or can't find fsimage\");\n }\n LOG.debug(\"original FS image file is \" + originalFsimage);\n } finally {\n if (cluster != null) {\n cluster.shutdown();\n }\n }\n }", "FileInfo create(FileInfo fileInfo);", "public Object clone() {\n\t\treturn(new FileSystem(_device, _mount, _type));\n\t}", "private File createEmptyDirectory() throws IOException {\n File emptyDirectory = findNonExistentDirectory();\n if (emptyDirectory.mkdir() == false) {\n throw new IOException(\"Can't create \" + emptyDirectory);\n }\n\n return emptyDirectory;\n }", "public MemoryEntryInfo createMemoryEntryInfo() {\n\t\tMemoryEntryInfo info = new MemoryEntryInfo(new HashMap<String, Object>(this.info.getProperties()));\n\t\tinfo.getProperties().put(MemoryEntryInfo.FILE_MD5, md5);\n\t\tinfo.getProperties().put(MemoryEntryInfo.FILENAME, fileName);\n\t\tinfo.getProperties().put(MemoryEntryInfo.OFFSET, fileoffs);\n\t\treturn info;\n\t}", "private SystemInfo() {\r\n // forbid object construction \r\n }", "private void putDefaultInformation() throws FileNotFoundException, SQLException, IOException {\n staff_name = \"Sin informacion\";\n staff_surname = \"Sin informacion\";\n id_type = \"Sin informacion\";\n id_number = \"Sin informacion\";\n putProfPic(null);\n phone_number = \"Sin informacion\";\n mobile_number = \"Sin informacion\";\n email = \"Sin informacion\";\n birthdate = GBEnvironment.getInstance().serverDate();\n gender = \"Seleccione sexo\";\n }", "@Override\n public String getSystemDir() {\n return null;\n }", "public SimpleDirectory() {\n this.container = new Entry[SimpleDirectory.DEFAULT_SIZE];\n this.loadFactor = SimpleDirectory.DEFAULT_LOAD_FACTOR;\n }", "private FileUtility() {\r\n\t}", "private void initializeFileSystem(final IndexedDiskCacheAttributes cattr)\r\n {\r\n this.rafDir = cattr.getDiskPath();\r\n log.info(\"{0}: Cache file root directory: {1}\", logCacheName, rafDir);\r\n }", "public void makeRoot() throws FileSystemNotWritableException {\r\n\tif (isWritable()) {\r\n\t\tsetModificationTime();\r\n\t\tsetDir(null);\r\n\t}\r\n\telse {\r\n\t\tthrow new FileSystemNotWritableException(this);\r\n\t}\r\n}", "public File() {\n\t\tthis.name = \"\";\n\t\tthis.data = \"\";\n\t\tthis.creationTime = 0;\n\t}", "public interface FileSystem {\n\n /**\n * Add the specified file system entry (file or directory) to this file system\n *\n * @param entry - the FileSystemEntry to add\n */\n public void add(FileSystemEntry entry);\n\n /**\n * Return the List of FileSystemEntry objects for the files in the specified directory path. If the\n * path does not refer to a valid directory, then an empty List is returned.\n *\n * @param path - the path of the directory whose contents should be returned\n * @return the List of FileSystemEntry objects for all files in the specified directory may be empty\n */\n public List listFiles(String path);\n\n /**\n * Return the List of filenames in the specified directory path. The returned filenames do not\n * include a path. If the path does not refer to a valid directory, then an empty List is\n * returned.\n *\n * @param path - the path of the directory whose contents should be returned\n * @return the List of filenames (not including paths) for all files in the specified directory\n * may be empty\n * @throws AssertionError - if path is null\n */\n public List listNames(String path);\n\n /**\n * Delete the file or directory specified by the path. Return true if the file is successfully\n * deleted, false otherwise. If the path refers to a directory, it must be empty. Return false\n * if the path does not refer to a valid file or directory or if it is a non-empty directory.\n *\n * @param path - the path of the file or directory to delete\n * @return true if the file or directory is successfully deleted\n * @throws AssertionError - if path is null\n */\n public boolean delete(String path);\n\n /**\n * Rename the file or directory. Specify the FROM path and the TO path. Throw an exception if the FROM path or\n * the parent directory of the TO path do not exist; or if the rename fails for another reason.\n *\n * @param fromPath - the source (old) path + filename\n * @param toPath - the target (new) path + filename\n * @throws AssertionError - if fromPath or toPath is null\n * @throws FileSystemException - if the rename fails.\n */\n public void rename(String fromPath, String toPath);\n\n /**\n * Return the formatted directory listing entry for the file represented by the specified FileSystemEntry\n *\n * @param fileSystemEntry - the FileSystemEntry representing the file or directory entry to be formatted\n * @return the the formatted directory listing entry\n */\n public String formatDirectoryListing(FileSystemEntry fileSystemEntry);\n\n //-------------------------------------------------------------------------\n // Path-related Methods\n //-------------------------------------------------------------------------\n\n /**\n * Return true if there exists a file or directory at the specified path\n *\n * @param path - the path\n * @return true if the file/directory exists\n * @throws AssertionError - if path is null\n */\n public boolean exists(String path);\n\n /**\n * Return true if the specified path designates an existing directory, false otherwise\n *\n * @param path - the path\n * @return true if path is a directory, false otherwise\n * @throws AssertionError - if path is null\n */\n public boolean isDirectory(String path);\n\n /**\n * Return true if the specified path designates an existing file, false otherwise\n *\n * @param path - the path\n * @return true if path is a file, false otherwise\n * @throws AssertionError - if path is null\n */\n public boolean isFile(String path);\n\n /**\n * Return true if the specified path designates an absolute file path. What\n * constitutes an absolute path is dependent on the file system implementation.\n *\n * @param path - the path\n * @return true if path is absolute, false otherwise\n * @throws AssertionError - if path is null\n */\n public boolean isAbsolute(String path);\n\n /**\n * Build a path from the two path components. Concatenate path1 and path2. Insert the file system-dependent\n * separator character in between if necessary (i.e., if both are non-empty and path1 does not already\n * end with a separator character AND path2 does not begin with one).\n *\n * @param path1 - the first path component may be null or empty\n * @param path2 - the second path component may be null or empty\n * @return the path resulting from concatenating path1 to path2\n */\n public String path(String path1, String path2);\n\n /**\n * Returns the FileSystemEntry object representing the file system entry at the specified path, or null\n * if the path does not specify an existing file or directory within this file system.\n *\n * @param path - the path of the file or directory within this file system\n * @return the FileSystemEntry containing the information for the file or directory, or else null\n */\n public FileSystemEntry getEntry(String path);\n\n /**\n * Return the parent path of the specified path. If <code>path</code> specifies a filename,\n * then this method returns the path of the directory containing that file. If <code>path</code>\n * specifies a directory, the this method returns its parent directory. If <code>path</code> is\n * empty or does not have a parent component, then return an empty string.\n * <p/>\n * All path separators in the returned path are converted to the system-dependent separator character.\n *\n * @param path - the path\n * @return the parent of the specified path, or null if <code>path</code> has no parent\n * @throws AssertionError - if path is null\n */\n public String getParent(String path);\n\n}", "private FileUtil() {}", "private FileManager() {}", "@Override\n public HashMap initFileSet()\n {\n return null;\n }", "private StorageSystemConfiguration() {\r\n super(IStorageSystemConfiguration.TYPE_ID);\r\n }", "@Nonnull\r\n @Override\r\n public FileSystem produce() throws IOException {\r\n return newInstance();\r\n }", "@Override\r\n\tprotected AbstractElement createDefaultRoot() {\n\t\tthis.writeLock();\r\n\r\n\t\tthis.branchContext = BranchContext.FILE_HEADER;\r\n\t\tthis.leafContext = LeafContext.OTHER;\r\n\r\n\t\tBranchElement root = new SectionElement();\r\n\t\tBranchElement branch = (BranchElement) this.createBranchElement(root, null);\r\n\t\tbranch.replace(0, 0, new Element[] { this.createLeafElement(branch, null, 0, 1) });\r\n\t\troot.replace(0, 0, new Element[] { branch });\r\n\r\n\t\tthis.writeUnlock();\r\n\r\n\t\treturn root;\r\n\t}", "public static FileSystem newInstance() throws IOException {\r\n Configuration hdfsConf = HadoopHelper.getDefaultConf();\r\n hdfsConf.setBoolean(\"fs.hdfs.impl.disable.cache\", true);\r\n return FileSystem.newInstance(hdfsConf);\r\n }", "@Test\n public void testConstructor_Custom_Store_String() {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testConstructor_Custom_Store_String\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(file.getAbsolutePath());\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n File[] subDirs = file.listFiles();\n\n assertNotNull(subDirs);\n\n }", "private void initializeFileSystem() \r\n \t /*@ requires identityFile |-> _ &*& identityFileSignature |-> _ &*& addressFile |-> _ &*& addressFileSignature |-> _\r\n\t\t\t &*& caRoleIDFile |-> _ &*& preferencesFile |-> _ &*& idDirectory |-> _\r\n\t\t\t &*& certificateDirectoryFile |-> _ &*& privateKeyDirectoryFile |-> _ &*& authenticationObjectDirectoryFile |-> _ &*& objectDirectoryFile |-> _\r\n\t\t\t &*& tokenInfo |-> _ &*& belpicDirectory |-> _ &*& dirFile |-> _\r\n\t\t\t &*& masterFile |-> _ &*& selectedFile |-> _;\r\n\t @*/\r\n \t/*@ ensures dirFile |-> ?theDirFile &*& theDirFile.ElementaryFile(_, _, ?dirFileData, _, _, _) &*& theDirFile != null \r\n \t &*& dirFileData != null &*& dirFileData.length == 0x25\r\n\t &*& belpicDirectory |-> ?theBelpicDirectory &*& theBelpicDirectory.DedicatedFile(_, _, _, ?belpic_siblings, _) &*& theBelpicDirectory != null\r\n\t &*& tokenInfo |-> ?theTokenInfo &*& theTokenInfo.ElementaryFile(_, _, ?tokenInfoData, _, _, _) &*& theTokenInfo != null\r\n\t &*& tokenInfoData != null &*& tokenInfoData.length == 0x30\r\n\t &*& objectDirectoryFile |-> ?theObjectDirectoryFile &*& theObjectDirectoryFile.ElementaryFile(_, _, ?objectDirectoryFileData, _, _, _) &*& theObjectDirectoryFile != null\r\n\t &*& objectDirectoryFileData != null &*& objectDirectoryFileData.length == 40\r\n\t &*& authenticationObjectDirectoryFile |-> ?theAuthenticationObjectDirectoryFile &*& theAuthenticationObjectDirectoryFile.ElementaryFile(_, _, ?authenticationObjectDirectoryFileData, _, _, _) &*& theAuthenticationObjectDirectoryFile != null\r\n\t &*& authenticationObjectDirectoryFileData != null &*& authenticationObjectDirectoryFileData.length == 0x40\r\n\t &*& privateKeyDirectoryFile |-> ?thePrivateKeyDirectoryFile &*& thePrivateKeyDirectoryFile.ElementaryFile(_, _, ?privateKeyDirectoryFileData, _, _, _) &*& thePrivateKeyDirectoryFile != null\r\n\t &*& privateKeyDirectoryFileData != null &*& privateKeyDirectoryFileData.length == 0xB0\r\n\t &*& certificateDirectoryFile |-> ?theCertificateDirectoryFile &*& theCertificateDirectoryFile.ElementaryFile(_, _, ?certificateDirectoryFileData, _, _, _) &*& theCertificateDirectoryFile != null\r\n\t &*& certificateDirectoryFileData != null &*& certificateDirectoryFileData.length == 0xB0\r\n\t &*& idDirectory |-> ?theIdDirectory &*& theIdDirectory.DedicatedFile(_, _, _, ?idDirectory_siblings, _) &*& theIdDirectory != null\r\n\t &*& identityFile |-> ?theIdentityFile &*& theIdentityFile.ElementaryFile(_, _, ?identityData, _, _, _) &*& theIdentityFile != null\r\n\t &*& identityData != null &*& identityData.length == 0xD0\r\n\t &*& identityFileSignature |-> ?theIdentityFileSignature &*& theIdentityFileSignature.ElementaryFile(_, _, ?identitySignatureData, _, _, _) &*& theIdentityFileSignature != null\r\n\t &*& identitySignatureData != null &*& identitySignatureData.length == 0x80\r\n\t &*& addressFile |-> ?theAddressFile &*& theAddressFile.ElementaryFile(_, _, ?addressFileData, _, _, _) &*& theAddressFile != null\r\n\t &*& addressFileData != null &*& addressFileData.length == 117\r\n\t &*& addressFileSignature |-> ?theAddressFileSignature &*& theAddressFileSignature.ElementaryFile(_, _, ?addressFileSignatureData, _, _, _) &*& theAddressFileSignature != null\r\n\t &*& addressFileSignatureData != null &*& addressFileSignatureData.length == 128\r\n\t &*& caRoleIDFile |-> ?theCaRoleIDFile &*& theCaRoleIDFile.ElementaryFile(_, _, ?caRoldIDFileData, _, _, _) &*& theCaRoleIDFile != null\r\n\t &*& caRoldIDFileData != null &*& caRoldIDFileData.length == 0x20\r\n\t &*& preferencesFile |-> ?thePreferencesFile &*& thePreferencesFile.ElementaryFile(_, _, ?preferencesFileData, _, _, _) &*& thePreferencesFile != null\r\n\t &*& preferencesFileData != null &*& preferencesFileData.length == 100\r\n\t &*& masterFile |-> ?theMasterFile &*& theMasterFile.MasterFile(0x3F00, null, _, ?master_siblings, _) &*& theMasterFile != null\r\n\t &*& master_siblings == cons<File>(theDirFile, cons(theBelpicDirectory, cons(theIdDirectory, nil)))\r\n\t &*& belpic_siblings == cons<File>(theTokenInfo, cons(theObjectDirectoryFile, cons(theAuthenticationObjectDirectoryFile, cons(thePrivateKeyDirectoryFile, cons(theCertificateDirectoryFile,nil)))))\r\n\t &*& idDirectory_siblings == cons<File>(theIdentityFile, cons(theIdentityFileSignature, cons(theAddressFile, cons(theAddressFileSignature, cons(theCaRoleIDFile, cons(thePreferencesFile, nil))))))\r\n\t &*& selectedFile |-> theMasterFile &*& theBelpicDirectory.getClass() == DedicatedFile.class &*& theIdDirectory.getClass() == DedicatedFile.class;\r\n\t @*/\r\n\t{\r\n\t\tmasterFile = new MasterFile();\r\n\t\t/*\r\n\t\t * initialize PKCS#15 data structures see\r\n\t\t * \"5. PKCS#15 information details\" for more info\r\n\t\t */\r\n\t\t\r\n\t\t//@ masterFile.castMasterToDedicated();\r\n\t\t\r\n\t\tdirFile = new ElementaryFile(EF_DIR, masterFile, (short) 0x25);\r\n\t\tbelpicDirectory = new DedicatedFile(DF_BELPIC, masterFile);\r\n\t\ttokenInfo = new ElementaryFile(TOKENINFO, belpicDirectory, (short) 0x30);\r\n\t\tobjectDirectoryFile = new ElementaryFile(ODF, belpicDirectory, (short) 40);\r\n\t\tauthenticationObjectDirectoryFile = new ElementaryFile(AODF, belpicDirectory, (short) 0x40);\r\n\t\tprivateKeyDirectoryFile = new ElementaryFile(PRKDF, belpicDirectory, (short) 0xB0);\r\n\t\tcertificateDirectoryFile = new ElementaryFile(CDF, belpicDirectory, (short) 0xB0);\r\n\t\tidDirectory = new DedicatedFile(DF_ID, masterFile);\r\n\t\t/*\r\n\t\t * initialize all citizen data stored on the eID card copied from sample\r\n\t\t * eID card 000-0000861-85\r\n\t\t */\r\n\t\t// initialize ID#RN EF\r\n\t\tidentityFile = new ElementaryFile(IDENTITY, idDirectory, (short) 0xD0);\r\n\t\t// initialize SGN#RN EF\r\n\t\tidentityFileSignature = new ElementaryFile(SGN_IDENTITY, idDirectory, (short) 0x80);\r\n\t\t// initialize ID#Address EF\r\n\t\t// address is 117 bytes, and should be padded with zeros\r\n\t\taddressFile = new ElementaryFile(ADDRESS, idDirectory, (short) 117);\r\n\t\t// initialize SGN#Address EF\r\n\t\taddressFileSignature = new ElementaryFile(SGN_ADDRESS, idDirectory, (short) 128);\r\n\t\t// initialize PuK#7 ID (CA Role ID) EF\r\n\t\tcaRoleIDFile = new ElementaryFile(CA_ROLE_ID, idDirectory, (short) 0x20);\r\n\t\t// initialize Preferences EF to 100 zero bytes\r\n\t\tpreferencesFile = new ElementaryFile(PREFERENCES, idDirectory, (short) 100);\r\n\t\t\r\n\t\tselectedFile = masterFile;\r\n\t\t//@ masterFile.castDedicatedToMaster();\r\n\t}", "private void createLocation() throws CoreException {\n \t\tFile file = location.append(F_META_AREA).toFile();\n \t\ttry {\n \t\t\tfile.mkdirs();\n \t\t} catch (Exception e) {\n \t\t\tString message = NLS.bind(CommonMessages.meta_couldNotCreate, file.getAbsolutePath());\n \t\t\tthrow new CoreException(new Status(IStatus.ERROR, IRuntimeConstants.PI_RUNTIME, IRuntimeConstants.FAILED_WRITE_METADATA, message, e));\n \t\t}\n \t\tif (!file.canWrite()) {\n \t\t\tString message = NLS.bind(CommonMessages.meta_readonly, file.getAbsolutePath());\n \t\t\tthrow new CoreException(new Status(IStatus.ERROR, IRuntimeConstants.PI_RUNTIME, IRuntimeConstants.FAILED_WRITE_METADATA, message, null));\n \t\t}\n \t\t// set the log file location now that we created the data area\n \t\tIPath logPath = location.append(F_META_AREA).append(F_LOG);\n \t\ttry {\n \t\t\tActivator activator = Activator.getDefault();\n \t\t\tif (activator != null) {\n \t\t\t\tFrameworkLog log = activator.getFrameworkLog();\n \t\t\t\tif (log != null)\n \t\t\t\t\tlog.setFile(logPath.toFile(), true);\n \t\t\t\telse if (debug())\n \t\t\t\t\tSystem.out.println(\"ERROR: Unable to acquire log service. Application will proceed, but logging will be disabled.\"); //$NON-NLS-1$\n \t\t\t}\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \n \t\t// set the trace file location now that we created the data area\n \t\tIPath tracePath = location.append(F_META_AREA).append(F_TRACE);\n \t\tActivator activator = Activator.getDefault();\n \t\tif (activator != null) {\n \t\t\tDebugOptions debugOptions = activator.getDebugOptions();\n \t\t\tif (debugOptions != null) {\n \t\t\t\tdebugOptions.setFile(tracePath.toFile());\n \t\t\t} else {\n \t\t\t\tSystem.out.println(\"ERROR: Unable to acquire debug service. Application will proceed, but debugging will be disabled.\"); //$NON-NLS-1$\n \t\t\t}\n \t\t}\n \t}", "public DeviceInfo() {}", "private static void initFileNames() {\n if (fileNames == null) {\n fileNames = new HashMap<>();\n }\n fileNames.put(\"Linked List (simple)\", \"MySimpleLinkedList\");\n fileNames.put(\"Linked List\", \"MyLinkedList\");\n fileNames.put(\"Stack\", \"MyStack\");\n fileNames.put(\"Queue\", \"MyArrayDeque\");\n fileNames.put(\"Graph\", \"MyGraph\");\n fileNames.put(\"HashTable\", \"MyHashTable\");\n fileNames.put(\"Linear Search\", \"Algorithms\");\n fileNames.put(\"Binary Search\", \"Algorithms\");\n fileNames.put(\"Bubble Sort\", \"Algorithms\");\n fileNames.put(\"Insertion Sort\", \"Algorithms\");\n fileNames.put(\"Selection Sort\", \"Algorithms\");\n fileNames.put(\"Shell Sort\", \"Algorithms\");\n fileNames.put(\"Merge Sort\", \"Algorithms\");\n fileNames.put(\"Merge Sort (in-place)\", \"Algorithms\");\n fileNames.put(\"Quick Sort\", \"Algorithms\");\n }", "@Override\n protected void createFile(String directoryName, String fileNamePrefix) {\n }", "private void initializeEmptyStore() throws IOException\r\n {\r\n this.keyHash.clear();\r\n\r\n if (!dataFile.isEmpty())\r\n {\r\n dataFile.reset();\r\n }\r\n }", "public static void createTempMapsetName() {\r\n UUID id;\r\n String tmpPrefix;\r\n String tmpSuffix;\r\n String tmpBase;\r\n String tmpFolder;\r\n\r\n id = UUID.randomUUID();\r\n tmpPrefix = new String(GrassUtils.TEMP_PREFIX);\r\n tmpSuffix = new String(\"_\" + id);\r\n tmpBase = new String(System.getProperty(\"java.io.tmpdir\"));\r\n if (tmpBase.endsWith(File.separator)) {\r\n tmpFolder = new String(tmpBase + tmpPrefix + tmpSuffix.replace('-', '_') + File.separator + \"user\");\r\n }\r\n else {\r\n tmpFolder = new String(tmpBase + File.separator + tmpPrefix + tmpSuffix.replace('-', '_') + File.separator + \"user\");\r\n }\r\n m_sGrassTempMapsetFolder = tmpFolder;\r\n\r\n }", "public interface StorageFactory {\n\n\t<T> List<T> createList();\n\t\n\t<T> Set<T> createSet();\n\t\n\t<V> Map<Character, V> createMap();\n\t\n}", "public StorageManager() {\n makeDirectory();\n }", "@Test\n public void testConstructor_Custom_Store_File_Overflow() {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-list-testConstructor_Custom_Store_File_Overflow\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n File[] subDirs = file.listFiles();\n\n assertNotNull(subDirs);\n }", "public void createSubDirData() {\n\t\tFile f = new File(getPFDataPath());\n\t\tf.mkdirs();\n\t}", "private static DataFlavor createDefaultDataFlavor() {\n try {\n return new DataFlavor(DataFlavor.javaJVMLocalObjectMimeType + \";class=\\\"\"\n + DocumentTreeNode[].class.getName() + \"\\\"\");\n } catch (ClassNotFoundException e) {\n // this will never happen\n return null;\n }\n }", "Information createInformation();", "@Override\n protected void createRootDir() {\n }", "@Override\n public FileSystem newFileSystem(URI uri, Map<String, ?> env) throws IOException {\n return getFS(delegate.newFileSystem(uri, env));\n\n }", "protected File(SleuthkitCase db, long objId, long fsObjId, \n\t\t\tTSK_FS_ATTR_TYPE_ENUM attrType, short attrId, String name, long metaAddr, \n\t\t\tTSK_FS_NAME_TYPE_ENUM dirType, TSK_FS_META_TYPE_ENUM metaType, \n\t\t\tTSK_FS_NAME_FLAG_ENUM dirFlag, short metaFlags, \n\t\t\tlong size, long ctime, long crtime, long atime, long mtime, \n\t\t\tshort modes, int uid, int gid, String md5Hash, FileKnown knownState, String parentPath) {\n\t\tsuper(db, objId, fsObjId, attrType, attrId, name, metaAddr, dirType, metaType, dirFlag, metaFlags, size, ctime, crtime, atime, mtime, modes, uid, gid, md5Hash, knownState, parentPath);\n\t}", "private void createGenericPage() throws IOException {\r\n\t\tFileOutputStream pageStream = new FileOutputStream(page, false);\r\n\t\tpageStream.write(DEFAULT_STRING.getBytes());\r\n\t\tpageStream.close();\r\n\t}", "public void createTestFileWithoutKey() {\n\t\tList<String> lines = new ArrayList<>(0);\n\t\tPath file = Paths.get(TEST_FILE_NAME);\n\t\ttry {\n\t\t\tFiles.write(file, lines);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected Path createDataPath(Path metaPath) {\n UUID uuid = UUID.randomUUID();\n long mostSigBits = uuid.getMostSignificantBits();\n long leastSigBits = uuid.getLeastSignificantBits();\n String path = digits(mostSigBits >> 32, 8) + \"-\" + digits(mostSigBits >> 16, 4) + \"-\" + digits(mostSigBits, 4) + \"-\"\n + digits(leastSigBits >> 48, 4) + \"-\" + digits(leastSigBits, 12);\n return new Path(_dataPath, path);\n }", "public static void init(){\n Path path = FileDirectoryUtil.getPath(\"src\", \"fileIO\", \"test.txt\");\n FileDirectoryUtil.tryCreateDirectory(path);\n\n // Try to create the file\n path = Paths.get(path.toAbsolutePath().toString(), \"test.txt\");\n FileDirectoryUtil.tryCreateFile(path);\n\n // Print out the final location of the file\n System.out.println(path.toAbsolutePath());\n\n // Try to write to the file\n IOUtil.tryWriteToFile(getContent(), path);\n\n // Try to print the content of the file\n IOUtil.tryPrintContents(path);\n\n }", "public static void main(String args[])\r\n\t{\r\n\t\t//Creating actual blocks\r\n\t\tfileSystem = new FileSystem[FileSystem.TOTAL_BLOCKS];\r\n\t\tfor (int loop = 0; loop < FileSystem.TOTAL_BLOCKS; loop++)\r\n\t\t{\r\n\t\t\tfileSystem[loop] = new FileSystem();\r\n\t\t}\r\n fileSystem[0].setBlockUsageType(FileSystem.blockUsage.DIRECTORY);\r\n\t\tString userInput;\r\n\t\tScanner scanner = new Scanner(System.in);\r\n\t\tdo\r\n\t\t{\r\n\t\t\tfileSystem[0].getDirectoryStructure().setFree(getFirstFreeBlock());\r\n\t\t\tSystem.out.println(\"\\nEnter the command (help for Help | print to print Block statistics | exit to Exit):\");\r\n\t\t\tuserInput = scanner.nextLine();\r\n\t\t\t// System.out.println(\"User input: \" + userInput);\r\n\t\t\t// validate user input\r\n\t\t\tString operation = userInput.split(\" \")[0];\r\n\t\t\tif (operation == null)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Invalid UserInput \" + userInput);\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tswitch(operation.toLowerCase())\r\n\t\t\t{\r\n\t\t\t\tcase \"create\":\r\n\t\t\t\t\tif (!operationCreate(userInput))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Invalid input for create: \" + userInput);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"delete\":\r\n\t\t\t\t\tif (!operationDelete(userInput))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Invalid input for delete: \" + userInput);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"open\":\r\n\t\t\t\t\tif(!operationOpen(userInput))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Invalid input for open: \" + userInput);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"read\":\r\n\t\t\t\t\tif (openFileBlockNumber == -1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Please open the file before reading\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (openFileMode != FileSystem.fileOpenMode.INPUT && openFileMode != FileSystem.fileOpenMode.UPDATE)\r\n\t\t\t\t\t{\r\n System.out.println(\"Please open the file in INPUT or UPDATE mode for reading\");\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!operationRead(userInput))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Invalid input for read \" + userInput);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"write\":\r\n\t\t\t\t\tif (openFileBlockNumber == -1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Please open the file before writing\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (openFileMode != FileSystem.fileOpenMode.OUTPUT && openFileMode != FileSystem.fileOpenMode.UPDATE)\r\n\t\t\t\t\t{\r\n System.out.println(\"Please open the file in OUTPUT or UPDATE mode for writing\");\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!operationWrite(userInput))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Invalid input for write \" + userInput);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"seek\":\r\n\t\t\t\t\tif (openFileBlockNumber == -1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Please open the file before seeking\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (openFileMode != FileSystem.fileOpenMode.INPUT && openFileMode != FileSystem.fileOpenMode.UPDATE)\r\n\t\t\t\t\t{\r\n System.out.println(\"Please open the file in INPUT or UPDATE mode for seeking\");\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!operationSeek(userInput))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Invalid input for write \" + userInput);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"close\":\r\n\t\t\t\t\tif (openFileBlockNumber == -1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Please create/open the file before closing\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (userInput.equalsIgnoreCase(\"close\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\topenFileBlockNumber = -1;\r\n\t\t\t\t\t\topenFileMode = FileSystem.fileOpenMode.INVALID;\r\n\t\t\t\t\t\topenFileSeekPosition = -1;\r\n\t\t\t\t\t\topenFilesDirectory = -1;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Invalid input for close \" + userInput);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"exit\":\r\n\t\t\t\t\tSystem.out.println(\"Exiting the program\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"print\":\r\n\t\t\t\t\tSystem.out.println(\"<------------------- Printing Statistics ------------------->\");\r\n\t\t\t\t\tprintBlocksStatistics();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"help\":\r\n\t\t\t\t\tprintHelp();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tSystem.out.println(\"Invalid input: \" + userInput);\r\n\t\t\t}\r\n\t\t}while(!userInput.equalsIgnoreCase(\"exit\"));\r\n\t\tscanner.close();\r\n\t}", "public static void init() {\n File dir = new File(\".gitlet\");\n if (dir.exists()) {\n System.out.println(\"a gitlet version-control system already exists in the current directory.\");\n return;\n } else {\n dir.mkdir();\n File next = new File(\".gitlet/heads/master.ser\");\n File currentBranch = new File(\".gitlet/current\");\n File heads = new File(\".gitlet/heads\");\n File currentname = new File(\".gitlet/current/master.ser\");\n File staged = new File(\".gitlet/staged\");\n File commits = new File(\".gitlet/commits\");\n File unstaged = new File(\".gitlet/unstaged\");\n File blobs = new File(\".gitlet/blobs\");\n try {\n heads.mkdir();\n staged.mkdir();\n commits.mkdir();\n unstaged.mkdir();\n currentBranch.mkdir();\n blobs.mkdir();\n Commit initial = new Commit(\"initial commit\", null, null);\n FileOutputStream fileOut = new FileOutputStream(next);\n ObjectOutputStream objectOut = new ObjectOutputStream(fileOut);\n objectOut.writeObject(initial);\n Files.copy(next.toPath(), currentname.toPath());\n } catch (IOException e) {\n return;\n }\n }}", "static private void initSystem() {\n // Ensure the file-based PatchStore provider is available\n if ( ! PatchStore.isRegistered(DPS.PatchStoreFileProvider) ) {\n FmtLog.warn(LOG, \"PatchStoreFile provider not registered\");\n PatchStore ps = new PatchStoreFile();\n if ( ! DPS.PatchStoreFileProvider.equals(ps.getProviderName())) {\n FmtLog.error(LOG, \"PatchStoreFile provider name is wrong (expected=%s, got=%s)\", DPS.PatchStoreFileProvider, ps.getProviderName());\n throw new DeltaConfigException();\n }\n PatchStore.register(ps);\n }\n \n // Default the log provider to \"file\"\n if ( PatchStore.getDefault() == null ) {\n //FmtLog.warn(LOG, \"PatchStore default not set.\");\n PatchStore.setDefault(DPS.PatchStoreFileProvider);\n }\n }", "@Override\n\tpublic String getFileProperties() {\n\t\treturn null;\n\t}", "private OperatingSystemInfo( ) {\r\n\t\tfinal String system_osname = System.getProperty(\"os.name\");\r\n\t\tfinal String system_osarch = System.getProperty(\"os.arch\");\r\n\t\tb64bit = system_osarch.endsWith(\"64\");\r\n\t\tboolean bWindows = system_osname.contains(\"Windows\");\r\n\t\tboolean bMac = system_osname.contains(\"Mac\");\r\n\t\tboolean bLinux = system_osname.contains(\"Linux\");\r\n\t\tif (bWindows) {\r\n\t\t\tosType = OsType.WINDOWS;\r\n\t\t\tosnamePrefix = \"win\";\r\n\t\t\texeSuffix = \".exe\";\r\n\t\t\tsharedLibraryPattern = Pattern.compile(\".dll$\");\r\n\t\t} else if (bMac) {\r\n\t\t\tosType = OsType.MAC;\r\n\t\t\tosnamePrefix = \"mac\";\r\n\t\t\texeSuffix = \"\";\r\n\t\t\tsharedLibraryPattern = Pattern.compile(\".*[dylib|jnilib]$\");\r\n\t\t} else if (bLinux) {\r\n\t\t\tosType = OsType.LINUX;\r\n\t\t\tosnamePrefix = \"linux\";\r\n\t\t\texeSuffix = \"\";\r\n\t\t\tsharedLibraryPattern = Pattern.compile(\".+\\\\.so[.\\\\d]*$\"); //libc.so, libc.so.1, libc.so.1.4\r\n\t\t} else {\r\n\t\t\tthrow new RuntimeException(system_osname + \" is not supported by the Virtual Cell.\");\r\n\t\t}\r\n\t\tdescription = osnamePrefix;\r\n\t\tString BIT_SUFFIX = \"\";\r\n\t\tif (b64bit) {\r\n\t\t\tBIT_SUFFIX =\"_x64\";\r\n\t\t\tdescription += \"64\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdescription += \"32\";\r\n\t\t}\r\n\t\texeBitSuffix = BIT_SUFFIX + exeSuffix;\r\n\t\tnativeLibDirectory = osnamePrefix + (b64bit ? \"64/\" : \"32/\");\r\n\t\tnativelibSuffix = BIT_SUFFIX;\r\n\t}", "public Directory() {\n files = new ArrayList<VipeFile>();\n sectors = new int[600];\n }", "public static void init()\n\t{\n\t\tusername2accesses.clear();\n\t\t//--- adds info.json in ./Home/Administrator for the system admin ---//\n\t\tfinal String adminAccessPath = Hierarchies.getSectionDir() + \"/\" + Hierarchies.getInfoFileName() + \".\" + Directories.getFileExt();\n\t\tfinal File adminAccessFile = new File(adminAccessPath);\n\t\tif (!adminAccessFile.exists())\n\t\t{\n\t\t\tfinal Access[] accesses = new Access[1];\n\t\t\taccesses[0] = new Access(\"admin\", Role.ADMINISTRATOR, null);\n\t\t\tfinal HierarchyItem hierarchyItem = new HierarchyItem(null, null, null, accesses);\n\t\t\tfinal String hierarchyItemAsJson = new Gson().toJson(hierarchyItem);\n\t\t\tFileIO.writeToFile(adminAccessPath, hierarchyItemAsJson);\n\t\t}\n\t\t//--- reads all JSON files recursively in ./Home/Administrator ---//\n\t\t//--- contents of JSON files will be processed to be cached in hash map username2accesses ---//\n\t\tfinal File file = new File(Hierarchies.getSectionDir());\n\t\tfinal Collection<File> jsonFiles = FileUtils.listFiles(file, new String[]{Directories.getFileExt()}, true);\n\t\tfor (File infoFile : jsonFiles) manage(infoFile, Op.STORE);\n\t}", "public FileObjectFactory() {\n }", "protected void fillInfo() {\n buffer.setLength(0);\n for (Food food : foods) {\n if (food != null) {\n buffer.append(food.toString());\n }\n }\n }", "private void init() {\r\n\t\t// check system property\r\n\t\tif (System.getProperty(TACOS_HOME) != null) {\r\n\t\t\tFile customHome = new File(System.getProperty(TACOS_HOME));\r\n\t\t\tif (initHome(customHome)) {\r\n\t\t\t\thomeDir = customHome;\r\n\t\t\t\tlogger.info(\"Using custom home directory ('\" + homeDir + \"')\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// custom home directory not available (or failed to initialize)\r\n\t\tFile defaultHome = new File(System.getProperty(DEFAULT_HOME), \".tacos\");\r\n\t\tif (initHome(defaultHome)) {\r\n\t\t\thomeDir = defaultHome;\r\n\t\t\tlogger.info(\"Using default home directory ('\" + homeDir + \"')\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// fallback if everything goes wrong\r\n\t\tlogger.warn(\"Using temporary directory to store files\");\r\n\t\thomeDir = new File(System.getProperty(\"java.io.tmpdir\"), \".tacos\");\r\n\t\tinitHome(homeDir);\r\n\t}", "public static void createTempFileForLinux() throws IOException {\n Path path = Files.createTempFile(\"temp_linux_file\", \".txt\",\n PosixFilePermissions.asFileAttribute(PosixFilePermissions.fromString(\"rw-------\")));\n System.out.println(\"Path is : \" + path.toFile().getAbsolutePath());\n }", "private void checkAndInsertDefaultEntries() {\n\t\tinsertDefaultMediaFormats();\n\t}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "@SuppressLint(\"SimpleDateFormat\")\n public static File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + JPEG_FILE_SUFFIX;\n String nameAlbum = Environment.getExternalStorageDirectory().getAbsolutePath() + \"/\" + nameDir;// getString(R.string.app_name);\n File albumF = new File(nameAlbum);\n if (!albumF.exists()) {\n albumF.mkdirs();\n File noMedia = new File(albumF, \".nomedia\");\n noMedia.createNewFile();\n }\n\n File imageF = new File(albumF, imageFileName);\n imageF.createNewFile();\n return imageF;\n }", "private void addToOutOfTypeSystemData(String typeName, Attributes attrs)\n throws XCASParsingException {\n if (this.outOfTypeSystemData != null) {\n FSData fsData = new FSData();\n fsData.type = typeName;\n fsData.indexRep = null; // not indexed\n String attrName, attrValue;\n for (int i = 0; i < attrs.getLength(); i++) {\n attrName = attrs.getQName(i);\n attrValue = attrs.getValue(i);\n if (attrName.startsWith(reservedAttrPrefix)) {\n if (attrName.equals(XCASSerializer.ID_ATTR_NAME)) {\n fsData.id = attrValue;\n } else if (attrName.equals(XCASSerializer.CONTENT_ATTR_NAME)) {\n this.currentContentFeat = attrValue;\n } else if (attrName.equals(XCASSerializer.INDEXED_ATTR_NAME)) {\n fsData.indexRep = attrValue;\n } else {\n fsData.featVals.put(attrName, attrValue);\n }\n } else {\n fsData.featVals.put(attrName, attrValue);\n }\n }\n this.outOfTypeSystemData.fsList.add(fsData);\n this.currentOotsFs = fsData;\n // Set the state; we're ready to accept the \"content\" feature,\n // if one is specified\n this.state = OOTS_CONTENT_STATE;\n }\n }", "public StringFileManager() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "@Test\n public void testEmptyHFile() throws IOException {\n Path f = new Path(TestHFile.ROOT_DIR, testName.getMethodName());\n HFileContext context = new HFileContextBuilder().withIncludesTags(false).build();\n Writer w = HFile.getWriterFactory(TestHFile.conf, TestHFile.cacheConf).withPath(TestHFile.fs, f).withFileContext(context).create();\n w.close();\n Reader r = HFile.createReader(TestHFile.fs, f, TestHFile.cacheConf, true, TestHFile.conf);\n r.loadFileInfo();\n Assert.assertFalse(r.getFirstKey().isPresent());\n Assert.assertFalse(r.getLastKey().isPresent());\n }", "private void initialize() throws IOException {\n // All of this node's files are kept in this directory.\n File dir = new File(localDir);\n if (!dir.exists()) {\n if (!dir.mkdirs()) {\n throw new IOException(\"Unable to create directory: \" +\n dir.toString());\n }\n }\n\n Collection<File> data = FileUtils.listFiles(dir,\n FileFilterUtils.trueFileFilter(),\n FileFilterUtils.trueFileFilter());\n String[] files = new String[data.size()];\n Iterator<File> it = data.iterator();\n for (int i = 0; it.hasNext(); i++) {\n files[i] = it.next().getPath().substring(dir.getPath().length() + 1);\n }\n\n StartupMessage msg = new StartupMessage(InetAddress.getLocalHost()\n .getHostName(), port, id, files);\n msg.send(nameServer, namePort);\n }", "@Test\n public void testConstructor_Custom_Store_String_Overflow() {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator + \"oasis-collection-test-2\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file.getAbsolutePath());\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n File[] subDirs = file.listFiles();\n\n assertNotNull(subDirs);\n\n }", "private TreeItem<FilePath> createTreeRoot() {\n TreeItem<FilePath> root = new TreeItem<>(new FilePath(Paths.get(ROOT_FOLDER)));\n root.setExpanded(true);\n return root;\n }", "public void superBlock() throws FileNotFoundException, IOException\n {\n \tByteBuffer buf = ByteBuffer.allocate(1024);\n \tbuf.order(ByteOrder.LITTLE_ENDIAN);\n \tbyte[] bytes = new byte[1024];\n f.seek(1024);\n \tf.read(bytes);\n \tbuf.put(bytes);\n\n \tmagicNum = buf.getShort(56);\n \ttotalInodes = buf.getInt(0);\n \ttotalBlocks = buf.getInt(4);\n \tblocksPerGroup = buf.getInt(32);\n \tinodesPerGroup = buf.getInt(40);\n \tsizeOfInode = buf.getInt(88);\n\n \tbyte[] stringLabel = new byte[16];\n \tbuf.position(120);\n buf.get(stringLabel);\n \tvolumeLabel = new String(stringLabel);\n\n System.out.println(\"Magic Number : \"+String.format(\"0x%04X\",magicNum));\n System.out.println(\"Total Inodes: \"+totalInodes);\n System.out.println(\"Total Blocks: \"+totalBlocks);\n System.out.println(\"Blocks per Group: \"+blocksPerGroup);\n System.out.println(\"Inodes per Group: \"+inodesPerGroup);\n System.out.println(\"Size Of each Inode in bytes: \"+sizeOfInode);\n System.out.println(\"Volume Label: \"+ volumeLabel+ \"\\n\");\n }", "protected static void createFiles(SessionState state)\n\t{\n\t\tSet alerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\tif(alerts == null)\n\t\t{\n\t\t\talerts = new HashSet();\n\t\t\tstate.setAttribute(STATE_CREATE_ALERTS, alerts);\n\t\t}\n\n\t\tMap current_stack_frame = peekAtStack(state);\n\n\t\tString collectionId = (String) current_stack_frame.get(STATE_STACK_CREATE_COLLECTION_ID);\n\t\tif(collectionId == null || collectionId.trim().length() == 0)\n\t\t{\n\t\t\tcollectionId = (String) state.getAttribute(STATE_CREATE_COLLECTION_ID);\n\t\t\tif(collectionId == null || collectionId.trim().length() == 0)\n\t\t\t{\n\t\t\t\tcollectionId = ContentHostingService.getSiteCollection(ToolManager.getCurrentPlacement().getContext());\n\t\t\t}\n\t\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_COLLECTION_ID, collectionId);\n\t\t}\n\n\t\tList new_items = (List) current_stack_frame.get(STATE_STACK_CREATE_ITEMS);\n\t\tif(new_items == null)\n\t\t{\n\t\t\tString defaultCopyrightStatus = (String) state.getAttribute(DEFAULT_COPYRIGHT);\n\t\t\tif(defaultCopyrightStatus == null || defaultCopyrightStatus.trim().equals(\"\"))\n\t\t\t{\n\t\t\t\tdefaultCopyrightStatus = ServerConfigurationService.getString(\"default.copyright\");\n\t\t\t\tstate.setAttribute(DEFAULT_COPYRIGHT, defaultCopyrightStatus);\n\t\t\t}\n\n\t\t\tString encoding = (String) state.getAttribute(STATE_ENCODING);\n\t\t\tBoolean preventPublicDisplay = (Boolean) state.getAttribute(STATE_PREVENT_PUBLIC_DISPLAY);\n\t\t\t\n\t\t\tTime defaultRetractDate = (Time) state.getAttribute(STATE_DEFAULT_RETRACT_TIME);\n\t\t\tif(defaultRetractDate == null)\n\t\t\t{\n\t\t\t\tdefaultRetractDate = TimeService.newTime();\n\t\t\t\tstate.setAttribute(STATE_DEFAULT_RETRACT_TIME, defaultRetractDate);\n\t\t\t}\n\n\t\t\tnew_items = newEditItems(collectionId, TYPE_FOLDER, encoding, defaultCopyrightStatus, preventPublicDisplay.booleanValue(), defaultRetractDate, CREATE_MAX_ITEMS);\n\n\t\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_ITEMS, new_items);\n\n\t\t}\n\t\tInteger number = (Integer) current_stack_frame.get(STATE_STACK_CREATE_NUMBER);\n\t\tif(number == null)\n\t\t{\n\t\t\tnumber = (Integer) state.getAttribute(STATE_CREATE_NUMBER);\n\t\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_NUMBER, number);\n\t\t}\n\t\tif(number == null)\n\t\t{\n\t\t\tnumber = new Integer(1);\n\t\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_NUMBER, number);\n\t\t}\n\n\t\tint numberOfItems = 1;\n\t\tnumberOfItems = number.intValue();\n\t\touterloop: for(int i = 0; i < numberOfItems; i++)\n\t\t{\n\t\t\tEditItem item = (EditItem) new_items.get(i);\n\t\t\tif(item.isBlank())\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tResourcePropertiesEdit resourceProperties = ContentHostingService.newResourceProperties ();\n\n\t\t\tresourceProperties.addProperty (ResourceProperties.PROP_DISPLAY_NAME, item.getName());\n\t\t\tresourceProperties.addProperty (ResourceProperties.PROP_DESCRIPTION, item.getDescription());\n\n\t\t\tresourceProperties.addProperty (ResourceProperties.PROP_COPYRIGHT, item.getCopyrightInfo());\n\t\t\tresourceProperties.addProperty(ResourceProperties.PROP_COPYRIGHT_CHOICE, item.getCopyrightStatus());\n\t\t\tif (item.hasCopyrightAlert())\n\t\t\t{\n\t\t\t\tresourceProperties.addProperty (ResourceProperties.PROP_COPYRIGHT_ALERT, Boolean.toString(item.hasCopyrightAlert()));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tresourceProperties.removeProperty (ResourceProperties.PROP_COPYRIGHT_ALERT);\n\t\t\t}\n\t\t\t\n\t\t\tBasicRightsAssignment rightsObj = item.getRights();\n\t\t\trightsObj.addResourceProperties(resourceProperties);\n\n\t\t\tresourceProperties.addProperty(ResourceProperties.PROP_IS_COLLECTION, Boolean.FALSE.toString());\n\t\t\tif(item.isHtml())\n\t\t\t{\n\t\t\t\tresourceProperties.addProperty(ResourceProperties.PROP_CONTENT_ENCODING, \"UTF-8\");\n\t\t\t}\n\t\t\tList metadataGroups = (List) state.getAttribute(STATE_METADATA_GROUPS);\n\t\t\tsaveMetadata(resourceProperties, metadataGroups, item);\n\t\t\tString filename = Validator.escapeResourceName(item.getFilename().trim());\n\t\t\tif(\"\".equals(filename))\n\t\t\t{\n\t\t\t\tfilename = Validator.escapeResourceName(item.getName().trim());\n\t\t\t}\n\n\n\t\t\tresourceProperties.addProperty(ResourceProperties.PROP_ORIGINAL_FILENAME, filename);\n\t\t\t\n\t\t\tSortedSet groups = new TreeSet(item.getEntityGroupRefs());\n\t\t\tgroups.retainAll(item.getAllowedAddGroupRefs());\n\t\t\t\n\t\t\tboolean hidden = false;\n\n\t\t\tTime releaseDate = null;\n\t\t\tTime retractDate = null;\n\t\t\t\n\t\t\tif(ContentHostingService.isAvailabilityEnabled())\n\t\t\t{\n\t\t\t\thidden = item.isHidden();\n\t\t\t\t\n\t\t\t\tif(item.useReleaseDate())\n\t\t\t\t{\n\t\t\t\t\treleaseDate = item.getReleaseDate();\n\t\t\t\t}\n\t\t\t\tif(item.useRetractDate())\n\t\t\t\t{\n\t\t\t\t\tretractDate = item.getRetractDate();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tContentResource resource = ContentHostingService.addResource (filename,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcollectionId,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMAXIMUM_ATTEMPTS_FOR_UNIQUENESS,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\titem.getMimeType(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\titem.getContent(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tresourceProperties,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroups,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thidden,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treleaseDate,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tretractDate,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\titem.getNotification());\n\n\t\t\t\titem.setAdded(true);\n\t\t\t\t\n\t\t\t\tBoolean preventPublicDisplay = (Boolean) state.getAttribute(STATE_PREVENT_PUBLIC_DISPLAY);\n\t\t\t\tif(preventPublicDisplay == null)\n\t\t\t\t{\n\t\t\t\t\tpreventPublicDisplay = Boolean.FALSE;\n\t\t\t\t\tstate.setAttribute(STATE_PREVENT_PUBLIC_DISPLAY, preventPublicDisplay);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!preventPublicDisplay.booleanValue() && item.isPubview())\n\t\t\t\t{\n\t\t\t\t\tContentHostingService.setPubView(resource.getId(), true);\n\t\t\t\t}\n\n\t\t\t\tString mode = (String) state.getAttribute(STATE_MODE);\n\t\t\t\tif(MODE_HELPER.equals(mode))\n\t\t\t\t{\n\t\t\t\t\tString helper_mode = (String) state.getAttribute(STATE_RESOURCES_HELPER_MODE);\n\t\t\t\t\tif(helper_mode != null && MODE_ATTACHMENT_NEW_ITEM_INIT.equals(helper_mode))\n\t\t\t\t\t{\n\t\t\t\t\t\t// add to the attachments vector\n\t\t\t\t\t\tList attachments = EntityManager.newReferenceList();\n\t\t\t\t\t\tReference ref = EntityManager.newReference(ContentHostingService.getReference(resource.getId()));\n\t\t\t\t\t\tattachments.add(ref);\n\t\t\t\t\t\tcleanupState(state);\n\t\t\t\t\t\tstate.setAttribute(STATE_ATTACHMENTS, attachments);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tObject attach_links = current_stack_frame.get(STATE_ATTACH_LINKS);\n\t\t\t\t\t\tif(attach_links == null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tattach_links = state.getAttribute(STATE_ATTACH_LINKS);\n\t\t\t\t\t\t\tif(attach_links != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcurrent_stack_frame.put(STATE_ATTACH_LINKS, attach_links);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(attach_links == null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tattachItem(resource.getId(), state);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tattachLink(resource.getId(), state);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(PermissionException e)\n\t\t\t{\n\t\t\t\talerts.add(rb.getString(\"notpermis12\"));\n\t\t\t\tcontinue outerloop;\n\t\t\t}\n\t\t\tcatch(IdInvalidException e)\n\t\t\t{\n\t\t\t\talerts.add(rb.getString(\"title\") + \" \" + e.getMessage ());\n\t\t\t\tcontinue outerloop;\n\t\t\t}\n\t\t\tcatch(IdLengthException e)\n\t\t\t{\n\t\t\t\talerts.add(rb.getString(\"toolong\") + \" \" + e.getMessage());\n\t\t\t\tcontinue outerloop;\n\t\t\t}\n\t\t\tcatch(IdUniquenessException e)\n\t\t\t{\n\t\t\t\talerts.add(\"Could not add this item to this folder\");\n\t\t\t\tcontinue outerloop;\n\t\t\t}\n\t\t\tcatch(InconsistentException e)\n\t\t\t{\n\t\t\t\talerts.add(RESOURCE_INVALID_TITLE_STRING);\n\t\t\t\tcontinue outerloop;\n\t\t\t}\n\t\t\tcatch(OverQuotaException e)\n\t\t\t{\n\t\t\t\talerts.add(rb.getString(\"overquota\"));\n\t\t\t\tcontinue outerloop;\n\t\t\t}\n\t\t\tcatch(ServerOverloadException e)\n\t\t\t{\n\t\t\t\talerts.add(rb.getString(\"failed\"));\n\t\t\t\tcontinue outerloop;\n\t\t\t}\n\t\t\tcatch(RuntimeException e)\n\t\t\t{\n\t\t\t\tlogger.warn(\"ResourcesAction.createFiles ***** Unknown Exception ***** \" + e.getMessage());\n\t\t\t\talerts.add(rb.getString(\"failed\"));\n\t\t\t\tcontinue outerloop;\n\t\t\t}\n\n\t\t}\n\t\tSortedSet currentMap = (SortedSet) state.getAttribute(STATE_EXPANDED_COLLECTIONS);\n\t\tif(currentMap == null)\n\t\t{\n\t\t\tcurrentMap = new TreeSet();\n\t\t}\n\t\tcurrentMap.add(collectionId);\n\t\tstate.setAttribute(STATE_EXPANDED_COLLECTIONS, currentMap);\n\n\t\t// add this folder id into the set to be event-observed\n\t\taddObservingPattern(collectionId, state);\n\t\t\n\t\tstate.setAttribute(STATE_CREATE_ALERTS, alerts);\n\n\t}" ]
[ "0.63097674", "0.6230897", "0.56374514", "0.5547513", "0.55274034", "0.55001414", "0.54425985", "0.54294854", "0.5384043", "0.5368414", "0.5300327", "0.5280303", "0.5244527", "0.52372724", "0.5220759", "0.52146477", "0.5207151", "0.5206734", "0.51928633", "0.51846707", "0.51459736", "0.51363325", "0.50925565", "0.5084518", "0.50834197", "0.5074605", "0.5068625", "0.50628585", "0.5055362", "0.50482094", "0.5041001", "0.5040478", "0.5039434", "0.50377387", "0.50311005", "0.5013036", "0.5008123", "0.5003948", "0.49964634", "0.49885496", "0.4973413", "0.4968943", "0.49607998", "0.49597678", "0.49450245", "0.49388742", "0.49315026", "0.49188593", "0.49088162", "0.48866707", "0.48668435", "0.48654175", "0.4861713", "0.48582378", "0.48574543", "0.48542154", "0.48406702", "0.48342076", "0.48291302", "0.48195744", "0.48165315", "0.4802374", "0.48017064", "0.47970375", "0.47893506", "0.47801933", "0.47740263", "0.47732654", "0.4764596", "0.47641197", "0.47634488", "0.4749544", "0.47336572", "0.47283277", "0.47234917", "0.47112936", "0.4705074", "0.4702155", "0.4701562", "0.4700532", "0.4697497", "0.4694408", "0.4694313", "0.46847466", "0.46766043", "0.4675856", "0.4675838", "0.46607062", "0.46528772", "0.46493563", "0.46476293", "0.46445075", "0.4642377", "0.4621925", "0.4620557", "0.46090704", "0.46001124", "0.4588621", "0.45881778", "0.45876172" ]
0.71823704
0
This method gets called when ProfilesFactory property is changed.
public void propertyChange(PropertyChangeEvent evt) { if (ProfilesFactory.PROP_PROFILE_ADDED.equals(evt.getPropertyName())) { String profileName = (String) evt.getNewValue(); Profile profile = ProfilesFactory.getDefault().getProfile(profileName); if (ProfilesFactory.getDefault().isOSCompatibleProfile(profileName)) { registerProfile(profile); } } else if (ProfilesFactory.PROP_PROFILE_REMOVED.equals(evt.getPropertyName())) { String profileName = (String) evt.getOldValue(); variablesByProfileNames.remove(profileName); displayTypesByProfileNames.remove(profileName); commandsToFillByProfileNames.remove(profileName); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onPROChange() {\n if (selectPROC != null) {\n CommunicationBridge communicationBridge = findCommunicationById(selectPROC.toString());\n parameterPROC = communicationBridge.getNumParameter();\n } else {\n parameterPROC = 0;\n }\n }", "private void updateProfile(Profile newprof) {\n\t\tthis.profile = newprof;\n\t\tthis.issues = Collections.unmodifiableList(\n\t\t\t\tnew LinkedList<String>(newprof.getDomain().getIssues()));\n\t\tnotifyListeners(newprof);\n\t}", "private void installProcessingBeanProperties() {\n ProcessingBeanUpdater.getInstance();\r\n }", "public void setProfileManager(ProfileManager profileManager) {\n _profileManager = profileManager;\n }", "public synchronized void enginePropertiesChanged(java.util.Properties newProps) {\n configPath = newProps.getProperty(CONFIG_PATH);\n if (configPath != null && configPath.length() > 0) {\n factory.setPath(configPath);\n }\n\n Vector users_and_groups = PropertiesParser.parseUsersAndGroups(newProps);\n ConfigurationHandler configHandler = factory.getConfigurationHandler();\n Configuration rootConfiguration = null;\n setLocker(configPath);\n UserStoreServiceFrame.lock(locker);\n UserStoreServiceFrame.lock(locker + GROUPS_CONFIG_PATH);\n try {\n rootConfiguration = factory.createRootConfiguration(configHandler);\n rootConfiguration.createSubConfiguration(GROUPS_CONFIG_PATH);\n setInitialGroups((String[][]) users_and_groups.elementAt(0), (String[][]) users_and_groups.elementAt(1), rootConfiguration);\n factory.commit(rootConfiguration, configHandler);\n } catch (NameAlreadyExistsException _) {\n factory.rollback(rootConfiguration, configHandler);\n return;\n } catch (Exception e) {\n factory.rollback(rootConfiguration, configHandler);\n BaseSecurityException bse = new BaseSecurityException(BaseSecurityException.CANNOT_INITIALIZE_GROUP_CONTEXT_SPI, e);\n bse.log();\n throw bse;\n } finally {\n UserStoreServiceFrame.releaseLock(locker + GROUPS_CONFIG_PATH);\n UserStoreServiceFrame.releaseLock(locker);\n }\n }", "private void onProfileNotify() {\n if (this.mAwareObserver == null) {\n AwareLog.e(TAG, \"notify profile failed, null observer.\");\n } else if (this.mLocalProfile.isEmpty()) {\n AwareLog.e(TAG, \"notify profile failed, local profile has nothing.\");\n } else {\n try {\n this.mAwareObserver.onProfileNotify(this.mLocalProfile);\n } catch (RemoteException e) {\n AwareLog.e(TAG, \"aware observer notify profile failed.\");\n }\n }\n }", "public void notifyConfigChange() {\n }", "public ProfileManagerImpl() {\n try {\n Profile uml = new ProfileUML();\n defaultProfiles.add(uml);\n registerProfile(uml);\n registerProfile(new ProfileJava(uml));\n } catch (ProfileException e) {\n throw new RuntimeException(e);\n }\n\n loadDirectoriesFromConfiguration();\n\n refreshRegisteredProfiles();\n\n loadDefaultProfilesfromConfiguration();\n }", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.com.ifli.rapid.model.AddressChangeReqDetails\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<AddressChangeReqDetails>> listenersList = new ArrayList<ModelListener<AddressChangeReqDetails>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<AddressChangeReqDetails>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "@Before(order=0)\n\tpublic void getProperty() {\n\t\tconfigReader = new ConfigReaders();\n\t\tprop = configReader.init_prop();\n\t\t\n\t}", "public void setProfile( ProjectProfileBO pProfile )\r\n {\r\n mProfile = pProfile;\r\n }", "public void setProposer(String proposer) {\r\n\t\tthis.proposer = proposer;\r\n\t}", "protected void configureFopFactory() {\n //Subclass and override this method to perform additional configuration\n }", "public void overrideProfileSize() {\n }", "public void setProfileProperties(Map<String, Object> profileProperties) {\n this.profileProperties = profileProperties;\n }", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.de.uhh.l2g.plugins.model.Facility_Host\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<Facility_Host>> listenersList = new ArrayList<ModelListener<Facility_Host>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<Facility_Host>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public ProyectFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public void IntialProperties() {\r\n Properties prop = new Properties();\r\n try (FileInputStream input = new FileInputStream(\"./config.properties\")) {\r\n prop.load(input);\r\n generate = prop.getProperty(\"generate\");\r\n solve = prop.getProperty(\"algorithm\");\r\n setChanged();\r\n notifyObservers(\"prop\");\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "public interface OnDeviceProfileChangeListener {\n\n /**\n * Called when the device profile is reassigned. Note that for layout and measurements, it\n * is sufficient to listen for inset changes. Use this callback when you need to perform\n * a one time operation.\n */\n void onDeviceProfileChanged(DeviceProfile dp);\n }", "public void setProduitManager(IProduitService produitManager) {\r\n\t\tthis.produitManager = produitManager;\r\n\t}", "@Override\n public void afterPropertiesSet() {\n }", "private void configureEmulatorActivated(DebuggerPcodeEmulatorFactory factory) {\n\t\tsetEmulatorFactory(factory);\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.la.netco.solicitudes_sdisc.model.model.Estado\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<Estado>> listenersList = new ArrayList<ModelListener<Estado>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<Estado>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tlistenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "private void initPreferencesListener()\n {\n Activator.getDefault().getPreferenceStore().addPropertyChangeListener( new IPropertyChangeListener()\n {\n /* (non-Javadoc)\n * @see org.eclipse.jface.util.IPropertyChangeListener#propertyChange(org.eclipse.jface.util.PropertyChangeEvent)\n */\n public void propertyChange( PropertyChangeEvent event )\n {\n if ( authorizedPrefs.contains( event.getProperty() ) )\n {\n if ( PluginConstants.PREFS_SCHEMA_VIEW_GROUPING == event.getProperty() )\n {\n view.reloadViewer();\n }\n else\n {\n view.refresh();\n }\n }\n }\n } );\n }", "@Override\n public void reconfigure()\n {\n }", "public ProfileManager() {\r\n this.profileDAO = DAOFactory.getProfileDAOInstance();\r\n }", "public void setProfile(Profile profile) {\n _profile = profile;\n }", "public void afterPropertiesSet() {\n String[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n com.liferay.util.service.ServiceProps.get(\n \"value.object.listener.it.acsoftware.brokerportlet.model.BrokerMessageListener\")));\n\n if (listenerClassNames.length > 0) {\n try {\n List<ModelListener<BrokerMessageListener>> listenersList = new ArrayList<ModelListener<BrokerMessageListener>>();\n\n for (String listenerClassName : listenerClassNames) {\n listenersList.add((ModelListener<BrokerMessageListener>) InstanceFactory.newInstance(\n getClassLoader(), listenerClassName));\n }\n\n listeners = listenersList.toArray(new ModelListener[listenersList.size()]);\n } catch (Exception e) {\n _log.error(e);\n }\n }\n }", "@Override\n\tpublic void refreshAvailableProcedures()\n\t{\n\t\tm_models.obtainAvailableProcedures(true);\n\t}", "@Override\r\n public void onConfigurationChanged(Configuration newConfig){\r\n super.onConfigurationChanged(newConfig);\r\n ExamManager.activateTicket();\r\n }", "@Override\n protected void updateProperties() {\n }", "public void setProposer(Integer proposer) {\r\n this.proposer = proposer;\r\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n profiles = ProfileManager.getDefaultManager().getAllProfiles();\n\n profileList = this;\n }", "@Override\n public void setActiveProfile(String profileName) {\n }", "@Override\n protected void reconfigureService() {\n }", "public void setIsProVersion(Boolean IsProVersion) {\n this.IsProVersion = IsProVersion;\n }", "public ProyectoFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "ProvenanceFactory getProvenanceFactory();", "@Override\n public void onChanged(@Nullable final Profile profile) {\n userProfile = profile;\n }", "protected void onCreate(BeanFactory beanFactory) {\n }", "public void afterPropertiesSet() throws Exception {\n\t\tSystem.out.println(\"Antes de inicializar el bean Persona: \" + nombre);\n\t}", "public void updateProperties() {\n\t\t\tEnumeration iter = properties.keys();\r\n\t\t\twhile (iter.hasMoreElements()) {\r\n\t\t\t\tString key = (String) iter.nextElement();\r\n\t\t\t\tif (key.startsWith(ConfigParameters.RECENT_FILE_PREFIX)) {\r\n\t\t\t\t\tproperties.remove(key);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Save the list of recent file information\r\n\t\t\tfor (int i = 0; i < files.length; i++) {\r\n\t\t\t\tproperties.put(ConfigParameters.RECENT_FILE_PREFIX + (i + 1),\r\n\t\t\t\t\t\tfiles[i]);\r\n\t\t\t}\r\n\t\t\t// Save the number of recent files\r\n\t\t\tproperties.remove(ConfigParameters.RECENT_FILE_NUMBER);\r\n\t\t\tproperties.put(ConfigParameters.RECENT_FILE_NUMBER, files.length\r\n\t\t\t\t\t+ \"\");\r\n\t\t\t// Save to external file\r\n\t\t\tsim.core.AppEngine.getInstance().system.systemParameters\r\n\t\t\t\t\t.saveProperties(properties);\r\n\t\t\tdirty = false;\r\n\t\t}", "protected void addProfilePropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Configuration_profile_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Configuration_profile_feature\", \"_UI_Configuration_type\"),\r\n\t\t\t\t SpringConfigDslPackage.Literals.CONFIGURATION__PROFILE,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "public void resetFactory() {\n\t\ttry {\n\t\t\tif(null != rawSrv){\n\t\t\trawSrv.resetCfgGroup(ConfigType.RESET_FACTORY);\n\t\t\t}\n\t\t} catch (TVMException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void process(ServletContext context) {\n\t\ttry {\n\t\t\tSystemConfigurationManager systemConfigurationManager = (SystemConfigurationManager) SpringContext\n\t\t\t\t\t.getBean(\"systemConfigurationManager\");\n\t\t\tProfileManager profileManager = (ProfileManager) SpringContext\n\t\t\t\t\t.getBean(\"profileManager\");\n\n\t\t\t// Upgrade from 2.3\n\t\t\tSystemConfiguration profileOverrideInitConfig = systemConfigurationManager\n\t\t\t\t\t.loadConfigByName(\"profileoverride.init.enable\");\n\t\t\tif (profileOverrideInitConfig != null) {\n\t\t\t\tif (\"true\".equalsIgnoreCase(profileOverrideInitConfig\n\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tprofileManager.setupProfileOverrides();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Upgrade to 2.2 (if not already done)\n\t\t\tSystemConfiguration profileUpgradeEnableConfig = systemConfigurationManager\n\t\t\t\t\t.loadConfigByName(\"profileupgrade.enable\");\n\t\t\tif (profileUpgradeEnableConfig != null) {\n\n\t\t\t\tif (\"true\".equalsIgnoreCase(profileUpgradeEnableConfig\n\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tprofileManager.compareProfiles();\n\t\t\t\t} else {\n\t\t\t\t\tlogger.error(\"Profile comparison has been completed in previous cycles.\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlogger.error(\"profileupgrade column not found\");\n\t\t\t}\n\n\t\t\t// Creation of canned profiles\n\t\t\tSystemConfiguration cannedProfileUpgradeEnableConfig = systemConfigurationManager\n\t\t\t\t\t.loadConfigByName(\"cannedprofile.enable\");\n\t\t\tif (cannedProfileUpgradeEnableConfig != null) {\n\t\t\t\tif (\"1\".equalsIgnoreCase(cannedProfileUpgradeEnableConfig\n\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tprofileManager.createCannedProfiles();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlogger.error(\"cannedprofileupgrade column not found\");\n\t\t\t}\n\n\t\t\t// Add on More Default profiles -> Outdoor profile\n\t\t\tCompanyManager companyManager = (CompanyManager) SpringContext\n\t\t\t\t\t.getBean(\"companyManager\");\n\t\t\tCompany company = companyManager.getCompany();\n\t\t\tSystemConfiguration addMoreDefaultProfileConfig = systemConfigurationManager\n\t\t\t\t\t.loadConfigByName(\"add.more.defaultprofile\");\n\t\t\tif (company != null\n\t\t\t\t\t&& company.getCompletionStatus().intValue() == 3) {\n\t\t\t\tif (addMoreDefaultProfileConfig != null) {\n\n\t\t\t\t\tif (\"true\".equalsIgnoreCase(addMoreDefaultProfileConfig\n\t\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\t\tprofileManager.addMoreDefaultProfile();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlogger.error(\"Some more default profile has been already added.\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlogger.error(\"More Default profile cannot be added as default company has not been added yet.\");\n\t\t\t\tSystemConfiguration addMoreProfileConfig = systemConfigurationManager\n\t\t\t\t\t\t.loadConfigByName(\"add.more.defaultprofile\");\n\t\t\t\taddMoreProfileConfig.setValue(\"false\");\n\t\t\t\tsystemConfigurationManager.save(addMoreProfileConfig);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tlogger.error(\"Profiler Handler could not complete because of \"\n\t\t\t\t\t+ e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// ENL-2685 : End\n\n\t\t// Do all the clean up here. Add the clean up code in\n\t\t// systemCleanUpManager class.\n\t\tSystemCleanUpManager systemCleanUpManager = (SystemCleanUpManager) SpringContext\n\t\t\t\t.getBean(\"systemCleanUpManager\");\n\t\tsystemCleanUpManager.resetAllFixtureGroupSyncFlag();\n\n\t\tString userPath = context.getRealPath(\"/\");\n\t\tif (userPath != null) {\n\t\t\tSystem.out.println(new Date() + \" *** Setting up path \" + userPath);\n\t\t\tServerMain.getInstance().setTomcatLocation(userPath);\n\t\t\tSystem.out.println(new Date() + \" *** Initializing logger\");\n\t\t\tinitLogger(context);\n\t\t} else {\n\t\t\tlogger.fatal(\"Could Not get the real path of Servlet Context\");\n\t\t}\n\n\t\t// Start the Quartz scheduler\n\t\tSystem.out.println(new Date() + \" *** Initializing scheduler\");\n\t\tSchedulerManager.getInstance();\n\t\tgatewayPoll = new Timer(\"Gateway UTC sync\", true);\n\t\tGatewayUTCSync osync = new GatewayUTCSync();\n\t\tgatewayPoll.schedule(osync, ONE_MINUTE_DELAY);\n\t\tSystem.out.println(new Date() + \" *** set EMS mode\");\n\t\tEmsModeControl.resetToNormalIfImageUpgrade();\n \n // Start UEM ping scheduler \n\t\ttry {\n\t\t\tSystem.out.println(new Date() + \" *** starting GLEM check scheduler job\");\n\t\t\tUEMSchedulerManager uemSchedulerManager = (UEMSchedulerManager) SpringContext\n\t\t\t\t\t.getBean(\"uemSchedulerManager\");\n\t\t\tuemSchedulerManager.addUEMSchedulerJob(userPath);\n\t\t} catch (Exception e) {\n\t\t\tlogger.fatal(\"Could not start uem schedule manager\");\n\t\t} \t\t\t\t\n \n\t\tSystem.out.println(new Date() + \" *** done\");\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.vn.com.ecopharma.hrm.rc.model.InterviewSchedule\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<InterviewSchedule>> listenersList = new ArrayList<ModelListener<InterviewSchedule>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<InterviewSchedule>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "void configurationUpdated();", "public void updateProfilesList(File fileToSave, boolean isAdd) {\n // add file to the list\n if (isAdd) {\n profilesMap.put(fileToSave.getName(), new Profiles(fileToSave.getName(), fileToSave.getAbsolutePath()));\n } else {\n profilesMap.remove(fileToSave.getName());\n }\n\n // update saved xml file\n List<Profiles> profilesList = new ArrayList<>(profilesMap.values());\n ProfilesWrapper wrapper = new ProfilesWrapper(profilesList);\n XMLFileManager.saveXML(\"profiles.xml\", wrapper, ProfilesWrapper.class);\n updatedProperty.setValue(!updatedProperty.getValue());\n }", "private IProfileFacade createAndInitializeProfileFacade(\n \t\t\tIFile profileApplicationFile, Collection<Profile> profiles)\n \t\t\tthrows CoreException, IOException {\n \n \t\tIProfileFacade facade = createNewProfileFacade(profileApplicationFile);\n \t\tfor (Profile profile : profiles) {\n \t\t\tfacade.loadProfile(profile);\n \t\t}\n \t\tprofileApplicationFile.refreshLocal(IFile.DEPTH_ZERO, new NullProgressMonitor());\n \t\treturn facade;\n \t}", "@Override\n public void updateProperties() {\n // unneeded\n }", "protected abstract void processProperties(ConfigurableListableBeanFactory beanFactory, Properties props)\n\t\t\tthrows BeansException;", "public void afterPropertiesSet() {\r\n\t}", "private void syncProfileSelection() {\r\n\t\tfor (int i = 0; i < selectedProfiles.size(); i++) {\r\n\t\t\tselectedProfiles.set(i, tableSelectionPD.isProfileSelected(i));\r\n\t\t}\r\n\t}", "@Override\n public void notifyChange(Path path) {\n if (path.toString().equals(JOSSO_GATEWAY_CONFIGURATION.getName())) {\n configureAccessTokens();\n log.debug(\"AuthService reloaded configuration on change to \"+JOSSO_GATEWAY_CONFIGURATION);\n } else if (path.toString().equals(FOUNDATION_CONFIGURATION.getName())) {\n configure();\n log.debug(\"AuthService reloaded configuration on change to \"+FOUNDATION_CONFIGURATION);\n }\n }", "public abstract Properties getProfileProperties();", "public void setProfile(Boolean profile)\n {\n this.profile = profile;\n }", "@Override\n public void onPropertiesChanged(DeviceConfig.Properties properties) {\n if (mOnDeviceConfigChange != null) {\n mOnDeviceConfigChange.onDefaultRefreshRateChanged();\n updateState(mListPreference);\n }\n }", "@Override\n public void setBeanFactory(BeanFactory beanFactory) throws BeansException {\n System.out.println(\"## setBeanFactory(beanFactory) Bean Factory has been set!\");\n }", "public void setObjectFactory(PoolObjectFactory factory) {\n if (initialized)\n throw new IllegalStateException(INITIALIZED);\n this.factory = factory;\n }", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.edu.jhu.cvrg.waveform.main.dbpersistence.model.AnnotationInfo\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<AnnotationInfo>> listenersList = new ArrayList<ModelListener<AnnotationInfo>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<AnnotationInfo>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tlistenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "void updateUserSetupCompleteAndPaired() {\n List<UserInfo> users = mUserManager.getAliveUsers();\n final int N = users.size();\n for (int i = 0; i < N; i++) {\n int userHandle = users.get(i).id;\n if (mInjector.settingsSecureGetIntForUser(Settings.Secure.USER_SETUP_COMPLETE, 0,\n userHandle) != 0) {\n DevicePolicyData policy = getUserData(userHandle);\n if (!policy.mUserSetupComplete) {\n policy.mUserSetupComplete = true;\n if (userHandle == UserHandle.USER_SYSTEM) {\n mStateCache.setDeviceProvisioned(true);\n }\n synchronized (getLockObject()) {\n saveSettingsLocked(userHandle);\n }\n }\n }\n if (mIsWatch && mInjector.settingsSecureGetIntForUser(Settings.Secure.DEVICE_PAIRED, 0,\n userHandle) != 0) {\n DevicePolicyData policy = getUserData(userHandle);\n if (!policy.mPaired) {\n policy.mPaired = true;\n synchronized (getLockObject()) {\n saveSettingsLocked(userHandle);\n }\n }\n }\n }\n }", "public synchronized void flushProfileNames()\n {\n profileNames = null;\n }", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.test.sb.model.Legacydb\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<Legacydb>> listenersList = new ArrayList<ModelListener<Legacydb>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<Legacydb>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "private void preSyncConfiguration() {\n customPreSyncConfiguration.accept(caller, listener);\n }", "public ProfileContextInitializer(final String appName,\r\n\t\t\tfinal String appVersion, final String profileProperty) {\r\n\t\tthis.appName = appName;\r\n\t\tthis.appVersion = appVersion;\r\n\t\tthis.profileProperty = profileProperty;\r\n\t}", "private void getDynamicProfie() {\n getDeviceName();\n }", "public void doRefresh() {\n\t\tArrayList<SystemProperty> props = new ArrayList<>();\n\t\t\n\t\tfor (Entry<Object, Object> entry: System.getProperties().entrySet()) {\n\t\t\tprops.add(new SystemProperty(entry.getKey().toString(), entry.getValue().toString()));\n\t\t}\n\t\tCollections.sort(props);\n\t\tthis.properties = props;\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\tLog.i(\"CONFIG\", \"onResume\");\r\n\t}", "public void addPropertyChangeListener(final PropertyChangeListener thePcl) {\n myPcs.addPropertyChangeListener(thePcl);\n }", "private void populateProfession() {\n try {\n vecProfessionKeys = new Vector();\n StringTokenizer stk = null;\n vecProfessionLabels = new Vector();\n //MSB -09/01/05 -- Changed configuration file.\n // config = new ConfigMgr(\"customer.cfg\");\n// config = new ConfigMgr(\"ArmaniCommon.cfg\");\n config = new ArmConfigLoader();\n String strSubTypes = config.getString(\"PROFESSION\");\n int i = -1;\n if (strSubTypes != null && strSubTypes.trim().length() > 0) {\n stk = new StringTokenizer(strSubTypes, \",\");\n } else\n return;\n if (stk != null) {\n types = new String[stk.countTokens()];\n while (stk.hasMoreTokens()) {\n types[++i] = stk.nextToken();\n String key = config.getString(types[i] + \".CODE\");\n vecProfessionKeys.add(key);\n String value = config.getString(types[i] + \".LABEL\");\n vecProfessionLabels.add(value);\n }\n }\n cbxProfession.setModel(new DefaultComboBoxModel(vecProfessionLabels));\n } catch (Exception e) {}\n }", "@Override\n public void propertyChange(PropertyChangeEvent evt) {\n List<IPSSite> sites = siteMgr.findAllSites();\n String secureDir = PSServer.getRxDir().getAbsolutePath().concat(PSEncryptor.SECURE_DIR);\n if(sites == null || sites.isEmpty()){\n return;\n }\n for(IPSSite site: sites){\n String siteId = site.getSiteId().toString();\n try {\n List<PSPublishServerInfo> pubServerInfo = getPubServerList(siteId,true);\n if(pubServerInfo == null || pubServerInfo.isEmpty()){\n continue;\n }\n for (PSPublishServerInfo pubInfo:pubServerInfo){\n try {\n updatePubServer(siteId, pubInfo.getServerName(), pubInfo);\n } catch (PSDataServiceException | PSNotFoundException e) {\n log.error(\"Secure Key Rotation Failed to update Encryption for site {} Server : {} ERROR: {}\", siteId, pubInfo.getServerName(), PSExceptionUtils.getMessageForLog(e));\n }\n }\n\n } catch (PSPubServerServiceException e) {\n log.error(\"Secure Key Rotation Failed to update Encryption for site {}. ERROR: {}\",siteId,PSExceptionUtils.getMessageForLog(e));\n }\n }\n }", "public void afterPropertiesSet() {\n String[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n com.liferay.util.service.ServiceProps.get(\n \"value.object.listener.com.consistent.ucwrt.model.EntityDealer\")));\n\n if (listenerClassNames.length > 0) {\n try {\n List<ModelListener<EntityDealer>> listenersList = new ArrayList<ModelListener<EntityDealer>>();\n\n for (String listenerClassName : listenerClassNames) {\n listenersList.add((ModelListener<EntityDealer>) InstanceFactory.newInstance(\n getClassLoader(), listenerClassName));\n }\n\n listeners = listenersList.toArray(new ModelListener[listenersList.size()]);\n } catch (Exception e) {\n _log.error(e);\n }\n }\n }", "@Override\n\tpublic int updateProgrameInfo(ProgrameInfo VO) throws Exception {\n\t\tint ret = 0;\n\t\tif (VO.getMode().equals(\"Ins\")){\n\t\t\tVO.setProgCode(egovProgIdGnrService.getNextStringId());\n\t\t\tret = progMapper.insertProgrameInfo(VO);\n\t\t}else {\n\t\t\tret = progMapper.updateProgrameInfo(VO);\n\t\t}\n\t\treturn ret;\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.org.kisti.edison.bestsimulation.model.ScienceAppExecute\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<ScienceAppExecute>> listenersList = new ArrayList<ModelListener<ScienceAppExecute>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<ScienceAppExecute>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "static void updateConfig(FileConfiguration config)\n\t{\n\t\tProfessionListener.config = config;\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.vn.com.ecopharma.emp.model.Department\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<Department>> listenersList = new ArrayList<ModelListener<Department>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<Department>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public void providerStatusMessageChanged(PropertyChangeEvent evt);", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.com.agbar.intranet.generacionFirmas.model.TrabajadorEmpresa\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<TrabajadorEmpresa>> listenersList = new ArrayList<ModelListener<TrabajadorEmpresa>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<TrabajadorEmpresa>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tlistenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public void activate(Properties prop) throws GrpcException {\n\t\t/* check if configFilename were set in environment value */\n\t\tif (System.getProperty(envConfigFilename) != null) {\n\t\t\tconfig = new NgConfig(System.getProperty(envConfigFilename));\n\t\t} else {\n\t\t\tconfig = new NgConfig(prop);\n\t\t}\n\t\tactivate();\n\t}", "@Override\r\n\tpublic void afterPropertiesSet() throws Exception {\n\t\t\r\n\t}", "@Override\n public boolean onProfileChanged(View view, IProfile profile, boolean current) {\n if (profile instanceof IDrawerItem && ((IDrawerItem) profile).getIdentifier() == PROFILE_SETTING) {\n IProfile newProfile = new ProfileDrawerItem().withNameShown(true).withName(\"Batman\").withEmail(\"[email protected]\").withIcon(getResources().getDrawable(R.drawable.profile5));\n if (headerResult.getProfiles() != null) {\n //we know that there are 2 setting elements. set the new profile above them ;)\n headerResult.addProfile(newProfile, headerResult.getProfiles().size() - 2);\n } else {\n headerResult.addProfiles(newProfile);\n }\n }\n\n //false if you have not consumed the event and it should close the drawer\n return false;\n }", "@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\t\n\t}", "public void afterPropertiesSet() {\n\t}", "public void afterPropertiesSet() {\n\t}", "public void afterPropertiesSet() {\n\t}", "public void afterPropertiesSet() {\n\t}", "public void afterPropertiesSet() {\n\t}", "public void afterPropertiesSet() {\n\t}", "public void afterPropertiesSet() {\n\t}", "public void afterPropertiesSet() {\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.it.bysoftware.ct.model.RigoDocumento\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<RigoDocumento>> listenersList = new ArrayList<ModelListener<RigoDocumento>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<RigoDocumento>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.vn.com.ecopharma.hrm.rc.model.Candidate\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<Candidate>> listenersList = new ArrayList<ModelListener<Candidate>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<Candidate>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void afterPropertiesSet() throws Exception {\n }", "public void scheduleStartProfiles() {\n FgThread.getHandler().post(new Runnable() {\n public final void run() {\n UserController.lambda$scheduleStartProfiles$5(UserController.this);\n }\n });\n }", "public void setProfile(Profile profile) {\n\t\tthis.profile = profile;\n\t}", "@java.lang.Override\n public int getProfilesCount() {\n return profiles_.size();\n }", "@Override\n\tpublic void onConfigurationUpdate() {\n\t}", "private void infereProteinsChanged() {\n boolean enabled = checkInferProteins.isSelected();\n\n filtersProteinInference.setEnabled(enabled);\n comboAvailableBaseScores.setEnabled(enabled);\n filtersProteinLevel.setEnabled(enabled);\n\n Enumeration<AbstractButton> btns = radioGrpInferenceMethod.getElements();\n while (btns.hasMoreElements()) {\n btns.nextElement().setEnabled(enabled);\n }\n\n btns = radioGrpProteinScoring.getElements();\n while (btns.hasMoreElements()) {\n btns.nextElement().setEnabled(enabled);\n }\n\n btns = radioGrpPSMsForScoring.getElements();\n while (btns.hasMoreElements()) {\n btns.nextElement().setEnabled(enabled);\n }\n }" ]
[ "0.5692902", "0.55035776", "0.5485446", "0.54065704", "0.53268355", "0.52921546", "0.5274232", "0.5269958", "0.5231475", "0.52213764", "0.5218239", "0.5206439", "0.5189836", "0.5145174", "0.5135895", "0.5130495", "0.51275194", "0.51229286", "0.5114236", "0.5085378", "0.5080714", "0.5080582", "0.50733274", "0.5048144", "0.5043846", "0.5043501", "0.50395167", "0.50367683", "0.50168085", "0.5008041", "0.5007194", "0.50064117", "0.50004673", "0.49963447", "0.497765", "0.49643368", "0.49630743", "0.49617967", "0.49606368", "0.4958023", "0.49495062", "0.4945885", "0.49191794", "0.49129486", "0.49079654", "0.4907876", "0.49023706", "0.49003002", "0.48805052", "0.48784155", "0.48700354", "0.4869238", "0.48659992", "0.48637116", "0.48634273", "0.48633894", "0.48572743", "0.48544037", "0.48517212", "0.48515272", "0.48494306", "0.48479727", "0.48471683", "0.48392546", "0.48372993", "0.4836149", "0.48359865", "0.48347774", "0.48318848", "0.48236573", "0.48232475", "0.4823137", "0.48221472", "0.4821507", "0.48151702", "0.48092133", "0.48091438", "0.48084328", "0.4807881", "0.4802619", "0.4799155", "0.4795516", "0.4795516", "0.4795516", "0.47927988", "0.47927988", "0.47927988", "0.47927988", "0.47927988", "0.47927988", "0.47927988", "0.47927988", "0.47833893", "0.4781462", "0.477972", "0.47699547", "0.47682533", "0.47646356", "0.47584417", "0.47491536" ]
0.6274024
0
onCreate() > onStart() > onResume() > Actividad
@Override protected void onResume() { super.onResume(); // Verifica la orientación checkOrientation(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onResume() {\n super.onResume();\n Log.i(\"LOG:\", \"ESTOY EN RESUME\");\n activarSensores();\n }", "public void onResume();", "@Override\n public void onResume() {\n }", "public void onResume() {\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tLog.v(TAG, \"onCreate\");\n\t}", "@Override\n protected void onResume() {\n// super.onResume();\n MyApplication.getInstance().setcontext(this);\n // Log.e(\"act_tenth_TAG\", \"onResume of :\" + this.getClass().getSimpleName().toString());\n\n\n super.onResume();\n }", "void onResume();", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\tLog.d(\"maintab\", \"maintab_MainActivity------onResume\");\r\n\r\n\t}", "@Override\n protected void onResume() {\n super.onResume();\n\n Log.d(LOG_TAG, \"onResume()\");\n\n\n\n }", "@Override\r\n\tpublic void onResume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onResume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onResume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onResume() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\t\r\n\t}", "@Override\n\tprotected void onResume() {\n\t\t\n\t\tinit();\n\t\tsuper.onResume();\n\n\t}", "@Override\n\tpublic void onResume() {\n\n\t}", "@Override\n\tpublic void onResume() {\n\n\t}", "@Override\n protected void onStart() {\n super.onStart();\n iniciar();\n }", "public void onResume() {\n super.onResume();\n }", "public void onResume() {\n super.onResume();\n }", "@Override\n protected void onResume(){\n super.onResume();\n Log.d(TAG_INFO,\"application resumed\");\n }", "@Override\n protected void onResume(){\n super.onResume();\n Log.d(TAG_INFO,\"application resumed\");\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n isPrepared = true;\n activity = getActivity();\n app = (App) activity.getApplication();\n handler = new ResumeInfoHandler(activity, this);\n resumeInfoFragment = ResumeInfoFragment.this;\n }", "@Override\r\n protected void onResume() {\n super.onResume();\r\n Log.i(TAG, \"onResume\");\r\n\r\n }", "@Override\n protected void onResume() {\n Log.i(\"G53MDP\", \"Main onResume\");\n super.onResume();\n }", "@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\t\t\r\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tLog.i(TAG, module + \" Entra por onResume\");\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\t\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\t\r\n\t}", "@Override\n \tprotected void onResume() {\n \t\tsuper.onResume();\n \t\tLog.d(TAG, \"onResume\");\n \t}", "@Override\n protected void onResume() {\n super.onResume();\n\n }", "@Override\n protected void onResume() {\n super.onResume();\n\n }", "@Override\n protected void onResume() {\n super.onResume();\n\n }", "@Override\n public void onResume() {\n super.onResume();\n }", "@Override\n public void onResume() {\n super.onResume();\n }", "@Override\n public void onResume() {\n super.onResume();\n }", "@Override\n public void onResume() {\n super.onResume();\n }", "@Override\n public void onResume() {\n super.onResume();\n }", "protected void onResume() {\n super.onResume();\n startServices();\n }", "@Override\n \tprotected void onResume() {\n \t\tsuper.onResume();\n \t}", "@Override\n \tprotected void onResume() {\n \t\tsuper.onResume();\n \t}", "@Override\n public void onResume() {\n\n super.onResume();\n }", "@Override\n protected void onResume() {\n super.onResume();\n }", "@Override\n protected void onResume() {\n super.onResume();\n }", "@Override\n protected void onResume() {\n super.onResume();\n }", "@Override\n protected void onResume() {\n super.onResume();\n }", "@Override\r\n protected void onResume() {\n\tsuper.onResume();\r\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\t \n\t}", "@Override\n public void onResume(Activity activity) {\n }", "@Override\n\tprotected void onResume() \n\t{\n\t\tsuper.onResume();\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\r\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tLog.v(\"tag\",\"onResume\" );\n\t}", "@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\t\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n protected void onResume() {\r\n Log.i(TAG, \"onResume()\");\r\n \r\n super.onResume();\r\n }", "@Override\n protected void onResume() {\n super.onResume();\n init();\n decideScreen();\n }", "@Override\n protected void onResume() {\n super.onResume();\n Log.d(TAG, \"onResume() called\");\n }", "@Override\n protected void onResume() {\n super.onResume();\n Log.v(TAG, \"Invoked onResume()\");\n\n }", "@Override\n\tprotected void onResume()\n\t{\n\t\tsuper.onResume();\n\t}", "@Override\n protected void onResume() {\n super.onResume();\n active = true;\n }", "@Override\n protected void onResume() {\n super.onResume();\n active = true;\n }", "@Override\n\tprotected void onResume()\n\t{\n\t\tsuper.onResume();\n\n\t}", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\n\t}", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\n\t}", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tLog.i(TAG, \"onResume\");\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\t\t\t\n\t\t\t\t\n\t}", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t}", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t}", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t}", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t}", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t}", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t}", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}", "@Override\n public void onResume(){\n super.onResume();\n new Database();\n Auth.addAuthListener();\n fetchData();\n updateUIMode();\n }" ]
[ "0.7861917", "0.76330656", "0.76152873", "0.76062423", "0.7605676", "0.75480527", "0.7538176", "0.7529", "0.74813634", "0.7471492", "0.7471492", "0.7471492", "0.7471492", "0.7450162", "0.7447176", "0.74464923", "0.74464923", "0.7443883", "0.74285275", "0.74285275", "0.7418302", "0.7418302", "0.7411121", "0.7399677", "0.7397872", "0.7396085", "0.73881936", "0.73773444", "0.73773444", "0.7373378", "0.73693866", "0.73693866", "0.73693866", "0.73426294", "0.73426294", "0.73426294", "0.73426294", "0.73426294", "0.7329689", "0.73237664", "0.73237664", "0.7322961", "0.73156834", "0.73156834", "0.73156834", "0.73156834", "0.72968805", "0.72925746", "0.7270999", "0.7257765", "0.72537416", "0.72537416", "0.72339463", "0.72307146", "0.72307146", "0.72307146", "0.72187674", "0.72161293", "0.72161293", "0.72161293", "0.72161293", "0.72161293", "0.72161293", "0.72161293", "0.72161293", "0.72161293", "0.72161293", "0.7215239", "0.72054756", "0.7182525", "0.71793765", "0.71730644", "0.71718496", "0.71718496", "0.7161458", "0.71496344", "0.71496344", "0.7145403", "0.7140546", "0.71356404", "0.71356404", "0.71356404", "0.71356404", "0.71356404", "0.71356404", "0.71356404", "0.71315026", "0.71315026", "0.71315026", "0.71315026", "0.71315026", "0.71315026", "0.71315026", "0.71315026", "0.71315026", "0.71315026", "0.71315026", "0.71315026", "0.71315026", "0.71315026", "0.7128511" ]
0.0
-1
Actividad > onPause() > onStop() > onDestroy()
@Override protected void onDestroy() { super.onDestroy(); // Si se sale de la APP libera la búsqueda // y desconecta la bd buscador.liberar_busqueda(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"deprecation\")\n @Override\n protected void onDestroy() {\n super.onDestroy();\n isPaused = true;\n }", "public void onPause();", "void onDestroy();", "void onDestroy();", "void onDestroy();", "void onDestroy();", "@Override\n public void onPause(Activity activity) {\n }", "public void onPause() {\n }", "public void onPause()\n {\n\n }", "public void onDestroy();", "public void onDestroy();", "public void onStop();", "protected void onDestroy() {\n\t\t if (com.example.main_project.MainActivity.tts!=null) {\n\t\tcom.example.main_project.MainActivity.tts.stop();\n\n\n\t\tcom.example.main_project.MainActivity.tts.shutdown();\n\t\t}\n\t\t super.onDestroy();\n\t\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tstop();\n\t}", "protected abstract void onPause();", "@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tLogger.d(TAG, \"onStop.....\");\n\t}", "@Override\n protected void onPause() {\n super.onPause();\n Log.i(\"ActivityLifecycle\", getLocalClassName() + \"-onPause\");\n }", "@Override\n\tpublic void onPause() {\n\n\t}", "@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tSystem.out.println(\"destroy\");\n\t\t unregisterReceiver(KER);\n\t\t if(PosccalmRunnable!=null)\n\t\t PosccalmRunnable.destroy();\n\t}", "public void onPause () {\n\t\t\n\t}", "@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tManager.onDestroy();\n\t\tSystem.out.println(\"DESTROYING APP\");\n//\t\tManager.analytics.sendUserTiming(\"Total Activity Time\", System.currentTimeMillis() - game.activityStartTime);\n\t}", "abstract void onDestroy();", "public void onStop() {\n\n }", "@Override\n public void onStop()\n {\n }", "@Override\r\n\tpublic void onPause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onPause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onPause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onPause() {\n\t\t\r\n\t}", "public void onStop() {\n }", "public void onStop() {\n }", "protected void onDestroy() {\n }", "@Override\n public void onPause() {\n super.onPause();\n Log.d(\"Interface\", \"MyoControlActivity onPause\");\n }", "public void onDestroy(){\n }", "public void onDestroy() {\r\n }", "@Override\r\n protected void onStop() {\n }", "@Override\r\n\tprotected void onPause() {\n\t\t\r\n\t}", "public void onDestroy() {\n }", "@Override\r\n public void onDestroy() {\n if (tts != null) {\r\n tts.stop();\r\n tts.shutdown();\r\n }\r\n super.onDestroy();\r\n }", "@Override\n protected void onPause() {\n isRunning = false;\n super.onPause();\n }", "@Override\r\n\tprotected void onStop() {\n\t\t\r\n\t}", "public void onStop () {\t\t\n\t\t\n\t}", "@Override\n protected void onPause() {\n super.onPause();\n active = false;\n }", "@Override\n protected void onPause() {\n super.onPause();\n active = false;\n }", "@Override\n protected void onDestroy() {\n if (m_tts!=null) {\n m_tts.stop();\n m_tts.shutdown();\n }\n super.onDestroy();\n }", "@Override\n\tpublic void onPause() {\n\t\tsuper.onPause();\n\t\tStatService.onPause(context);\n\t}", "@Override\n public void onStop() {\n }", "@Override\n protected void onStop() {\n }", "@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t\tthis.onDestroy();\n\t}", "protected void onPause(Bundle savedInstanceState) {\r\n\t\t\r\n\t}", "@Override\n protected void onPause() {\n super.onPause();\n stopAllListeners();\n }", "@Override\r\n public void onPause() {\r\n super.onPause();\r\n Intent intent = new Intent(MainActivity.this, MusicService.class);\r\n stopService(intent);\r\n }", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tstopTimer();\r\n\t}", "@Override\r\n public void onDestroy() {\n }", "@Override\n \tprotected void onPause() {\n \t\tsuper.onPause();\n \t}", "@Override\n \tprotected void onPause() {\n \t\tsuper.onPause();\n \t}", "@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tLog.e(\"Ganxiayong\", \"-----------onPause()---------\");\n\t\tfinish();\n\t}", "@Override\n protected void onPause() {\n Log.i(\"G53MDP\", \"Main onPause\");\n super.onPause();\n }", "protected void onPause() {\n super.onPause();\n helloo.stop();\n }", "@Override\r\n public void onStop() {\r\n super.onStop();\r\n\r\n\r\n }", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\trunActivity = 0;\r\n\t}", "@Override\n protected void onStop() {\n super.onStop();\n }", "@Override\n protected void onPause(){\n super.onPause();\n Log.d(TAG_INFO,\"application paused\");\n }", "@Override\n protected void onPause(){\n super.onPause();\n Log.d(TAG_INFO,\"application paused\");\n }", "public void onDestroy() {\n if (tts != null) {\n tts.stop();\n tts.shutdown();\n }\n super.onDestroy();\n }", "public void onStop() {\n }", "@Override\n public void onDestroy() {\n if (tts != null) {\n tts.stop();\n tts.shutdown();\n }\n super.onDestroy();\n }", "@Override\n public void onDestroy() {\n if (tts != null) {\n tts.stop();\n tts.shutdown();\n }\n super.onDestroy();\n }", "@Override\n public void onDestroy() {\n if (tts != null) {\n tts.stop();\n tts.shutdown();\n }\n super.onDestroy();\n }", "@Override\n public void onDestroy() {\n if (tts != null) {\n tts.stop();\n tts.shutdown();\n }\n super.onDestroy();\n }", "@Override\n protected void onPause() {\n super.onPause();\n //stopService(serviceIntent);\n\n }", "@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tApplicationStatus.activityPaused();\n\t}", "@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tunregisterReceiver(timerec);\n\t}", "@Override\n public void onDestroy() {\n super.onDestroy();\n // if (PlayerService.myMediaPlayer != null) {\n // PlayerService.myMediaPlayer.stop();\n // PlayerService.myMediaPlayer.release();\n // PlayerService.myMediaPlayer = null;\n // }\n Log.d(TAG,\"MainActivity destroyed\");\n }", "@Override\n \tprotected void onDestroy() {\n \t\tsuper.onDestroy();\n \t\tLog.d(TAG, \"onDestroy\");\n \t}", "@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void onStop() {\n\n\t}", "@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tLog.i(TAG, module + \" Entra por onPause\");\n\t}", "@Override\n public void onDestroy() {\n }", "@Override\n public void onDestroy() {\n }", "@Override\r\n\tpublic void onPause() {\n\t\tsuper.onPause();\r\n\t}", "@Override\r\n\tpublic void onPause() {\n\t\tsuper.onPause();\r\n\t}", "@Override\r\n\tpublic void onPause() {\n\t\tsuper.onPause();\r\n\t}", "@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\t\n\t}", "@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\t\n\t}", "public void onPause() {\n super.onPause();\r\n }", "@Override\n protected void onPause() {\n super.onPause();\n Log.i(TAG, \"onPause\");\n }", "@Override\r\n protected void onPause() {\r\n super.onPause();\r\n\r\n\r\n\r\n }", "@Override\r\n\tpublic void onDestroy() {\n\t}", "@Override\r\n\tpublic void onDestroy() {\n\t\t\r\n\t}", "@Override\n public void onPause() {\n super.onPause();\n }", "@Override\n public void onPause() {\n super.onPause();\n }", "@Override\n public void onPause() {\n super.onPause();\n }", "@Override\n public void onPause() {\n super.onPause();\n }", "@Override\n public void onPause() {\n super.onPause();\n }", "@Override\n public void onPause() {\n super.onPause();\n }", "@Override\n protected void onPause() {\n super.onPause();\n Log.d(LOG_TAG, \"onPause()\");\n\n }", "@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n\t\tLog.d(\"maintab\", \"maintab_MainActivity------onPause\");\r\n\t}", "@Override\n\tprotected void onPause()\n\t{\n\t\tsuper.onPause();\n\t}", "@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n\t}", "@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n\t}", "@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n\t}" ]
[ "0.79187524", "0.77874696", "0.7623684", "0.7623684", "0.7623684", "0.7623684", "0.75949275", "0.7590761", "0.75857943", "0.7577745", "0.7577745", "0.75248814", "0.7503445", "0.7467946", "0.7465853", "0.7457633", "0.74456215", "0.74444497", "0.743178", "0.7417594", "0.7415295", "0.7413148", "0.7406302", "0.73982453", "0.73793584", "0.73793584", "0.73793584", "0.73793584", "0.73746896", "0.73746896", "0.7374203", "0.73641074", "0.7354272", "0.73521316", "0.7346532", "0.7341596", "0.73414034", "0.7332982", "0.73033565", "0.7296467", "0.72872746", "0.72696495", "0.72696495", "0.7269549", "0.72624075", "0.725533", "0.72498196", "0.7245526", "0.7244027", "0.72433025", "0.7233682", "0.72327524", "0.72230536", "0.7220033", "0.7220033", "0.72129893", "0.7212034", "0.7209397", "0.72065616", "0.7202035", "0.7200912", "0.72007567", "0.72007567", "0.71957844", "0.71883786", "0.71879274", "0.71879274", "0.71879274", "0.71879274", "0.71871984", "0.7179647", "0.71794075", "0.71763724", "0.7168414", "0.71677136", "0.7166466", "0.7166383", "0.7165051", "0.7165051", "0.716496", "0.716496", "0.716496", "0.71580976", "0.71580976", "0.7158031", "0.7156028", "0.71547633", "0.71502537", "0.71453196", "0.71444285", "0.71444285", "0.71444285", "0.71444285", "0.71444285", "0.71444285", "0.7143734", "0.71436954", "0.71412146", "0.71369493", "0.71369493", "0.71369493" ]
0.0
-1
Reacciona a los eventos de click
@Override public void onClick(View view) { int btn = view.getId(); switch (btn) { case R.id.B_buscar: // Se ha pulsado buscar... activa la búsqueda wi_search.setQuery(wi_search.getQuery(), true); break; case R.id.B_weather: goToWeather(); break; case R.id.B_suge1: wi_search.setQuery(b_sugerencias[0].getText(), true); break; case R.id.B_suge2: wi_search.setQuery(b_sugerencias[1].getText(), true); break; case R.id.B_suge3: wi_search.setQuery(b_sugerencias[2].getText(), true); break; case R.id.B_suge4: wi_search.setQuery(b_sugerencias[3].getText(), true); break; case R.id.B_suge5: wi_search.setQuery(b_sugerencias[4].getText(), true); break; case R.id.B_suge6: wi_search.setQuery(b_sugerencias[5].getText(), true); break; case R.id.B_cancelar: cancelarBusqueda(); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void mouseClicked(MouseEvent e) {\n if (e.getClickCount()==1) {\n this.datos();\n }\n if (e.getClickCount()==2) {\n this.eliminar(); \n } \n \n }", "public void eventos() {\n btnAbrir.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent evt) {\n btnAbrirActionPerformed(evt);\n }\n });\n }", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tjanelaDeRecursos = new ViewDesalocarRecurso();\r\n\t\t\r\n\t\t\t}", "protected void onClick() {\n for(Runnable action : onClick) action.run();\n }", "@Override\n public void onClick(View view) {\n IdEvento = obtenerEmegencia().get(recyclerViewEmergencia.getChildAdapterPosition(view)).getId();\n\n //Se muestra un mensaje en pantalla de lo que seleciono\n Next();\n }", "protected void CriarEventos() {\r\n\r\n\r\n //CRIANDO EVENTO NO BOTÃO SALVAR\r\n buttonSalvar.setOnClickListener(new View.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(View v) {\r\n\r\n Salvar_onClick();\r\n }\r\n });\r\n\r\n //CRIANDO EVENTO NO BOTÃO VOLTAR\r\n buttonVoltar.setOnClickListener(new View.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(View v) {\r\n\r\n Intent intentMainActivity = new Intent(getApplicationContext(), CadastrarActivity.class);\r\n startActivity(intentMainActivity);\r\n finish();\r\n }\r\n });\r\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tSystem.out.println(\"vai ficar clikando ai a toa? PATETA\");\n\t\t\t\t\n\t\t\t}", "private void btnModificarMouseClicked(java.awt.event.MouseEvent evt) {\n }", "public void onClicked();", "public static void clickEvent() {\n counterClicks += 1;\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tllistenBtnset();\n\t\t\t}", "private void u_c_estadoMouseClicked(java.awt.event.MouseEvent evt) {\n }", "@Override\n public void mouseClicked(MouseEvent e) {\n System.out.println(\"MouseClicked\");\n //kwadrat.clicked();\n trojkat.clicked();\n //kolo.clicked();\n //square.clicked();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tactualizarOnClick();\n\t\t\t}", "public void click(){\n\t\t\n\tfor(MouseListener m: listeners){\n\t\t\t\n\t\t\tm.mouseClicked();\n\t\t}\n\t\t\n\t}", "@Override\n public void onClick(View view) {\n resetEverything();\n }", "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "@Override\n public void mousePressed(MouseEvent e){\n String boton = W.detClick( e.getButton() );\n \n //System.out.println(\"->Mouse: Presionando Click \" + boton );\n }", "@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t}", "public void mouseClicked(MouseEvent e) {\n adaptee.listSeleccionadas_mouseClicked(e);\n }", "@Override\r\n public void onClick(ClickEvent event) {\n }", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n public void onClick(View v) {\n set();\n }", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\tpunto1.setFilled(true);\n\t\t\t\tpunto1.setColor(Color.red);\n\t\t\t\t\tif(numClicks == 0) {\n\t\t\t\t\t\tadd(punto1, e.getX(),e.getY());\n\t\t\t\t\t\tnumClicks++;\n\t\t\t\t\t\taprox.setStartPoint(e.getX(), e.getY());\n\t\t\t\t\t\tadd(engorgio1, e.getX(),e.getY());\n\n\t\t\t\t\t}\n\t\t//final\n\t\t\t\t\telse if(numClicks == 1) {\n\t\t\t\t\t\tpunto2.setFilled(true);\n\t\t\t\t\t\tpunto2.setColor(Color.blue);\n\t\t\t\t\t\tadd(punto2, e.getX(),e.getY());\n\t\t\t\t\t\tnumClicks++;\n\t\t\t\t\t\taprox.setEndPoint(e.getX(), e.getY());\n\t\t\t\t\t\tadd(aprox);\n\t\t\t\t\t\tadd(engorgio2, e.getX(),e.getY());\n\t\t\t\t\t}\n\t\t}", "private void addClick() {\n\t\tfindViewById(R.id.top_return).setOnClickListener(this);\n\t\tfm1_jhtx.setOnClickListener(this);\n\t\tfm1_sx.setOnClickListener(this);\n\t}", "private void setupClickEvents() {\n ivAddNewCategory.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n addNewCategory();\n }\n });\n }", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void mouseClicked(MouseEvent e) {\n adaptee.listDisponibles_mouseClicked(e);\n }", "public void eventos()\n\t{\n\t\tvuelos.addActionListener(new ActionListener()\n\t\t{\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0)\n\t\t\t{\n\t\t\t\tVuelo v = (Vuelo) vuelos.getSelectedItem();\n\t\t\t\tif(v!=null)\n\t\t\t\t{\n\t\t\t\t\tllenarPasabordos(v.getId());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t\t\t}", "@Override\n\tpublic void onClick(ClickEvent arg0) {\n\t\t\n\t}", "@Override\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t}", "public void mouseClicked(MouseEvent e) \t{\n\t\t\t\t\r\n\t\t\t}", "protected void dopositiveClick2() {\n\n }", "@Override\n public void mouseClicked(MouseEvent e) {\n System.out.println(\"Evento click ratón\");\n }", "@Override\n public void mouseClicked(MouseEvent e) {\n clicked = true;\n }", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "private void initSwitchEvents(){\n s1.setOnClickListener(v ->\n eventoSuperficie()\n );\n s2.setOnClickListener(v ->\n eventoSemiSumergido()\n );\n s3.setOnClickListener(v ->\n eventoSumergido()\n );\n // Hace click en el estado actual\n switch (PosicionBarrasReactor.getPosicionActual()){\n case SUMERGIDO:\n s3.toggle();\n break;\n case SEMI_SUMERGIDO:\n s2.toggle();\n break;\n case SUPERFICIE:\n s1.toggle();\n break;\n }\n // -\n }", "@SuppressLint(\"CheckResult\")\n private void initializeClickEvents() {\n //create the onlick event for the add picture button\n Disposable pictureClick = RxView.clicks(mAddPictureBtn)\n .subscribe(new Consumer<Unit>() {\n @Override\n public void accept(Unit unit) {\n if (mImages.size() < MAX_NUM_IMAGES) {\n displayPictureMethodDialog();\n } else {\n Toast.makeText(AddListingView.this, R.string.maximum_images, Toast.LENGTH_LONG).show();\n }\n }\n });\n mCompositeDisposable.add(pictureClick);\n\n\n //create the on click event for the save button\n final Disposable save = RxView.clicks(mSaveButton)\n .subscribe(new Consumer<Unit>() {\n @Override\n public void accept(Unit unit) {\n saveData();\n }\n });\n mCompositeDisposable.add(save);\n\n\n //create onclick for the property status image\n Disposable statusChange = RxView.clicks(mSaleStatusImage)\n .subscribe(new Consumer<Unit>() {\n @Override\n public void accept(Unit unit) {\n switch (mSaleStatusImage.getTag().toString()) {\n case FOR_SALE_TAG:\n updateListingSoldStatus(true);\n break;\n case SOLD_TAG:\n updateListingSoldStatus(false);\n }\n }\n });\n mCompositeDisposable.add(statusChange);\n }", "private void setOnClickListeners(){\n mDueDate.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n pickDate(mDueDateCalendar);\n }\n });\n mDueTime.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n pickTime(mDueDateCalendar);\n }\n });\n }", "public void menuClicked()\r\n {\r\n listening = true;\r\n\ta = b = null;\r\n\trepaint();\r\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tclickMulti();\n\t\t\t}", "@Override\n\tprotected void setOnClickForButtons() {\n\t\tthis.buttons[0].setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent(getActivity(), MainScreenActivity.class);\n\t\t\t\tstartActivity(i);\n\t\t\t\tMainFunctions.selectedOption = 1;\n\t\t\t\tdestroyServices();\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\n\t\t/* message box - onclick event */\n\t\tthis.buttons[1].setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdestroyServices();\n\t\t\t\tMainFunctions.selectedOption = 2;\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\t\t\n\t\t/* one tick sound */\n\t\tfor (int i = 0; i < this.totalButtons; i++){\n\t\t\tfinal String desc = buttons[i].getTag().toString();\n\t\t\tbuttons[i].setOnFocusChangeListener(new View.OnFocusChangeListener() {\n\t\t\t\tpublic void onFocusChange(View v, boolean hasFocus) {\n\t\t\t\t\tif (hasFocus) {\n\t\t\t\t\t\tLog.i(TAG, \"Button \" + desc + \" was selected\");\n\t\t\t\t\t\tlogFunctions.logTextFile(\"Button \" + desc + \" was selected\");\n\t\t\t\t\t\tspeakButton(desc, 1.0f, 1.0f);\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "@Override\n\tpublic void setOnClick() {\n\n\t}", "@Override\n public void onClick() {\n }", "private void setUpClickListerns ()\n\t{\n\t\tLinearLayout temp_layout ;\n\t\tButton temp_button ;\n\t\tfor (int i = 0 ; i<numPad.getChildCount() ; i++)\n\t\t{\n\t\t\ttemp_layout = (LinearLayout) numPad.getChildAt(i);\n\t\t\tfor (int j = 0;j< temp_layout.getChildCount() ; j++)\n\t\t\t{\n\t\t\t\ttemp_button = (Button) temp_layout.getChildAt(j);\n\t\t\t\ttemp_button.setOnClickListener(this);\n\t\t\t}\n\t\t}\n\t\t\n\t\tchangePass.setOnClickListener(this);\n\t\tclear.setOnClickListener(this);\n\t\tpassField.setFocusable(false);\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "protected void CriarEventos(){\n ListMenu.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String opcMenu = ((TextView) view).getText().toString();\n\n RedirecionaTela(opcMenu);\n }\n });\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif(e.getButton()==MouseEvent.BUTTON1)\n\t\t\t\t{\n\t\t\t\t\tif(Conf.isbegin==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isbegin=0;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isbegin=1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(e.getButton()==MouseEvent.BUTTON3)\n\t\t\t\t{\n\t\t\t\t\tif(Conf.isreplay==1)\t\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isreplay=0;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isreplay=1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}" ]
[ "0.71901083", "0.7088907", "0.6869325", "0.6747775", "0.66549593", "0.66373223", "0.6627715", "0.6615328", "0.66131943", "0.66125244", "0.658998", "0.65611255", "0.65526754", "0.65383136", "0.6525839", "0.65118384", "0.6506244", "0.65042275", "0.6503269", "0.64901483", "0.648334", "0.6479706", "0.6473473", "0.64698905", "0.64698905", "0.64698905", "0.6455337", "0.643532", "0.6434918", "0.6428791", "0.6425478", "0.6423862", "0.6423862", "0.6423862", "0.6423862", "0.6423862", "0.6423862", "0.6423862", "0.6423862", "0.6423862", "0.6423862", "0.6423862", "0.64160496", "0.6415648", "0.6411102", "0.6411102", "0.64052945", "0.64022905", "0.6398517", "0.63976246", "0.63905066", "0.63699055", "0.6367446", "0.6357867", "0.63574547", "0.63545954", "0.63540214", "0.63477975", "0.6342602", "0.6342602", "0.6342602", "0.6341283", "0.6335188", "0.6332885", "0.63095105", "0.63094467", "0.6301398", "0.6301398", "0.6301398", "0.6301398", "0.6301398", "0.6301398", "0.6301398", "0.6301398", "0.6301398", "0.6301398", "0.6301398", "0.6301398", "0.6301398", "0.6301398", "0.6301398", "0.6301398", "0.6301398", "0.6301398", "0.6301398", "0.6301398", "0.6301398", "0.6299963", "0.6293523", "0.6289937", "0.6289937", "0.6289937", "0.62876004", "0.6281579", "0.627877", "0.62784666", "0.62784666", "0.62784666", "0.62784666", "0.62784666", "0.62784666" ]
0.0
-1
Activa el item menu_borrar_busquedas
@Override public boolean onCreateOptionsMenu(Menu menu) { // Primero configura el menu de MenuActivity super.onCreateOptionsMenu(menu); // Activa el item MenuItem item = menu.findItem(R.id.menu_borrar_busquedas); if (item !=null) { item.setEnabled(true); item.setVisible(true); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase R.id.menu_borrar_busquedas:\n\t\t\tdo_limpiar_sugerencias();\n\t\t\treturn true;\n\t\t\t\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "public static void Regresar() {\n menu.setVisible(true);\n Controlador.ConMenu.consultaPlan.setVisible(false);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.pesquisar:\n Toast.makeText(getApplicationContext(), \"Localizar\", Toast.LENGTH_LONG).show();\n return true;\n case R.id.adicionar:\n incluir(getCurrentFocus());\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n\tpublic void activarModoPrestamo() {\n\t\tif(uiHomePrestamo!=null){\n\t\t\tif(uiHomePrestamo.getModo().equals(\"HISTORIAL\")){\n\t\t\t\tbtnNuevo.setVisible(false);\t\n\t\t\t\tbtnEliminar.setVisible(false);\n\t\t\t}else{\n\t\t\t\tbtnNuevo.setVisible(true);\n\t\t\t\tbtnEliminar.setVisible(true);\n\t\t\t}\n\t\t}else if(uiHomeCobranza!=null){\n\t\t\tbtnEliminar.setVisible(false);\n\t\t\tbtnNuevo.setVisible(true);\n\t\t\t//pnlEstadoPrestamo.setVisible(false);\n\t\t}\n\t\t\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_settings) {\r\n /* Toast.makeText(this,\"open settings\",Toast.LENGTH_LONG).show(); */\r\n\r\n Intent i = new Intent(this,SelectCity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n startActivity(i);\r\n finish();\r\n\r\n return true;\r\n }\r\n\r\n if(id == R.id.buscar){\r\n if(!buscador) {\r\n searchView.setVisibility(View.VISIBLE);\r\n }else{\r\n searchView.setVisibility(View.GONE);\r\n }\r\n buscador = !buscador;\r\n }\r\n\r\n if(id == R.id.act_shared){\r\n\r\n Intent sendIntent = new Intent();\r\n sendIntent.setAction(Intent.ACTION_SEND);\r\n sendIntent.putExtra(Intent.EXTRA_TEXT, \"baixe agora mesmo o Informa Brejo https://play.google.com/store/apps/details?id=br.com.app.gpu1625063.gpu2aaa183c0d1d6f0f36d0de2b490d2bbe\");\r\n sendIntent.setType(\"text/plain\");\r\n startActivity(sendIntent);\r\n\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "public boolean onOptionsItemSelected(MenuItem item){\n int id=item.getItemId();\n switch (id){\n\n case(R.id.opcion1):\n Intent intent1=new Intent(Home.this,Acercade.class);\n startActivity(intent1);\n break;\n\n case(R.id.opcion2):\n cambiarIdioma(\"en\");\n Intent intent2=new Intent(Home.this,Home.class);\n startActivity(intent2);\n break;\n\n case(R.id.opcion3):\n cambiarIdioma(\"es\");\n Intent intent3=new Intent(Home.this,Home.class);\n startActivity(intent3);\n break;\n\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void barraprincipal(){\n setJMenuBar(barra);\n //Menu archivo\n archivo.add(\"Salir del Programa\").addActionListener(this);\n barra.add(archivo);\n //Menu tareas\n tareas.add(\"Registros Diarios\").addActionListener(this);\n tareas.addSeparator();\n tareas.add(\"Ver Catalogo de Cuentas\").addActionListener(this);\n tareas.addSeparator();\n tareas.add(\"Empleados\").addActionListener(this);\n tareas.addSeparator();\n tareas.add(\"Productos\").addActionListener(this);\n tareas.addSeparator();\n tareas.add(\"Generacion de Estados Financieros\").addActionListener(this);\n barra.add(tareas);\n //Menu Ayuda\n ayuda.add(\"Acerca de...\").addActionListener(this);\n ayuda.addSeparator();\n barra.add(ayuda);\n //Para ventana interna\n acciones.addItem(\"Registros Diarios\");\n acciones.addItem(\"Ver Catalogo de Cuentas\");\n acciones.addItem(\"Empleados\");\n acciones.addItem(\"Productos\");\n acciones.addItem(\"Generacion de Estados Financieros\");\n aceptar.addActionListener(this);\n salir.addActionListener(this);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n /*if (id == R.id.action_settings) {\n return true;\n }*/\n\n switch (item.getItemId()) {\n\n // Id correspondente ao botão Up/Home da actionbar\n case android.R.id.home:\n\n Intent intent2 = new Intent();\n intent2.putExtra(\"numpedido\", numpedido);\n setResult(1, intent2);\n //intent.putExtra(\"codigo\", codigo);\n //startActivity(intent);\n finish();\n\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n case R.id.action_settings:\n if(FU_ConsisteItem()) {\n if(operacao.equals(\"I\")) {\n if (FU_IncluirItemPedido()) {\n MensagemUtil.addMsg(ManutencaoProdutoPedido.this, \"Produto incluido com sucesso!\");\n Intent intent = new Intent();\n intent.putExtra(\"numpedido\", numpedido);\n setResult(1, intent);\n //intent.putExtra(\"codigo\", codigo);\n //startActivity(intent);\n finish();\n //Intent intent = new Intent(ManutencaoProdutoPedido.this, AdicionarProdutosCustomizada.class);\n //intent.putExtra(\"numpedido\", numpedido);\n //startActivity(intent);\n }\n }else{\n\n if(FU_AlteraItemPedido()){\n MensagemUtil.addMsg(ManutencaoProdutoPedido.this, \"Produto alterado com sucesso!\");\n Intent intent = new Intent();\n intent.putExtra(\"numpedido\", numpedido);\n setResult(1, intent);\n //intent.putExtra(\"codigo\", codigo);\n //startActivity(intent);\n finish();\n }\n }\n }\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void activarNuevoAlmacen() {\n\t\ttxtId.setVisible(false);\n\t\tpnAlmacen.setVisible(true);\n\t\tsetTxtUbicacion(\"\");\n\t\tgetPnTabla().setVisible(false);\n\t\tadd(pnAlmacen,BorderLayout.CENTER);\n\t \n\t}", "public MenuCriarArranhaCeus() {\n initComponents();\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()== R.id.mnañadir){\n Intent i = new Intent(this,Editar.class);\n Bundle b=new Bundle();\n b.putInt(\"index\", -1);//el indice del arraylist, como es uno nuevo, le pasamos un negativo\n b.putParcelableArrayList(\"palabras\", palabras);//el arraylist\n i.putExtras(b);\n startActivityForResult(i, 1);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_btn_bienbao, menu);\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch(id) {\n case R.id.acercade:\n \tlanzarAcercaDe(null);\n \tbreak;\n case R.id.config:\n \tlanzarPreferencias(null);\n \tbreak;\n }\n return true;\n\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n switch (item.getItemId()){\n\n case R.id.admin_Ajustescuenta:\n Intent ventana = new Intent(Administrador.this,Modificar_dato_Admin.class);\n startActivity(ventana);\n break;\n\n\n case R.id.admin_Cerrar_sesion:\n AlertDialog.Builder builder = new AlertDialog.Builder(this); //Codigo de dialogo de confirmacion\n builder.setCancelable(false);\n builder.setTitle(\"Confirmacion\");\n builder.setMessage(\"¿Desea Cerrar Sesión?\");\n builder.setPositiveButton(\"Aceptar\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n Intent Ventana_Cerrar_sesion = new Intent(Administrador.this,Iniciar_Sesion.class);\n startActivity(Ventana_Cerrar_sesion);\n }\n });\n builder.setNegativeButton(\"Cancelar\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //no se coloca nada\n }\n });\n builder.create();\n builder.show(); // fin de codigo de dialogo de confirmacion\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n return true;\n }\n\n if (id == R.id.kirim_berita) {\n Intent i = new Intent(MainActivityBaru.this, MainActivity_Kirim_Berita.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void clicarAlterarDadosCadastrais() {\n\t\thomePage.getButtonMenu().click();\n\t\thomePage.getButtonAlterarDadosCadastrais().click();\t\t\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.menu_EditarPerfil) {\n //process your onClick here\n ActivarCampor();\n return true;\n }\n if (id == R.id.menu_ActualizarPerfil) {\n //process your onClick here\n EnviarDatos();\n\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n int idClicado = item.getItemId();\n if(idClicado == R.id.menu1_avaliar) {\n // 5. pegar valores digitados:\n String titulo = editTitulo.getText().toString();\n String genero = spinGenero.getSelectedItem().toString();\n boolean ativa = swAtiva.isChecked();\n double avaliacao = rbAvaliacao.getRating();\n if( titulo.trim().equals(\"\") ) {\n Toast.makeText(this,\n \"Erro! Informe um título válido.\",\n Toast.LENGTH_SHORT).show();\n return true;\n }\n if( genero.equals(\"Selecione...\") ) {\n Toast.makeText(this,\n \"Erro! Escolha um gênero.\",\n Toast.LENGTH_SHORT).show();\n return true;\n }\n // 6. criar e empacotar a Intent:\n Intent i = new Intent(this, Tela2.class);\n i.putExtra(\"titulo\", titulo);\n i.putExtra(\"genero\", genero);\n i.putExtra(\"ativa\", ativa);\n i.putExtra(\"avaliacao\", avaliacao);\n // 7. executar:\n startActivity( i );\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n Intent intent = new Intent(this,Setting.class);\n\n if(!CheckCuentaDivice.IsCuenta(this)){\n\n intent.putExtra(\"Cuenta\", false);\n\n }else{\n intent.putExtra(\"Cuenta\", true);\n }\n startActivity(intent);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void componentesimplementacionIsmael() {\n\t\t// En el menu bar Ismael\n\t\tmenuIsmael = new JMenu(\"Ismael\");\n\t\tmenuBar.add(menuIsmael);\n\n\t\t// SUBMENU\n\t\tsubMenuRecientes = new JMenu(\"Recientes\");\n\t\titemSubMenuRecientes = new ArrayList<>();\n\t\trutasRecientes = new ArrayList<>();\n\t\ttry {\n\t\t\trutasRecientes = manejadorFichero.obtenerLineasDelFichero();\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\tif (!rutasRecientes.isEmpty()) {\n\t\t\tfor (int i = 0; i < rutasRecientes.size(); i++) {\n\t\t\t\tJMenuItem textoSubmenu = new JMenuItem(rutasRecientes.get(i));\n\t\t\t\titemSubMenuRecientes.add(textoSubmenu);\n\t\t\t\tsubMenuRecientes.add(textoSubmenu);\n\t\t\t}\n\t\t}\n\t\tmenuIsmael.add(subMenuRecientes);\n\n\t\tmenuIsmael.addSeparator();\n\n\t\t// Fuente\n\t\titemFuente = new JMenuItem(\"Fuente\");\n\t\titemFuente.setEnabled(false);\n\t\titemFuente.setMnemonic(KeyEvent.VK_F);\n\t\titemFuente.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F, ActionEvent.CTRL_MASK));\n\t\tmenuIsmael.add(itemFuente);\n\n\t\tmenuIsmael.addSeparator();\n\n\t\titemSeleccionarTodo = new JMenuItem(\"Selec.Todo\");\n\t\titemSeleccionarTodo.setEnabled(false);\n\t\titemSeleccionarTodo.setMnemonic(KeyEvent.VK_N);\n\t\titemSeleccionarTodo.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, ActionEvent.CTRL_MASK));\n\t\tmenuIsmael.add(itemSeleccionarTodo);\n\n\t\titemSeleccionarTodoYCopiar = new JMenuItem(\"Selec All+Copy\");\n\t\titemSeleccionarTodoYCopiar.setEnabled(false);\n\t\titemSeleccionarTodoYCopiar.setMnemonic(KeyEvent.VK_M);\n\t\titemSeleccionarTodoYCopiar.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_M, ActionEvent.CTRL_MASK));\n\t\tmenuIsmael.add(itemSeleccionarTodoYCopiar);\n\n\t\tmenuIsmael.addSeparator();\n\n\t\titemHora = new JMenuItem(\"Hora\");\n\t\titemHora.setEnabled(true);\n\t\titemHora.setMnemonic(KeyEvent.VK_H);\n\t\titemHora.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_H, ActionEvent.CTRL_MASK));\n\t\tmenuIsmael.add(itemHora);\n\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //noinspection SimplifiableIfStatement\n Bundle b = new Bundle();\n\n switch(id) {\n\n case R.id.action_settings_back:\n\n Intent intent = new Intent(ModificarAsignaturas.this, EditarPerfilProfesor.class);\n\n b.putString(\"UVUS\",usuario);\n b.putString(\"NOMBRE\",nombre);\n b.putString(\"EMAIL\",email);\n b.putString(\"DESPACHO\",despacho);\n b.putString(\"DEPARTAMENTO\",departamento);\n b.putString(\"DISPONIBILIDAD\",disponible1);\n intent.putExtras(b);\n startActivity(intent);\n return true;\n\n case R.id.action_settings_home:\n\n Intent intent2 = new Intent(ModificarAsignaturas.this, Profesor.class);\n\n b.putString(\"UVUS\",usuario);\n intent2.putExtras(b);\n startActivity(intent2);\n return true;\n\n case R.id.action_settings_profile:\n\n Intent intent3 = new Intent(ModificarAsignaturas.this, ModificacionPerfilProfesor.class);\n\n b.putString(\"UVUS\",usuario);\n intent3.putExtras(b);\n startActivity(intent3);\n return true;\n\n case R.id.action_settings_out:\n\n Intent intent4 = new Intent(ModificarAsignaturas.this, MainActivity.class);\n\n startActivity(intent4);\n return true;\n\n }\n\n return super.onOptionsItemSelected(item);\n }", "VentanaPrincipal(InterfazGestorFF principal, InterfazEsquema estructura) {\n initComponents();\n setTitle(BufferDeRegistro.titulo);\n this.principal=principal;\n this.estructura=estructura;\n cargar_campos(); \n cargar_menu_listados();\n \n botones=new javax.swing.JButton[]{\n jBAbrirSGFF,jBActualizarRegistro,jBAyuda,jBBorrarRegistro,\n jBComenzarConsulta,jBGuardarSGFF,jBGuardarSGFF,jBImportarSGFF,\n jBInsertarRegistro,jBIrAlHV,jBIrAlHijo,\n jBIrAlPV,jBIrAlPadre,jBNuevaFicha,jBRegistroAnterior,jBRegistroSiguiente,jBSSGFF,jBCaracteres, jBAccInv, jBListar\n };\n combos=new javax.swing.JComboBox[]{\n jCBArchivos, jCBHijos, jCBPadresV, jCBHijosV\n };\n abrir(false);//Pongo en orden la barra de herramientas\n \n }", "public void comprar() {\n\t\tSystem.out.println(\"Comprar \"+cantidad+\" de \"+itemName);\n\t}", "@Override\n public boolean onOptionsItemSelected (MenuItem item){\n final Context context=this;\n switch(item.getItemId()){\n\n // Intent intent1 = new Intent(context, visalle.class);\n //startActivity(intent1);\n }\n\n //noinspection SimplifiableIfStatement\n /*if (id == R.id.action_settings) {\n return true;\n }*/\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buscar_producto, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_home) {\n\n Intent intent = new Intent(PregonesActivosActivity.this, MenuInicial.class);\n PregonesActivosActivity.this.startActivity(intent);\n return true;\n }\n// if (id == R.id.action_send) {\n//\n// // Do something\n// return true;\n// }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n Toast.makeText(this,\"Crée par BENSELEM MOEZ\",Toast.LENGTH_LONG).show();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_sobre) {\n Intent i = new Intent(MainActivity.this, SobreActivity.class);\n startActivity(i);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n /*tela de configuraçao*/\n return true;\n }else if(id == R.id.action_sair){\n Intent i = new Intent (OrganizadorActivity.this,MainActivity.class);\n startActivity(i);\n }\n\n return super.onOptionsItemSelected(item);\n }", "private void menuArmadura(){\n System.out.println(\"Escolha o local em que queira colocar a uma armadura:\");\n System.out.println(\"1 - Cabeça\");\n System.out.println(\"2 - Tronco\");\n System.out.println(\"3 - Pernas\");\n System.out.println(\"4 - Pés\");\n System.out.println(\"0 - Sair\");\n }", "@FXML\n public void movimentacaocomprasitem() {\n\t\t\n\t\tstageManager.switchScene(FxmlView.MOVIMENTACAOCOMPRASITEM);\n\t\t\n\t\t\n \t\n }", "public void menu() {\n\t\tsuper.menu();\n\n\t\tfor(JCheckBox cb : arrayCompo){\n\t\t\tcb.setPreferredSize(new Dimension(largeur-30, hauteur));\n\t\t\tgbc.gridy++;\n\t\t\tpan.add(cb, gbc);\n\t\t}\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu){\r\n getMenuInflater().inflate(R.menu.menu, menu); //Recibe como parametro el menu donde se situan las acciones\r\n return true; //Para que la barra sea visible\r\n }", "private void CarregarJanela() {\n\t\taddWindowListener(new WindowAdapter() {\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\n\t\t\t\tString dt = formatDataHora.format(dataAtual());\n\n\t\t\t\ttry {\n\t\t\t\t\tBackUp backUp = new BackUp();\n\n\t\t\t\t\tif (\"Linux\".equals(System.getProperty(\"os.name\"))) {\n\t\t\t\t\t\t// JOptionPane.showMessageDialog(null, dt);\n\t\t\t\t\t\tbackUp.salvar(\"/opt/\" + dt);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbackUp.salvar(\"C:\\\\GrupoCaravela\\\\backup\\\\\" + dt);\n\t\t\t\t\t}\n\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Obrigado!!!\");\n\n\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"ERRO! Não foi possivel salvar o backup!!!\");\n\t\t\t\t}\n\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\n\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tsetBounds(100, 100, 1002, 680);\n\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\tmenuBar.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tsetJMenuBar(menuBar);\n\n\t\tJMenu mnArquivo = new JMenu(\"Arquivo\");\n\t\tmenuBar.add(mnArquivo);\n\n\t\tJMenuItem mntmAgencia = new JMenuItem(\"Agência\");\n\t\tmntmAgencia.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/agencia_24.png\")));\n\t\tmntmAgencia.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tJanelaAgencia janelaAgencia = new JanelaAgencia();\n\t\t\t\tjanelaAgencia.setVisible(true);\n\t\t\t\tjanelaAgencia.setLocationRelativeTo(null);\n\n\t\t\t}\n\t\t});\n\t\tmnArquivo.add(mntmAgencia);\n\n\t\tJMenuItem mntmBanco = new JMenuItem(\"Banco\");\n\t\tmntmBanco.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/banco_24.png\")));\n\t\tmntmBanco.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// #############################################\n\t\t\t\tfinal Thread tr = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(0);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(JanelaMenuPrincipal.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\tJanelaBanco janelaBanco = new JanelaBanco();\n\t\t\t\t\t\tjanelaBanco.setVisible(true);\n\t\t\t\t\t\tjanelaBanco.setLocationRelativeTo(null);\n\t\t\t\t\t\t// ######################FIM METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttr.start();\n\t\t\t\t\t\t// .....\n\t\t\t\t\t\tEsperaJanela espera = new EsperaJanela();\n\t\t\t\t\t\tespera.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\tespera.setUndecorated(true);\n\t\t\t\t\t\tespera.setVisible(true);\n\t\t\t\t\t\tespera.setLocationRelativeTo(null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttr.join();\n\t\t\t\t\t\t\tespera.dispose();\n\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\t// Logger.getLogger(MenuView.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\n\t\t\t\t// ###############################################\n\n\t\t\t}\n\t\t});\n\t\tmnArquivo.add(mntmBanco);\n\n\t\tJMenuItem mntmCheque = new JMenuItem(\"Cheque\");\n\t\tmntmCheque.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/cheque_24.png\")));\n\t\tmntmCheque.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tJanelaCheque janelaCheque = new JanelaCheque();\n\t\t\t\tjanelaCheque.setVisible(true);\n\t\t\t\tjanelaCheque.setLocationRelativeTo(null);\n\n\t\t\t}\n\t\t});\n\t\tmnArquivo.add(mntmCheque);\n\n\t\tJMenuItem mntmConta = new JMenuItem(\"Conta\");\n\t\tmntmConta.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// #############################################\n\t\t\t\tfinal Thread tr = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(0);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(JanelaMenuPrincipal.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\tJanelaConta janelaConta = new JanelaConta();\n\t\t\t\t\t\tjanelaConta.setVisible(true);\n\t\t\t\t\t\tjanelaConta.setLocationRelativeTo(null);\n\t\t\t\t\t\t// ######################FIM METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttr.start();\n\t\t\t\t\t\t// .....\n\t\t\t\t\t\tEsperaJanela espera = new EsperaJanela();\n\t\t\t\t\t\tespera.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\tespera.setUndecorated(true);\n\t\t\t\t\t\tespera.setVisible(true);\n\t\t\t\t\t\tespera.setLocationRelativeTo(null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttr.join();\n\t\t\t\t\t\t\tespera.dispose();\n\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\t// Logger.getLogger(MenuView.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\n\t\t\t\t// ###############################################\n\n\t\t\t}\n\t\t});\n\t\tmntmConta.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/conta_24.png\")));\n\t\tmnArquivo.add(mntmConta);\n\n\t\tJMenuItem mntmDestinatrio = new JMenuItem(\"Destinatário\");\n\t\tmntmDestinatrio.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// #############################################\n\t\t\t\tfinal Thread tr = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(0);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(JanelaMenuPrincipal.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\tJanelaDestinatario janelaDestinatario = new JanelaDestinatario();\n\t\t\t\t\t\tjanelaDestinatario.setVisible(true);\n\t\t\t\t\t\tjanelaDestinatario.setLocationRelativeTo(null);\n\t\t\t\t\t\t// ######################FIM METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttr.start();\n\t\t\t\t\t\t// .....\n\t\t\t\t\t\tEsperaJanela espera = new EsperaJanela();\n\t\t\t\t\t\tespera.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\tespera.setUndecorated(true);\n\t\t\t\t\t\tespera.setVisible(true);\n\t\t\t\t\t\tespera.setLocationRelativeTo(null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttr.join();\n\t\t\t\t\t\t\tespera.dispose();\n\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\t// Logger.getLogger(MenuView.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\n\t\t\t\t// ###############################################\n\n\t\t\t}\n\t\t});\n\t\tmntmDestinatrio.setIcon(new ImageIcon(\n\t\t\t\tJanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/destinatario_24.png\")));\n\t\tmnArquivo.add(mntmDestinatrio);\n\n\t\tJMenuItem mntmProprietrio = new JMenuItem(\"Proprietário\");\n\t\tmntmProprietrio.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// #############################################\n\t\t\t\tfinal Thread tr = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(0);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(JanelaMenuPrincipal.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\tJanelaProprietario janelaProprietario = new JanelaProprietario();\n\t\t\t\t\t\tjanelaProprietario.setVisible(true);\n\t\t\t\t\t\tjanelaProprietario.setLocationRelativeTo(null);\n\t\t\t\t\t\t// ######################FIM METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttr.start();\n\t\t\t\t\t\t// .....\n\t\t\t\t\t\tEsperaJanela espera = new EsperaJanela();\n\t\t\t\t\t\tespera.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\tespera.setUndecorated(true);\n\t\t\t\t\t\tespera.setVisible(true);\n\t\t\t\t\t\tespera.setLocationRelativeTo(null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttr.join();\n\t\t\t\t\t\t\tespera.dispose();\n\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\t// Logger.getLogger(MenuView.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\n\t\t\t\t// ###############################################\n\n\t\t\t}\n\t\t});\n\t\tmntmProprietrio.setIcon(new ImageIcon(\n\t\t\t\tJanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/proprietario_24.png\")));\n\t\tmnArquivo.add(mntmProprietrio);\n\n\t\tmntmUsurio = new JMenuItem(\"Usuários\");\n\t\tmntmUsurio.setEnabled(false);\n\t\tmntmUsurio.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// #############################################\n\t\t\t\tfinal Thread tr = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(0);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(JanelaMenuPrincipal.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\tJanelaUsuario janelaUsuario = new JanelaUsuario();\n\t\t\t\t\t\tjanelaUsuario.setVisible(true);\n\t\t\t\t\t\tjanelaUsuario.setLocationRelativeTo(null);\n\t\t\t\t\t\t// ######################FIM METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttr.start();\n\t\t\t\t\t\t// .....\n\t\t\t\t\t\tEsperaJanela espera = new EsperaJanela();\n\t\t\t\t\t\tespera.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\tespera.setUndecorated(true);\n\t\t\t\t\t\tespera.setVisible(true);\n\t\t\t\t\t\tespera.setLocationRelativeTo(null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttr.join();\n\t\t\t\t\t\t\tespera.dispose();\n\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\t// Logger.getLogger(MenuView.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\n\t\t\t\t// ###############################################\n\n\t\t\t}\n\t\t});\n\t\tmntmUsurio.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/usuario_24.png\")));\n\t\tmnArquivo.add(mntmUsurio);\n\n\t\tJMenuItem mntmSair = new JMenuItem(\"Sair\");\n\t\tmntmSair.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/sair_24.png\")));\n\t\tmnArquivo.add(mntmSair);\n\n\t\tJMenu mnFerramentas = new JMenu(\"Ferramentas\");\n\t\tmenuBar.add(mnFerramentas);\n\n\t\tmntmDownloadBackup = new JMenuItem(\"Donwload BackUp\");\n\t\tmntmDownloadBackup.setEnabled(false);\n\t\tmntmDownloadBackup.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/backup_24.png\")));\n\t\tmntmDownloadBackup.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tBackUp backUp = new BackUp();\n\n\t\t\t\tbackUp.salvarBackup();\n\n\t\t\t}\n\t\t});\n\t\t\n\t\tJMenuItem mntmConfiguraes = new JMenuItem(\"Configurações\");\n\t\tmntmConfiguraes.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tJanelaConfiguracao configuracao = new JanelaConfiguracao();\n\t\t\t\tconfiguracao.setVisible(true);\n\t\t\t\tconfiguracao.setLocationRelativeTo(null);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmConfiguraes.setIcon(new ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/configure_24.png\")));\n\t\tmnFerramentas.add(mntmConfiguraes);\n\t\tmnFerramentas.add(mntmDownloadBackup);\n\n\t\tmntmUploadBackup = new JMenuItem(\"Upload Backup\");\n\t\tmntmUploadBackup.setEnabled(false);\n\t\tmntmUploadBackup.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tBackUp backUp = new BackUp();\n\n\t\t\t\tbackUp.uploadBackup();\n\t\t\t}\n\t\t});\n\t\tmntmUploadBackup.setIcon(new ImageIcon(\n\t\t\t\tJanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/backup_upload_24.png\")));\n\t\tmnFerramentas.add(mntmUploadBackup);\n\n\t\tJMenuItem mntmHistrico = new JMenuItem(\"Histórico\");\n\t\tmntmHistrico.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/historico_24.png\")));\n\t\tmnFerramentas.add(mntmHistrico);\n\n\t\tJMenuItem mntmObservaes = new JMenuItem(\"Observações\");\n\t\tmntmObservaes.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tJanelaObservacao janelaObservacao = new JanelaObservacao();\n\t\t\t\tjanelaObservacao.setVisible(true);\n\t\t\t\tjanelaObservacao.setLocationRelativeTo(null);\n\n\t\t\t}\n\t\t});\n\t\tmntmObservaes.setIcon(new ImageIcon(\n\t\t\t\tJanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/atend_producao_24.png\")));\n\t\tmnFerramentas.add(mntmObservaes);\n\n\t\tJMenu mnAjuda = new JMenu(\"Ajuda\");\n\t\tmenuBar.add(mnAjuda);\n\n\t\tJMenuItem mntmSobre = new JMenuItem(\"Sobre\");\n\t\tmntmSobre.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tSobre sobre = new Sobre();\n\t\t\t\tsobre.setModal(true);\n\t\t\t\tsobre.setLocationRelativeTo(null);\n\t\t\t\tsobre.setVisible(true);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmSobre.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/sobre_24.png\")));\n\t\tmnAjuda.add(mntmSobre);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\n\t\ttabbedPane = new JTabbedPane(JTabbedPane.BOTTOM);\n\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setBorder(new TitledBorder(null, \"Atalhos\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\n\t\tJPanel panel_6 = new JPanel();\n\t\tpanel_6.setBorder(\n\t\t\t\tnew TitledBorder(new LineBorder(new Color(184, 207, 229)), \"Informa\\u00E7\\u00F5es do usu\\u00E1rio\",\n\t\t\t\t\t\tTitledBorder.CENTER, TitledBorder.TOP, null, new Color(51, 51, 51)));\n\t\t\n\t\tJPanel panel_8 = new JPanel();\n\t\tpanel_8.setBorder(new TitledBorder(new LineBorder(new Color(184, 207, 229)), \"Sistema info\", TitledBorder.CENTER, TitledBorder.TOP, null, new Color(51, 51, 51)));\n\t\t\n\t\tJLabel label_1 = new JLabel((String) null);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"\");\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel.setIcon(new ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/imagens/footer_logo.png\")));\n\t\t\n\t\tJLabel lblLicenciadoPara = new JLabel(\"Licenciado para:\");\n\t\t\n\t\tlblEmpresa = new JLabel(\"Empresa\");\n\t\tGroupLayout gl_panel_8 = new GroupLayout(panel_8);\n\t\tgl_panel_8.setHorizontalGroup(\n\t\t\tgl_panel_8.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t.addGroup(gl_panel_8.createSequentialGroup()\n\t\t\t\t\t.addGroup(gl_panel_8.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t.addGroup(gl_panel_8.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(78)\n\t\t\t\t\t\t\t.addComponent(label_1, GroupLayout.PREFERRED_SIZE, 341, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(Alignment.LEADING, gl_panel_8.createSequentialGroup()\n\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t.addGroup(gl_panel_8.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addComponent(lblLicenciadoPara)\n\t\t\t\t\t\t\t\t.addComponent(lblEmpresa))\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t.addComponent(lblNewLabel)\n\t\t\t\t\t\t\t.addGap(37)))\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\t\tgl_panel_8.setVerticalGroup(\n\t\t\tgl_panel_8.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_8.createSequentialGroup()\n\t\t\t\t\t.addComponent(label_1)\n\t\t\t\t\t.addGroup(gl_panel_8.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(gl_panel_8.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(lblLicenciadoPara)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\n\t\t\t\t\t\t\t.addComponent(lblEmpresa))\n\t\t\t\t\t\t.addGroup(gl_panel_8.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(6)\n\t\t\t\t\t\t\t.addComponent(lblNewLabel)))\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\t\tpanel_8.setLayout(gl_panel_8);\n\t\tGroupLayout gl_contentPane = new GroupLayout(contentPane);\n\t\tgl_contentPane.setHorizontalGroup(\n\t\t\tgl_contentPane.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_contentPane.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(gl_contentPane.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(panel_6, GroupLayout.DEFAULT_SIZE, 463, Short.MAX_VALUE)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(panel_8, GroupLayout.PREFERRED_SIZE, 399, Short.MAX_VALUE))\n\t\t\t\t\t\t.addComponent(tabbedPane, Alignment.TRAILING, GroupLayout.PREFERRED_SIZE, 868, Short.MAX_VALUE))\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\n\t\t\t\t\t.addComponent(panel_1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\t\tgl_contentPane.setVerticalGroup(\n\t\t\tgl_contentPane.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_contentPane.createSequentialGroup()\n\t\t\t\t\t.addGap(12)\n\t\t\t\t\t.addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 538, Short.MAX_VALUE)\n\t\t\t\t\t\t.addGroup(gl_contentPane.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(tabbedPane, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addComponent(panel_8, GroupLayout.PREFERRED_SIZE, 73, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(panel_6, GroupLayout.PREFERRED_SIZE, 73, GroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\n\t\tJLabel lblUsuario = new JLabel(\"Usuário:\");\n\n\t\tlblNomeUsuario = new JLabel(\"Nome do usuário interio\");\n\n\t\tJLabel lblAdministrador = new JLabel(\"Administrador:\");\n\n\t\tlblSimNao = new JLabel(\"Sim/Não\");\n\t\tGroupLayout gl_panel_6 = new GroupLayout(panel_6);\n\t\tgl_panel_6.setHorizontalGroup(\n\t\t\tgl_panel_6.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_6.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addGroup(gl_panel_6.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(gl_panel_6.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(lblUsuario)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(lblNomeUsuario, GroupLayout.PREFERRED_SIZE, 341, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(gl_panel_6.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(lblAdministrador)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(lblSimNao)))\n\t\t\t\t\t.addContainerGap(49, Short.MAX_VALUE))\n\t\t);\n\t\tgl_panel_6.setVerticalGroup(\n\t\t\tgl_panel_6.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_6.createSequentialGroup()\n\t\t\t\t\t.addGroup(gl_panel_6.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(lblUsuario)\n\t\t\t\t\t\t.addComponent(lblNomeUsuario))\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\n\t\t\t\t\t.addGroup(gl_panel_6.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addComponent(lblSimNao)\n\t\t\t\t\t\t.addComponent(lblAdministrador))\n\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n\t\t);\n\t\tpanel_6.setLayout(gl_panel_6);\n\n\t\tJButton btnNovo = new JButton(\"\");\n\t\tbtnNovo.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// #############################################\n\t\t\t\tfinal Thread tr = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(0);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(JanelaMenuPrincipal.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\tJanelaCheque janelaCheque2 = new JanelaCheque();\n\t\t\t\t\t\tjanelaCheque2.setVisible(true);\n\t\t\t\t\t\tjanelaCheque2.setLocationRelativeTo(null);\n\t\t\t\t\t\t// ######################FIM METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttr.start();\n\t\t\t\t\t\t// .....\n\t\t\t\t\t\tEsperaJanela espera = new EsperaJanela();\n\t\t\t\t\t\tespera.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\tespera.setUndecorated(true);\n\t\t\t\t\t\tespera.setVisible(true);\n\t\t\t\t\t\tespera.setLocationRelativeTo(null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttr.join();\n\t\t\t\t\t\t\tespera.dispose();\n\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\t// Logger.getLogger(MenuView.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\n\t\t\t\t// ###############################################\n\n\t\t\t}\n\t\t});\n\t\tbtnNovo.setToolTipText(\"Cheque\");\n\t\tbtnNovo.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/cheque_64.png\")));\n\n\t\tJButton btnDestinatario = new JButton(\"\");\n\t\tbtnDestinatario.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// #############################################\n\t\t\t\tfinal Thread tr = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(0);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(JanelaMenuPrincipal.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\tJanelaDestinatario janelaDestinatario = new JanelaDestinatario();\n\t\t\t\t\t\tjanelaDestinatario.setVisible(true);\n\t\t\t\t\t\tjanelaDestinatario.setLocationRelativeTo(null);\n\t\t\t\t\t\t// ######################FIM METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttr.start();\n\t\t\t\t\t\t// .....\n\t\t\t\t\t\tEsperaJanela espera = new EsperaJanela();\n\t\t\t\t\t\tespera.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\tespera.setUndecorated(true);\n\t\t\t\t\t\tespera.setVisible(true);\n\t\t\t\t\t\tespera.setLocationRelativeTo(null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttr.join();\n\t\t\t\t\t\t\tespera.dispose();\n\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\t// Logger.getLogger(MenuView.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\n\t\t\t\t// ###############################################\n\n\t\t\t}\n\t\t});\n\t\tbtnDestinatario.setIcon(new ImageIcon(\n\t\t\t\tJanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/destinatario_64.png\")));\n\t\tbtnDestinatario.setToolTipText(\"Destinatário\");\n\n\t\tJButton btnProprietario = new JButton(\"\");\n\t\tbtnProprietario.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// #############################################\n\t\t\t\tfinal Thread tr = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(0);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(JanelaMenuPrincipal.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\tJanelaProprietario janelaProprietario = new JanelaProprietario();\n\t\t\t\t\t\tjanelaProprietario.setVisible(true);\n\t\t\t\t\t\tjanelaProprietario.setLocationRelativeTo(null);\n\t\t\t\t\t\t// ######################FIM METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttr.start();\n\t\t\t\t\t\t// .....\n\t\t\t\t\t\tEsperaJanela espera = new EsperaJanela();\n\t\t\t\t\t\tespera.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\tespera.setUndecorated(true);\n\t\t\t\t\t\tespera.setVisible(true);\n\t\t\t\t\t\tespera.setLocationRelativeTo(null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttr.join();\n\t\t\t\t\t\t\tespera.dispose();\n\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\t// Logger.getLogger(MenuView.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\n\t\t\t\t// ###############################################\n\n\t\t\t}\n\t\t});\n\t\tbtnProprietario.setIcon(new ImageIcon(\n\t\t\t\tJanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/proprietario_64.png\")));\n\t\tbtnProprietario.setToolTipText(\"Proprietário\");\n\n\t\tJButton btnBanco = new JButton(\"\");\n\t\tbtnBanco.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// #############################################\n\t\t\t\tfinal Thread tr = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(0);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(JanelaMenuPrincipal.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\tJanelaBanco janelaBanco = new JanelaBanco();\n\t\t\t\t\t\tjanelaBanco.setVisible(true);\n\t\t\t\t\t\tjanelaBanco.setLocationRelativeTo(null);\n\t\t\t\t\t\t// ######################FIM METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttr.start();\n\t\t\t\t\t\t// .....\n\t\t\t\t\t\tEsperaJanela espera = new EsperaJanela();\n\t\t\t\t\t\tespera.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\tespera.setUndecorated(true);\n\t\t\t\t\t\tespera.setVisible(true);\n\t\t\t\t\t\tespera.setLocationRelativeTo(null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttr.join();\n\t\t\t\t\t\t\tespera.dispose();\n\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\t// Logger.getLogger(MenuView.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\n\t\t\t\t// ###############################################\n\n\t\t\t}\n\t\t});\n\t\tbtnBanco.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/banco_64.png\")));\n\t\tbtnBanco.setToolTipText(\"Banco\");\n\n\t\tJButton btnAgencia = new JButton(\"\");\n\t\tbtnAgencia.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// #############################################\n\t\t\t\tfinal Thread tr = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(0);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(JanelaMenuPrincipal.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\tJanelaAgencia janelaAgencia = new JanelaAgencia();\n\t\t\t\t\t\tjanelaAgencia.setVisible(true);\n\t\t\t\t\t\tjanelaAgencia.setLocationRelativeTo(null);\n\t\t\t\t\t\t// ######################FIM METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttr.start();\n\t\t\t\t\t\t// .....\n\t\t\t\t\t\tEsperaJanela espera = new EsperaJanela();\n\t\t\t\t\t\tespera.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\tespera.setUndecorated(true);\n\t\t\t\t\t\tespera.setVisible(true);\n\t\t\t\t\t\tespera.setLocationRelativeTo(null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttr.join();\n\t\t\t\t\t\t\tespera.dispose();\n\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\t// Logger.getLogger(MenuView.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\n\t\t\t\t// ###############################################\n\n\t\t\t}\n\t\t});\n\t\tbtnAgencia.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/agencia_64.png\")));\n\t\tbtnAgencia.setToolTipText(\"Agência\");\n\n\t\tJButton btnConta = new JButton(\"\");\n\t\tbtnConta.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// #############################################\n\t\t\t\tfinal Thread tr = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(0);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(JanelaMenuPrincipal.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\tJanelaConta janelaConta = new JanelaConta();\n\t\t\t\t\t\tjanelaConta.setVisible(true);\n\t\t\t\t\t\tjanelaConta.setLocationRelativeTo(null);\n\t\t\t\t\t\t// ######################FIM METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttr.start();\n\t\t\t\t\t\t// .....\n\t\t\t\t\t\tEsperaJanela espera = new EsperaJanela();\n\t\t\t\t\t\tespera.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\tespera.setUndecorated(true);\n\t\t\t\t\t\tespera.setVisible(true);\n\t\t\t\t\t\tespera.setLocationRelativeTo(null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttr.join();\n\t\t\t\t\t\t\tespera.dispose();\n\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\t// Logger.getLogger(MenuView.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\n\t\t\t\t// ###############################################\n\n\t\t\t}\n\t\t});\n\t\tbtnConta.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/conta_64.png\")));\n\t\tbtnConta.setToolTipText(\"Conta\");\n\t\tGroupLayout gl_panel_1 = new GroupLayout(panel_1);\n\t\tgl_panel_1.setHorizontalGroup(gl_panel_1.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t.addGroup(gl_panel_1.createSequentialGroup()\n\t\t\t\t\t\t.addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addComponent(btnNovo, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(btnDestinatario, GroupLayout.PREFERRED_SIZE, 64,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(btnProprietario, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(btnBanco, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(btnAgencia, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(btnConta, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tgl_panel_1\n\t\t\t\t.setVerticalGroup(\n\t\t\t\t\t\tgl_panel_1.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tgl_panel_1.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(btnNovo, GroupLayout.PREFERRED_SIZE, 64,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(btnDestinatario, GroupLayout.PREFERRED_SIZE, 64,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t.addComponent(btnProprietario, GroupLayout.PREFERRED_SIZE, 64,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE).addGap(6)\n\t\t\t\t.addComponent(btnBanco, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE).addGap(6)\n\t\t\t\t.addComponent(btnAgencia, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE).addGap(6)\n\t\t\t\t.addComponent(btnConta, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t.addContainerGap(84, Short.MAX_VALUE)));\n\t\tpanel_1.setLayout(gl_panel_1);\n\n\t\tJPanel panel = new JPanel();\n\t\ttabbedPane.addTab(\"Todos\", null, panel, null);\n\n\t\tJPanel panel_2 = new JPanel();\n\n\t\tbtnMovimentar = new JButton(\"Movimentar\");\n\t\tbtnMovimentar.setEnabled(false);\n\t\tbtnMovimentar.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tMovimentarCheque movimentarCheque = new MovimentarCheque();\n\t\t\t\tmovimentarCheque.setModal(true);\n\t\t\t\tmovimentarCheque.setLocationRelativeTo(null);\n\t\t\t\tmovimentarCheque.setVisible(true);\n\t\t\t\tdestinatario = movimentarCheque.getDestinatario();\n\n\t\t\t\tArrayList<Cheque> listaCheque = new ArrayList();\n\t\t\t\t/*\n\t\t\t\t * int idx[] = table.getSelectedRows();\n\t\t\t\t * \n\t\t\t\t * for (int h = 0; h < idx.length; h++) { int linhaReal =\n\t\t\t\t * table.convertRowIndexToModel(idx[h]);\n\t\t\t\t * listaCheque.add(tableModelJanelaPrincipal.getCheque(linhaReal\n\t\t\t\t * )); }\n\t\t\t\t */\n\n\t\t\t\tfor (int i = 0; i < table.getRowCount(); i++) {\n\t\t\t\t\tboolean isChecked = false;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (chckbxMostrarLucro.isSelected()) {\n\t\t\t\t\t\t\tisChecked = (boolean) table.getValueAt(i, 10);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tisChecked = (boolean) table.getValueAt(i, 10);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\t\tisChecked = false;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (isChecked) {\n\t\t\t\t\t\tint linhaReal = table.convertRowIndexToModel(i);\n\t\t\t\t\t\t\n\t\t\t\t\t\tCheque c;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (chckbxMostrarLucro.isSelected()) {\n\t\t\t\t\t\t\tc = tableModelJanelaPrincipalJuros.getCheque(linhaReal);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tc = tableModelJanelaPrincipal.getCheque(linhaReal);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Cheque c = tableModelJanelaPrincipal.getCheque(linhaReal);\n\t\t\t\t\t\tc.setSelecionado(false);\n\t\t\t\t\t\tlistaCheque.add(c);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// ############################ Voltou duas vezes\n\t\t\t\t// ################################\n\n\t\t\t\tfor (int i = 0; i < listaCheque.size(); i++) {\n\n\t\t\t\t\tboolean voltou1vez = false;\n\t\t\t\t\tboolean voltou2vezes = false;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tvoltou1vez = listaCheque.get(i).getVoltouUmaVez();\n\t\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\t\tvoltou1vez = false;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tvoltou2vezes = listaCheque.get(i).getVoltouDuasVezes();\n\t\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\t\tvoltou2vezes = false;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (voltou1vez) {\n\t\t\t\t\t\t//listaCheque.get(i).setVoltouDuasVezes(true);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (voltou2vezes) {\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t// ############################ Voltou duas vezes\n\t\t\t\t// ################################\n\n\t\t\t\tif (verificaLocalCheque(listaCheque) == false) {\n\n\t\t\t\t\tObject[] options = { \"Sim\", \"Não\" };\n\t\t\t\t\tint i = JOptionPane.showOptionDialog(null,\n\t\t\t\t\t\t\t\"ATENÇÃO!!! Esta operação irá movimentar o valor de \" + tfTotal.getText()\n\t\t\t\t\t\t\t\t\t+ \" reais em cheques para o destinatário \" + destinatario.getNome()\n\t\t\t\t\t\t\t\t\t+ \". Gostaria de continuar?\",\n\t\t\t\t\t\t\t\"Movimentar\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options,\n\t\t\t\t\t\t\toptions[0]);\n\n\t\t\t\t\tif (i == JOptionPane.YES_OPTION) {\n\n\t\t\t\t\t\t// observacaoMovimentacao =\n\t\t\t\t\t\t// JOptionPane.showInputDialog(\"Observação do\n\t\t\t\t\t\t// cheque\").toUpperCase();\n\n\t\t\t\t\t\tObservacaoCheque obc = new ObservacaoCheque();\n\t\t\t\t\t\tobc.setModal(true);\n\t\t\t\t\t\tobc.setLocationRelativeTo(null);\n\t\t\t\t\t\tobc.setVisible(true);\n\n\t\t\t\t\t\tobservacaoMovimentacao = obc.getObservacao();\n\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * ArrayList<Cheque> listaCheque = new ArrayList(); int\n\t\t\t\t\t\t * idx[] = table.getSelectedRows(); for (int h = 0; h <\n\t\t\t\t\t\t * idx.length; h++) {\n\t\t\t\t\t\t * listaCheque.add(tableModelJanelaPrincipal.getCheque(\n\t\t\t\t\t\t * idx[h])); }\n\t\t\t\t\t\t */\n\t\t\t\t\t\tfor (int j = 0; j < listaCheque.size(); j++) {\n\t\t\t\t\t\t\t// botaoMovimentarCheque(tableModelJanelaPrincipal.getCheque(table.getSelectedRow()));\n\t\t\t\t\t\t\t// ##########################################################\n\n\t\t\t\t\t\t\tif (destinatario.getLocal()) {\n\n\t\t\t\t\t\t\t\tQuery consulta = manager.createQuery(\"FROM Historico WHERE cheque_id LIKE '\"\n\t\t\t\t\t\t\t\t\t\t+ listaCheque.get(j).getId()\n\t\t\t\t\t\t\t\t\t\t+ \"' AND destinatario_id IN (SELECT id FROM Destinatario WHERE local = '1')\");\n\t\t\t\t\t\t\t\tList<Historico> listaHistorico = consulta.getResultList();\n\n\t\t\t\t\t\t\t\t// \"FROM Cheque WHERE proprietario_id IN (SELECT\n\t\t\t\t\t\t\t\t// id FROM Proprietario WHERE nome LIKE '%\" nome\n\t\t\t\t\t\t\t\t// + \"%') AND vencimento BETWEEN '\" +\n\t\t\t\t\t\t\t\t// dataInicial + \"' AND '\" + dataFinal + \"'\"\n\t\t\t\t\t\t\t\t// trx.commit();\n\t\t\t\t\t\t\t\t// BETWEEN $P{DATA_INICIAL_SQL} AND\n\t\t\t\t\t\t\t\t// $P{DATA_FINAL_SQL}\n\n\t\t\t\t\t\t\t\tHistorico h = listaHistorico.get(0);\n\n\t\t\t\t\t\t\t\tDestinatario dest = h.getDestinatario();\n\n\t\t\t\t\t\t\t\tif (dest.equals(destinatario) || dest.equals(destinatario.getDestinatario())) {\n\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tif (listaCheque.get(j).getVoltouUmaVez()) {\n\t\t\t\t\t\t\t\t\t\t\tlistaCheque.get(j).setVoltouDuasVezes(true);\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tlistaCheque.get(j).setVoltouUmaVez(true);\n\t\t\t\t\t\t\t\t\t\t\tlistaCheque.get(j).setVoltouDuasVezes(false);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\t\t\t\t\t\tlistaCheque.get(j).setVoltouUmaVez(true);\n\t\t\t\t\t\t\t\t\t\tlistaCheque.get(j).setVoltouDuasVezes(false);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t\tbotaoMovimentarCheque(listaCheque.get(j));\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\t\t\t\"Não é possivel devolver o cheque no valor de R$ \"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ listaCheque.get(j).getValor() + \" para a \"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"origem selecionada. Este cheque só pode ser devolvido para sua origem geradora!\");\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tif (listaCheque.get(j).getVoltouUmaVez()) {\n\t\t\t\t\t\t\t\t\t\tlistaCheque.get(j).setVoltouDuasVezes(true);\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t\t\tQuery consulta = manager.createQuery(\"FROM Historico WHERE cheque_id LIKE '\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ listaCheque.get(j).getId()\n\t\t\t\t\t\t\t\t\t\t\t\t+ \"' AND destinatario_id IN (SELECT id FROM Destinatario WHERE local = '1')\");\n\t\t\t\t\t\t\t\t\t\tList<Historico> listaHistorico = consulta.getResultList();\n\n\t\t\t\t\t\t\t\t\t\t// \"FROM Cheque WHERE proprietario_id IN (SELECT\n\t\t\t\t\t\t\t\t\t\t// id FROM Proprietario WHERE nome LIKE '%\" nome\n\t\t\t\t\t\t\t\t\t\t// + \"%') AND vencimento BETWEEN '\" +\n\t\t\t\t\t\t\t\t\t\t// dataInicial + \"' AND '\" + dataFinal + \"'\"\n\t\t\t\t\t\t\t\t\t\t// trx.commit();\n\t\t\t\t\t\t\t\t\t\t// BETWEEN $P{DATA_INICIAL_SQL} AND\n\t\t\t\t\t\t\t\t\t\t// $P{DATA_FINAL_SQL}\n\n\t\t\t\t\t\t\t\t\t\tHistorico h = listaHistorico.get(0);\n\n\t\t\t\t\t\t\t\t\t\tDestinatario dest = h.getDestinatario();\t\t\t\t\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\t\t\tif (dest.equals(destinatario) || dest.equals(destinatario.getDestinatario())) {\n\t\t\t\t\t\t\t\t\t\t\tbotaoMovimentarCheque(listaCheque.get(j));\n\t\t\t\t\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\t\t}else{\n\t\t\t\t\t\t\t\t\t\tlistaCheque.get(j).setVoltouDuasVezes(false);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tbotaoMovimentarCheque(listaCheque.get(j));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tlistaCheque.get(j).setVoltouUmaVez(false);\n\t\t\t\t\t\t\t\t\tlistaCheque.get(j).setVoltouDuasVezes(false);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tbotaoMovimentarCheque(listaCheque.get(j));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t\t\tbotaoMovimentarCheque(listaCheque.get(j));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// ##########################################################\n\n\t\t\t\t\t\t\t// botaoMovimentarCheque(listaCheque.get(j));\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// ########################################################################################################\n\n\t\t\t\t\t\tChamaRelatorioMovimentacao chamaRelatorioMovimentacao = new ChamaRelatorioMovimentacao();\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * ArrayList<Cheque> listaChequeMovimentacao = new\n\t\t\t\t\t\t * ArrayList();\n\t\t\t\t\t\t * \n\t\t\t\t\t\t * int idxy[] = table.getSelectedRows(); for (int h = 0;\n\t\t\t\t\t\t * h < idxy.length; h++) {\n\t\t\t\t\t\t * listaChequeMovimentacao.add(tableModelJanelaPrincipal\n\t\t\t\t\t\t * .getCheque(idx[h])); }\n\t\t\t\t\t\t * \n\t\t\t\t\t\t * //\n\t\t\t\t\t\t * listaCheque.add(tableModelJanelaPrincipal.getCheque(\n\t\t\t\t\t\t * table.getSelectedRow()));\n\t\t\t\t\t\t */\n\t\t\t\t\t\ttry {\n/*\n\t\t\t\t\t\t\tchamaRelatorioMovimentacao.report(\"ChequesMovimentacao.jasper\", listaCheque,\n\t\t\t\t\t\t\t\t\tobservacaoMovimentacao, destinatario.getNome(), tfTotal.getText());\n*/\n\t\t\t\t\t\t\tchamaRelatorioMovimentacao.report(\"ChequesMovimentacao.jasper\", listaCheque,\n\t\t\t\t\t\t\t\t\tobservacaoMovimentacao, destinatario.getNome(), CalcularTotalChequesSelecionados(listaCheque).toString());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\t\"ERRO! Não foi possível gerar o relatório solicitado: \" + e2);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// #######################################################################################################\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tbuscar(tfLocalizar.getText(), format.format(dcInicial.getDate()),\n\t\t\t\t\t\t\t\t\tformat.format(dcFinal.getDate()));\n\t\t\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\t\t\tbuscar(tfLocalizar.getText(), null, null);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// #######################################################################################################\n\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\"Foi movimentado um total de \" + tfTotalCheques.getText() + \" cheques no valor de \"\n\t\t\t\t\t\t\t\t\t\t+ tfTotal.getText() + \" para o destinatario \" + destinatario.getNome() + \"!!!\");\n\n\t\t\t\t\t\ttable.repaint();\n\t\t\t\t\t\ttfTotal.setText(CalcularTotalChequesSelecionados(listaCheque).toString());\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Os cheques não foram movimentados!!!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbtnMovimentar.setEnabled(false);\n\t\t\t\t\n\t\t\t\ttfTotal.setText(\"0\");\n\t\t\t\ttfTotalCheques.setText(\"0\");\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnMovimentar.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/move_24.png\")));\n\n\t\tJButton btnHistorico = new JButton(\"Histórico\");\n\t\tbtnHistorico.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\ttpObservacao.setText(\"\");\n\t\t\t\tbotaoHistorico();\n\n\t\t\t}\n\t\t});\n\t\tbtnHistorico.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/historico_24.png\")));\n\n\t\tJLabel lblTotalDeCheques = new JLabel(\"Total de \");\n\t\tlblTotalDeCheques.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\n\t\ttfTotal = new DecimalFormattedField(DecimalFormattedField.REAL);\n\t\ttfTotal.setEnabled(false);\n\t\ttfTotal.setEditable(false);\n\t\ttfTotal.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\ttfTotal.setColumns(10);\n\t\ttfTotal.setDisabledTextColor(Color.BLACK);\n\n\t\tJButton btnImprimir_1 = new JButton(\"imprimir\");\n\t\tbtnImprimir_1.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/impressora_24.png\")));\n\t\tbtnImprimir_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tChamaRelatorioChequesSelecionados chamaRelatorioChequesSelecionados = new ChamaRelatorioChequesSelecionados();\n\n\t\t\t\tArrayList<Cheque> listaCheque = new ArrayList();\n\t\t\t\t/*\n\t\t\t\t * int idx[] = table.getSelectedRows(); for (int h = 0; h <\n\t\t\t\t * idx.length; h++) {\n\t\t\t\t * listaCheque.add(tableModelJanelaPrincipal.getCheque(idx[h]));\n\t\t\t\t * }\n\t\t\t\t */\n\t\t\t\tfor (int i = 0; i < table.getRowCount(); i++) {\n\n\t\t\t\t\tboolean isChecked = false;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (chckbxMostrarLucro.isSelected()) {\n\t\t\t\t\t\t\tisChecked = (boolean) table.getValueAt(i, 10);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tisChecked = (boolean) table.getValueAt(i, 10);\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\t\tisChecked = false;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (isChecked) {\n\t\t\t\t\t\tint linhaReal = table.convertRowIndexToModel(i);\n\t\t\t\t\t\t\n\t\t\t\t\t\tCheque c;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (chckbxMostrarLucro.isSelected()) {\n\t\t\t\t\t\t\tc = tableModelJanelaPrincipalJuros.getCheque(linhaReal);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tc = tableModelJanelaPrincipal.getCheque(linhaReal);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Cheque c = tableModelJanelaPrincipal.getCheque(linhaReal);\n\t\t\t\t\t\t// c.setSelecionado(false);\n\t\t\t\t\t\tlistaCheque.add(c);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// listaCheque.add(tableModelJanelaPrincipal.getCheque(table.getSelectedRow()));\n\n\t\t\t\ttry {\n\n\t\t\t\t\tchamaRelatorioChequesSelecionados.report(\"ChequesSelecionados.jasper\", listaCheque,\n\t\t\t\t\t\t\ttfTotal.getText());\n\n\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"ERRO! Não foi possível gerar o relatório solicitado: \" + e2);\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t\ttfTotalCheques = new JTextField();\n\t\ttfTotalCheques.setEnabled(false);\n\t\ttfTotalCheques.setEditable(false);\n\t\ttfTotalCheques.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttfTotalCheques.setColumns(10);\n\t\ttfTotalCheques.setDisabledTextColor(Color.BLACK);\n\n\t\tJLabel lblCheques = new JLabel(\"cheque(s):\");\n\t\tlblCheques.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\t\n\t\tlblMdiaDeJuros_1 = new JLabel(\"Média de juros\");\t\t\n\t\tlblMdiaDeJuros_1.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\t\t\t\n\t\ttfMediaJuros = new DecimalFormattedField(DecimalFormattedField.PORCENTAGEM);\n\t\ttfMediaJuros.setFont(new Font(\"Dialog\", Font.PLAIN, 14));\n\t\ttfMediaJuros.setEnabled(false);\n\t\ttfMediaJuros.setEditable(false);\n\t\ttfMediaJuros.setColumns(10);\n\t\ttfMediaJuros.setDisabledTextColor(Color.BLACK);\n\t\t\n\t\tlblELucroTotal = new JLabel(\"e lucro total\");\n\t\tlblELucroTotal.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\t\n\t\ttfMediaLucroTotal = new DecimalFormattedField(DecimalFormattedField.REAL);\n\t\ttfMediaLucroTotal.setFont(new Font(\"Dialog\", Font.PLAIN, 14));\n\t\ttfMediaLucroTotal.setEnabled(false);\n\t\ttfMediaLucroTotal.setEditable(false);\n\t\ttfMediaLucroTotal.setColumns(10);\n\t\ttfMediaLucroTotal.setDisabledTextColor(Color.BLACK);\n\t\t\n\t\tGroupLayout gl_panel = new GroupLayout(panel);\n\t\tgl_panel.setHorizontalGroup(\n\t\t\tgl_panel.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addGroup(gl_panel.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(gl_panel.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(lblTotalDeCheques)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(tfTotalCheques, GroupLayout.PREFERRED_SIZE, 63, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(lblCheques, GroupLayout.PREFERRED_SIZE, 94, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(tfTotal, GroupLayout.PREFERRED_SIZE, 128, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(gl_panel.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(lblMdiaDeJuros_1)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(tfMediaJuros, GroupLayout.PREFERRED_SIZE, 68, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(lblELucroTotal)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(tfMediaLucroTotal, GroupLayout.PREFERRED_SIZE, 93, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 30, Short.MAX_VALUE)\n\t\t\t\t\t.addComponent(btnImprimir_1)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addComponent(btnHistorico)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addComponent(btnMovimentar)\n\t\t\t\t\t.addContainerGap())\n\t\t\t\t.addComponent(panel_2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t);\n\t\tgl_panel.setVerticalGroup(\n\t\t\tgl_panel.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t.addGroup(gl_panel.createSequentialGroup()\n\t\t\t\t\t.addComponent(panel_2, GroupLayout.DEFAULT_SIZE, 427, Short.MAX_VALUE)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\n\t\t\t\t\t.addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addGroup(gl_panel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(btnHistorico, GroupLayout.PREFERRED_SIZE, 48, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addComponent(btnMovimentar, GroupLayout.PREFERRED_SIZE, 48, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addComponent(btnImprimir_1, GroupLayout.PREFERRED_SIZE, 48, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(Alignment.LEADING, gl_panel.createSequentialGroup()\n\t\t\t\t\t\t\t.addGroup(gl_panel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblTotalDeCheques)\n\t\t\t\t\t\t\t\t.addComponent(tfTotalCheques, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(lblCheques, GroupLayout.PREFERRED_SIZE, 17, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(tfTotal, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t.addGroup(gl_panel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblMdiaDeJuros_1)\n\t\t\t\t\t\t\t\t.addComponent(tfMediaJuros, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(lblELucroTotal)\n\t\t\t\t\t\t\t\t.addComponent(tfMediaLucroTotal, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\n\t\tJScrollPane scrollPane = new JScrollPane();\n\n\t\ttable = new JTable();\n\n\t\ttable.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t\t\t// ################################\n\t\t\t\t/*\n\t\t\t\t * ArrayList<Cheque> listaCheque = new ArrayList();\n\t\t\t\t * \n\t\t\t\t * //int linha = tableHistorico.getSelectedRow(); //int\n\t\t\t\t * linhaReal = tableHistorico.convertRowIndexToModel(linha);\n\t\t\t\t * \n\t\t\t\t * int idx[] = table.getSelectedRows();\n\t\t\t\t * \n\t\t\t\t * for (int h = 0; h < idx.length; h++) { int linhaReal =\n\t\t\t\t * table.convertRowIndexToModel(idx[h]);\n\t\t\t\t * listaCheque.add(tableModelJanelaPrincipal.getCheque(linhaReal\n\t\t\t\t * )); }\n\t\t\t\t */\n\t\t\t\t// ################################\n\n\t\t\t\t/*\n\t\t\t\t * int idx[] = table.getSelectedRows();\n\t\t\t\t * \n\t\t\t\t * for (int i = 0; i < idx.length; i++) { int linhaReal =\n\t\t\t\t * table.convertRowIndexToModel(idx[i]);\n\t\t\t\t * listaCheque.add(tableModelJanelaPrincipal.getCheque(linhaReal\n\t\t\t\t * )); }\n\t\t\t\t */\n\t\t\t\ttabbedPane.setEnabledAt(1, false);\t\t\n\t\t\t\t//tabbedPane.setSelectedIndex(1);\n\t\t\t\t\n\t\t\t\tArrayList<Cheque> listaCheque = new ArrayList();\n\n\t\t\t\tfor (int i = 0; i < table.getRowCount(); i++) {\n\t\t\t\t\tboolean isChecked = false;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (chckbxMostrarLucro.isSelected()) {\n\t\t\t\t\t\t\tisChecked = (boolean) table.getValueAt(i, 10);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tisChecked = (boolean) table.getValueAt(i, 10);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\t\tisChecked = false;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (isChecked) {\n\t\t\t\t\t\tint linhaReal = table.convertRowIndexToModel(i);\n\t\t\t\t\t\t\n\t\t\t\t\t\tCheque c;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (chckbxMostrarLucro.isSelected()) {\n\t\t\t\t\t\t\tc = tableModelJanelaPrincipalJuros.getCheque(linhaReal);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tc = tableModelJanelaPrincipal.getCheque(linhaReal);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Cheque c = tableModelJanelaPrincipal.getCheque(linhaReal);\n\t\t\t\t\t\tlistaCheque.add(c);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// } catch (Exception e2) {\n\t\t\t\t// // TODO: handle exception\n\t\t\t\t// }\n\n\t\t\t\ttfTotal.setText(CalcularTotalChequesSelecionados(listaCheque).toString());\n\n\t\t\t\ttable.repaint();\n\n\t\t\t\tif (listaCheque.size() > 0) {\n\t\t\t\t\tbtnMovimentar.setEnabled(true);\n\n\t\t\t\t} else {\n\t\t\t\t\tbtnMovimentar.setEnabled(false);\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tscrollPane.setViewportView(table);\n\n\t\tJPanel panel_4 = new JPanel();\n\t\tpanel_4.setBorder(new TitledBorder(null, \"Localizar\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\n\t\tchckbxSelecionarTudo = new JCheckBox(\"Selecionar tudo\");\n\t\tchckbxSelecionarTudo.addItemListener(new ItemListener() {\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tselecao();\n\t\t\t}\n\t\t});\n\t\t\n\t\tchckbxMostrarLucro = new JCheckBox(\"Mostrar lucro\");\n\t\tchckbxMostrarLucro.addItemListener(new ItemListener() {\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\t\n\t\t\t\ttfTotal.setText(\"0\");\n\t\t\t\ttfTotalCheques.setText(\"0\");\n\t\t\t\ttfMediaLucroTotal.setText(\"0\");\n\t\t\t\ttfMediaJuros.setText(\"0\");\n\t\t\t\t\n\t\t\t\tif (chckbxMostrarLucro.isSelected()) {\t\t\t\t\n\t\t\t\t\tcarregarTableModelLucro();\n\t\t\t\t\tativaDadosLucro(true);\n\t\t\t\t}else{\n\t\t\t\t\tcarregarTableModel();\n\t\t\t\t\tativaDadosLucro(false);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tGroupLayout gl_panel_2 = new GroupLayout(panel_2);\n\t\tgl_panel_2.setHorizontalGroup(\n\t\t\tgl_panel_2.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_2.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addGroup(gl_panel_2.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addComponent(scrollPane, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 839, Short.MAX_VALUE)\n\t\t\t\t\t\t.addGroup(Alignment.TRAILING, gl_panel_2.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(chckbxMostrarLucro)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 573, Short.MAX_VALUE)\n\t\t\t\t\t\t\t.addComponent(chckbxSelecionarTudo))\n\t\t\t\t\t\t.addComponent(panel_4, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 839, Short.MAX_VALUE))\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\t\tgl_panel_2.setVerticalGroup(\n\t\t\tgl_panel_2.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_2.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addComponent(panel_4, GroupLayout.PREFERRED_SIZE, 136, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addGroup(gl_panel_2.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(chckbxSelecionarTudo)\n\t\t\t\t\t\t.addComponent(chckbxMostrarLucro))\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 260, Short.MAX_VALUE)\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\n\t\ttfLocalizar = new JTextField();\n\t\ttfLocalizar.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttfLocalizar.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t\tif (e.getKeyCode() == KeyEvent.VK_ENTER) {\n\n\t\t\t\t\tbotaoBuscar();\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttfLocalizar.setColumns(10);\n\n\t\tbtnBuscar = new JButton(\"Buscar\");\n\t\tbtnBuscar.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tbotaoBuscar();\n\n\t\t\t\tchckbxSelecionarTudo.setSelected(false);\n\n\t\t\t}\n\t\t});\n\t\tbtnBuscar.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/lupa_24.png\")));\n\n\t\tchbSomenteChequeEm = new JCheckBox(\"Somente cheque em mãos\");\n\t\tchbSomenteChequeEm.setSelected(true);\n\n\t\tdcFinal = new JDateChooser();\n\n\t\tJLabel lblDataInicial = new JLabel(\"Data final:\");\n\n\t\tdcInicial = new JDateChooser();\n\n\t\tJLabel lblDataInicial_1 = new JLabel(\"Data inicial:\");\n\n\t\tchbFiltrarPorDataVencimento = new JCheckBox(\"Data Venc.\");\n\t\tchbFiltrarPorDataVencimento.addItemListener(new ItemListener() {\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tchbDataEntr.setSelected(false);\n\t\t\t}\n\t\t});\n\n\t\trdbtnCheque = new JRadioButton(\"Cheque\");\n\t\trdbtnCheque.setSelected(true);\n\t\tbuttonGroup.add(rdbtnCheque);\n\n\t\trdbtnProprietario = new JRadioButton(\"Proprietário\");\n\t\tbuttonGroup.add(rdbtnProprietario);\n\n\t\trdbtnDestinatrio = new JRadioButton(\"Destinatário\");\n\t\tbuttonGroup.add(rdbtnDestinatrio);\n\n\t\tchbDataEntr = new JCheckBox(\"Data Entr.\");\n\t\tchbDataEntr.addItemListener(new ItemListener() {\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tchbFiltrarPorDataVencimento.setSelected(false);\n\t\t\t}\n\t\t});\n\t\tGroupLayout gl_panel_4 = new GroupLayout(panel_4);\n\t\tgl_panel_4\n\t\t\t\t.setHorizontalGroup(\n\t\t\t\t\t\tgl_panel_4\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t.addGroup(gl_panel_4.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(gl_panel_4.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(gl_panel_4.createSequentialGroup().addComponent(rdbtnCheque)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(18).addComponent(rdbtnProprietario).addGap(18)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(rdbtnDestinatrio)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 230,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblDataInicial)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(dcFinal, GroupLayout.PREFERRED_SIZE, 133,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(gl_panel_4.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(chbSomenteChequeEm)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 96,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(chbDataEntr)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(chbFiltrarPorDataVencimento).addGap(18)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblDataInicial_1)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(dcInicial, GroupLayout.PREFERRED_SIZE, 133,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(gl_panel_4.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(tfLocalizar, GroupLayout.DEFAULT_SIZE, 667, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED).addComponent(btnBuscar)))\n\t\t\t\t.addContainerGap()));\n\t\tgl_panel_4.setVerticalGroup(gl_panel_4.createParallelGroup(Alignment.TRAILING).addGroup(gl_panel_4\n\t\t\t\t.createSequentialGroup().addGap(12)\n\t\t\t\t.addGroup(gl_panel_4.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addGroup(gl_panel_4.createSequentialGroup().addComponent(chbSomenteChequeEm).addGap(27))\n\t\t\t\t\t\t.addGroup(gl_panel_4.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGroup(gl_panel_4.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addGroup(gl_panel_4.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblDataInicial_1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(chbFiltrarPorDataVencimento).addComponent(chbDataEntr))\n\t\t\t\t\t\t\t\t.addComponent(dcInicial, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\n\t\t\t\t\t\t\t\t.addGroup(gl_panel_4.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addGroup(gl_panel_4.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblDataInicial).addComponent(rdbtnCheque)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(rdbtnProprietario).addComponent(rdbtnDestinatrio))\n\t\t\t\t\t\t\t\t\t\t.addComponent(dcFinal, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\n\t\t\t\t.addGroup(gl_panel_4.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(tfLocalizar, GroupLayout.PREFERRED_SIZE, 30, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(btnBuscar))\n\t\t\t\t.addGap(35)));\n\t\tpanel_4.setLayout(gl_panel_4);\n\t\tpanel_2.setLayout(gl_panel_2);\n\t\tpanel.setLayout(gl_panel);\n\n\t\tJPanel panel_3 = new JPanel();\n\t\ttabbedPane.addTab(\"Histórico\", null, panel_3, null);\n\n\t\tJPanel panel_5 = new JPanel();\n\n\t\tJLabel lblNCheque = new JLabel(\"Nº Cheque:\");\n\n\t\tJLabel lblDataEntrada = new JLabel(\"Data Entrada:\");\n\n\t\tJLabel lblBomPara = new JLabel(\"Bom para:\");\n\n\t\tJLabel lblProprietrio = new JLabel(\"Proprietário:\");\n\n\t\tJLabel lblValor = new JLabel(\"Valor:\");\n\n\t\ttfHistoricoNumeroCheque = new JTextField();\n\t\ttfHistoricoNumeroCheque.setEditable(false);\n\t\ttfHistoricoNumeroCheque.setColumns(10);\n\n\t\ttfHistoricoDataEntrada = new JTextField();\n\t\ttfHistoricoDataEntrada.setEditable(false);\n\t\ttfHistoricoDataEntrada.setColumns(10);\n\n\t\ttfHistoricoNomeProprietario = new JTextField();\n\t\ttfHistoricoNomeProprietario.setEditable(false);\n\t\ttfHistoricoNomeProprietario.setColumns(10);\n\n\t\ttfHistoricoBomPara = new JTextField();\n\t\ttfHistoricoBomPara.setEditable(false);\n\t\ttfHistoricoBomPara.setColumns(10);\n\n\t\ttfHistoricoValor = new DecimalFormattedField(DecimalFormattedField.REAL);\n\t\ttfHistoricoValor.setEditable(false);\n\t\ttfHistoricoValor.setColumns(10);\n\t\tGroupLayout gl_panel_3 = new GroupLayout(panel_3);\n\t\tgl_panel_3\n\t\t\t\t.setHorizontalGroup(\n\t\t\t\t\t\tgl_panel_3.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addGroup(gl_panel_3.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(gl_panel_3.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(gl_panel_3.createSequentialGroup().addComponent(panel_5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, 823, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addContainerGap())\n\t\t\t\t\t\t.addGroup(Alignment.TRAILING, gl_panel_3.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGroup(gl_panel_3.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t.addGroup(gl_panel_3.createSequentialGroup().addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\tlblNCheque)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(tfHistoricoNumeroCheque, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE).addGap(7)\n\t\t\t\t\t\t\t\t\t\t.addComponent(lblProprietrio).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(tfHistoricoNomeProprietario, GroupLayout.DEFAULT_SIZE, 466,\n\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE))\n\t\t\t\t\t\t\t\t.addGroup(gl_panel_3.createSequentialGroup().addComponent(lblDataEntrada)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(tfHistoricoDataEntrada, GroupLayout.PREFERRED_SIZE, 164,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED).addComponent(lblBomPara)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(tfHistoricoBomPara, GroupLayout.PREFERRED_SIZE, 174,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 63, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(lblValor).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(tfHistoricoValor, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t.addGap(53)))));\n\t\tgl_panel_3.setVerticalGroup(gl_panel_3.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_3.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(gl_panel_3.createParallelGroup(Alignment.BASELINE).addComponent(lblNCheque)\n\t\t\t\t\t\t\t\t.addComponent(lblProprietrio)\n\t\t\t\t\t\t\t\t.addComponent(tfHistoricoNumeroCheque, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(tfHistoricoNomeProprietario, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t.addGap(18)\n\t\t\t\t.addGroup(gl_panel_3.createParallelGroup(Alignment.BASELINE).addComponent(lblDataEntrada)\n\t\t\t\t\t\t.addComponent(lblBomPara).addComponent(lblValor)\n\t\t\t\t\t\t.addComponent(tfHistoricoDataEntrada, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(tfHistoricoBomPara, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(tfHistoricoValor, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(18).addComponent(panel_5, GroupLayout.DEFAULT_SIZE, 401, Short.MAX_VALUE)\n\t\t\t\t\t\t.addContainerGap()));\n\n\t\tJScrollPane scrollPane_1 = new JScrollPane();\n\n\t\ttableHistorico = new JTable();\n\t\ttableHistorico.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t\t\ttpObservacao.setText(\"\");\n\n\t\t\t\tint linha = tableHistorico.getSelectedRow();\n\t\t\t\tint linhaReal = tableHistorico.convertRowIndexToModel(linha);\n\n\t\t\t\tHistorico h = tableModelHistorico.getHistorico(linhaReal);\n\t\t\t\ttpObservacao.setText(h.getObservacao());\n\n\t\t\t}\n\t\t});\n\t\tscrollPane_1.setViewportView(tableHistorico);\n\n\t\tJPanel panel_7 = new JPanel();\n\t\tpanel_7.setBorder(\n\t\t\t\tnew TitledBorder(null, \"Observa\\u00E7\\u00E3o\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\n\t\tJButton btnImprimir = new JButton(\"Impressão do histórico\");\n\t\tbtnImprimir.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/relatorios_24.png\")));\n\t\tbtnImprimir.addActionListener(new ActionListener() {\n\n\t\t\tprivate ChamaRelatorio chamaRelatorio;\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tchamaRelatorio = new ChamaRelatorio();\n\n\t\t\t\ttry {\n\n\t\t\t\t\t// int linha = table.getSelectedRow();\n\t\t\t\t\t// int linhaReal = table.convertRowIndexToModel(linha);\n\n\t\t\t\t\tchamaRelatorio.report(\"HistoricoCheque.jasper\", cheque, null, null);\n\n\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"ERRO! Não foi possível gerar o relatório solicitado: \" + e2);\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton btnDemaisCheques = new JButton(\"Demais cheques\");\n\t\tbtnDemaisCheques.setIcon(new ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/atend_producao_24.png\")));\n\t\tbtnDemaisCheques.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t// #############################################\n\t\t\t\tfinal Thread tr = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(0);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(JanelaCheque.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\tChamaRelatorioChequesSelecionados chamaRelatorioChequesSelecionados = new ChamaRelatorioChequesSelecionados();\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tDouble tth = 0.0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tArrayList<Cheque> listChequeHistorico = new ArrayList<>();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tlistChequeHistorico = demaisCheques(tableModelHistorico.getHistorico(tableHistorico.getSelectedRow()));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int i = 0; i < listChequeHistorico.size(); i++) {\n\t\t\t\t\t\t\t\tCheque chq = listChequeHistorico.get(i);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\ttth = tth + chq.getValor();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tchamaRelatorioChequesSelecionados.reportHistoricoMovimentacao(tth, \"ChequesHostoricoMovimentado.jasper\", listChequeHistorico,\n\t\t\t\t\t\t\t\t\ttpObservacao.getText(), formatData.format(tableModelHistorico.getHistorico(tableHistorico.getSelectedRow()).getData()), tableModelHistorico.getHistorico(tableHistorico.getSelectedRow()).getDestinatario().getNome());\n\n\t\t\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"ERRO! Não foi possível gerar o relatório solicitado: \" + e2);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################FIM METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttr.start();\n\t\t\t\t\t\t// .....\n\t\t\t\t\t\tEsperaLista espera = new EsperaLista();\n\t\t\t\t\t\tespera.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\tespera.setUndecorated(true);\n\t\t\t\t\t\tespera.setVisible(true);\n\t\t\t\t\t\tespera.setLocationRelativeTo(null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttr.join();\n\t\t\t\t\t\t\tespera.dispose();\n\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\t// Logger.getLogger(MenuView.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\n\t\t\t\t// ###############################################\n\t\t\t\t\n\t\t\t}\n\t\t});\n\n\t\tGroupLayout gl_panel_5 = new GroupLayout(panel_5);\n\t\tgl_panel_5.setHorizontalGroup(\n\t\t\tgl_panel_5.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t.addComponent(scrollPane_1, GroupLayout.DEFAULT_SIZE, 823, Short.MAX_VALUE)\n\t\t\t\t.addGroup(gl_panel_5.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addComponent(panel_7, GroupLayout.DEFAULT_SIZE, 557, Short.MAX_VALUE)\n\t\t\t\t\t.addGap(18)\n\t\t\t\t\t.addGroup(gl_panel_5.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t.addComponent(btnDemaisCheques, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t.addComponent(btnImprimir, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\t\tgl_panel_5.setVerticalGroup(\n\t\t\tgl_panel_5.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t.addGroup(gl_panel_5.createSequentialGroup()\n\t\t\t\t\t.addGap(5)\n\t\t\t\t\t.addComponent(scrollPane_1, GroupLayout.DEFAULT_SIZE, 304, Short.MAX_VALUE)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addGroup(gl_panel_5.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addComponent(panel_7, GroupLayout.PREFERRED_SIZE, 72, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(gl_panel_5.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(btnImprimir)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(btnDemaisCheques, GroupLayout.PREFERRED_SIZE, 34, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\n\t\ttpObservacao = new JTextPane();\n\t\ttpObservacao.setEditable(false);\n\t\tGroupLayout gl_panel_7 = new GroupLayout(panel_7);\n\t\tgl_panel_7.setHorizontalGroup(gl_panel_7.createParallelGroup(Alignment.LEADING).addComponent(tpObservacao,\n\t\t\t\tGroupLayout.DEFAULT_SIZE, 777, Short.MAX_VALUE));\n\t\tgl_panel_7.setVerticalGroup(gl_panel_7.createParallelGroup(Alignment.LEADING).addComponent(tpObservacao,\n\t\t\t\tGroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE));\n\t\tpanel_7.setLayout(gl_panel_7);\n\t\tpanel_5.setLayout(gl_panel_5);\n\t\tpanel_3.setLayout(gl_panel_3);\n\t\tcontentPane.setLayout(gl_contentPane);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase R.id.scan_qr_code_from_arrange_order:\n\t\t\tIntent intent = new Intent(getActivity().getApplicationContext(), ScanQRCodeActivity.class);\n\t\t\tstartActivityForResult(intent, REQUEST_CODE);\n\t\t\tbreak;\n\t\tcase R.id.commit_all_orders:\n\t\t\tif (addOrderButton.getVisibility() == View.GONE) {\n\t\t\t\tnew AlertDialog.Builder(getActivity())\n\t\t\t\t.setTitle(\"提交订单\")\n\t\t\t\t.setMessage(\"确认全部订单配送完成并提交?\")\n\t\t\t\t.setPositiveButton(\"确定\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tcommmitAllOrders(orderList);\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.setNegativeButton(\"取消\", null)\n\t\t\t\t.show();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tToast.makeText(getActivity().getApplicationContext(), \"当前暂无订单提交\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "void omoguciIzmenu() {\n this.setEnabled(true);\n }", "private void salir(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_salir\n // TODO add your handling code here:\n int salir = JOptionPane.showConfirmDialog(rootPane, \"SEGURO DESEA SALIR?\");\n if (salir == 0) {\n vaciarTabla();\n cbox1Materia.setSelectedIndex(0);\n cbox2Grado.setSelectedIndex(0);\n cbox4Grupo.setSelectedIndex(0);\n cbox3Evaluacion.removeAllItems();\n cbox3Evaluacion.addItem(\"Seleccione una opción\");\n this.setVisible(false);\n\n }\n }", "public void confirmacionVolverMenu(){\n AlertDialog.Builder builder = new AlertDialog.Builder(Postre.this);\n builder.setCancelable(false);\n builder.setMessage(\"¿Desea salir?\")\n .setPositiveButton(\"Aceptar\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\tIntent intent = new Intent(Postre.this, HomeAdmin.class);\n\t\t\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_FORWARD_RESULT);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\toverridePendingTransition(R.anim.left_in, R.anim.left_out);\t\n }\n })\n .setNegativeButton(\"Cancelar\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n \n builder.show();\n }", "private void limpiar()\n {\n this.jButton1.setEnabled(true);\n \n jTextField3.setText(\"\"); \n jTextField1.setText(\"\");\n cbPro.setSelectedItem(\"Seleccione...\");\n txtmac.setText(\"\"); \n cbMarca.setSelectedItem(\"Seleccione...\"); \n cbEstado.setSelectedItem(\"Seleccione...\"); \n cbAlm.setSelectedItem(\"Seleccione...\"); \n bxRam.setSelectedItem(\"Seleccione...\"); \n cbAcces.setSelectedItem(\"Seleccione...\");\n }", "private static int menu() {\n\t\tint opcion;\n\t\topcion = Leer.pedirEntero(\"1:Crear 4 Almacenes y 15 muebeles\" + \"\\n2: Mostrar los muebles\"\n\t\t\t\t+ \"\\n3: Mostrar los almacenes\" + \"\\n4: Mostrar muebles y su almacen\" + \"\\n0: Finalizar\");\n\t\treturn opcion;\n\t}", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tIntent intent;\r\n\t switch (item.getItemId()) {\r\n\t case R.id.listaCursosItem:\r\n\t \tintent = new Intent(this, ListarCursos.class);\r\n\t \tstartActivity(intent);\r\n\t return true;\r\n\t case R.id.verNotasItem:\r\n\t \tintent=new Intent(this,VerNotas.class);\r\n\t \tstartActivity(intent);\r\n\t return true;\r\n\t case R.id.administrarCuentaItem:\r\n\t \tintent=new Intent(this,AdministrarCuenta.class);\r\n\t \tstartActivity(intent);\r\n\t \treturn true;\r\n\t case R.id.cerrarSesionItem:\r\n\t \tintent=new Intent(this,Login.class);\r\n\t \tstartActivity(intent);\r\n\t \treturn true;\r\n\t default:\r\n\t return super.onOptionsItemSelected(item);\r\n\t }\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) \r\n\t{\n\t\tgetMenuInflater().inflate(R.menu.carrito_compra, menu);\r\n\t\treturn true;\r\n\t}", "public void activarEscudo() {\n\t\tif(escudo) {\n\t\t\twidth = 40;\n\t\t\theight = 40;\n\t\t\tescudo = false;\n\t\t\tsetGrafico(0);\n\t\t}\n\t\telse {\n\t\t\tescudo = true;\n\t\t\twidth = 50;\n\t\t\theight = 50;\n\t\t\tsetGrafico(1);\n\t\t}\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_notas_activudad, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_busqueda_para_lista, menu);\n return true;\n }", "public void actionPerformed(ActionEvent evento) {\n\t\tif (evento.getSource() == janelaBanList.getMenuSair()) {\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\r\n\t\t// Caso o evento tenha ocorrido no botao Configurações.\r\n\t\telse if (evento.getSource() == janelaBanList.getMenuAlternarConta()) {\r\n\t\t\tnew JanelaAlternarConta(janelaBanList);\r\n\t\t}\r\n\r\n\t\t// Caso o evento tenha ocorrido no botao Banir.\r\n\t\telse if (evento.getSource() == janelaBanList.getBotaoBanir()) {\r\n\t\t\tbanirUsuario();\r\n\t\t}\r\n\t\t\r\n\t\t// Caso o evento tenha ocorrido no menu Desbanir.\r\n\t\telse if (evento.getSource() == janelaBanList.getMenuDesbanir()) {\r\n\t\t\tdesbanirUsuario();\r\n\t\t}\r\n\t}", "@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n\n switch (item.getItemId()) {\n // Caso Registros (Actividad Actual)\n case R.id.nav_admin_Registros: {\n }break;\n\n // Caso Asistente\n case R.id.nav_bixa: {\n Intent bixa = new Intent(VerUsuariosRegistrados.this, BixaMain.class);\n bixa.putExtra(\"Usuario\",username);\n startActivity(bixa);\n finish();\n }break;\n\n // Caso editar perfil\n case R.id.nav_editPerf:{\n Intent edPerf = new Intent(VerUsuariosRegistrados.this, EditarPerfil.class);\n edPerf.putExtra(\"Usuario\",username);\n startActivity(edPerf);\n finish();\n }break;\n\n // Caso editar perfil\n case R.id.nav_about:{\n Intent about = new Intent(VerUsuariosRegistrados.this, SobrelaApp.class);\n about.putExtra(\"Usuario\",username);\n startActivity(about);\n finish();\n }break;\n\n // Caso cerrar sesion:\n case R.id.nav_logout:{\n ClickCerrarSesion();\n }\n }\n // CIerra el menu despegable al seleccionar alguna opcion\n dwly.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_registro_conductor, menu);\n return true;\n }", "public boolean onOptionsItemSelected(MenuItem item) {\n\r\n switch(item.getItemId()){\r\n\r\n case R.id.menu_BelAlarmnummer:\r\n //bel 112\r\n boolean isOk = true;\r\n Intent intent = new Intent();\r\n\r\n if(!deviceIsAPhone()){\r\n displayAlert();\r\n isOk = false;\r\n }\r\n if (isOk){\r\n intent.setAction(Intent.ACTION_DIAL);\r\n intent.setData(Uri.parse(getResources().getString(R.string.telefoonnummer)));\r\n startActivity(intent);\r\n }\r\n\r\n break;\r\n\r\n case R.id.menu_naarMenu:\r\n //naar Activity startMenu\r\n Class ourClass1;\r\n try {\r\n ourClass1 = Class.forName(\"com.aid.first.mb.firstaid.Menu1\");\r\n Intent intentDrie = new Intent(MoederClass.this, ourClass1);\r\n startActivity(intentDrie);\r\n\r\n } catch (ClassNotFoundException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n\r\n break;\r\n case R.id.menu_sluitAf:\r\n Class ourClass3;\r\n try {\r\n ourClass3 = Class.forName(\"com.aid.first.mb.firstaid.Personlijke_veiligheid\");\r\n Intent intentDrie = new Intent(MoederClass.this, ourClass3);\r\n intentDrie.putExtra(\"sluiten\",1);\r\n intentDrie.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n intentDrie.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);\r\n startActivity(intentDrie);\r\n\r\n } catch (ClassNotFoundException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n finish();\r\n break;\r\n\r\n case R.id.menu_WaarBenIk:\r\n //naar activity Locatie\r\n Class ourClass4;\r\n try {\r\n ourClass4 = Class.forName(\"com.aid.first.mb.firstaid.Lokatie\");\r\n Intent intentVier = new Intent(MoederClass.this, ourClass4);\r\n startActivity(intentVier);\r\n\r\n } catch (ClassNotFoundException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n\r\n\r\n break;\r\n\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "public void onClick$btnGuardar() throws InterruptedException {\n\t\tif (lboxActividad.getSelectedIndex() != -1) {\r\n\r\n\t\t\t// se obtiene la plantilla seleccionada\r\n\t\t\tactividad = listaActividad.get(lboxActividad.getSelectedIndex());\r\n\r\n\t\t\tComponent frmPrestamoDevolucion = (Component) frmCatActPla\r\n\t\t\t\t\t.getVariable(\"frmPrestamoDevolucion\", false);\r\n\r\n\t\t\t// se le asigna el objeto plantilla al formulario\r\n\t\t\tfrmPrestamoDevolucion.setVariable(\"actividad\", actividad, false);\r\n\r\n\t\t\t// se le envia una seņal al formulario indicado que el formulario se\r\n\t\t\t// cerro y que los datos se han enviado\r\n\t\t\tEvents.sendEvent(new Event(\"onCatalogoActividadCerrado\",\r\n\t\t\t\t\tfrmPrestamoDevolucion));\r\n\r\n\t\t\t// se cierra el catalogo\r\n\t\t\tfrmCatActPla.detach();\r\n\r\n\t\t} else {\r\n\t\t\tMessagebox.show(\"Seleccione una Actividad\", \"Mensaje\",\r\n\t\t\t\t\tMessagebox.YES, Messagebox.INFORMATION);\r\n\r\n\t\t}\r\n\r\n\t}", "public void cliquerSauverContinuer() {\r\n\t\t\t\r\n\t\t\t//Identification du bouton et clic\r\n\t\t\tWebElement boutonSaveContinue = wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//table[@id='\"+prefix()+\"y5-box']/tbody/tr[2]/td[2]\")));\r\n\t\t\tboutonSaveContinue.click();\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch(item.getItemId())\n {\n case R.id.Ver2:\n Intent Ver = new Intent(this,VerGasto_activity.class);\n startActivity(Ver);\n finish();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.mnuCerrarSesion) {\n\n // startService(new Intent(MenuActivity.this, Notificaciones.class));\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(MenuActivity.this,R.style.AppCompatAlertDialogStyle);\n alertDialog.setMessage(\"¿Deseas salir de la aplicación?\");\n alertDialog.setTitle(\"Cerrar sesion\");\n alertDialog.setIcon(android.R.drawable.ic_dialog_alert);\n alertDialog.setCancelable(false);\n alertDialog.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n\n }\n });\n alertDialog.setPositiveButton(\"Si\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n\n DetenerServicoNotificaciones();\n Util.removePasswordSharedPreferences(prefs);\n irALogIn();\n\n }\n });\n alertDialog.show();\n\n\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n return true;\n }\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.criar_evento) {\n\n startActivity(new Intent(this, Criar_Evento.class));\n //return true;\n }\n\n if (id == R.id.pagina_inicial) {\n\n startActivity(new Intent(this, Pagina_Inicial.class));\n }\n\n if (id == R.id.historico) {\n\n startActivity(new Intent(this, Historico.class));\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n //Si el item corresponde con el boton de ir atras\n case android.R.id.home:\n //Termina la actividad\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_salvar) {\n Log.d(TAG,\"Clicou em salvar\");\n //Salvar no banco de dados\n EditText txtNomeProduto = (EditText) findViewById(R.id.txtNomeProduto);\n EditText txtCategoria = (EditText) findViewById(R.id.txtCategoria);\n EditText txtPrecoMinimo = (EditText) findViewById(R.id.txtPrecoMinimo);\n EditText txtPrecoMaximo = (EditText) findViewById(R.id.txtPrecoMaximo);\n EditText txtLojas = (EditText) findViewById(R.id.txtLojas);\n\n Desejo novoDesejo = new Desejo();\n novoDesejo.setProduto(txtNomeProduto.getText().toString());\n novoDesejo.setCategoria(txtCategoria.getText().toString());\n novoDesejo.setPrecoMinimo(new Double(txtPrecoMinimo.getText().toString()));\n novoDesejo.setPrecoMaximo(new Double(txtPrecoMaximo.getText().toString()));\n novoDesejo.setLojas(txtLojas.getText().toString());\n\n novoDesejo = datasource.salvar(novoDesejo);\n\n Log.d(TAG,\"Salvou no banco de dados\");\n //Emite informa��o para o usu�rio Toast\n Toast toast = Toast.makeText(getApplicationContext(),\"Desejo incluido com sucesso!\", Toast.LENGTH_SHORT);\n toast.show();\n //Retorna para a lista de desejos (tela principal)\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jMenu1 = new javax.swing.JMenu();\n jMenu2 = new javax.swing.JMenu();\n jPopupMenu1 = new javax.swing.JPopupMenu();\n menuBar1 = new java.awt.MenuBar();\n menu1 = new java.awt.Menu();\n menu2 = new java.awt.Menu();\n jMenuItem1 = new javax.swing.JMenuItem();\n jRadioButtonMenuItem1 = new javax.swing.JRadioButtonMenuItem();\n jButton1 = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jMenuBar1 = new javax.swing.JMenuBar();\n Busca_Palavra = new javax.swing.JMenu();\n BuscarPalavra = new javax.swing.JMenuItem();\n Editar = new javax.swing.JMenu();\n TipoDeBuscaMenu = new javax.swing.JMenuItem();\n jMenuItem2 = new javax.swing.JMenuItem();\n Sair = new javax.swing.JMenu();\n\n jMenu1.setText(\"jMenu1\");\n\n jMenu2.setText(\"jMenu2\");\n\n menu1.setLabel(\"File\");\n menuBar1.add(menu1);\n\n menu2.setLabel(\"Edit\");\n menuBar1.add(menu2);\n\n jMenuItem1.setText(\"jMenuItem1\");\n\n jRadioButtonMenuItem1.setSelected(true);\n jRadioButtonMenuItem1.setText(\"jRadioButtonMenuItem1\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Buscador de Palavras\");\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n jButton1.setText(\"Sair\");\n\n jTextArea1.setEditable(false);\n jTextArea1.setColumns(20);\n jTextArea1.setFont(new java.awt.Font(\"Monospaced\", 1, 14)); // NOI18N\n jTextArea1.setRows(5);\n jTextArea1.setText(\"Bem-vindo!\\nPara realizar uma \\nnova busca vá em \\nArquivo -> Buscar Palavra\");\n jTextArea1.setWrapStyleWord(true);\n jScrollPane1.setViewportView(jTextArea1);\n\n Busca_Palavra.setText(\"Arquivo\");\n\n BuscarPalavra.setText(\"Buscar Palavra\");\n BuscarPalavra.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n BuscarPalavraMousePressed(evt);\n }\n });\n Busca_Palavra.add(BuscarPalavra);\n\n jMenuBar1.add(Busca_Palavra);\n\n Editar.setText(\"Editar\");\n\n TipoDeBuscaMenu.setText(\"Tipo de Busca\");\n TipoDeBuscaMenu.setEnabled(false);\n TipoDeBuscaMenu.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n TipoDeBuscaMenuMousePressed(evt);\n }\n });\n Editar.add(TipoDeBuscaMenu);\n\n jMenuItem2.setText(\"Visualizar outro arquivo\");\n jMenuItem2.setEnabled(false);\n Editar.add(jMenuItem2);\n\n jMenuBar1.add(Editar);\n\n Sair.setText(\"Sair\");\n Sair.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n Sair.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n SairMousePressed(evt);\n }\n });\n jMenuBar1.add(Sair);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(46, 46, 46)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(46, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(102, Short.MAX_VALUE))\n );\n\n pack();\n }", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n //inflater.inflate(R.menu.menu_buscador,menu);\n MenuItem buscador = menu.findItem(R.id.buscador2);\n MenuItem carrito = menu.findItem(R.id.carrito);\n carrito.setVisible(false);\n buscador.setVisible(false);\n }", "public void exibeMenuCadastroFuncionario() {\n updateData();\n setVisible(true);\n\n }", "public void listaCompraOnClick(View v) {\n\n\t\tIntent intent = new Intent(this, ListasActivity.class);\n\t\tintent.putExtra(\"mode\", Mode.NEW); // Modo listas\n\t\tstartActivity(intent);\n\n\t}", "private static void menuManejoJugadores() {\n\t\tint opcion;\n\t\tdo{\n\t\t\topcion=menuManejoJugadores.gestionar();\n\t\t\tgestionarMenuManejoJugador(opcion);\n\t\t}while(opcion!=menuManejoJugadores.getSALIR());\n\t}", "private void voltarMenu() {\n\t\tmenu = new TelaMenu();\r\n\t\tmenu.setVisible(true);\r\n\t\tthis.dispose();\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n itemIdMSCSM = menu.findItem(R.id.action_registration);\n itemAutoReg = menu.findItem(R.id.action_auto_reg);\n itemExit = menu.findItem(R.id.action_exit);\n itemRegister = menu.findItem(R.id.action_register);\n if (registered) {\n itemIdMSCSM.setVisible(false);\n itemAutoReg.setVisible(false);\n itemExit.setVisible(false);\n } else {\n itemIdMSCSM.setVisible(true);\n itemAutoReg.setVisible(true);\n itemExit.setVisible(true);\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_guardar_ruta) {\n alerta();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.receipt_detail, menu);\n\n\t\tIconsBarView iconsBar = (IconsBarView)this.findViewById(R.id.iconsBarView1);\n\t\tResources res = this.getResources();\n\t\ticonsBar.clearIconMenus();\n\n\t\tboolean anychecked = false;\n\t\tfor(int i=0; i<this.receipt.size(); i++){\n\t\t\tanychecked = anychecked || cbs.get(i).isChecked();\n\t\t}\n\t\ticonsBar.addIconMenus(5, \"戻る\", BitmapFactory.decodeResource(res, R.drawable.back_key), true);\n\t\tif(this.receipt == Data.getInstance().getCurrentReceipt()){\n\t\t\tboolean checkable = true;\n\t\t\tMenuItem item1 = menu.findItem(R.id.check);\n\t\t\titem1.setVisible(true);\n\t\t\tif(this.receipt.size() == 0){\n\t\t\t\tcheckable = false;\n\t\t\t\titem1.setEnabled(false);\n\t\t\t}\n\t\t\ticonsBar.addIconMenus(0, \"精算\", BitmapFactory.decodeResource(res, R.drawable.cacher), checkable);\n\t\t\ticonsBar.addIconMenus(1, \"カテゴリ変更\", BitmapFactory.decodeResource(res, R.drawable.change_category), anychecked);\n\t\t\ticonsBar.addIconMenus(2, \"削除\", BitmapFactory.decodeResource(res, R.drawable.trash), anychecked);\n\t\t}else{\n\t\t\ticonsBar.addIconMenus(1, \"カテゴリ変更\", BitmapFactory.decodeResource(res, R.drawable.change_category), anychecked);\n\t\t\ticonsBar.addIconMenus(3, \"レシート撮影\", BitmapFactory.decodeResource(res, R.drawable.camera), true);\n\t\t\ticonsBar.addIconMenus(4, \"レシート画像\", BitmapFactory.decodeResource(res, R.drawable.show), this.receipt.getImage() != null);\n\t\t}\n\t\tif(!anychecked){\n\t\t\tMenuItem item1 = menu.findItem(R.id.deleteRows);\n\t\t\tMenuItem item2 = menu.findItem(R.id.changeCategory);\n\t\t\titem1.setEnabled(false);\n\t\t\titem2.setEnabled(false);\n\t\t}\n\t\tif(this.receipt.getImage() == null){\n\t MenuItem item1 = menu.findItem(R.id.showReceiptImage);\n\t item1.setVisible(false);\n\t\t}\n\t\ticonsBar.invalidate();\n\t\t\n\t\treturn true;\n\t}", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_sincroniza) {\n\n\n AlertDialog.Builder builder = new AlertDialog.Builder(ListClientes.this);\n builder.setTitle(\"La sincronizacion actualizara su lista de CLIENTES\");\n\n// Add the buttons\n builder.setPositiveButton(\"Continuar\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n Utilities.sincronizaClientes(ListClientes.this);\n\n p.RefreshAfterSinc();\n\n Toast.makeText(ListClientes.this, \"Sincronizacion Exitosa \", Toast.LENGTH_SHORT).show();\n // User clicked OK button\n }\n });\n builder.setNegativeButton(\"Cancelar\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n Toast.makeText(ListClientes.this, \"Sincronizacion cancelada \", Toast.LENGTH_SHORT).show();\n }\n });\n\n AlertDialog dialog = builder.create();\n dialog.show();\n\n\n\n\n /*android.app.Fragment frg = null;\n frg = getFragmentManager().findFragmentById(R.id.container);\n final FragmentTransaction ft = getFragmentManager().beginTransaction();\n ft.detach(frg);\n ft.attach(frg);\n ft.commit();*/\n\n\n\n\n return true;\n }\n if(id == R.id.mnuRegClientes){\n Intent regClientes = new Intent(this, RegClientes.class);\n\n startActivity(regClientes);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n final Intent intentHome = new Intent(this, HomeActivity.class);\n final Intent intentInfo = new Intent(this, PuntoActivity.class);\n\n int id = item.getItemId();\n\n switch (id){\n case R.id.ajustes:{\n //TODO lanzar ajustes\n break;\n }\n case R.id.acercaDe:{\n //TODO lanzar acerca de\n break;\n }\n case R.id.home:{\n startActivity(intentHome);\n break;\n }\n case R.id.action_info:{\n intentInfo.putExtra(\"puntoId\", \"punto00\");\n startActivity(intentInfo);\n break;\n }\n case R.id.info:{\n intentInfo.putExtra(\"puntoId\", \"punto00\");\n startActivity(intentInfo);\n break;\n }\n default:{\n\n break;\n }\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n \tswitch (item.getItemId()) {\n\t case R.id.menu3_add:\n\t \tif(ParseUser.getCurrentUser() == null){\n\t\t \tToast.makeText(getActivity(), \"Debes iniciar sesion para agregar Recetas\", Toast.LENGTH_SHORT).show();\n\t\t \treturn false;\n\n\t \t}\n\t \tIntent intent = new Intent(act.getApplicationContext(), ActivityNuevaReceta.class);\n\t \tstartActivity(intent);\n\t \t//}else{Toast.makeText(this, \"Debes iniciar sesión\", Toast.LENGTH_SHORT);act.onBackPressed();}\n\t \t\n\t return true;\n\t \n\t \n\t \n\t default:\n\t return super.onOptionsItemSelected(item);\n }\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == R.id.detalleOK) {\n\t\t\tint cantidad = pickerCantidad.getValue();\n\t\t\tString nota = editNota.getText().toString();\n\t\t\tBundle bundle = new Bundle();\n\t\t\tEleccion suEleccion = getIntent().getExtras().getParcelable(\n\t\t\t\t\t\"suEleccion\");\n\t\t\tsuEleccion.setCantidad(cantidad);\n\t\t\tsuEleccion.setNota(nota);\n\t\t\tbundle.putParcelable(\"suEleccion\", suEleccion);\n\t\t\tIntent intentRegreso = new Intent();\n\t\t\tintentRegreso.putExtras(bundle);\n\t\t\tsetResult(RESULT_OK, intentRegreso);\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "private void setearOpcionesMenuCobros()\r\n\t{\r\n\t\tArrayList<FormularioVO> lstFormsMenuCobros = new ArrayList<FormularioVO>();\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t/*Buscamos los Formulairos correspondientes a este TAB*/\r\n\t\tfor (FormularioVO formularioVO : this.permisos.getLstPermisos().values()) {\r\n\t\t\t\r\n\t\t\tif(\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_INGRESO_COBRO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_INGRESO_COBRO_OTRO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_INGRESO_EGRESO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_GASTOS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_DEPOSITO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_CONCILIACION) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_INGRESO_EGRESO_OTRO))\r\n\t\t\t\t\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tlstFormsMenuCobros.add(formularioVO);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t/*Si hay formularios para el tab*/\r\n\t\tif(lstFormsMenuCobros.size()> 0)\r\n\t\t{\r\n\r\n\t\t\tthis.layoutMenu = new VerticalLayout();\r\n\t\t\t//this.tabMantenimientos.setMargin(true);\r\n\t\t\t\r\n\t\t\tthis.lbCobros.setVisible(true);\r\n\t\t\tthis.layoutMenu.addComponent(this.lbCobros);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor (FormularioVO formularioVO : lstFormsMenuCobros) {\r\n\t\t\t\t\r\n\t\t\t\tswitch(formularioVO.getCodigo())\r\n\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_INGRESO_COBRO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_INGRESO_COBRO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarIngresoCobro();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.ingCobro);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_INGRESO_COBRO_OTRO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_INGRESO_COBRO_OTRO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarOtroCobro();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.otroCobro);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_INGRESO_EGRESO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_INGRESO_EGRESO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarIngresoEgreso();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.ingEgreso);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_INGRESO_EGRESO_OTRO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_INGRESO_EGRESO_OTRO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarOtroEgreso();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.otroEgreso);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_GASTOS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_GASTOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarGastos();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.gastos);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\r\n\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_DEPOSITO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_DEPOSITO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarDeposito();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.deposito);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_CONCILIACION:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CONCILIACION, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarConciliacion();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.conciliacion);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.menuItems.addComponent(this.layoutMenu);\r\n\t\t\t\r\n\t\t}\r\n\t}", "public static void afficherMenu() {\r\n System.out.println(\"\\n## Menu de l'application ##\\n\" +\r\n \" Actions Membres :\\n\"+\r\n \" [ 1] : Inscription d'un Membre\\n\" +\r\n \" [ 2] : Désinscription d'un Membre\\n\" +\r\n \" ( 3) : Afficher liste des Membres\\n\" +\r\n \" [ 4] : Payer Cotisation\\n\" +\r\n \" Actions vote Arbres d'un Membre :\\n\" +\r\n \" ( 5) : Voter pour un Arbre\\n\" +\r\n \" ( 6) : Afficher liste des votes\\n\" +\r\n \" ( 7) : Retirer un vote\\n\" +\r\n \" ( 8) : Supprimer les votes d'un Membre.\\n\" +\r\n \" ( 9) : Remplacer un vote\\n\" +\r\n \" Actions Arbres :\\n\" +\r\n \" (10) : Afficher la liste des Arbres\\n\" +\r\n // ...\r\n \" Actions Administration :\\n\" +\r\n \" (11) : Nommer nouveau Président\\n\" +\r\n // ...\r\n \"\\n ( 0) : Quitter l'application\\n\" +\r\n \" - Veuillez saisir une action. -\");\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n \tswitch (item.getItemId()) {\n\t\tcase R.id.menu_principla_mapas:\n\t\t\tToast.makeText(this, \"Soy el menu de mapas\", Toast.LENGTH_LONG).show();\n\t\t\treturn true;\n\t\tcase R.id.menu_principla_call:\n\t\t\tmakeCall(null);\n\t\t\treturn true;\n\t\tcase R.id.menu_principla_foto:\n\t\t\ttakePhoto(null);\n\t\t\treturn true;\n\t\tcase R.id.menu_principla_4:\n\t\t\tlanzarNotificacion(null);\n\t\t\treturn true;\n\t\tcase R.id.menu_principla_5:\n\t\t\tToast.makeText(this, \"Soy el menu 5\", Toast.LENGTH_LONG).show();\n\t\t\treturn true;\n\t\tcase R.id.menu_contextual_principal5_1:\n\t\t\tshowDialog(DLG_LIST);\n\t\t\treturn true;\n\t\tcase R.id.menu_contextual_principal5_2:\n\t\t\tshowDialog(DLG_LIST_SELECT);\n\t\t\treturn true;\n\t\tcase R.id.menu_principla_6:\n\t\t\tshowDialog(DLG_BUTTONS);\n\t\t\treturn true;\n\t\tcase R.id.menu_principla_7:\n\t\t\tshowDialog(DLG_PROGRESSBAR);\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n }", "public void activar(Bomberman b) {\n \tmapa.destruirPowerUp(celda);\n \tcelda=null;\n \tb.masacrallity();\n \tb.aumentarPuntaje(puntosAOtorgar);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_editar) {\n if(!menuVal){\n empresaFragment.Editar(true);\n item.setIcon(R.drawable.ic_save_black_24dp);\n menuVal=true;\n }else {\n empresaFragment.Salvar();\n item.setIcon(R.drawable.ic_edit_black_24dp);\n menuVal = false;\n }\n\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "private void btCancelarActionPerformed(java.awt.event.ActionEvent evt) {\n new Menu().setVisible(true);\n this.dispose();\n }", "private void btCancelarActionPerformed(java.awt.event.ActionEvent evt) {\n new Menu().setVisible(true);\n this.dispose();\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_actividad_principal, menu);\n return true;\n }", "public void bayar() {\n transaksi.setStatus(\"lunas\");\n setLunas(true);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actividad_principal, menu);\n return true;\n }", "public void limpiar() {\n\t//txtBuscar.setText(\"\");\n\n\t// codTemporal.setText(\"\");\n\thabilita(true, false, false, false, false, true, false, true, true);\n }", "private static void menuProdutos() throws Exception {//Inicio menuProdutos\r\n byte opcao;\r\n boolean encerrarPrograma = false;\r\n do {\r\n System.out.println(\r\n \"\\n\\t*** MENU DE PRODUTOS ***\\n\"\r\n + \"0 - Adicionar produto\\n\"\r\n + \"1 - Remover produto\\n\"\r\n + \"2 - Alterar produto\\n\"\r\n + \"3 - Consultar produto\\n\"\r\n + \"4 - Listar produtos cadastrados\\n\"\r\n + \"5 - Sair\"\r\n );\r\n System.out.print(\"Digite a opção: \");\r\n opcao = read.nextByte();\r\n System.out.println();\r\n switch (opcao) {\r\n case 0:\r\n adicionarProduto();\r\n break;\r\n case 1:\r\n removerProduto();\r\n break;\r\n case 2:\r\n alterarProduto();\r\n break;\r\n case 3:\r\n consultaProduto();\r\n break;\r\n case 4:\r\n listaProdutosCadastrados();\r\n break;\r\n case 5:\r\n encerrarPrograma = true;\r\n break;\r\n default:\r\n System.out.println(\"Opcao invalida!\\n\");\r\n Thread.sleep(1000);\r\n break;\r\n }\r\n } while (!encerrarPrograma);\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n getMenuInflater().inflate(R.menu.menu_principal, menu);\n this.menu = menu;\n\n\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB){\n\n SearchManager manager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n SearchView search = (SearchView) menu.findItem(R.id.search).getActionView();\n search.setQueryHint(\"Busqueda de Becas..\");\n search.setSearchableInfo(manager.getSearchableInfo(getComponentName()));\n search.setIconifiedByDefault(false);\n search.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String s) {\n //mostrarMensaje(s + \" submit\");\n Intent intent = new Intent(getApplicationContext(), SearchActivity.class);\n intent.putExtra(\"idBeca\", s);\n startActivity(intent);\n return true;\n }\n @Override\n public boolean onQueryTextChange(String s) {\n //mostrarMensaje(s);\n //loadHistory(s);\n return false;\n }\n });\n }\n return true;\n }", "public void menuListados() {\n\t\tSystem.out.println(\"MENU LISTADOS\");\n\t\tSystem.out.println(\"1. Personas con la misma actividad\");\n\t\tSystem.out.println(\"2. Cantidad de personas con la misma actividad\");\n\t\tSystem.out.println(\"0. Salir\");\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item)\n\t{\n\t\tsuper.onOptionsItemSelected(item);\n\t\tIntent intent;\n\t\tswitch(item.getItemId()){\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tcase R.id.acb_m_1:\n\t\t\tintent = new Intent(Callbacksplit.getMainActivity(), BewegungActivity.class);\n\t\t\tfinish();\n\t\t\tstartActivity(intent);\n\t\t\tbreak;\n\t\tcase R.id.acb_m_2:\n\t\t\tintent = new Intent(Callbacksplit.getMainActivity(), SprachausgabeActivity.class);\n\t\t\tfinish();\n\t\t\tstartActivity(intent);\n\t\t\tbreak;\n\t\tcase R.id.acb_m_3:\n\t\t\tintent = new Intent(Callbacksplit.getMainActivity(), SpecialsActivity.class);\n\t\t\tfinish();\n\t\t\tstartActivity(intent);\n\t\t\tbreak;\n\t\tcase R.id.acb_connect:\n\t\tcase R.id.acb_m_4:\n\t\t\tintent = new Intent(Callbacksplit.getMainActivity(), ConfigActivity.class);\n\t\t\tfinish();\n\t\t\tstartActivity(intent);\n\t\t\tbreak;\n\t\tcase R.id.acb_m_5:\n\t\t\tbreak;\n\t\tcase R.id.acb_video:\n\t\t\tVideoModule.create_dialog(SettingActivity.this, true);\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t\treturn true;\n\t}", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_home) {\n Intent mainActivity;\n Integer tipo = usuario.getTipo_permiso();\n if(tipo == 0){\n mainActivity = new Intent(getApplicationContext(), SetOrigenActivity.class);\n mainActivity.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(mainActivity);\n }else if(tipo == 1){\n mainActivity = new Intent(getApplicationContext(), MainActivity.class);\n mainActivity.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(mainActivity);\n }\n } else if (id == R.id.nav_sync) {\n new AlertDialog.Builder(ValidacionActivity.this)\n .setTitle(\"¡ADVERTENCIA!\")\n .setMessage(\"Se borrarán los registros de viajes almacenados en este dispositivo. \\n ¿Deséas continuar con la sincronización?\")\n .setNegativeButton(\"NO\", null)\n .setPositiveButton(\"SI\", new DialogInterface.OnClickListener() {\n @Override public void onClick(DialogInterface dialog, int which) {\n if (Util.isNetworkStatusAvialable(getApplicationContext())) {\n if(!Viaje.isSync(getApplicationContext()) || !InicioViaje.isSync(getApplicationContext())){\n progressDialogSync = ProgressDialog.show(ValidacionActivity.this, \"Sincronizando datos\", \"Por favor espere...\", true);\n new Sync(getApplicationContext(), progressDialogSync).execute((Void) null);\n\n } else {\n Toast.makeText(getApplicationContext(), \"No es necesaria la sincronización en este momento\", Toast.LENGTH_LONG).show();\n }\n } else {\n Toast.makeText(getApplicationContext(), R.string.error_internet, Toast.LENGTH_LONG).show();\n }\n }\n })\n .create()\n .show();\n\n } else if (id == R.id.nav_list) {\n Intent listaViajes = new Intent(this, ListaViajesActivity.class);\n startActivity(listaViajes);\n }else if (id == R.id.nav_desc) {\n Intent descarga = new Intent(this, DescargaActivity.class);\n startActivity(descarga);\n } else if (id == R.id.nav_logout) {\n if(!Viaje.isSync(getApplicationContext()) || !InicioViaje.isSync(getApplicationContext())){\n new AlertDialog.Builder(ValidacionActivity.this)\n .setTitle(\"¡ADVERTENCIA!\")\n .setMessage(\"Hay viajes aún sin sincronizar, se borrarán los registros de viajes almacenados en este dispositivo, \\n ¿Deséas sincronizar?\")\n .setNegativeButton(\"NO\", null)\n .setPositiveButton(\"SI\", new DialogInterface.OnClickListener() {\n @Override public void onClick(DialogInterface dialog, int which) {\n if (Util.isNetworkStatusAvialable(getApplicationContext())) {\n progressDialogSync = ProgressDialog.show(ValidacionActivity.this, \"Sincronizando datos\", \"Por favor espere...\", true);\n new Sync(getApplicationContext(), progressDialogSync).execute((Void) null);\n Intent login_activity = new Intent(getApplicationContext(), LoginActivity.class);\n usuario.destroy();\n startActivity(login_activity);\n } else {\n Toast.makeText(getApplicationContext(), R.string.error_internet, Toast.LENGTH_LONG).show();\n }\n }\n })\n .create()\n .show();\n }\n Intent login_activity = new Intent(getApplicationContext(), LoginActivity.class);\n usuario.destroy();\n startActivity(login_activity);\n }else if(id == R.id.nav_cambio){\n Intent cambio = new Intent(this, CambioClaveActivity.class);\n startActivity(cambio);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\r\n\tpublic void itemStateChanged(ItemEvent e) {\n\t\tif(e.getStateChange()== ItemEvent.SELECTED){\r\n\t\t\tcargarCantidades();\r\n\t\t\tactivarBoton();\r\n\t\t}\r\n\t}", "public void activarAceptar() {\n aceptar = false;\n }", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n boolean bandera = Globales.baseDatos.conectarBD(Globales.baseDatos.generarURL());\n if(bandera != false){\n MenuPrincipal menu = new MenuPrincipal();\n menu.setVisible(true);\n this.dispose();\n }\n else{\n JOptionPane.showMessageDialog(this, \"Error al conectarse a la base de datos: \" + Globales.baseDatos.getUltimoError(), \"Error de conexión con la base de datos\", JOptionPane.ERROR_MESSAGE);\n }\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);\n\n cadastro = menu.findItem(R.id.action_cadastrar);\n vinte = menu.findItem(R.id.action_vinte_mais);\n mDataUser = FirebaseDatabase.getInstance().getReference().child(\"usuario\");\n\n if (mAuth.getCurrentUser() != null) {\n\n mDataUser.child(user.getUid()).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String codi = dataSnapshot.getKey();\n String NomeMenu = dataSnapshot.child(\"nome\").getValue().toString();\n String EmailMenu = dataSnapshot.child(\"email\").getValue().toString();\n String imgMenu = dataSnapshot.child(\"imagem\").getValue().toString();\n String func = dataSnapshot.child(\"funcao\").getValue().toString();\n\n txtNome.setText(NomeMenu);\n if (func.toString().equals(\"vendedor\")){\n Intent intent = new Intent(MainActivity.this, TelaInicial.class);\n intent.putExtra(\"idForne\", NomeMenu);\n intent.putExtra(\"user_id\", codi);\n startActivity(intent);\n finish();\n //carregar(NomeMenu);\n //carregarDialog(NomeMenu);\n }\n\n if (func.toString().equals(\"admin\")){\n cadastro.setVisible(true);\n vinte.setVisible(true);\n carregarUsuarios();\n\n }else {\n cadastro.setVisible(false);\n vinte.setVisible(false);\n }\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n }\n\n return true;\n }", "public void bajarBloque() {\n\t\tif (piezaActual != null) {\n\t\t\tif (Mapa.getInstance().estaLibre(piezaActual.getBloque3().getX(),\n\t\t\t\t\tpiezaActual.getBloque3().getY() + 1)) {\n\t\t\t\tpiezaActual.getBloque3().bajar(); // Dejar en ese orden\n\t\t\t\tpiezaActual.getBloque2().bajar();\n\t\t\t\tpiezaActual.getBloque1().bajar();\n\t\t\t} else {\n\t\t\t\tthis.piezaNueva();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\n\t\tcase R.id.listLugares: {\n\t\t\tlanzarListadoLugares();\n\t\t\tbreak;\n\t\t}\n\n\t\tcase R.id.listCategorias: {\n\t\t\tlanzarListadoCategorias();\n\t\t\tbreak;\n\t\t}\n\n\t\tcase R.id.action_settings: {\n\t\t\tlanzarPreferencias();\n\t\t\tbreak;\n\t\t}\n\n\t\tcase R.id.acerca_de: {\n\t\t\tToast.makeText(this, \"Acerca De\", Toast.LENGTH_SHORT).show();\n\t\t\t// lanzarAcercaDe();\n\t\t\tbreak;\n\t\t}\n\n\t\tcase R.id.salir: {\n\t\t\tfinish();\n\t\t\tbreak;\n\t\t}\n\t\t}\n\t\t\n\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main_alumno, menu);\r\n\t\t\r\n\t\tMenuItem searchItem = menu.findItem(R.id.buscarItem);\r\n\t SearchView searchView = (SearchView) MenuItemCompat.getActionView(searchItem);\r\n\t // Configure the search info and add any event listeners\r\n\t //searchView.setQueryHint(\"Buscar curso...\");\r\n\t\treturn true;\r\n\t}", "public void menu(){\n int numero;\n \n //x.setVisible(true);\n //while(opc>=3){\n r = d.readString(\"Que tipo de conversion deseas hacer?\\n\"\n + \"1)Convertir de F a C\\n\"\n + \"2)Convertir de C a F\\n\"\n + \"3)Salir\"); \n opc=Character.getNumericValue(r.charAt(0));\n //}\n }", "public void abrir(){\n\t\tif(this.isOpen == false) {\n\t\t\tthis.isOpen = true;\n\t\t\tnumAberturas ++;\n\t\t} else {\n\t\t\tSystem.out.println(\"Cavalo! A porta já está aberta!!\");\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_cadastrar) {\n startActivity(new Intent(MainActivity.this, CadastroUsuario.class));\n finish();\n\n }else if (id == R.id.action_sair){\n mAuth.signOut();\n if (mAuth.getCurrentUser() == null) {\n Intent it = new Intent(MainActivity.this, MainActivity.class);\n startActivity(it);\n finish();\n }\n }else if (id == R.id.action_vinte_mais){\n\n carregarVinteMais();\n\n }else if (id == R.id.action_catalogo){\n startActivity(new Intent(MainActivity.this, Catalogo.class));\n finish();\n }else if (id == R.id.action_acaoVigente){\n startActivity(new Intent(MainActivity.this, AcoesVigentes.class));\n\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {\n Seleccion_Insertar insert = new Seleccion_Insertar();\n insert.setVisible(true);\n this.setVisible(false);\n }", "public static void activateMenu() {\n instance.getMenu().show();\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n if (jcb_Actividad.getSelectedIndex() == 1) {\n jcb_Maestro.setEnabled(true);\n jcb_Hora_Clase.setEnabled(true);\n jcb_razones.setEnabled(false);\n Limpiar_Maestros();\n Consultar_Maestros();\n\n }\n if (jcb_Actividad.getSelectedIndex() == 0) {\n jcb_Maestro.setEnabled(false);\n jcb_Hora_Clase.setEnabled(false);\n jcb_razones.setEnabled(false);\n Limpiar_Maestros();\n Limpiar_Aulas_Y_Materias();\n }\n if (jcb_Actividad.getSelectedIndex() == 2) {\n\n jcb_Maestro.setEnabled(false);\n jcb_Hora_Clase.setEnabled(false);\n Limpiar_Maestros();\n Limpiar_Aulas_Y_Materias();\n Alumno.Comentarios = jcb_Actividad.getSelectedItem().toString();\n btnEntrar.setEnabled(true);\n }\n if (jcb_Actividad.getSelectedIndex() == 3) {\n\n jcb_Maestro.setEnabled(false);\n jcb_Hora_Clase.setEnabled(false);\n Limpiar_Maestros();\n Limpiar_Aulas_Y_Materias();\n Alumno.Comentarios = jcb_Actividad.getSelectedItem().toString();\n btnEntrar.setEnabled(true);\n }\n\n if (jcb_Actividad.getSelectedIndex() == 4) {\n jcb_razones.setEnabled(true);\n jcb_Maestro.setEnabled(false);\n jcb_Hora_Clase.setEnabled(false);\n Limpiar_Maestros();\n Limpiar_Aulas_Y_Materias();\n// btnEntrar.setEnabled(true);\n }\n }", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n \tmenu.findItem(R.id.menu_principla_4).setTitle(\"Notificacion\");\n \treturn true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case R.id.salir:\n finish();\n\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }" ]
[ "0.71524614", "0.6569903", "0.6430212", "0.638915", "0.6359194", "0.6271822", "0.62659365", "0.6218385", "0.6144064", "0.613996", "0.61176604", "0.6117556", "0.6101572", "0.60638016", "0.6018297", "0.59767544", "0.59743863", "0.5973816", "0.5966471", "0.5965044", "0.5963887", "0.5963181", "0.5962322", "0.5959468", "0.59579813", "0.59509677", "0.5950496", "0.59386563", "0.5935006", "0.5923259", "0.5911741", "0.5889903", "0.58786", "0.5866059", "0.58597076", "0.5856434", "0.58499056", "0.5846535", "0.58444583", "0.58382547", "0.58376294", "0.5827305", "0.5820684", "0.5815883", "0.5814922", "0.5812607", "0.5806947", "0.5806506", "0.57842803", "0.5775832", "0.5774503", "0.57569706", "0.5753068", "0.5750519", "0.5747914", "0.57452106", "0.5741857", "0.5732193", "0.5728348", "0.57206947", "0.57165635", "0.5713533", "0.5711599", "0.5709027", "0.57038903", "0.57028383", "0.5698833", "0.5697806", "0.5693013", "0.5685133", "0.56841785", "0.56796664", "0.5671276", "0.5670598", "0.56701905", "0.56701905", "0.5668503", "0.56641006", "0.56634593", "0.5659772", "0.565733", "0.56572425", "0.5646012", "0.5642293", "0.56377834", "0.56352836", "0.56332934", "0.5629625", "0.56212264", "0.56177527", "0.561768", "0.5611426", "0.5602658", "0.56011385", "0.5598603", "0.5595209", "0.5594415", "0.55907065", "0.5590082", "0.5589992" ]
0.71015567
1
Configura el click en menu_borrar_busquedas
@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.menu_borrar_busquedas: do_limpiar_sugerencias(); return true; default: return super.onOptionsItemSelected(item); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clicarAlterarDadosCadastrais() {\n\t\thomePage.getButtonMenu().click();\n\t\thomePage.getButtonAlterarDadosCadastrais().click();\t\t\n\t}", "public void barraprincipal(){\n setJMenuBar(barra);\n //Menu archivo\n archivo.add(\"Salir del Programa\").addActionListener(this);\n barra.add(archivo);\n //Menu tareas\n tareas.add(\"Registros Diarios\").addActionListener(this);\n tareas.addSeparator();\n tareas.add(\"Ver Catalogo de Cuentas\").addActionListener(this);\n tareas.addSeparator();\n tareas.add(\"Empleados\").addActionListener(this);\n tareas.addSeparator();\n tareas.add(\"Productos\").addActionListener(this);\n tareas.addSeparator();\n tareas.add(\"Generacion de Estados Financieros\").addActionListener(this);\n barra.add(tareas);\n //Menu Ayuda\n ayuda.add(\"Acerca de...\").addActionListener(this);\n ayuda.addSeparator();\n barra.add(ayuda);\n //Para ventana interna\n acciones.addItem(\"Registros Diarios\");\n acciones.addItem(\"Ver Catalogo de Cuentas\");\n acciones.addItem(\"Empleados\");\n acciones.addItem(\"Productos\");\n acciones.addItem(\"Generacion de Estados Financieros\");\n aceptar.addActionListener(this);\n salir.addActionListener(this);\n }", "public void setMenuConfigure() {\n menuConfigure.click();\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// Primero configura el menu de MenuActivity\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\t// Activa el item\n\t\tMenuItem item = menu.findItem(R.id.menu_borrar_busquedas);\t\t\n\t\tif (item !=null) {\n\t\t\titem.setEnabled(true);\n\t\t\titem.setVisible(true);\n\t\t}\t\t\n\t\treturn true;\n\t}", "VentanaPrincipal(InterfazGestorFF principal, InterfazEsquema estructura) {\n initComponents();\n setTitle(BufferDeRegistro.titulo);\n this.principal=principal;\n this.estructura=estructura;\n cargar_campos(); \n cargar_menu_listados();\n \n botones=new javax.swing.JButton[]{\n jBAbrirSGFF,jBActualizarRegistro,jBAyuda,jBBorrarRegistro,\n jBComenzarConsulta,jBGuardarSGFF,jBGuardarSGFF,jBImportarSGFF,\n jBInsertarRegistro,jBIrAlHV,jBIrAlHijo,\n jBIrAlPV,jBIrAlPadre,jBNuevaFicha,jBRegistroAnterior,jBRegistroSiguiente,jBSSGFF,jBCaracteres, jBAccInv, jBListar\n };\n combos=new javax.swing.JComboBox[]{\n jCBArchivos, jCBHijos, jCBPadresV, jCBHijosV\n };\n abrir(false);//Pongo en orden la barra de herramientas\n \n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_btn_bienbao, menu);\n return true;\n }", "private void configureButtons() {\n\n backToMenu = new JButton(\"Menu\");\n if(isWatching){\n backToMenu.setBounds(575, 270, 100, 50);\n }\n else{\n backToMenu.setBounds(30, 800, 100, 50);\n }\n backToMenu.setFont(new Font(\"Broadway\", Font.PLAIN, 20));\n backToMenu.setBackground(Color.RED);\n backToMenu.setFocusable(false);\n backToMenu.addActionListener(this);\n add(backToMenu);\n }", "public void actionPerformed(ActionEvent evento) {\n\t\tif (evento.getSource() == janelaBanList.getMenuSair()) {\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\r\n\t\t// Caso o evento tenha ocorrido no botao Configurações.\r\n\t\telse if (evento.getSource() == janelaBanList.getMenuAlternarConta()) {\r\n\t\t\tnew JanelaAlternarConta(janelaBanList);\r\n\t\t}\r\n\r\n\t\t// Caso o evento tenha ocorrido no botao Banir.\r\n\t\telse if (evento.getSource() == janelaBanList.getBotaoBanir()) {\r\n\t\t\tbanirUsuario();\r\n\t\t}\r\n\t\t\r\n\t\t// Caso o evento tenha ocorrido no menu Desbanir.\r\n\t\telse if (evento.getSource() == janelaBanList.getMenuDesbanir()) {\r\n\t\t\tdesbanirUsuario();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\n\t\tif (modo == \"bomba\"){\n\t\t\t\n\t\t\tif (SwingUtilities.isLeftMouseButton(e)){\n\t\t\t\tthis.ponerIcono();\n\t\t\t\t\n\t\t\t\tthis.setDescubierto(true);\n\t\t\t\t\n\t\t\t\tif(this.cantBombas == -1){\n\t\t\t\t\tSystem.out.println(\"HAS PERDIDO\");\n\t\t\t\t\t\n\t\t\t\t\tMain.ventana1.setVisible(false);\n\t\t\t\t\tMain.ventana1.setVisible(true);\n\t\t\t\t}else if(todosDescubiertos()){\n\t\t\t\t\tSystem.out.println(\"HAS GANADO\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else if (SwingUtilities.isRightMouseButton(e)){\n\t\t\t\tif(this.tieneBandera){\n\t\t\t\t\tthis.setIcon(vacio);\n\t\t\t\t}else{\n\t\t\t\t\tthis.setIcon(bandera);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcantBanderas++;\n\t\t\t\tif(LayerBotones.botones[this.nombre].getCantBombas() == -1){\n\t\t\t\t\tLayerBotones.botones[this.nombre].setDescubierto(true);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(todosDescubiertos()){\n\t\t\t\t\tSystem.out.println(\"HAS GANADO\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}else{\n\t\t\t\n\t\t\tif (SwingUtilities.isLeftMouseButton(e)){\n\t\t\t\tif(this.tieneBandera){\n\t\t\t\t\tthis.setIcon(vacio);\n\t\t\t\t}else{\n\t\t\t\t\tthis.setIcon(bandera);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcantBanderas++;\n\t\t\t\tif(LayerBotones.botones[this.nombre].getCantBombas() == -1){\n\t\t\t\t\tLayerBotones.botones[this.nombre].setDescubierto(true);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(todosDescubiertos()){\n\t\t\t\t\tSystem.out.println(\"HAS GANADO\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else if (SwingUtilities.isRightMouseButton(e)){\n\t\t\t\tthis.ponerIcono();\n\t\t\t\t\n\t\t\t\tthis.setDescubierto(true);\n\t\t\t\t\n\t\t\t\tif(this.cantBombas == -1){\n\t\t\t\t\tSystem.out.println(\"HAS PERDIDO\");\n\t\t\t\t\tMain.ventana1.setVisible(false);\n\t\t\t\t\tMain.ventana1.setVisible(true);\n\t\t\t\t}else if(todosDescubiertos()){\n\t\t\t\t\tSystem.out.println(\"HAS GANADO\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private void CarregarJanela() {\n\t\taddWindowListener(new WindowAdapter() {\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\n\t\t\t\tString dt = formatDataHora.format(dataAtual());\n\n\t\t\t\ttry {\n\t\t\t\t\tBackUp backUp = new BackUp();\n\n\t\t\t\t\tif (\"Linux\".equals(System.getProperty(\"os.name\"))) {\n\t\t\t\t\t\t// JOptionPane.showMessageDialog(null, dt);\n\t\t\t\t\t\tbackUp.salvar(\"/opt/\" + dt);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbackUp.salvar(\"C:\\\\GrupoCaravela\\\\backup\\\\\" + dt);\n\t\t\t\t\t}\n\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Obrigado!!!\");\n\n\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"ERRO! Não foi possivel salvar o backup!!!\");\n\t\t\t\t}\n\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\n\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tsetBounds(100, 100, 1002, 680);\n\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\tmenuBar.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tsetJMenuBar(menuBar);\n\n\t\tJMenu mnArquivo = new JMenu(\"Arquivo\");\n\t\tmenuBar.add(mnArquivo);\n\n\t\tJMenuItem mntmAgencia = new JMenuItem(\"Agência\");\n\t\tmntmAgencia.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/agencia_24.png\")));\n\t\tmntmAgencia.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tJanelaAgencia janelaAgencia = new JanelaAgencia();\n\t\t\t\tjanelaAgencia.setVisible(true);\n\t\t\t\tjanelaAgencia.setLocationRelativeTo(null);\n\n\t\t\t}\n\t\t});\n\t\tmnArquivo.add(mntmAgencia);\n\n\t\tJMenuItem mntmBanco = new JMenuItem(\"Banco\");\n\t\tmntmBanco.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/banco_24.png\")));\n\t\tmntmBanco.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// #############################################\n\t\t\t\tfinal Thread tr = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(0);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(JanelaMenuPrincipal.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\tJanelaBanco janelaBanco = new JanelaBanco();\n\t\t\t\t\t\tjanelaBanco.setVisible(true);\n\t\t\t\t\t\tjanelaBanco.setLocationRelativeTo(null);\n\t\t\t\t\t\t// ######################FIM METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttr.start();\n\t\t\t\t\t\t// .....\n\t\t\t\t\t\tEsperaJanela espera = new EsperaJanela();\n\t\t\t\t\t\tespera.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\tespera.setUndecorated(true);\n\t\t\t\t\t\tespera.setVisible(true);\n\t\t\t\t\t\tespera.setLocationRelativeTo(null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttr.join();\n\t\t\t\t\t\t\tespera.dispose();\n\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\t// Logger.getLogger(MenuView.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\n\t\t\t\t// ###############################################\n\n\t\t\t}\n\t\t});\n\t\tmnArquivo.add(mntmBanco);\n\n\t\tJMenuItem mntmCheque = new JMenuItem(\"Cheque\");\n\t\tmntmCheque.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/cheque_24.png\")));\n\t\tmntmCheque.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tJanelaCheque janelaCheque = new JanelaCheque();\n\t\t\t\tjanelaCheque.setVisible(true);\n\t\t\t\tjanelaCheque.setLocationRelativeTo(null);\n\n\t\t\t}\n\t\t});\n\t\tmnArquivo.add(mntmCheque);\n\n\t\tJMenuItem mntmConta = new JMenuItem(\"Conta\");\n\t\tmntmConta.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// #############################################\n\t\t\t\tfinal Thread tr = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(0);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(JanelaMenuPrincipal.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\tJanelaConta janelaConta = new JanelaConta();\n\t\t\t\t\t\tjanelaConta.setVisible(true);\n\t\t\t\t\t\tjanelaConta.setLocationRelativeTo(null);\n\t\t\t\t\t\t// ######################FIM METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttr.start();\n\t\t\t\t\t\t// .....\n\t\t\t\t\t\tEsperaJanela espera = new EsperaJanela();\n\t\t\t\t\t\tespera.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\tespera.setUndecorated(true);\n\t\t\t\t\t\tespera.setVisible(true);\n\t\t\t\t\t\tespera.setLocationRelativeTo(null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttr.join();\n\t\t\t\t\t\t\tespera.dispose();\n\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\t// Logger.getLogger(MenuView.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\n\t\t\t\t// ###############################################\n\n\t\t\t}\n\t\t});\n\t\tmntmConta.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/conta_24.png\")));\n\t\tmnArquivo.add(mntmConta);\n\n\t\tJMenuItem mntmDestinatrio = new JMenuItem(\"Destinatário\");\n\t\tmntmDestinatrio.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// #############################################\n\t\t\t\tfinal Thread tr = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(0);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(JanelaMenuPrincipal.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\tJanelaDestinatario janelaDestinatario = new JanelaDestinatario();\n\t\t\t\t\t\tjanelaDestinatario.setVisible(true);\n\t\t\t\t\t\tjanelaDestinatario.setLocationRelativeTo(null);\n\t\t\t\t\t\t// ######################FIM METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttr.start();\n\t\t\t\t\t\t// .....\n\t\t\t\t\t\tEsperaJanela espera = new EsperaJanela();\n\t\t\t\t\t\tespera.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\tespera.setUndecorated(true);\n\t\t\t\t\t\tespera.setVisible(true);\n\t\t\t\t\t\tespera.setLocationRelativeTo(null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttr.join();\n\t\t\t\t\t\t\tespera.dispose();\n\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\t// Logger.getLogger(MenuView.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\n\t\t\t\t// ###############################################\n\n\t\t\t}\n\t\t});\n\t\tmntmDestinatrio.setIcon(new ImageIcon(\n\t\t\t\tJanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/destinatario_24.png\")));\n\t\tmnArquivo.add(mntmDestinatrio);\n\n\t\tJMenuItem mntmProprietrio = new JMenuItem(\"Proprietário\");\n\t\tmntmProprietrio.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// #############################################\n\t\t\t\tfinal Thread tr = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(0);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(JanelaMenuPrincipal.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\tJanelaProprietario janelaProprietario = new JanelaProprietario();\n\t\t\t\t\t\tjanelaProprietario.setVisible(true);\n\t\t\t\t\t\tjanelaProprietario.setLocationRelativeTo(null);\n\t\t\t\t\t\t// ######################FIM METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttr.start();\n\t\t\t\t\t\t// .....\n\t\t\t\t\t\tEsperaJanela espera = new EsperaJanela();\n\t\t\t\t\t\tespera.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\tespera.setUndecorated(true);\n\t\t\t\t\t\tespera.setVisible(true);\n\t\t\t\t\t\tespera.setLocationRelativeTo(null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttr.join();\n\t\t\t\t\t\t\tespera.dispose();\n\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\t// Logger.getLogger(MenuView.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\n\t\t\t\t// ###############################################\n\n\t\t\t}\n\t\t});\n\t\tmntmProprietrio.setIcon(new ImageIcon(\n\t\t\t\tJanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/proprietario_24.png\")));\n\t\tmnArquivo.add(mntmProprietrio);\n\n\t\tmntmUsurio = new JMenuItem(\"Usuários\");\n\t\tmntmUsurio.setEnabled(false);\n\t\tmntmUsurio.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// #############################################\n\t\t\t\tfinal Thread tr = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(0);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(JanelaMenuPrincipal.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\tJanelaUsuario janelaUsuario = new JanelaUsuario();\n\t\t\t\t\t\tjanelaUsuario.setVisible(true);\n\t\t\t\t\t\tjanelaUsuario.setLocationRelativeTo(null);\n\t\t\t\t\t\t// ######################FIM METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttr.start();\n\t\t\t\t\t\t// .....\n\t\t\t\t\t\tEsperaJanela espera = new EsperaJanela();\n\t\t\t\t\t\tespera.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\tespera.setUndecorated(true);\n\t\t\t\t\t\tespera.setVisible(true);\n\t\t\t\t\t\tespera.setLocationRelativeTo(null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttr.join();\n\t\t\t\t\t\t\tespera.dispose();\n\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\t// Logger.getLogger(MenuView.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\n\t\t\t\t// ###############################################\n\n\t\t\t}\n\t\t});\n\t\tmntmUsurio.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/usuario_24.png\")));\n\t\tmnArquivo.add(mntmUsurio);\n\n\t\tJMenuItem mntmSair = new JMenuItem(\"Sair\");\n\t\tmntmSair.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/sair_24.png\")));\n\t\tmnArquivo.add(mntmSair);\n\n\t\tJMenu mnFerramentas = new JMenu(\"Ferramentas\");\n\t\tmenuBar.add(mnFerramentas);\n\n\t\tmntmDownloadBackup = new JMenuItem(\"Donwload BackUp\");\n\t\tmntmDownloadBackup.setEnabled(false);\n\t\tmntmDownloadBackup.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/backup_24.png\")));\n\t\tmntmDownloadBackup.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tBackUp backUp = new BackUp();\n\n\t\t\t\tbackUp.salvarBackup();\n\n\t\t\t}\n\t\t});\n\t\t\n\t\tJMenuItem mntmConfiguraes = new JMenuItem(\"Configurações\");\n\t\tmntmConfiguraes.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tJanelaConfiguracao configuracao = new JanelaConfiguracao();\n\t\t\t\tconfiguracao.setVisible(true);\n\t\t\t\tconfiguracao.setLocationRelativeTo(null);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmConfiguraes.setIcon(new ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/configure_24.png\")));\n\t\tmnFerramentas.add(mntmConfiguraes);\n\t\tmnFerramentas.add(mntmDownloadBackup);\n\n\t\tmntmUploadBackup = new JMenuItem(\"Upload Backup\");\n\t\tmntmUploadBackup.setEnabled(false);\n\t\tmntmUploadBackup.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tBackUp backUp = new BackUp();\n\n\t\t\t\tbackUp.uploadBackup();\n\t\t\t}\n\t\t});\n\t\tmntmUploadBackup.setIcon(new ImageIcon(\n\t\t\t\tJanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/backup_upload_24.png\")));\n\t\tmnFerramentas.add(mntmUploadBackup);\n\n\t\tJMenuItem mntmHistrico = new JMenuItem(\"Histórico\");\n\t\tmntmHistrico.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/historico_24.png\")));\n\t\tmnFerramentas.add(mntmHistrico);\n\n\t\tJMenuItem mntmObservaes = new JMenuItem(\"Observações\");\n\t\tmntmObservaes.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tJanelaObservacao janelaObservacao = new JanelaObservacao();\n\t\t\t\tjanelaObservacao.setVisible(true);\n\t\t\t\tjanelaObservacao.setLocationRelativeTo(null);\n\n\t\t\t}\n\t\t});\n\t\tmntmObservaes.setIcon(new ImageIcon(\n\t\t\t\tJanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/atend_producao_24.png\")));\n\t\tmnFerramentas.add(mntmObservaes);\n\n\t\tJMenu mnAjuda = new JMenu(\"Ajuda\");\n\t\tmenuBar.add(mnAjuda);\n\n\t\tJMenuItem mntmSobre = new JMenuItem(\"Sobre\");\n\t\tmntmSobre.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tSobre sobre = new Sobre();\n\t\t\t\tsobre.setModal(true);\n\t\t\t\tsobre.setLocationRelativeTo(null);\n\t\t\t\tsobre.setVisible(true);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmSobre.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/sobre_24.png\")));\n\t\tmnAjuda.add(mntmSobre);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\n\t\ttabbedPane = new JTabbedPane(JTabbedPane.BOTTOM);\n\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setBorder(new TitledBorder(null, \"Atalhos\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\n\t\tJPanel panel_6 = new JPanel();\n\t\tpanel_6.setBorder(\n\t\t\t\tnew TitledBorder(new LineBorder(new Color(184, 207, 229)), \"Informa\\u00E7\\u00F5es do usu\\u00E1rio\",\n\t\t\t\t\t\tTitledBorder.CENTER, TitledBorder.TOP, null, new Color(51, 51, 51)));\n\t\t\n\t\tJPanel panel_8 = new JPanel();\n\t\tpanel_8.setBorder(new TitledBorder(new LineBorder(new Color(184, 207, 229)), \"Sistema info\", TitledBorder.CENTER, TitledBorder.TOP, null, new Color(51, 51, 51)));\n\t\t\n\t\tJLabel label_1 = new JLabel((String) null);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"\");\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel.setIcon(new ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/imagens/footer_logo.png\")));\n\t\t\n\t\tJLabel lblLicenciadoPara = new JLabel(\"Licenciado para:\");\n\t\t\n\t\tlblEmpresa = new JLabel(\"Empresa\");\n\t\tGroupLayout gl_panel_8 = new GroupLayout(panel_8);\n\t\tgl_panel_8.setHorizontalGroup(\n\t\t\tgl_panel_8.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t.addGroup(gl_panel_8.createSequentialGroup()\n\t\t\t\t\t.addGroup(gl_panel_8.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t.addGroup(gl_panel_8.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(78)\n\t\t\t\t\t\t\t.addComponent(label_1, GroupLayout.PREFERRED_SIZE, 341, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(Alignment.LEADING, gl_panel_8.createSequentialGroup()\n\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t.addGroup(gl_panel_8.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addComponent(lblLicenciadoPara)\n\t\t\t\t\t\t\t\t.addComponent(lblEmpresa))\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t.addComponent(lblNewLabel)\n\t\t\t\t\t\t\t.addGap(37)))\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\t\tgl_panel_8.setVerticalGroup(\n\t\t\tgl_panel_8.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_8.createSequentialGroup()\n\t\t\t\t\t.addComponent(label_1)\n\t\t\t\t\t.addGroup(gl_panel_8.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(gl_panel_8.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(lblLicenciadoPara)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\n\t\t\t\t\t\t\t.addComponent(lblEmpresa))\n\t\t\t\t\t\t.addGroup(gl_panel_8.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(6)\n\t\t\t\t\t\t\t.addComponent(lblNewLabel)))\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\t\tpanel_8.setLayout(gl_panel_8);\n\t\tGroupLayout gl_contentPane = new GroupLayout(contentPane);\n\t\tgl_contentPane.setHorizontalGroup(\n\t\t\tgl_contentPane.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_contentPane.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(gl_contentPane.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(panel_6, GroupLayout.DEFAULT_SIZE, 463, Short.MAX_VALUE)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(panel_8, GroupLayout.PREFERRED_SIZE, 399, Short.MAX_VALUE))\n\t\t\t\t\t\t.addComponent(tabbedPane, Alignment.TRAILING, GroupLayout.PREFERRED_SIZE, 868, Short.MAX_VALUE))\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\n\t\t\t\t\t.addComponent(panel_1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\t\tgl_contentPane.setVerticalGroup(\n\t\t\tgl_contentPane.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_contentPane.createSequentialGroup()\n\t\t\t\t\t.addGap(12)\n\t\t\t\t\t.addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 538, Short.MAX_VALUE)\n\t\t\t\t\t\t.addGroup(gl_contentPane.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(tabbedPane, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addComponent(panel_8, GroupLayout.PREFERRED_SIZE, 73, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(panel_6, GroupLayout.PREFERRED_SIZE, 73, GroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\n\t\tJLabel lblUsuario = new JLabel(\"Usuário:\");\n\n\t\tlblNomeUsuario = new JLabel(\"Nome do usuário interio\");\n\n\t\tJLabel lblAdministrador = new JLabel(\"Administrador:\");\n\n\t\tlblSimNao = new JLabel(\"Sim/Não\");\n\t\tGroupLayout gl_panel_6 = new GroupLayout(panel_6);\n\t\tgl_panel_6.setHorizontalGroup(\n\t\t\tgl_panel_6.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_6.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addGroup(gl_panel_6.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(gl_panel_6.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(lblUsuario)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(lblNomeUsuario, GroupLayout.PREFERRED_SIZE, 341, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(gl_panel_6.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(lblAdministrador)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(lblSimNao)))\n\t\t\t\t\t.addContainerGap(49, Short.MAX_VALUE))\n\t\t);\n\t\tgl_panel_6.setVerticalGroup(\n\t\t\tgl_panel_6.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_6.createSequentialGroup()\n\t\t\t\t\t.addGroup(gl_panel_6.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(lblUsuario)\n\t\t\t\t\t\t.addComponent(lblNomeUsuario))\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\n\t\t\t\t\t.addGroup(gl_panel_6.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addComponent(lblSimNao)\n\t\t\t\t\t\t.addComponent(lblAdministrador))\n\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n\t\t);\n\t\tpanel_6.setLayout(gl_panel_6);\n\n\t\tJButton btnNovo = new JButton(\"\");\n\t\tbtnNovo.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// #############################################\n\t\t\t\tfinal Thread tr = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(0);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(JanelaMenuPrincipal.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\tJanelaCheque janelaCheque2 = new JanelaCheque();\n\t\t\t\t\t\tjanelaCheque2.setVisible(true);\n\t\t\t\t\t\tjanelaCheque2.setLocationRelativeTo(null);\n\t\t\t\t\t\t// ######################FIM METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttr.start();\n\t\t\t\t\t\t// .....\n\t\t\t\t\t\tEsperaJanela espera = new EsperaJanela();\n\t\t\t\t\t\tespera.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\tespera.setUndecorated(true);\n\t\t\t\t\t\tespera.setVisible(true);\n\t\t\t\t\t\tespera.setLocationRelativeTo(null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttr.join();\n\t\t\t\t\t\t\tespera.dispose();\n\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\t// Logger.getLogger(MenuView.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\n\t\t\t\t// ###############################################\n\n\t\t\t}\n\t\t});\n\t\tbtnNovo.setToolTipText(\"Cheque\");\n\t\tbtnNovo.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/cheque_64.png\")));\n\n\t\tJButton btnDestinatario = new JButton(\"\");\n\t\tbtnDestinatario.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// #############################################\n\t\t\t\tfinal Thread tr = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(0);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(JanelaMenuPrincipal.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\tJanelaDestinatario janelaDestinatario = new JanelaDestinatario();\n\t\t\t\t\t\tjanelaDestinatario.setVisible(true);\n\t\t\t\t\t\tjanelaDestinatario.setLocationRelativeTo(null);\n\t\t\t\t\t\t// ######################FIM METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttr.start();\n\t\t\t\t\t\t// .....\n\t\t\t\t\t\tEsperaJanela espera = new EsperaJanela();\n\t\t\t\t\t\tespera.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\tespera.setUndecorated(true);\n\t\t\t\t\t\tespera.setVisible(true);\n\t\t\t\t\t\tespera.setLocationRelativeTo(null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttr.join();\n\t\t\t\t\t\t\tespera.dispose();\n\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\t// Logger.getLogger(MenuView.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\n\t\t\t\t// ###############################################\n\n\t\t\t}\n\t\t});\n\t\tbtnDestinatario.setIcon(new ImageIcon(\n\t\t\t\tJanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/destinatario_64.png\")));\n\t\tbtnDestinatario.setToolTipText(\"Destinatário\");\n\n\t\tJButton btnProprietario = new JButton(\"\");\n\t\tbtnProprietario.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// #############################################\n\t\t\t\tfinal Thread tr = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(0);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(JanelaMenuPrincipal.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\tJanelaProprietario janelaProprietario = new JanelaProprietario();\n\t\t\t\t\t\tjanelaProprietario.setVisible(true);\n\t\t\t\t\t\tjanelaProprietario.setLocationRelativeTo(null);\n\t\t\t\t\t\t// ######################FIM METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttr.start();\n\t\t\t\t\t\t// .....\n\t\t\t\t\t\tEsperaJanela espera = new EsperaJanela();\n\t\t\t\t\t\tespera.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\tespera.setUndecorated(true);\n\t\t\t\t\t\tespera.setVisible(true);\n\t\t\t\t\t\tespera.setLocationRelativeTo(null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttr.join();\n\t\t\t\t\t\t\tespera.dispose();\n\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\t// Logger.getLogger(MenuView.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\n\t\t\t\t// ###############################################\n\n\t\t\t}\n\t\t});\n\t\tbtnProprietario.setIcon(new ImageIcon(\n\t\t\t\tJanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/proprietario_64.png\")));\n\t\tbtnProprietario.setToolTipText(\"Proprietário\");\n\n\t\tJButton btnBanco = new JButton(\"\");\n\t\tbtnBanco.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// #############################################\n\t\t\t\tfinal Thread tr = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(0);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(JanelaMenuPrincipal.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\tJanelaBanco janelaBanco = new JanelaBanco();\n\t\t\t\t\t\tjanelaBanco.setVisible(true);\n\t\t\t\t\t\tjanelaBanco.setLocationRelativeTo(null);\n\t\t\t\t\t\t// ######################FIM METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttr.start();\n\t\t\t\t\t\t// .....\n\t\t\t\t\t\tEsperaJanela espera = new EsperaJanela();\n\t\t\t\t\t\tespera.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\tespera.setUndecorated(true);\n\t\t\t\t\t\tespera.setVisible(true);\n\t\t\t\t\t\tespera.setLocationRelativeTo(null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttr.join();\n\t\t\t\t\t\t\tespera.dispose();\n\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\t// Logger.getLogger(MenuView.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\n\t\t\t\t// ###############################################\n\n\t\t\t}\n\t\t});\n\t\tbtnBanco.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/banco_64.png\")));\n\t\tbtnBanco.setToolTipText(\"Banco\");\n\n\t\tJButton btnAgencia = new JButton(\"\");\n\t\tbtnAgencia.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// #############################################\n\t\t\t\tfinal Thread tr = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(0);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(JanelaMenuPrincipal.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\tJanelaAgencia janelaAgencia = new JanelaAgencia();\n\t\t\t\t\t\tjanelaAgencia.setVisible(true);\n\t\t\t\t\t\tjanelaAgencia.setLocationRelativeTo(null);\n\t\t\t\t\t\t// ######################FIM METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttr.start();\n\t\t\t\t\t\t// .....\n\t\t\t\t\t\tEsperaJanela espera = new EsperaJanela();\n\t\t\t\t\t\tespera.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\tespera.setUndecorated(true);\n\t\t\t\t\t\tespera.setVisible(true);\n\t\t\t\t\t\tespera.setLocationRelativeTo(null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttr.join();\n\t\t\t\t\t\t\tespera.dispose();\n\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\t// Logger.getLogger(MenuView.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\n\t\t\t\t// ###############################################\n\n\t\t\t}\n\t\t});\n\t\tbtnAgencia.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/agencia_64.png\")));\n\t\tbtnAgencia.setToolTipText(\"Agência\");\n\n\t\tJButton btnConta = new JButton(\"\");\n\t\tbtnConta.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// #############################################\n\t\t\t\tfinal Thread tr = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(0);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(JanelaMenuPrincipal.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\tJanelaConta janelaConta = new JanelaConta();\n\t\t\t\t\t\tjanelaConta.setVisible(true);\n\t\t\t\t\t\tjanelaConta.setLocationRelativeTo(null);\n\t\t\t\t\t\t// ######################FIM METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttr.start();\n\t\t\t\t\t\t// .....\n\t\t\t\t\t\tEsperaJanela espera = new EsperaJanela();\n\t\t\t\t\t\tespera.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\tespera.setUndecorated(true);\n\t\t\t\t\t\tespera.setVisible(true);\n\t\t\t\t\t\tespera.setLocationRelativeTo(null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttr.join();\n\t\t\t\t\t\t\tespera.dispose();\n\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\t// Logger.getLogger(MenuView.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\n\t\t\t\t// ###############################################\n\n\t\t\t}\n\t\t});\n\t\tbtnConta.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/conta_64.png\")));\n\t\tbtnConta.setToolTipText(\"Conta\");\n\t\tGroupLayout gl_panel_1 = new GroupLayout(panel_1);\n\t\tgl_panel_1.setHorizontalGroup(gl_panel_1.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t.addGroup(gl_panel_1.createSequentialGroup()\n\t\t\t\t\t\t.addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addComponent(btnNovo, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(btnDestinatario, GroupLayout.PREFERRED_SIZE, 64,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(btnProprietario, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(btnBanco, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(btnAgencia, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(btnConta, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tgl_panel_1\n\t\t\t\t.setVerticalGroup(\n\t\t\t\t\t\tgl_panel_1.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tgl_panel_1.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(btnNovo, GroupLayout.PREFERRED_SIZE, 64,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(btnDestinatario, GroupLayout.PREFERRED_SIZE, 64,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t.addComponent(btnProprietario, GroupLayout.PREFERRED_SIZE, 64,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE).addGap(6)\n\t\t\t\t.addComponent(btnBanco, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE).addGap(6)\n\t\t\t\t.addComponent(btnAgencia, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE).addGap(6)\n\t\t\t\t.addComponent(btnConta, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t.addContainerGap(84, Short.MAX_VALUE)));\n\t\tpanel_1.setLayout(gl_panel_1);\n\n\t\tJPanel panel = new JPanel();\n\t\ttabbedPane.addTab(\"Todos\", null, panel, null);\n\n\t\tJPanel panel_2 = new JPanel();\n\n\t\tbtnMovimentar = new JButton(\"Movimentar\");\n\t\tbtnMovimentar.setEnabled(false);\n\t\tbtnMovimentar.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tMovimentarCheque movimentarCheque = new MovimentarCheque();\n\t\t\t\tmovimentarCheque.setModal(true);\n\t\t\t\tmovimentarCheque.setLocationRelativeTo(null);\n\t\t\t\tmovimentarCheque.setVisible(true);\n\t\t\t\tdestinatario = movimentarCheque.getDestinatario();\n\n\t\t\t\tArrayList<Cheque> listaCheque = new ArrayList();\n\t\t\t\t/*\n\t\t\t\t * int idx[] = table.getSelectedRows();\n\t\t\t\t * \n\t\t\t\t * for (int h = 0; h < idx.length; h++) { int linhaReal =\n\t\t\t\t * table.convertRowIndexToModel(idx[h]);\n\t\t\t\t * listaCheque.add(tableModelJanelaPrincipal.getCheque(linhaReal\n\t\t\t\t * )); }\n\t\t\t\t */\n\n\t\t\t\tfor (int i = 0; i < table.getRowCount(); i++) {\n\t\t\t\t\tboolean isChecked = false;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (chckbxMostrarLucro.isSelected()) {\n\t\t\t\t\t\t\tisChecked = (boolean) table.getValueAt(i, 10);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tisChecked = (boolean) table.getValueAt(i, 10);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\t\tisChecked = false;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (isChecked) {\n\t\t\t\t\t\tint linhaReal = table.convertRowIndexToModel(i);\n\t\t\t\t\t\t\n\t\t\t\t\t\tCheque c;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (chckbxMostrarLucro.isSelected()) {\n\t\t\t\t\t\t\tc = tableModelJanelaPrincipalJuros.getCheque(linhaReal);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tc = tableModelJanelaPrincipal.getCheque(linhaReal);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Cheque c = tableModelJanelaPrincipal.getCheque(linhaReal);\n\t\t\t\t\t\tc.setSelecionado(false);\n\t\t\t\t\t\tlistaCheque.add(c);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// ############################ Voltou duas vezes\n\t\t\t\t// ################################\n\n\t\t\t\tfor (int i = 0; i < listaCheque.size(); i++) {\n\n\t\t\t\t\tboolean voltou1vez = false;\n\t\t\t\t\tboolean voltou2vezes = false;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tvoltou1vez = listaCheque.get(i).getVoltouUmaVez();\n\t\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\t\tvoltou1vez = false;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tvoltou2vezes = listaCheque.get(i).getVoltouDuasVezes();\n\t\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\t\tvoltou2vezes = false;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (voltou1vez) {\n\t\t\t\t\t\t//listaCheque.get(i).setVoltouDuasVezes(true);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (voltou2vezes) {\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t// ############################ Voltou duas vezes\n\t\t\t\t// ################################\n\n\t\t\t\tif (verificaLocalCheque(listaCheque) == false) {\n\n\t\t\t\t\tObject[] options = { \"Sim\", \"Não\" };\n\t\t\t\t\tint i = JOptionPane.showOptionDialog(null,\n\t\t\t\t\t\t\t\"ATENÇÃO!!! Esta operação irá movimentar o valor de \" + tfTotal.getText()\n\t\t\t\t\t\t\t\t\t+ \" reais em cheques para o destinatário \" + destinatario.getNome()\n\t\t\t\t\t\t\t\t\t+ \". Gostaria de continuar?\",\n\t\t\t\t\t\t\t\"Movimentar\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options,\n\t\t\t\t\t\t\toptions[0]);\n\n\t\t\t\t\tif (i == JOptionPane.YES_OPTION) {\n\n\t\t\t\t\t\t// observacaoMovimentacao =\n\t\t\t\t\t\t// JOptionPane.showInputDialog(\"Observação do\n\t\t\t\t\t\t// cheque\").toUpperCase();\n\n\t\t\t\t\t\tObservacaoCheque obc = new ObservacaoCheque();\n\t\t\t\t\t\tobc.setModal(true);\n\t\t\t\t\t\tobc.setLocationRelativeTo(null);\n\t\t\t\t\t\tobc.setVisible(true);\n\n\t\t\t\t\t\tobservacaoMovimentacao = obc.getObservacao();\n\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * ArrayList<Cheque> listaCheque = new ArrayList(); int\n\t\t\t\t\t\t * idx[] = table.getSelectedRows(); for (int h = 0; h <\n\t\t\t\t\t\t * idx.length; h++) {\n\t\t\t\t\t\t * listaCheque.add(tableModelJanelaPrincipal.getCheque(\n\t\t\t\t\t\t * idx[h])); }\n\t\t\t\t\t\t */\n\t\t\t\t\t\tfor (int j = 0; j < listaCheque.size(); j++) {\n\t\t\t\t\t\t\t// botaoMovimentarCheque(tableModelJanelaPrincipal.getCheque(table.getSelectedRow()));\n\t\t\t\t\t\t\t// ##########################################################\n\n\t\t\t\t\t\t\tif (destinatario.getLocal()) {\n\n\t\t\t\t\t\t\t\tQuery consulta = manager.createQuery(\"FROM Historico WHERE cheque_id LIKE '\"\n\t\t\t\t\t\t\t\t\t\t+ listaCheque.get(j).getId()\n\t\t\t\t\t\t\t\t\t\t+ \"' AND destinatario_id IN (SELECT id FROM Destinatario WHERE local = '1')\");\n\t\t\t\t\t\t\t\tList<Historico> listaHistorico = consulta.getResultList();\n\n\t\t\t\t\t\t\t\t// \"FROM Cheque WHERE proprietario_id IN (SELECT\n\t\t\t\t\t\t\t\t// id FROM Proprietario WHERE nome LIKE '%\" nome\n\t\t\t\t\t\t\t\t// + \"%') AND vencimento BETWEEN '\" +\n\t\t\t\t\t\t\t\t// dataInicial + \"' AND '\" + dataFinal + \"'\"\n\t\t\t\t\t\t\t\t// trx.commit();\n\t\t\t\t\t\t\t\t// BETWEEN $P{DATA_INICIAL_SQL} AND\n\t\t\t\t\t\t\t\t// $P{DATA_FINAL_SQL}\n\n\t\t\t\t\t\t\t\tHistorico h = listaHistorico.get(0);\n\n\t\t\t\t\t\t\t\tDestinatario dest = h.getDestinatario();\n\n\t\t\t\t\t\t\t\tif (dest.equals(destinatario) || dest.equals(destinatario.getDestinatario())) {\n\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tif (listaCheque.get(j).getVoltouUmaVez()) {\n\t\t\t\t\t\t\t\t\t\t\tlistaCheque.get(j).setVoltouDuasVezes(true);\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tlistaCheque.get(j).setVoltouUmaVez(true);\n\t\t\t\t\t\t\t\t\t\t\tlistaCheque.get(j).setVoltouDuasVezes(false);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\t\t\t\t\t\tlistaCheque.get(j).setVoltouUmaVez(true);\n\t\t\t\t\t\t\t\t\t\tlistaCheque.get(j).setVoltouDuasVezes(false);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t\tbotaoMovimentarCheque(listaCheque.get(j));\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\t\t\t\"Não é possivel devolver o cheque no valor de R$ \"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ listaCheque.get(j).getValor() + \" para a \"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"origem selecionada. Este cheque só pode ser devolvido para sua origem geradora!\");\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tif (listaCheque.get(j).getVoltouUmaVez()) {\n\t\t\t\t\t\t\t\t\t\tlistaCheque.get(j).setVoltouDuasVezes(true);\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t\t\tQuery consulta = manager.createQuery(\"FROM Historico WHERE cheque_id LIKE '\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ listaCheque.get(j).getId()\n\t\t\t\t\t\t\t\t\t\t\t\t+ \"' AND destinatario_id IN (SELECT id FROM Destinatario WHERE local = '1')\");\n\t\t\t\t\t\t\t\t\t\tList<Historico> listaHistorico = consulta.getResultList();\n\n\t\t\t\t\t\t\t\t\t\t// \"FROM Cheque WHERE proprietario_id IN (SELECT\n\t\t\t\t\t\t\t\t\t\t// id FROM Proprietario WHERE nome LIKE '%\" nome\n\t\t\t\t\t\t\t\t\t\t// + \"%') AND vencimento BETWEEN '\" +\n\t\t\t\t\t\t\t\t\t\t// dataInicial + \"' AND '\" + dataFinal + \"'\"\n\t\t\t\t\t\t\t\t\t\t// trx.commit();\n\t\t\t\t\t\t\t\t\t\t// BETWEEN $P{DATA_INICIAL_SQL} AND\n\t\t\t\t\t\t\t\t\t\t// $P{DATA_FINAL_SQL}\n\n\t\t\t\t\t\t\t\t\t\tHistorico h = listaHistorico.get(0);\n\n\t\t\t\t\t\t\t\t\t\tDestinatario dest = h.getDestinatario();\t\t\t\t\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\t\t\tif (dest.equals(destinatario) || dest.equals(destinatario.getDestinatario())) {\n\t\t\t\t\t\t\t\t\t\t\tbotaoMovimentarCheque(listaCheque.get(j));\n\t\t\t\t\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\t\t}else{\n\t\t\t\t\t\t\t\t\t\tlistaCheque.get(j).setVoltouDuasVezes(false);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tbotaoMovimentarCheque(listaCheque.get(j));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tlistaCheque.get(j).setVoltouUmaVez(false);\n\t\t\t\t\t\t\t\t\tlistaCheque.get(j).setVoltouDuasVezes(false);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tbotaoMovimentarCheque(listaCheque.get(j));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t\t\tbotaoMovimentarCheque(listaCheque.get(j));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// ##########################################################\n\n\t\t\t\t\t\t\t// botaoMovimentarCheque(listaCheque.get(j));\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// ########################################################################################################\n\n\t\t\t\t\t\tChamaRelatorioMovimentacao chamaRelatorioMovimentacao = new ChamaRelatorioMovimentacao();\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * ArrayList<Cheque> listaChequeMovimentacao = new\n\t\t\t\t\t\t * ArrayList();\n\t\t\t\t\t\t * \n\t\t\t\t\t\t * int idxy[] = table.getSelectedRows(); for (int h = 0;\n\t\t\t\t\t\t * h < idxy.length; h++) {\n\t\t\t\t\t\t * listaChequeMovimentacao.add(tableModelJanelaPrincipal\n\t\t\t\t\t\t * .getCheque(idx[h])); }\n\t\t\t\t\t\t * \n\t\t\t\t\t\t * //\n\t\t\t\t\t\t * listaCheque.add(tableModelJanelaPrincipal.getCheque(\n\t\t\t\t\t\t * table.getSelectedRow()));\n\t\t\t\t\t\t */\n\t\t\t\t\t\ttry {\n/*\n\t\t\t\t\t\t\tchamaRelatorioMovimentacao.report(\"ChequesMovimentacao.jasper\", listaCheque,\n\t\t\t\t\t\t\t\t\tobservacaoMovimentacao, destinatario.getNome(), tfTotal.getText());\n*/\n\t\t\t\t\t\t\tchamaRelatorioMovimentacao.report(\"ChequesMovimentacao.jasper\", listaCheque,\n\t\t\t\t\t\t\t\t\tobservacaoMovimentacao, destinatario.getNome(), CalcularTotalChequesSelecionados(listaCheque).toString());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\t\"ERRO! Não foi possível gerar o relatório solicitado: \" + e2);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// #######################################################################################################\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tbuscar(tfLocalizar.getText(), format.format(dcInicial.getDate()),\n\t\t\t\t\t\t\t\t\tformat.format(dcFinal.getDate()));\n\t\t\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\t\t\tbuscar(tfLocalizar.getText(), null, null);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// #######################################################################################################\n\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\"Foi movimentado um total de \" + tfTotalCheques.getText() + \" cheques no valor de \"\n\t\t\t\t\t\t\t\t\t\t+ tfTotal.getText() + \" para o destinatario \" + destinatario.getNome() + \"!!!\");\n\n\t\t\t\t\t\ttable.repaint();\n\t\t\t\t\t\ttfTotal.setText(CalcularTotalChequesSelecionados(listaCheque).toString());\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Os cheques não foram movimentados!!!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbtnMovimentar.setEnabled(false);\n\t\t\t\t\n\t\t\t\ttfTotal.setText(\"0\");\n\t\t\t\ttfTotalCheques.setText(\"0\");\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnMovimentar.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/move_24.png\")));\n\n\t\tJButton btnHistorico = new JButton(\"Histórico\");\n\t\tbtnHistorico.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\ttpObservacao.setText(\"\");\n\t\t\t\tbotaoHistorico();\n\n\t\t\t}\n\t\t});\n\t\tbtnHistorico.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/historico_24.png\")));\n\n\t\tJLabel lblTotalDeCheques = new JLabel(\"Total de \");\n\t\tlblTotalDeCheques.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\n\t\ttfTotal = new DecimalFormattedField(DecimalFormattedField.REAL);\n\t\ttfTotal.setEnabled(false);\n\t\ttfTotal.setEditable(false);\n\t\ttfTotal.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\ttfTotal.setColumns(10);\n\t\ttfTotal.setDisabledTextColor(Color.BLACK);\n\n\t\tJButton btnImprimir_1 = new JButton(\"imprimir\");\n\t\tbtnImprimir_1.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/impressora_24.png\")));\n\t\tbtnImprimir_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tChamaRelatorioChequesSelecionados chamaRelatorioChequesSelecionados = new ChamaRelatorioChequesSelecionados();\n\n\t\t\t\tArrayList<Cheque> listaCheque = new ArrayList();\n\t\t\t\t/*\n\t\t\t\t * int idx[] = table.getSelectedRows(); for (int h = 0; h <\n\t\t\t\t * idx.length; h++) {\n\t\t\t\t * listaCheque.add(tableModelJanelaPrincipal.getCheque(idx[h]));\n\t\t\t\t * }\n\t\t\t\t */\n\t\t\t\tfor (int i = 0; i < table.getRowCount(); i++) {\n\n\t\t\t\t\tboolean isChecked = false;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (chckbxMostrarLucro.isSelected()) {\n\t\t\t\t\t\t\tisChecked = (boolean) table.getValueAt(i, 10);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tisChecked = (boolean) table.getValueAt(i, 10);\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\t\tisChecked = false;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (isChecked) {\n\t\t\t\t\t\tint linhaReal = table.convertRowIndexToModel(i);\n\t\t\t\t\t\t\n\t\t\t\t\t\tCheque c;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (chckbxMostrarLucro.isSelected()) {\n\t\t\t\t\t\t\tc = tableModelJanelaPrincipalJuros.getCheque(linhaReal);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tc = tableModelJanelaPrincipal.getCheque(linhaReal);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Cheque c = tableModelJanelaPrincipal.getCheque(linhaReal);\n\t\t\t\t\t\t// c.setSelecionado(false);\n\t\t\t\t\t\tlistaCheque.add(c);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// listaCheque.add(tableModelJanelaPrincipal.getCheque(table.getSelectedRow()));\n\n\t\t\t\ttry {\n\n\t\t\t\t\tchamaRelatorioChequesSelecionados.report(\"ChequesSelecionados.jasper\", listaCheque,\n\t\t\t\t\t\t\ttfTotal.getText());\n\n\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"ERRO! Não foi possível gerar o relatório solicitado: \" + e2);\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t\ttfTotalCheques = new JTextField();\n\t\ttfTotalCheques.setEnabled(false);\n\t\ttfTotalCheques.setEditable(false);\n\t\ttfTotalCheques.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttfTotalCheques.setColumns(10);\n\t\ttfTotalCheques.setDisabledTextColor(Color.BLACK);\n\n\t\tJLabel lblCheques = new JLabel(\"cheque(s):\");\n\t\tlblCheques.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\t\n\t\tlblMdiaDeJuros_1 = new JLabel(\"Média de juros\");\t\t\n\t\tlblMdiaDeJuros_1.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\t\t\t\n\t\ttfMediaJuros = new DecimalFormattedField(DecimalFormattedField.PORCENTAGEM);\n\t\ttfMediaJuros.setFont(new Font(\"Dialog\", Font.PLAIN, 14));\n\t\ttfMediaJuros.setEnabled(false);\n\t\ttfMediaJuros.setEditable(false);\n\t\ttfMediaJuros.setColumns(10);\n\t\ttfMediaJuros.setDisabledTextColor(Color.BLACK);\n\t\t\n\t\tlblELucroTotal = new JLabel(\"e lucro total\");\n\t\tlblELucroTotal.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\t\n\t\ttfMediaLucroTotal = new DecimalFormattedField(DecimalFormattedField.REAL);\n\t\ttfMediaLucroTotal.setFont(new Font(\"Dialog\", Font.PLAIN, 14));\n\t\ttfMediaLucroTotal.setEnabled(false);\n\t\ttfMediaLucroTotal.setEditable(false);\n\t\ttfMediaLucroTotal.setColumns(10);\n\t\ttfMediaLucroTotal.setDisabledTextColor(Color.BLACK);\n\t\t\n\t\tGroupLayout gl_panel = new GroupLayout(panel);\n\t\tgl_panel.setHorizontalGroup(\n\t\t\tgl_panel.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addGroup(gl_panel.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(gl_panel.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(lblTotalDeCheques)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(tfTotalCheques, GroupLayout.PREFERRED_SIZE, 63, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(lblCheques, GroupLayout.PREFERRED_SIZE, 94, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(tfTotal, GroupLayout.PREFERRED_SIZE, 128, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(gl_panel.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(lblMdiaDeJuros_1)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(tfMediaJuros, GroupLayout.PREFERRED_SIZE, 68, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(lblELucroTotal)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(tfMediaLucroTotal, GroupLayout.PREFERRED_SIZE, 93, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 30, Short.MAX_VALUE)\n\t\t\t\t\t.addComponent(btnImprimir_1)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addComponent(btnHistorico)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addComponent(btnMovimentar)\n\t\t\t\t\t.addContainerGap())\n\t\t\t\t.addComponent(panel_2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t);\n\t\tgl_panel.setVerticalGroup(\n\t\t\tgl_panel.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t.addGroup(gl_panel.createSequentialGroup()\n\t\t\t\t\t.addComponent(panel_2, GroupLayout.DEFAULT_SIZE, 427, Short.MAX_VALUE)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\n\t\t\t\t\t.addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addGroup(gl_panel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(btnHistorico, GroupLayout.PREFERRED_SIZE, 48, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addComponent(btnMovimentar, GroupLayout.PREFERRED_SIZE, 48, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addComponent(btnImprimir_1, GroupLayout.PREFERRED_SIZE, 48, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(Alignment.LEADING, gl_panel.createSequentialGroup()\n\t\t\t\t\t\t\t.addGroup(gl_panel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblTotalDeCheques)\n\t\t\t\t\t\t\t\t.addComponent(tfTotalCheques, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(lblCheques, GroupLayout.PREFERRED_SIZE, 17, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(tfTotal, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t.addGroup(gl_panel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblMdiaDeJuros_1)\n\t\t\t\t\t\t\t\t.addComponent(tfMediaJuros, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(lblELucroTotal)\n\t\t\t\t\t\t\t\t.addComponent(tfMediaLucroTotal, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\n\t\tJScrollPane scrollPane = new JScrollPane();\n\n\t\ttable = new JTable();\n\n\t\ttable.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t\t\t// ################################\n\t\t\t\t/*\n\t\t\t\t * ArrayList<Cheque> listaCheque = new ArrayList();\n\t\t\t\t * \n\t\t\t\t * //int linha = tableHistorico.getSelectedRow(); //int\n\t\t\t\t * linhaReal = tableHistorico.convertRowIndexToModel(linha);\n\t\t\t\t * \n\t\t\t\t * int idx[] = table.getSelectedRows();\n\t\t\t\t * \n\t\t\t\t * for (int h = 0; h < idx.length; h++) { int linhaReal =\n\t\t\t\t * table.convertRowIndexToModel(idx[h]);\n\t\t\t\t * listaCheque.add(tableModelJanelaPrincipal.getCheque(linhaReal\n\t\t\t\t * )); }\n\t\t\t\t */\n\t\t\t\t// ################################\n\n\t\t\t\t/*\n\t\t\t\t * int idx[] = table.getSelectedRows();\n\t\t\t\t * \n\t\t\t\t * for (int i = 0; i < idx.length; i++) { int linhaReal =\n\t\t\t\t * table.convertRowIndexToModel(idx[i]);\n\t\t\t\t * listaCheque.add(tableModelJanelaPrincipal.getCheque(linhaReal\n\t\t\t\t * )); }\n\t\t\t\t */\n\t\t\t\ttabbedPane.setEnabledAt(1, false);\t\t\n\t\t\t\t//tabbedPane.setSelectedIndex(1);\n\t\t\t\t\n\t\t\t\tArrayList<Cheque> listaCheque = new ArrayList();\n\n\t\t\t\tfor (int i = 0; i < table.getRowCount(); i++) {\n\t\t\t\t\tboolean isChecked = false;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (chckbxMostrarLucro.isSelected()) {\n\t\t\t\t\t\t\tisChecked = (boolean) table.getValueAt(i, 10);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tisChecked = (boolean) table.getValueAt(i, 10);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\t\tisChecked = false;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (isChecked) {\n\t\t\t\t\t\tint linhaReal = table.convertRowIndexToModel(i);\n\t\t\t\t\t\t\n\t\t\t\t\t\tCheque c;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (chckbxMostrarLucro.isSelected()) {\n\t\t\t\t\t\t\tc = tableModelJanelaPrincipalJuros.getCheque(linhaReal);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tc = tableModelJanelaPrincipal.getCheque(linhaReal);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Cheque c = tableModelJanelaPrincipal.getCheque(linhaReal);\n\t\t\t\t\t\tlistaCheque.add(c);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// } catch (Exception e2) {\n\t\t\t\t// // TODO: handle exception\n\t\t\t\t// }\n\n\t\t\t\ttfTotal.setText(CalcularTotalChequesSelecionados(listaCheque).toString());\n\n\t\t\t\ttable.repaint();\n\n\t\t\t\tif (listaCheque.size() > 0) {\n\t\t\t\t\tbtnMovimentar.setEnabled(true);\n\n\t\t\t\t} else {\n\t\t\t\t\tbtnMovimentar.setEnabled(false);\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tscrollPane.setViewportView(table);\n\n\t\tJPanel panel_4 = new JPanel();\n\t\tpanel_4.setBorder(new TitledBorder(null, \"Localizar\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\n\t\tchckbxSelecionarTudo = new JCheckBox(\"Selecionar tudo\");\n\t\tchckbxSelecionarTudo.addItemListener(new ItemListener() {\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tselecao();\n\t\t\t}\n\t\t});\n\t\t\n\t\tchckbxMostrarLucro = new JCheckBox(\"Mostrar lucro\");\n\t\tchckbxMostrarLucro.addItemListener(new ItemListener() {\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\t\n\t\t\t\ttfTotal.setText(\"0\");\n\t\t\t\ttfTotalCheques.setText(\"0\");\n\t\t\t\ttfMediaLucroTotal.setText(\"0\");\n\t\t\t\ttfMediaJuros.setText(\"0\");\n\t\t\t\t\n\t\t\t\tif (chckbxMostrarLucro.isSelected()) {\t\t\t\t\n\t\t\t\t\tcarregarTableModelLucro();\n\t\t\t\t\tativaDadosLucro(true);\n\t\t\t\t}else{\n\t\t\t\t\tcarregarTableModel();\n\t\t\t\t\tativaDadosLucro(false);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tGroupLayout gl_panel_2 = new GroupLayout(panel_2);\n\t\tgl_panel_2.setHorizontalGroup(\n\t\t\tgl_panel_2.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_2.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addGroup(gl_panel_2.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addComponent(scrollPane, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 839, Short.MAX_VALUE)\n\t\t\t\t\t\t.addGroup(Alignment.TRAILING, gl_panel_2.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(chckbxMostrarLucro)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 573, Short.MAX_VALUE)\n\t\t\t\t\t\t\t.addComponent(chckbxSelecionarTudo))\n\t\t\t\t\t\t.addComponent(panel_4, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 839, Short.MAX_VALUE))\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\t\tgl_panel_2.setVerticalGroup(\n\t\t\tgl_panel_2.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_2.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addComponent(panel_4, GroupLayout.PREFERRED_SIZE, 136, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addGroup(gl_panel_2.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(chckbxSelecionarTudo)\n\t\t\t\t\t\t.addComponent(chckbxMostrarLucro))\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 260, Short.MAX_VALUE)\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\n\t\ttfLocalizar = new JTextField();\n\t\ttfLocalizar.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttfLocalizar.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t\tif (e.getKeyCode() == KeyEvent.VK_ENTER) {\n\n\t\t\t\t\tbotaoBuscar();\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttfLocalizar.setColumns(10);\n\n\t\tbtnBuscar = new JButton(\"Buscar\");\n\t\tbtnBuscar.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tbotaoBuscar();\n\n\t\t\t\tchckbxSelecionarTudo.setSelected(false);\n\n\t\t\t}\n\t\t});\n\t\tbtnBuscar.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/lupa_24.png\")));\n\n\t\tchbSomenteChequeEm = new JCheckBox(\"Somente cheque em mãos\");\n\t\tchbSomenteChequeEm.setSelected(true);\n\n\t\tdcFinal = new JDateChooser();\n\n\t\tJLabel lblDataInicial = new JLabel(\"Data final:\");\n\n\t\tdcInicial = new JDateChooser();\n\n\t\tJLabel lblDataInicial_1 = new JLabel(\"Data inicial:\");\n\n\t\tchbFiltrarPorDataVencimento = new JCheckBox(\"Data Venc.\");\n\t\tchbFiltrarPorDataVencimento.addItemListener(new ItemListener() {\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tchbDataEntr.setSelected(false);\n\t\t\t}\n\t\t});\n\n\t\trdbtnCheque = new JRadioButton(\"Cheque\");\n\t\trdbtnCheque.setSelected(true);\n\t\tbuttonGroup.add(rdbtnCheque);\n\n\t\trdbtnProprietario = new JRadioButton(\"Proprietário\");\n\t\tbuttonGroup.add(rdbtnProprietario);\n\n\t\trdbtnDestinatrio = new JRadioButton(\"Destinatário\");\n\t\tbuttonGroup.add(rdbtnDestinatrio);\n\n\t\tchbDataEntr = new JCheckBox(\"Data Entr.\");\n\t\tchbDataEntr.addItemListener(new ItemListener() {\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tchbFiltrarPorDataVencimento.setSelected(false);\n\t\t\t}\n\t\t});\n\t\tGroupLayout gl_panel_4 = new GroupLayout(panel_4);\n\t\tgl_panel_4\n\t\t\t\t.setHorizontalGroup(\n\t\t\t\t\t\tgl_panel_4\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t.addGroup(gl_panel_4.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(gl_panel_4.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(gl_panel_4.createSequentialGroup().addComponent(rdbtnCheque)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(18).addComponent(rdbtnProprietario).addGap(18)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(rdbtnDestinatrio)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 230,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblDataInicial)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(dcFinal, GroupLayout.PREFERRED_SIZE, 133,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(gl_panel_4.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(chbSomenteChequeEm)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 96,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(chbDataEntr)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(chbFiltrarPorDataVencimento).addGap(18)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblDataInicial_1)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(dcInicial, GroupLayout.PREFERRED_SIZE, 133,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(gl_panel_4.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(tfLocalizar, GroupLayout.DEFAULT_SIZE, 667, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED).addComponent(btnBuscar)))\n\t\t\t\t.addContainerGap()));\n\t\tgl_panel_4.setVerticalGroup(gl_panel_4.createParallelGroup(Alignment.TRAILING).addGroup(gl_panel_4\n\t\t\t\t.createSequentialGroup().addGap(12)\n\t\t\t\t.addGroup(gl_panel_4.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addGroup(gl_panel_4.createSequentialGroup().addComponent(chbSomenteChequeEm).addGap(27))\n\t\t\t\t\t\t.addGroup(gl_panel_4.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGroup(gl_panel_4.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addGroup(gl_panel_4.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblDataInicial_1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(chbFiltrarPorDataVencimento).addComponent(chbDataEntr))\n\t\t\t\t\t\t\t\t.addComponent(dcInicial, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\n\t\t\t\t\t\t\t\t.addGroup(gl_panel_4.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addGroup(gl_panel_4.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblDataInicial).addComponent(rdbtnCheque)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(rdbtnProprietario).addComponent(rdbtnDestinatrio))\n\t\t\t\t\t\t\t\t\t\t.addComponent(dcFinal, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\n\t\t\t\t.addGroup(gl_panel_4.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(tfLocalizar, GroupLayout.PREFERRED_SIZE, 30, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(btnBuscar))\n\t\t\t\t.addGap(35)));\n\t\tpanel_4.setLayout(gl_panel_4);\n\t\tpanel_2.setLayout(gl_panel_2);\n\t\tpanel.setLayout(gl_panel);\n\n\t\tJPanel panel_3 = new JPanel();\n\t\ttabbedPane.addTab(\"Histórico\", null, panel_3, null);\n\n\t\tJPanel panel_5 = new JPanel();\n\n\t\tJLabel lblNCheque = new JLabel(\"Nº Cheque:\");\n\n\t\tJLabel lblDataEntrada = new JLabel(\"Data Entrada:\");\n\n\t\tJLabel lblBomPara = new JLabel(\"Bom para:\");\n\n\t\tJLabel lblProprietrio = new JLabel(\"Proprietário:\");\n\n\t\tJLabel lblValor = new JLabel(\"Valor:\");\n\n\t\ttfHistoricoNumeroCheque = new JTextField();\n\t\ttfHistoricoNumeroCheque.setEditable(false);\n\t\ttfHistoricoNumeroCheque.setColumns(10);\n\n\t\ttfHistoricoDataEntrada = new JTextField();\n\t\ttfHistoricoDataEntrada.setEditable(false);\n\t\ttfHistoricoDataEntrada.setColumns(10);\n\n\t\ttfHistoricoNomeProprietario = new JTextField();\n\t\ttfHistoricoNomeProprietario.setEditable(false);\n\t\ttfHistoricoNomeProprietario.setColumns(10);\n\n\t\ttfHistoricoBomPara = new JTextField();\n\t\ttfHistoricoBomPara.setEditable(false);\n\t\ttfHistoricoBomPara.setColumns(10);\n\n\t\ttfHistoricoValor = new DecimalFormattedField(DecimalFormattedField.REAL);\n\t\ttfHistoricoValor.setEditable(false);\n\t\ttfHistoricoValor.setColumns(10);\n\t\tGroupLayout gl_panel_3 = new GroupLayout(panel_3);\n\t\tgl_panel_3\n\t\t\t\t.setHorizontalGroup(\n\t\t\t\t\t\tgl_panel_3.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addGroup(gl_panel_3.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(gl_panel_3.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(gl_panel_3.createSequentialGroup().addComponent(panel_5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, 823, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addContainerGap())\n\t\t\t\t\t\t.addGroup(Alignment.TRAILING, gl_panel_3.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGroup(gl_panel_3.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t.addGroup(gl_panel_3.createSequentialGroup().addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\tlblNCheque)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(tfHistoricoNumeroCheque, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE).addGap(7)\n\t\t\t\t\t\t\t\t\t\t.addComponent(lblProprietrio).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(tfHistoricoNomeProprietario, GroupLayout.DEFAULT_SIZE, 466,\n\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE))\n\t\t\t\t\t\t\t\t.addGroup(gl_panel_3.createSequentialGroup().addComponent(lblDataEntrada)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(tfHistoricoDataEntrada, GroupLayout.PREFERRED_SIZE, 164,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED).addComponent(lblBomPara)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(tfHistoricoBomPara, GroupLayout.PREFERRED_SIZE, 174,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 63, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(lblValor).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(tfHistoricoValor, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t.addGap(53)))));\n\t\tgl_panel_3.setVerticalGroup(gl_panel_3.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_3.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(gl_panel_3.createParallelGroup(Alignment.BASELINE).addComponent(lblNCheque)\n\t\t\t\t\t\t\t\t.addComponent(lblProprietrio)\n\t\t\t\t\t\t\t\t.addComponent(tfHistoricoNumeroCheque, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(tfHistoricoNomeProprietario, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t.addGap(18)\n\t\t\t\t.addGroup(gl_panel_3.createParallelGroup(Alignment.BASELINE).addComponent(lblDataEntrada)\n\t\t\t\t\t\t.addComponent(lblBomPara).addComponent(lblValor)\n\t\t\t\t\t\t.addComponent(tfHistoricoDataEntrada, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(tfHistoricoBomPara, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(tfHistoricoValor, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(18).addComponent(panel_5, GroupLayout.DEFAULT_SIZE, 401, Short.MAX_VALUE)\n\t\t\t\t\t\t.addContainerGap()));\n\n\t\tJScrollPane scrollPane_1 = new JScrollPane();\n\n\t\ttableHistorico = new JTable();\n\t\ttableHistorico.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t\t\ttpObservacao.setText(\"\");\n\n\t\t\t\tint linha = tableHistorico.getSelectedRow();\n\t\t\t\tint linhaReal = tableHistorico.convertRowIndexToModel(linha);\n\n\t\t\t\tHistorico h = tableModelHistorico.getHistorico(linhaReal);\n\t\t\t\ttpObservacao.setText(h.getObservacao());\n\n\t\t\t}\n\t\t});\n\t\tscrollPane_1.setViewportView(tableHistorico);\n\n\t\tJPanel panel_7 = new JPanel();\n\t\tpanel_7.setBorder(\n\t\t\t\tnew TitledBorder(null, \"Observa\\u00E7\\u00E3o\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\n\t\tJButton btnImprimir = new JButton(\"Impressão do histórico\");\n\t\tbtnImprimir.setIcon(\n\t\t\t\tnew ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/relatorios_24.png\")));\n\t\tbtnImprimir.addActionListener(new ActionListener() {\n\n\t\t\tprivate ChamaRelatorio chamaRelatorio;\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tchamaRelatorio = new ChamaRelatorio();\n\n\t\t\t\ttry {\n\n\t\t\t\t\t// int linha = table.getSelectedRow();\n\t\t\t\t\t// int linhaReal = table.convertRowIndexToModel(linha);\n\n\t\t\t\t\tchamaRelatorio.report(\"HistoricoCheque.jasper\", cheque, null, null);\n\n\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"ERRO! Não foi possível gerar o relatório solicitado: \" + e2);\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton btnDemaisCheques = new JButton(\"Demais cheques\");\n\t\tbtnDemaisCheques.setIcon(new ImageIcon(JanelaMenuPrincipal.class.getResource(\"/br/com/grupocaravela/icones/atend_producao_24.png\")));\n\t\tbtnDemaisCheques.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t// #############################################\n\t\t\t\tfinal Thread tr = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(0);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(JanelaCheque.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\tChamaRelatorioChequesSelecionados chamaRelatorioChequesSelecionados = new ChamaRelatorioChequesSelecionados();\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tDouble tth = 0.0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tArrayList<Cheque> listChequeHistorico = new ArrayList<>();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tlistChequeHistorico = demaisCheques(tableModelHistorico.getHistorico(tableHistorico.getSelectedRow()));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int i = 0; i < listChequeHistorico.size(); i++) {\n\t\t\t\t\t\t\t\tCheque chq = listChequeHistorico.get(i);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\ttth = tth + chq.getValor();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tchamaRelatorioChequesSelecionados.reportHistoricoMovimentacao(tth, \"ChequesHostoricoMovimentado.jasper\", listChequeHistorico,\n\t\t\t\t\t\t\t\t\ttpObservacao.getText(), formatData.format(tableModelHistorico.getHistorico(tableHistorico.getSelectedRow()).getData()), tableModelHistorico.getHistorico(tableHistorico.getSelectedRow()).getDestinatario().getNome());\n\n\t\t\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"ERRO! Não foi possível gerar o relatório solicitado: \" + e2);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ######################FIM METODO A SER\n\t\t\t\t\t\t// EXECUTADO##############################\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttr.start();\n\t\t\t\t\t\t// .....\n\t\t\t\t\t\tEsperaLista espera = new EsperaLista();\n\t\t\t\t\t\tespera.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\tespera.setUndecorated(true);\n\t\t\t\t\t\tespera.setVisible(true);\n\t\t\t\t\t\tespera.setLocationRelativeTo(null);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttr.join();\n\t\t\t\t\t\t\tespera.dispose();\n\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\t// Logger.getLogger(MenuView.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\n\t\t\t\t// ###############################################\n\t\t\t\t\n\t\t\t}\n\t\t});\n\n\t\tGroupLayout gl_panel_5 = new GroupLayout(panel_5);\n\t\tgl_panel_5.setHorizontalGroup(\n\t\t\tgl_panel_5.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t.addComponent(scrollPane_1, GroupLayout.DEFAULT_SIZE, 823, Short.MAX_VALUE)\n\t\t\t\t.addGroup(gl_panel_5.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addComponent(panel_7, GroupLayout.DEFAULT_SIZE, 557, Short.MAX_VALUE)\n\t\t\t\t\t.addGap(18)\n\t\t\t\t\t.addGroup(gl_panel_5.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t.addComponent(btnDemaisCheques, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t.addComponent(btnImprimir, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\t\tgl_panel_5.setVerticalGroup(\n\t\t\tgl_panel_5.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t.addGroup(gl_panel_5.createSequentialGroup()\n\t\t\t\t\t.addGap(5)\n\t\t\t\t\t.addComponent(scrollPane_1, GroupLayout.DEFAULT_SIZE, 304, Short.MAX_VALUE)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addGroup(gl_panel_5.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addComponent(panel_7, GroupLayout.PREFERRED_SIZE, 72, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(gl_panel_5.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(btnImprimir)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(btnDemaisCheques, GroupLayout.PREFERRED_SIZE, 34, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\n\t\ttpObservacao = new JTextPane();\n\t\ttpObservacao.setEditable(false);\n\t\tGroupLayout gl_panel_7 = new GroupLayout(panel_7);\n\t\tgl_panel_7.setHorizontalGroup(gl_panel_7.createParallelGroup(Alignment.LEADING).addComponent(tpObservacao,\n\t\t\t\tGroupLayout.DEFAULT_SIZE, 777, Short.MAX_VALUE));\n\t\tgl_panel_7.setVerticalGroup(gl_panel_7.createParallelGroup(Alignment.LEADING).addComponent(tpObservacao,\n\t\t\t\tGroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE));\n\t\tpanel_7.setLayout(gl_panel_7);\n\t\tpanel_5.setLayout(gl_panel_5);\n\t\tpanel_3.setLayout(gl_panel_3);\n\t\tcontentPane.setLayout(gl_contentPane);\n\t}", "private void btnActualizarMyrMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnActualizarMyrMouseClicked\r\n // btn actualizar del libro mayor\r\n }", "public MenuCriarArranhaCeus() {\n initComponents();\n }", "@Override\r\n public void actionPerformed(ActionEvent ae) {\r\n String option = ae.getActionCommand();\r\n PracticaProgramacion3Swing.log.append(ae.getActionCommand()+\"\\n\");\r\n switch(option){\r\n \r\n case \"Crear txt\":\r\n \r\n FuncionesMenus.newFile();\r\n FuncionesMenus.listFiles(); \r\n break;\r\n \r\n case \"Crear bin\":\r\n FuncionesMenus.newFileBin();\r\n FuncionesMenus.listFiles(); \r\n break;\r\n \r\n case \"Eliminar txt\":\r\n case \"Eliminar bin\": \r\n FuncionesMenus.delFile();\r\n FuncionesMenus.listFiles();\r\n break;\r\n \r\n case \"Renombrar txt\":\r\n case \"Renombrar bin\":\r\n FuncionesMenus.renameFile();\r\n FuncionesMenus.listFiles();\r\n break;\r\n \r\n case \"Escribir dni\":\r\n FuncionesMenus.writeLine();\r\n FuncionesMenus.listFiles();\r\n break;\r\n case \"Escribir DNI\":\r\n FuncionesMenus.writeLineBin();\r\n FuncionesMenus.listFiles();\r\n \r\n case \"Buscar dni\":\r\n FuncionesMenus.getID();\r\n FuncionesMenus.listFiles();\r\n break;\r\n \r\n case \"Buscar DNI\":\r\n FuncionesMenus.getIDBin();\r\n FuncionesMenus.listFiles();\r\n \r\n case \"Eliminar dni\":\r\n FuncionesMenus.delLine();\r\n FuncionesMenus.listFiles();\r\n break;\r\n case \"Eliminar DNI\":\r\n FuncionesMenus.delLineBin();\r\n FuncionesMenus.listFiles();\r\n break;\r\n case \"Extraer ficheros\": \r\n FuncionesMenus.getFiles();\r\n FuncionesMenus.listFiles();\r\n break;\r\n case \"Almacenar\":\r\n FuncionesMenus.getAll();\r\n FuncionesMenus.listFiles();\r\n break;\r\n \r\n default:\r\n break;\r\n } \r\n }", "@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tUI.getCurrent().getNavigator().navigateTo(\"CliPantallaBusquedaExpedientes\");\t \n\t\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.menu_EditarPerfil) {\n //process your onClick here\n ActivarCampor();\n return true;\n }\n if (id == R.id.menu_ActualizarPerfil) {\n //process your onClick here\n EnviarDatos();\n\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void componentesimplementacionIsmael() {\n\t\t// En el menu bar Ismael\n\t\tmenuIsmael = new JMenu(\"Ismael\");\n\t\tmenuBar.add(menuIsmael);\n\n\t\t// SUBMENU\n\t\tsubMenuRecientes = new JMenu(\"Recientes\");\n\t\titemSubMenuRecientes = new ArrayList<>();\n\t\trutasRecientes = new ArrayList<>();\n\t\ttry {\n\t\t\trutasRecientes = manejadorFichero.obtenerLineasDelFichero();\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\tif (!rutasRecientes.isEmpty()) {\n\t\t\tfor (int i = 0; i < rutasRecientes.size(); i++) {\n\t\t\t\tJMenuItem textoSubmenu = new JMenuItem(rutasRecientes.get(i));\n\t\t\t\titemSubMenuRecientes.add(textoSubmenu);\n\t\t\t\tsubMenuRecientes.add(textoSubmenu);\n\t\t\t}\n\t\t}\n\t\tmenuIsmael.add(subMenuRecientes);\n\n\t\tmenuIsmael.addSeparator();\n\n\t\t// Fuente\n\t\titemFuente = new JMenuItem(\"Fuente\");\n\t\titemFuente.setEnabled(false);\n\t\titemFuente.setMnemonic(KeyEvent.VK_F);\n\t\titemFuente.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F, ActionEvent.CTRL_MASK));\n\t\tmenuIsmael.add(itemFuente);\n\n\t\tmenuIsmael.addSeparator();\n\n\t\titemSeleccionarTodo = new JMenuItem(\"Selec.Todo\");\n\t\titemSeleccionarTodo.setEnabled(false);\n\t\titemSeleccionarTodo.setMnemonic(KeyEvent.VK_N);\n\t\titemSeleccionarTodo.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, ActionEvent.CTRL_MASK));\n\t\tmenuIsmael.add(itemSeleccionarTodo);\n\n\t\titemSeleccionarTodoYCopiar = new JMenuItem(\"Selec All+Copy\");\n\t\titemSeleccionarTodoYCopiar.setEnabled(false);\n\t\titemSeleccionarTodoYCopiar.setMnemonic(KeyEvent.VK_M);\n\t\titemSeleccionarTodoYCopiar.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_M, ActionEvent.CTRL_MASK));\n\t\tmenuIsmael.add(itemSeleccionarTodoYCopiar);\n\n\t\tmenuIsmael.addSeparator();\n\n\t\titemHora = new JMenuItem(\"Hora\");\n\t\titemHora.setEnabled(true);\n\t\titemHora.setMnemonic(KeyEvent.VK_H);\n\t\titemHora.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_H, ActionEvent.CTRL_MASK));\n\t\tmenuIsmael.add(itemHora);\n\n\t}", "private void construireMenuBar() {\r\n\t\tJMenuBar menuBar = new JMenuBar();\r\n\t\tthis.setJMenuBar(menuBar);\r\n\t\t\r\n\t\tJMenu menuFichier = new JMenu(\"Fichier\");\r\n\t\tmenuBar.add(menuFichier);\r\n\t\t\r\n\t\tJMenuItem itemCharger = new JMenuItem(\"Charger\", new ImageIcon(this.getClass().getResource(\"/images/charger.png\")));\r\n\t\tmenuFichier.add(itemCharger);\r\n\t\titemCharger.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O,KeyEvent.CTRL_DOWN_MASK));\r\n\t\titemCharger.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tJFileChooser fc = new JFileChooser();\r\n\t\t\t\tfc.setDialogTitle(\"Sélectionnez le circuit à charger\");\r\n\t\t\t\tint returnVal = fc.showOpenDialog(EditeurCircuit.this);\r\n\t\t\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\r\n\t\t\t\t\tFile file = fc.getSelectedFile();\r\n\t\t\t\t\tCircuit loadedTrack = (Circuit)Memento.objLoading(file);\r\n\t\t\t\t\tfor(IElement elem : loadedTrack) {\r\n\t\t\t\t\t\telem.setEditeurCircuit(EditeurCircuit.this);\r\n\t\t\t\t\t\tCircuit.getInstance().addElement(elem);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tCircuit.getInstance().estValide();\r\n\t\t\t\t\tEditeurCircuit.this.paint(EditeurCircuit.this.getGraphics());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJMenuItem itemSauvegarder = new JMenuItem(\"Sauvegarder\", new ImageIcon(this.getClass().getResource(\"/images/disquette.png\")));\r\n\t\tmenuFichier.add(itemSauvegarder);\r\n\t\titemSauvegarder.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S,KeyEvent.CTRL_DOWN_MASK));\r\n\t\titemSauvegarder.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif(Circuit.getInstance().estValide()) {\r\n\t\t\t\t\tJFileChooser fc = new JFileChooser();\r\n\t\t\t\t\tfc.setDialogTitle(\"Sélectionnez le fichier de destination\");\r\n\t\t\t\t\tint returnVal = fc.showSaveDialog(EditeurCircuit.this);\r\n\t\t\t\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\r\n\t\t\t\t\t\tFile file = fc.getSelectedFile();\r\n\t\t\t\t\t\tint returnConfirm = JFileChooser.APPROVE_OPTION;\r\n\t\t\t\t\t\tif(file.exists()) {\r\n\t\t\t\t\t\t\tString message = \"Le fichier \"+file.getName()+\" existe déjà : voulez-vous le remplacer ?\";\r\n\t\t\t\t\t\t\treturnConfirm = JOptionPane.showConfirmDialog(EditeurCircuit.this, message, \"Fichier existant\", JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(returnConfirm == JFileChooser.APPROVE_OPTION) {\r\n\t\t\t\t\t\t\tnew Memento(Circuit.getInstance(),file);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tString messageErreur;\r\n\t\t\t\t\tif(Circuit.getInstance().getElementDepart() == null) {\r\n\t\t\t\t\t\tmessageErreur = \"Le circuit doit comporter un élément de départ.\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tmessageErreur = \"Le circuit doit être fermé.\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\tJOptionPane.showMessageDialog(EditeurCircuit.this,messageErreur,\"Erreur de sauvegarde\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tmenuFichier.addSeparator();\r\n\t\t\r\n\t\tJMenuItem itemQuitter = new JMenuItem(\"Quitter\", new ImageIcon(this.getClass().getResource(\"/images/quitter.png\")));\r\n\t\tmenuFichier.add(itemQuitter);\r\n\t\titemQuitter.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q,KeyEvent.CTRL_DOWN_MASK));\r\n\t\titemQuitter.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tEditeurCircuit.this.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJMenu menuEdition = new JMenu(\"Edition\");\r\n\t\tmenuBar.add(menuEdition);\r\n\t\t\r\n\t\tJMenuItem itemChangerTailleGrille = new JMenuItem(\"Changer la taille de la grille\", new ImageIcon(this.getClass().getResource(\"/images/resize.png\")));\r\n\t\tmenuEdition.add(itemChangerTailleGrille);\r\n\t\titemChangerTailleGrille.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_N,KeyEvent.CTRL_DOWN_MASK));\r\n\t\titemChangerTailleGrille.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tEditeurCircuit.this.dispose();\r\n\t\t\t\tnew MenuEditeurCircuit();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJMenuItem itemNettoyerGrille = new JMenuItem(\"Nettoyer la grille\", new ImageIcon(this.getClass().getResource(\"/images/clear.png\")));\r\n\t\tmenuEdition.add(itemNettoyerGrille);\r\n\t\titemNettoyerGrille.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_C,KeyEvent.CTRL_DOWN_MASK));\r\n\t\titemNettoyerGrille.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tEditeurCircuit.this.construireGrilleParDefaut();\r\n\t\t\t\tEditeurCircuit.this.repaint();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private void configurarEventos() {\n\n btnVoltar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //OBJETIVO: fecha a tela atual\n VerPessoaActivity.this.finish();\n }\n });\n }", "default public void clickMenu() {\n\t\tremoteControlAction(RemoteControlKeyword.MENU);\n\t}", "void clickAmFromMenu();", "private void plantarseMouseClicked(MouseEvent evt) {\n\t\t\tpedirCarta.setEnabled(false);\n\t\t\tplantarse.setEnabled(false);\n\t\t\tjugarOtraVez.setVisible(true);\n\t\t\tint jugJugador = Jugador.getJugador().sumaMano();\n\t\t\tBanca.getBanca().considerarJugada(jugJugador);\n\t\t\tCarta quitarOculta = Banca.getBanca().getCartaDeLaMano(0);\n\t\t\tbCarta1.setIcon(new ImageIcon(getClass().getResource(quitarOculta.devolverNamePng())));\n\t\t\t\n\t\t\tint tamMano = Banca.getBanca().tamanoMano();\n\t\t\tif (tamMano > 2){\n\t\t\t\tint aux = 2;\n\t\t\t\twhile (aux < tamMano){\n\t\t\t\t\tCarta cart2 = Banca.getBanca().getCartaDeLaMano(aux);\n\t\t\t\t\tif(aux == 2){\n\t\t\t\t\t\tbCarta3.setIcon(new ImageIcon(getClass().getResource(cart2.devolverNamePng())));\n\t\t\t\t\t}\n\t\t\t\t\telse if(aux == 3){\n\t\t\t\t\t\tbCarta4.setIcon(new ImageIcon(getClass().getResource(cart2.devolverNamePng())));\n\t\t\t\t\t}\n\t\t\t\t\telse if(aux==4){\n\t\t\t\t\t\tbCarta5.setIcon(new ImageIcon(getClass().getResource(cart2.devolverNamePng())));\n\t\t\t\t\t}\n\t\t\t\t\telse if(aux==5){\n\t\t\t\t\t\tbCarta6.setIcon(new ImageIcon(getClass().getResource(cart2.devolverNamePng())));\n\t\t\t\t\t}\n\t\t\t\t\telse if(aux==6){\n\t\t\t\t\t\tbCarta7.setIcon(new ImageIcon(getClass().getResource(cart2.devolverNamePng())));\n\t\t\t\t\t}\n\t\t\t\t\taux++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//se hace la comprobacion de quien ha ganado. Si gana el jugador se cobra la apuesta\n\t\t\tdouble dineroInicial = Jugador.getJugador().getDinero();\n\t\t\tJugador.getJugador().getApBlackjack().cobrarApuesta(jugJugador);\n\t\t\tdouble ganancia = Jugador.getJugador().getDinero()-dineroInicial;\n\t\t\tif(ganancia > 0){\n\t\t\t\tJOptionPane.showMessageDialog(null,\"HAS GANADO \"+((Jugador.getJugador().getDinero() - dineroInicial) / 2)+\" Û\", \"RESULTADO\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\tJugador.getJugador().realizarApuestaBlackJack(0);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Has ganado \"+ (Jugador.getJugador().getDinero()-dineroInicial));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tJOptionPane.showMessageDialog(null,\"HAS PERDIDO\", \"RESULTADO\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\tif(Jugador.getJugador().getDinero() <= 0){\n\t\t\t\t\tjugarOtraVez.setEnabled(false);\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"YA NO TE QUEDA DINERO\", \"AVISO\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void clickMenuButton(){\n waitForClickable(menuHeaderIcon);\n driver.findElement(menuHeaderIcon).click();\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_settings) {\r\n /* Toast.makeText(this,\"open settings\",Toast.LENGTH_LONG).show(); */\r\n\r\n Intent i = new Intent(this,SelectCity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n startActivity(i);\r\n finish();\r\n\r\n return true;\r\n }\r\n\r\n if(id == R.id.buscar){\r\n if(!buscador) {\r\n searchView.setVisibility(View.VISIBLE);\r\n }else{\r\n searchView.setVisibility(View.GONE);\r\n }\r\n buscador = !buscador;\r\n }\r\n\r\n if(id == R.id.act_shared){\r\n\r\n Intent sendIntent = new Intent();\r\n sendIntent.setAction(Intent.ACTION_SEND);\r\n sendIntent.putExtra(Intent.EXTRA_TEXT, \"baixe agora mesmo o Informa Brejo https://play.google.com/store/apps/details?id=br.com.app.gpu1625063.gpu2aaa183c0d1d6f0f36d0de2b490d2bbe\");\r\n sendIntent.setType(\"text/plain\");\r\n startActivity(sendIntent);\r\n\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "private void colocar(){\n setLayout(s);\n eleccion = new BarraEleccion(imagenes,textos);\n eleccion.setLayout(new GridLayout(4,4));\n eleccion.setBorder(BorderFactory.createTitledBorder(\n BorderFactory.createBevelBorder(5), \"SELECCIONA EL MAGUEY\",\n TitledBorder.CENTER, TitledBorder.TOP,new Font(\"Helvetica\",Font.BOLD,15),Color.WHITE));\n eleccion.setFondoImagen(imgFond);\n etqAlcohol = new JLabel(\"SELECCIONA EL GRADO DE ALCOHOL\");\n etqAlcohol.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\n etqAlcohol.setForeground(Color.WHITE);\n alcohol = new JComboBox<>();\n etqTipo = new JLabel(\"SELECCIONA EL TIPO DE MEZCAL\");\n etqTipo.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\n etqTipo.setForeground(Color.WHITE);\n tipo = new JComboBox<>();\n btnRegistrar = new JButton();\n btnRegistrar.setFont(new Font(\"Sylfaen\", Font.BOLD, 17));\n btnRegistrar.setText(\"Registrar\");\n btnRegistrar.setHorizontalAlignment(SwingConstants.CENTER);\n btnRegistrar.setActionCommand(\"registrar\");\n add(eleccion);\n add(etqAlcohol);\n add(alcohol);\n add(etqTipo);\n add(tipo);\n add(btnRegistrar);\n iniciarVistas();\n }", "public void setMenu(){\n opciones='.';\n }", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n boolean bandera = Globales.baseDatos.conectarBD(Globales.baseDatos.generarURL());\n if(bandera != false){\n MenuPrincipal menu = new MenuPrincipal();\n menu.setVisible(true);\n this.dispose();\n }\n else{\n JOptionPane.showMessageDialog(this, \"Error al conectarse a la base de datos: \" + Globales.baseDatos.getUltimoError(), \"Error de conexión con la base de datos\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public void menu() {\n\t\tsuper.menu();\n\n\t\tfor(JCheckBox cb : arrayCompo){\n\t\t\tcb.setPreferredSize(new Dimension(largeur-30, hauteur));\n\t\t\tgbc.gridy++;\n\t\t\tpan.add(cb, gbc);\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n cesionButton = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n usuarioMenuItem = new javax.swing.JMenuItem();\n jMenu2 = new javax.swing.JMenu();\n bienesMenu = new javax.swing.JMenuItem();\n inventarioMenu = new javax.swing.JMenuItem();\n trasladosMenu = new javax.swing.JMenuItem();\n reportesMenu = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"LOBBY DE INVENTARIOS\");\n setResizable(false);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n cesionButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/salirPressed.png\"))); // NOI18N\n cesionButton.setBorder(null);\n cesionButton.setBorderPainted(false);\n cesionButton.setContentAreaFilled(false);\n cesionButton.setFocusPainted(false);\n cesionButton.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/salir.png\"))); // NOI18N\n cesionButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cesionButtonActionPerformed(evt);\n }\n });\n getContentPane().add(cesionButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(670, 400, 80, 70));\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 780, 480));\n\n jMenuBar1.setBackground(new java.awt.Color(1, 1, 1));\n jMenuBar1.setForeground(new java.awt.Color(254, 254, 254));\n\n jMenu1.setBackground(new java.awt.Color(124, 119, 100));\n jMenu1.setText(\"Administracion\");\n\n usuarioMenuItem.setBackground(new java.awt.Color(1, 1, 1));\n usuarioMenuItem.setForeground(new java.awt.Color(254, 254, 254));\n usuarioMenuItem.setText(\"Modulo Usuarios\");\n usuarioMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n usuarioMenuItemActionPerformed(evt);\n }\n });\n jMenu1.add(usuarioMenuItem);\n\n jMenuBar1.add(jMenu1);\n\n jMenu2.setBackground(new java.awt.Color(149, 144, 126));\n jMenu2.setText(\"Inventario\");\n\n bienesMenu.setBackground(new java.awt.Color(1, 1, 1));\n bienesMenu.setForeground(new java.awt.Color(254, 254, 254));\n bienesMenu.setText(\"Modulo Bienes\");\n bienesMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bienesMenuActionPerformed(evt);\n }\n });\n jMenu2.add(bienesMenu);\n\n inventarioMenu.setBackground(new java.awt.Color(1, 1, 1));\n inventarioMenu.setForeground(new java.awt.Color(254, 254, 254));\n inventarioMenu.setText(\"Inventario\");\n inventarioMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n inventarioMenuActionPerformed(evt);\n }\n });\n jMenu2.add(inventarioMenu);\n\n trasladosMenu.setBackground(new java.awt.Color(1, 1, 1));\n trasladosMenu.setForeground(new java.awt.Color(254, 254, 254));\n trasladosMenu.setText(\"Traslados Internos\");\n trasladosMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n trasladosMenuActionPerformed(evt);\n }\n });\n jMenu2.add(trasladosMenu);\n\n reportesMenu.setBackground(new java.awt.Color(1, 1, 1));\n reportesMenu.setForeground(new java.awt.Color(254, 254, 254));\n reportesMenu.setText(\"Reportes\");\n reportesMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n reportesMenuActionPerformed(evt);\n }\n });\n jMenu2.add(reportesMenu);\n\n jMenuBar1.add(jMenu2);\n\n setJMenuBar(jMenuBar1);\n\n pack();\n }", "private void dibujarBoton(int fila, int columna) {\n\n\t\tif (juego.puedeColocarFicha(fila, columna)) {\n\t\t\t\n\t\t\tButton botonColocarFicha = new Button();\n\t\t\tbotonColocarFicha.setMinSize(DIMENSION_BOTON, DIMENSION_BOTON);\n\t\t\tbotonColocarFicha.setMaxSize(DIMENSION_BOTON, DIMENSION_BOTON);\n\t\t\tbotonColocarFicha.setOnAction(new ColocarFicha(this, juego, fila, columna));\n\n\t\t\tdibujar(botonColocarFicha, fila, columna);\n\t\t}\n\t}", "void clickFmFromMenu();", "private void menuArmadura(){\n System.out.println(\"Escolha o local em que queira colocar a uma armadura:\");\n System.out.println(\"1 - Cabeça\");\n System.out.println(\"2 - Tronco\");\n System.out.println(\"3 - Pernas\");\n System.out.println(\"4 - Pés\");\n System.out.println(\"0 - Sair\");\n }", "private void configureComponents() {\n save.setStyleName(ValoTheme.BUTTON_PRIMARY);\n save.setClickShortcut(ShortcutAction.KeyCode.ENTER);\n setVisible(false);\n }", "private void createMenu(){\n\n JMenuBar mbar = new JMenuBar();\n setJMenuBar(mbar);\n JMenu Opcje = new JMenu(\"Opcje\");\n mbar.add(Opcje);\n JMenuItem Ustawienia = new JMenuItem(\"Ustawienia\");\n /** Obsluga zdarzen wcisniecia przycisku ustawien w menu */\n Ustawienia.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if(Justawienia==null)\n Justawienia =new JUstawienia();\n Justawienia.setVisible(true);\n if (controller.timer!=null)\n controller.timer.stop();\n }\n });\n Opcje.add(Ustawienia);\n Opcje.addSeparator();\n JMenuItem Info = new JMenuItem(\"Info\");\n /** Obsluga zdarzen wcisniecia przycisku info w menu */\n Info.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n controller.WyswietlInfo();\n }\n });\n Opcje.add(Info);\n }", "public void confirmacionVolverMenu(){\n AlertDialog.Builder builder = new AlertDialog.Builder(Postre.this);\n builder.setCancelable(false);\n builder.setMessage(\"¿Desea salir?\")\n .setPositiveButton(\"Aceptar\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\tIntent intent = new Intent(Postre.this, HomeAdmin.class);\n\t\t\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_FORWARD_RESULT);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\toverridePendingTransition(R.anim.left_in, R.anim.left_out);\t\n }\n })\n .setNegativeButton(\"Cancelar\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n \n builder.show();\n }", "protected void CriarEventos(){\n ListMenu.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String opcMenu = ((TextView) view).getText().toString();\n\n RedirecionaTela(opcMenu);\n }\n });\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Desktop = new javax.swing.JDesktopPane();\n jMenuBar1 = new javax.swing.JMenuBar();\n menuCadastro = new javax.swing.JMenu();\n menuItemCarro = new javax.swing.JMenuItem();\n menuItemCidade = new javax.swing.JMenuItem();\n menuItemEstado = new javax.swing.JMenuItem();\n menuItemMenuFabrica = new javax.swing.JMenu();\n menuMenuItemRodas = new javax.swing.JMenuItem();\n jSeparator1 = new javax.swing.JPopupMenu.Separator();\n menuItemSair = new javax.swing.JMenuItem();\n menuUtilidades = new javax.swing.JMenu();\n menuItemCalculadora = new javax.swing.JMenuItem();\n menuSair = new javax.swing.JMenu();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Concessionária\");\n\n javax.swing.GroupLayout DesktopLayout = new javax.swing.GroupLayout(Desktop);\n Desktop.setLayout(DesktopLayout);\n DesktopLayout.setHorizontalGroup(\n DesktopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n DesktopLayout.setVerticalGroup(\n DesktopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 379, Short.MAX_VALUE)\n );\n\n menuCadastro.setText(\"Cadastro\");\n\n menuItemCarro.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.ALT_MASK));\n menuItemCarro.setText(\"Carro\");\n menuItemCarro.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menuItemCarroActionPerformed(evt);\n }\n });\n menuCadastro.add(menuItemCarro);\n\n menuItemCidade.setText(\"Cidade\");\n menuItemCidade.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menuItemCidadeActionPerformed(evt);\n }\n });\n menuCadastro.add(menuItemCidade);\n\n menuItemEstado.setText(\"Estado\");\n menuItemEstado.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menuItemEstadoActionPerformed(evt);\n }\n });\n menuCadastro.add(menuItemEstado);\n\n menuItemMenuFabrica.setText(\"Fábrica\");\n\n menuMenuItemRodas.setText(\"Rodas\");\n menuItemMenuFabrica.add(menuMenuItemRodas);\n\n menuCadastro.add(menuItemMenuFabrica);\n\n jSeparator1.setBackground(new java.awt.Color(255, 0, 51));\n jSeparator1.setForeground(new java.awt.Color(240, 240, 240));\n menuCadastro.add(jSeparator1);\n\n menuItemSair.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.ALT_MASK));\n menuItemSair.setText(\"Sair\");\n menuItemSair.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menuItemSairActionPerformed(evt);\n }\n });\n menuCadastro.add(menuItemSair);\n\n jMenuBar1.add(menuCadastro);\n\n menuUtilidades.setText(\"Utilidades\");\n\n menuItemCalculadora.setText(\"Calculadora\");\n menuItemCalculadora.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menuItemCalculadoraActionPerformed(evt);\n }\n });\n menuUtilidades.add(menuItemCalculadora);\n\n jMenuBar1.add(menuUtilidades);\n\n menuSair.setText(\"Sair\");\n menuSair.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n menuSairMouseClicked(evt);\n }\n });\n jMenuBar1.add(menuSair);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Desktop)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Desktop)\n );\n\n pack();\n }", "public void eventos() {\n btnAbrir.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent evt) {\n btnAbrirActionPerformed(evt);\n }\n });\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buscar_producto, menu);\r\n\t\treturn true;\r\n\t}", "public static void Regresar() {\n menu.setVisible(true);\n Controlador.ConMenu.consultaPlan.setVisible(false);\n }", "@Override\r\n\tpublic void onBoAdd(ButtonObject bo) throws Exception {\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tsuper.onBoAdd(bo);\r\n\t\tgetBillCardPanelWrapper().getBillCardPanel().setHeadItem(\"pp_archive\", 0);\r\n\t}", "void onConfigureClick(long id);", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jMenu1 = new javax.swing.JMenu();\n jMenu2 = new javax.swing.JMenu();\n jPopupMenu1 = new javax.swing.JPopupMenu();\n menuBar1 = new java.awt.MenuBar();\n menu1 = new java.awt.Menu();\n menu2 = new java.awt.Menu();\n jMenuItem1 = new javax.swing.JMenuItem();\n jRadioButtonMenuItem1 = new javax.swing.JRadioButtonMenuItem();\n jButton1 = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jMenuBar1 = new javax.swing.JMenuBar();\n Busca_Palavra = new javax.swing.JMenu();\n BuscarPalavra = new javax.swing.JMenuItem();\n Editar = new javax.swing.JMenu();\n TipoDeBuscaMenu = new javax.swing.JMenuItem();\n jMenuItem2 = new javax.swing.JMenuItem();\n Sair = new javax.swing.JMenu();\n\n jMenu1.setText(\"jMenu1\");\n\n jMenu2.setText(\"jMenu2\");\n\n menu1.setLabel(\"File\");\n menuBar1.add(menu1);\n\n menu2.setLabel(\"Edit\");\n menuBar1.add(menu2);\n\n jMenuItem1.setText(\"jMenuItem1\");\n\n jRadioButtonMenuItem1.setSelected(true);\n jRadioButtonMenuItem1.setText(\"jRadioButtonMenuItem1\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Buscador de Palavras\");\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n jButton1.setText(\"Sair\");\n\n jTextArea1.setEditable(false);\n jTextArea1.setColumns(20);\n jTextArea1.setFont(new java.awt.Font(\"Monospaced\", 1, 14)); // NOI18N\n jTextArea1.setRows(5);\n jTextArea1.setText(\"Bem-vindo!\\nPara realizar uma \\nnova busca vá em \\nArquivo -> Buscar Palavra\");\n jTextArea1.setWrapStyleWord(true);\n jScrollPane1.setViewportView(jTextArea1);\n\n Busca_Palavra.setText(\"Arquivo\");\n\n BuscarPalavra.setText(\"Buscar Palavra\");\n BuscarPalavra.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n BuscarPalavraMousePressed(evt);\n }\n });\n Busca_Palavra.add(BuscarPalavra);\n\n jMenuBar1.add(Busca_Palavra);\n\n Editar.setText(\"Editar\");\n\n TipoDeBuscaMenu.setText(\"Tipo de Busca\");\n TipoDeBuscaMenu.setEnabled(false);\n TipoDeBuscaMenu.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n TipoDeBuscaMenuMousePressed(evt);\n }\n });\n Editar.add(TipoDeBuscaMenu);\n\n jMenuItem2.setText(\"Visualizar outro arquivo\");\n jMenuItem2.setEnabled(false);\n Editar.add(jMenuItem2);\n\n jMenuBar1.add(Editar);\n\n Sair.setText(\"Sair\");\n Sair.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n Sair.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n SairMousePressed(evt);\n }\n });\n jMenuBar1.add(Sair);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(46, 46, 46)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(46, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(102, Short.MAX_VALUE))\n );\n\n pack();\n }", "public Pantalla_Principal(Inicio ini) { \n \n initComponents();\n \n this.resize(520, 400);\n this.setResizable(false);\n \n TablaP.getTableHeader().setReorderingAllowed(false); \n TablaP.getTableHeader().setResizingAllowed(false);\n \n jCheckBoxMenuItem_TrayActionPerformed(null);\n JCMenuItem_ModoOpt.setSelected(false);\n jCheckBoxMenuItem_Tray.setSelected(true);\n jCheckBoxMenuItem_Reglas.setSelected(false);\n \n \n \n jMenuBar1.setBackground(Color.white);\n Button_Usar_Permanente.setBackground(Color.LIGHT_GRAY);\n Button_Usar_Temporal.setBackground(Color.lightGray);\n \n this.setLocationRelativeTo(null);\n //this.Btn_Ocultar_Ads.setEnabled(false);\n \n \n addWindowListener(new WindowAdapter(){\n @Override\n public void windowClosing(WindowEvent we){\n Salir();\n }});\n \n \n Pantalla_Principal.this.setVisible(true);\n this.in = ini;\n Return r = new Return();\n r.deleteFile(in.getPath(), \".jar\");\n principal = in.getAdaptador_principal();\n idioma();\n //Btn_Ocultar_Ads.setToolTipText(Tl_ocultar);\n Verificar_Estador_Principal();\n \n \n TModel();\n this.TablaP.updateUI();\n \n \n \n this.Button_Usar_Temporal.addActionListener(new Btn_Usar_Temporal());\n this.Button_Usar_Permanente.addActionListener(new Btn_Usar_Permanente());\n \n \n TablaP.addMouseListener(new java.awt.event.MouseAdapter() {\n @Override\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n if (evt.getClickCount() == 2){\n Mouse2Clicked(evt);}\n }\n });\n \n Ads(0);\n actualizacion_automatica = new Bucle_Actualizar();\n actualizacion_automatica.run(); \n }", "private void ubicarBarco(MouseEvent e) throws NullPointerException{\n\t\t\t\tif (e.getButton() == 1) {\n\t\t\t\t\tfor (int i = 0; i < barcosJugadores.get(0).get(0).getSize(); i++) {\n\t\t\t\t\t\tCasilla casilla = grilla.casillas.get(posicionX + \"\" + (posicionY + (grilla.sizeCasilla * i)));\n\t\t\t\t\t\tcasilla.setBackground(new Color(220, 0, 0));\n\t\t\t\t\t}\n\t\t\t\t\tsetBackground(new Color(220, 0, 0));\n\t\t\t\t\tbarcosJugadores.get(0).remove(0);\n\t\t\t\t\tif (barcosJugadores.get(0).size() == 0) {\n\t\t\t\t\t\tdebeColocar1 = false;\n\t\t\t\t\t}\n\t\t\t\t} else if (e.getButton() == 3) {\n\t\t\t\t\tfor (int i = 0; i < barcosJugadores.get(0).get(0).getSize(); i++) {\n\t\t\t\t\t\tCasilla casilla = grilla.casillas.get((posicionX + (grilla.sizeCasilla * i)) + \"\" + posicionY);\n\t\t\t\t\t\tcasilla.setBackground(new Color(220, 0, 0));\n\t\t\t\t\t}\n\t\t\t\t\tsetBackground(new Color(220, 0, 0));\n\t\t\t\t\tbarcosJugadores.get(0).remove(0);\n\t\t\t\t\tif (barcosJugadores.get(0).size() == 0) {\n\t\t\t\t\t\tdebeColocar1 = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t}", "@Override\r\n public void actionPerformed(ActionEvent e) {\n Menu_Produtos m2= new Menu_Produtos();\r\n \r\n }", "private void onSettingClickEvent() {\n\t\tmBtnSetting.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\n//\t\t\t\tLog.d(TAG, \"onSettingClickEvent\");\n//\t\t\t\topenOptionsMenu();\n\t\t\t\tConfiguration config = getResources().getConfiguration();\n\t\t\t\tif ((config.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) > Configuration.SCREENLAYOUT_SIZE_LARGE) {\n\t\t\t\t\tint originalScreenLayout = config.screenLayout;\n\t\t\t\t\tconfig.screenLayout = Configuration.SCREENLAYOUT_SIZE_LARGE;\n\t\t\t\t\topenOptionsMenu();\n\t\t\t\t\tconfig.screenLayout = originalScreenLayout;\n\t\t\t\t} else {\n\t\t\t\t\topenOptionsMenu();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t}", "private void btCancelarActionPerformed(java.awt.event.ActionEvent evt) {\n new Menu().setVisible(true);\n this.dispose();\n }", "private void btCancelarActionPerformed(java.awt.event.ActionEvent evt) {\n new Menu().setVisible(true);\n this.dispose();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n panel = new javax.swing.JPanel();\n botonArribaIzquierda = new javax.swing.JButton();\n botonArribaCentro = new javax.swing.JButton();\n botonArribaDerecha = new javax.swing.JButton();\n botnonIzquierda = new javax.swing.JButton();\n botonCentro = new javax.swing.JButton();\n botonDerecha = new javax.swing.JButton();\n botonAbajoIzquierda = new javax.swing.JButton();\n botonAbajoCentro = new javax.swing.JButton();\n botonAbajoDerecha = new javax.swing.JButton();\n barraMenu = new javax.swing.JMenuBar();\n menuJuego = new javax.swing.JMenu();\n empezarDeNuevo = new javax.swing.JMenuItem();\n mostrarResultados = new javax.swing.JMenuItem();\n jSeparator1 = new javax.swing.JPopupMenu.Separator();\n salir = new javax.swing.JMenuItem();\n menuAyuda = new javax.swing.JMenu();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n panel.setLayout(new java.awt.GridLayout(3, 3));\n panel.add(botonArribaIzquierda);\n panel.add(botonArribaCentro);\n panel.add(botonArribaDerecha);\n panel.add(botnonIzquierda);\n panel.add(botonCentro);\n panel.add(botonDerecha);\n panel.add(botonAbajoIzquierda);\n panel.add(botonAbajoCentro);\n panel.add(botonAbajoDerecha);\n\n menuJuego.setText(\"Juego\");\n menuJuego.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n\n empezarDeNuevo.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n empezarDeNuevo.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\Alumno\\\\Downloads\\\\lanzamiento-de-cohete(1).png\")); // NOI18N\n empezarDeNuevo.setText(\"Empezar de nuevo\");\n empezarDeNuevo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n empezarDeNuevoActionPerformed(evt);\n }\n });\n menuJuego.add(empezarDeNuevo);\n\n mostrarResultados.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n mostrarResultados.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\Alumno\\\\Downloads\\\\tabla-de-datos(1).png\")); // NOI18N\n mostrarResultados.setText(\"Mostrar tabla de resultados\");\n menuJuego.add(mostrarResultados);\n menuJuego.add(jSeparator1);\n\n salir.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n salir.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\Alumno\\\\Downloads\\\\salida(1).png\")); // NOI18N\n salir.setText(\"Salir\");\n salir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n salirActionPerformed(evt);\n }\n });\n menuJuego.add(salir);\n\n barraMenu.add(menuJuego);\n\n menuAyuda.setText(\"Ayuda\");\n menuAyuda.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n barraMenu.add(menuAyuda);\n\n setJMenuBar(barraMenu);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t\tif(e.getActionCommand().equalsIgnoreCase(\"Torna al Menu\"))\n\t\t{\n\t\t\tsetVisible(false);\n\t\t\tb2.setVisible(true);\n\t\t}\n\t\t\n\t\tif(e.getActionCommand().equalsIgnoreCase(\"Tutti gli insegnamenti\"))\n\t\t{\n\t\t\tA_ReportisticaInsegnamenti1 tutti_insegnamenti = new A_ReportisticaInsegnamenti1(this);\n\t\t\ttutti_insegnamenti.setVisible(true);\n\t\t}\n\t\t\n\t\tif(e.getActionCommand().equalsIgnoreCase(\"Per docente\"))\n\t\t{\n\t\t\tA_ReportisticaInsegnamenti2 insegnamenti_docente = new A_ReportisticaInsegnamenti2(this);\n\t\t\tinsegnamenti_docente.setVisible(true);\n\t\t}\n\t\t\n\t\tif(e.getActionCommand().equalsIgnoreCase(\"Per insegnamento\"))\n\t\t{\n\t\t\tA_ReportisticaInsegnamenti3 insegnamenti_selezionati = new A_ReportisticaInsegnamenti3(this);\n\t\t\tinsegnamenti_selezionati.setVisible(true);\n\t\t}\n\t\t\n\t}", "public DialogoBuscar(InterfazKaraoke pPrincipal) {\n\t\tsuper(pPrincipal, true);\n\t\t\n\t\tprincipal= pPrincipal;\n\t\tsetTitle( \"Buscar\" );\n setSize( 220, 250 );\n setLocationRelativeTo( principal );\n\t\topcSeleccionada = null;\n\t\t\n\t\tJPanel contenedor = new JPanel(new GridLayout(6, 1));\n\t\tcontenedor.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\t\n\t\t\n\t\t// TODO Cree el grupo de botones para los radios.\n\t\tButtonGroup btnGroup = new ButtonGroup();\n\t\t\n\t\t// TODO Inicialice los radios\n\t\tbtnRadios = new JRadioButton[5];\n\t\tbtnRadios [0] = new JRadioButton (CANCION_MAS_FACIL);\n\t\tbtnRadios [1] = new JRadioButton (CANCION_MAS_DIFICIL);\n\t\tbtnRadios [2] = new JRadioButton (CANCION_MAS_CORTA);\n\t\tbtnRadios [3] = new JRadioButton (CANCION_MAS_LARGA);\n\t\tbtnRadios [4] = new JRadioButton (ARTISTA_MAS_CANCIONES);\n\t\t\n\t\tfor (JRadioButton j: btnRadios)\n\t\t{\n\t\t\tj.setActionCommand(j.getText());\n\t\t\tj.addActionListener(this);\n\t\t}\n\t\t\n\t\t// TODO Agregue los radios al grupo de botones\n\t\tfor (JRadioButton j: btnRadios)\n\t\t\tbtnGroup.add(j);\n\t\t\n\t\t// TODO Agregue los radios al panel contenedor\n\t\tfor (JRadioButton j: btnRadios)\n\t\t\tcontenedor.add(j);\n\t\t\n\t\t// TODO Marque el primer radio como seleccionado \n\t\tbtnRadios [0].setSelected(true);\n\t\t\n\t\t// TODO Inicialice el atributo opcSeleccionada con el comando del radio seleccionado.\n\t\topcSeleccionada = btnRadios [0].getText();\n\t\t\n\t\tbtnBuscar = new JButton(BUSCAR);\n\t\tbtnBuscar.setActionCommand(BUSCAR);\n\t\tbtnBuscar.addActionListener(this);\n\t\tcontenedor.add(btnBuscar);\n\t\t\n\t\tadd(contenedor);\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n panelMenu = new javax.swing.JPanel();\n btnAreaCliente = new javax.swing.JButton();\n btnAreaProducto = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n botonCerrarSesion = new javax.swing.JButton();\n btnBackUp = new javax.swing.JButton();\n btnCambiarContraseña = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(0, 0, 204));\n setIconImage(getIconImage());\n setUndecorated(true);\n\n panelMenu.setName(\"panelMenu\"); // NOI18N\n\n btnAreaCliente.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/cliente.png\"))); // NOI18N\n btnAreaCliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAreaClienteActionPerformed(evt);\n }\n });\n\n btnAreaProducto.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/producto.png\"))); // NOI18N\n btnAreaProducto.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAreaProductoActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Seleccione una opción para entrar al sistema:\");\n\n jLabel2.setText(\"Área Clientes\");\n\n jLabel3.setText(\"Área Productos\");\n\n botonCerrarSesion.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/logout.png\"))); // NOI18N\n botonCerrarSesion.setText(\"Cerrar Sesión\");\n botonCerrarSesion.setName(\"botonCerrarSesion\"); // NOI18N\n botonCerrarSesion.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonCerrarSesionActionPerformed(evt);\n }\n });\n\n btnBackUp.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/backup.png\"))); // NOI18N\n btnBackUp.setText(\"Respaldo\");\n btnBackUp.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBackUpActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout panelMenuLayout = new javax.swing.GroupLayout(panelMenu);\n panelMenu.setLayout(panelMenuLayout);\n panelMenuLayout.setHorizontalGroup(\n panelMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelMenuLayout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addGroup(panelMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelMenuLayout.createSequentialGroup()\n .addGroup(panelMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelMenuLayout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 143, Short.MAX_VALUE)\n .addGroup(panelMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnAreaCliente)\n .addGroup(panelMenuLayout.createSequentialGroup()\n .addGap(41, 41, 41)\n .addComponent(jLabel2)))\n .addGap(162, 162, 162))\n .addGroup(panelMenuLayout.createSequentialGroup()\n .addComponent(btnBackUp, javax.swing.GroupLayout.PREFERRED_SIZE, 183, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(panelMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelMenuLayout.createSequentialGroup()\n .addComponent(btnAreaProducto)\n .addGap(151, 151, 151))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelMenuLayout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(189, 189, 189))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelMenuLayout.createSequentialGroup()\n .addComponent(botonCerrarSesion)\n .addGap(25, 25, 25))))\n .addGroup(panelMenuLayout.createSequentialGroup()\n .addComponent(jLabel1)\n .addContainerGap())))\n );\n panelMenuLayout.setVerticalGroup(\n panelMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelMenuLayout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addComponent(jLabel1)\n .addGap(27, 27, 27)\n .addGroup(panelMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelMenuLayout.createSequentialGroup()\n .addComponent(btnAreaProducto)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel3))\n .addGroup(panelMenuLayout.createSequentialGroup()\n .addComponent(btnAreaCliente)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel2)))\n .addGroup(panelMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelMenuLayout.createSequentialGroup()\n .addGap(44, 44, 44)\n .addComponent(botonCerrarSesion, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(20, 20, 20))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelMenuLayout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnBackUp)\n .addGap(28, 28, 28))))\n );\n\n btnCambiarContraseña.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/pass.png\"))); // NOI18N\n btnCambiarContraseña.setText(\"Cambiar contraseña\");\n btnCambiarContraseña.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCambiarContraseñaActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addComponent(panelMenu, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnCambiarContraseña)\n .addGap(44, 44, 44))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(13, 13, 13)\n .addComponent(btnCambiarContraseña)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(panelMenu, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }", "public void startMenu() {\n setTitle(\"Nier Protomata\");\n setSize(ICoord.LAST_COL + ICoord.ADD_SIZE,\n ICoord.LAST_ROW + ICoord.ADD_SIZE);\n \n setButton();\n }", "private void defineBotonBuscar() {\r\n tf_buscar.setVisible(false); //establece el textField como oculto al iniciarse la Pantalla\r\n //Manejador del Evento\r\n \r\n EventHandler eh = new EventHandler<KeyEvent>(){\r\n @Override\r\n public void handle(KeyEvent ke){\r\n //SI es presionado ENTER o TAB entonces\r\n if (ke.getCode().equals(KeyCode.ENTER) || ke.getCode().equals(KeyCode.TAB)){ \r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_buscar\")){ \r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n Datos.setLog_cguias(new log_CGuias()); \r\n boolean boo = Ln.getInstance().check_log_CGuias_caja(tf_buscar.getText()); \r\n numGuias = 0;\r\n if(boo){\r\n Datos.setRep_log_cguias(Ln.getInstance().find_log_CGuias(tf_buscar.getText(), \"\", \"ncaja\", Integer.parseInt(rows)));\r\n loadTable(Datos.getRep_log_cguias()); \r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. Guia NO existe en la \" + ScreenName, \"A\");\r\n tf_nroguia.requestFocus();\r\n }\r\n tf_buscar.setVisible(false); //establece el textField como oculto al finalizar\r\n }\r\n }\r\n }\r\n };\r\n //Se asigna el manejador a ejecutarse cuando se suelta una tecla\r\n tf_buscar.setOnKeyReleased(eh);\r\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\n Menu_Contabilidade m3= new Menu_Contabilidade();\r\n \r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch(id) {\n case R.id.acercade:\n \tlanzarAcercaDe(null);\n \tbreak;\n case R.id.config:\n \tlanzarPreferencias(null);\n \tbreak;\n }\n return true;\n\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n edtAñadir = new javax.swing.JButton();\n edtConsultar = new javax.swing.JButton();\n edtBorrar = new javax.swing.JButton();\n jLabelTitulo = new javax.swing.JLabel();\n menu = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"BIBLIOTECA PICAZO\");\n setResizable(false);\n getContentPane().setLayout(null);\n\n edtAñadir.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n edtAñadir.setText(\"Añadir\");\n edtAñadir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n edtAñadirActionPerformed(evt);\n }\n });\n getContentPane().add(edtAñadir);\n edtAñadir.setBounds(20, 57, 91, 27);\n\n edtConsultar.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n edtConsultar.setText(\"Consultar\");\n edtConsultar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n edtConsultarActionPerformed(evt);\n }\n });\n getContentPane().add(edtConsultar);\n edtConsultar.setBounds(129, 57, 92, 27);\n\n edtBorrar.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n edtBorrar.setText(\"Borrar\");\n edtBorrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n edtBorrarActionPerformed(evt);\n }\n });\n getContentPane().add(edtBorrar);\n edtBorrar.setBounds(233, 57, 92, 27);\n\n jLabelTitulo.setFont(new java.awt.Font(\"Arial Rounded MT Bold\", 1, 24)); // NOI18N\n jLabelTitulo.setForeground(new java.awt.Color(255, 255, 255));\n jLabelTitulo.setText(\"Modificar\");\n getContentPane().add(jLabelTitulo);\n jLabelTitulo.setBounds(110, 10, 120, 29);\n\n menu.setText(\"Ir al Menú\");\n menu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menuActionPerformed(evt);\n }\n });\n getContentPane().add(menu);\n menu.setBounds(20, 130, 89, 26);\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/fondo ventana.jpg\"))); // NOI18N\n jLabel2.setText(\"jLabel2\");\n getContentPane().add(jLabel2);\n jLabel2.setBounds(0, 0, 370, 230);\n\n setSize(new java.awt.Dimension(386, 238));\n setLocationRelativeTo(null);\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n switch (item.getItemId()){\n\n case R.id.admin_Ajustescuenta:\n Intent ventana = new Intent(Administrador.this,Modificar_dato_Admin.class);\n startActivity(ventana);\n break;\n\n\n case R.id.admin_Cerrar_sesion:\n AlertDialog.Builder builder = new AlertDialog.Builder(this); //Codigo de dialogo de confirmacion\n builder.setCancelable(false);\n builder.setTitle(\"Confirmacion\");\n builder.setMessage(\"¿Desea Cerrar Sesión?\");\n builder.setPositiveButton(\"Aceptar\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n Intent Ventana_Cerrar_sesion = new Intent(Administrador.this,Iniciar_Sesion.class);\n startActivity(Ventana_Cerrar_sesion);\n }\n });\n builder.setNegativeButton(\"Cancelar\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //no se coloca nada\n }\n });\n builder.create();\n builder.show(); // fin de codigo de dialogo de confirmacion\n }\n return super.onOptionsItemSelected(item);\n }", "public void toolbarImplementacionIsmael() {\n\t\t// ToolBar Fuente\n\t\tbtnFuente = new JButton(\"Fuente\");\n\t\tbtnFuente.setEnabled(false);\n\t\ttry {\n\t\t\timg = ImageIO.read(getClass().getResource(\"img/copy.png\"));\n\t\t\timg = img.getScaledInstance(20, 20, Image.SCALE_SMOOTH);\n\t\t\tbtnFuente.setIcon(new ImageIcon(img));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttoolbar.add(btnFuente);\n\n\t\tbtnSeleccionarTodo = new JButton(\"Selec.Todo\");\n\t\tbtnSeleccionarTodo.setEnabled(false);\n\t\ttry {\n\t\t\timg = ImageIO.read(getClass().getResource(\"img/copy.png\"));\n\t\t\timg = img.getScaledInstance(20, 20, Image.SCALE_SMOOTH);\n\t\t\tbtnSeleccionarTodo.setIcon(new ImageIcon(img));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttoolbar.add(btnSeleccionarTodo);\n\n\t\tbtnHora = new JButton(\"Hora\");\n\t\ttry {\n\t\t\timg = ImageIO.read(getClass().getResource(\"img/copy.png\"));\n\t\t\timg = img.getScaledInstance(20, 20, Image.SCALE_SMOOTH);\n\t\t\tbtnHora.setIcon(new ImageIcon(img));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttoolbar.add(btnHora);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) \r\n\t{\n\t\tgetMenuInflater().inflate(R.menu.carrito_compra, menu);\r\n\t\treturn true;\r\n\t}", "private void configurar() {\n jButtonPrimero.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/robertovicentepujades/mantenimientos/archivos/resources/to-start-30.png\")));\n jButtonPrimero.setToolTipText(\"Ir al primer registro\");\n jButtonAnterior.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/robertovicentepujades/mantenimientos/archivos/resources/fb-30.png\")));\n jButtonAnterior.setToolTipText(\"Ir al registro anterior\");\n jButtonSiguiente.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/robertovicentepujades/mantenimientos/archivos/resources/ff-30.png\")));\n jButtonSiguiente.setToolTipText(\"Ir al registro siguiente\");\n jButtonUltimo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/robertovicentepujades/mantenimientos/archivos/resources/to-end-30.png\")));\n jButtonUltimo.setToolTipText(\"Ir al último registro\");\n jLabelNumeroNum.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabelNumero.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n\n this.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));\n \n }", "abstract void botonDescargaSobre_actionPerformed(ActionEvent e);", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n /*tela de configuraçao*/\n return true;\n }else if(id == R.id.action_sair){\n Intent i = new Intent (OrganizadorActivity.this,MainActivity.class);\n startActivity(i);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tmenu.setMouseClick(true);\n\t\t\t}", "public CrearGrupoDeContactosMenuActionListener() {\n }", "static void mostrarMenu(){\n \t\t\n\t\tout.println();\n\t\tout.println(\"1. Crear lavadora.\");\n\t\tout.println(\"2. Mostrar lavadoras.\");\n\t\tout.println(\"3. Seleccionar lavadora.\");\n\t\tout.println(\"4. Cargar agua.\");\n\t\tout.println(\"5. Cargar ropa.\");\n\t\tout.println(\"6. Cargar detergente.\");\n\t\tout.println(\"7. Especificar tiempo.\");\n\t\tout.println(\"8. Drenar.\");\n\t\tout.println(\"9. Mostrar estado de la lavadora.\");\n\t\tout.println(\"10. Mostrar estado de la ropa.\");\n\t\tout.println(\"11. Pausar o Reanudar lavadora\");\n\t\tout.println(\"12. Probar sistema.\");\n\t\tout.println(\"13. Reiniciar sistema.\");\n\t\tout.println(\"22. Salir\");\n\t\tout.println((SELECTNOW != -1) ? \"!/*!/* Lv seleccionada: \" + SELECTNOW + \" !/*!/*\": \"\");\n\t\tout.println();\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu){\r\n getMenuInflater().inflate(R.menu.menu, menu); //Recibe como parametro el menu donde se situan las acciones\r\n return true; //Para que la barra sea visible\r\n }", "private void actualizarOnClick(){\n\t\tIntent i=new Intent(this,MenuPrincipal.class);\n\t\ti.putExtra(\"valueString\", datos);\n\t\tthis.startActivity(i);\n\t\tthis.finish();\n\t}", "public void volvreAlMenu() {\r\n\t\t// Muestra el menu y no permiye que se cambie el tamaņo\r\n\t\tMenu.frame.setVisible(true);\r\n\t\tMenu.frame.setResizable(false);\r\n\t\t// Oculta la ventana del flappyBird\r\n\t\tjframe.setVisible(false);\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e)\r\n\t{\r\n\t\t\r\n\t\t if (e.getActionCommand().equals(\"Retour\")) {\r\n\t\t\t this.choixMenu = 1;\r\n\t\t }\r\n\r\n\t\t else if (e.getActionCommand().equals(\"Deplacement\")) {\r\n\t\t\t this.choixMenu = 4;\r\n\t\t }\r\n\t\t \r\n\t\t else if (e.getActionCommand().equals(\"Fin du tour\")) {\r\n\t\t\t this.finDuTour = true; \r\n\t\t }\r\n\t\t \r\n\t\t else if (e.getActionCommand().equals(\"Attaque\")) {\r\n\t\t\t this.choixMenu = 2;\r\n\t\t }\r\n\t\t \r\n\t\t else if (e.getActionCommand().equals(\"Quitter\")) {\r\n\t\t\t System.exit(0);\r\n\t\t }\r\n\t\t \r\n\t\t else if (e.getActionCommand().equals(\"Haut\")) {\r\n\t\t this.choixMouvement = 1;\r\n\t\t }\r\n\t\t \r\n\t\t else if (e.getActionCommand().equals(\"Gauche\")) {\r\n\t\t\t this.choixMouvement = 2;\r\n\t\t }\r\n\t\t \r\n\t\t else if (e.getActionCommand().equals(\"Bas\")) {\r\n\t\t\t this.choixMouvement = 3;\r\n\t\t }\r\n\t\t \r\n\t\t else if (e.getActionCommand().equals(\"Droite\")) {\r\n\t\t\t this.choixMouvement = 4;\r\n\t\t }\r\n\t\t \r\n\t\t else\r\n\t\t {\r\n\t\t\t int numComp;\r\n\t\t\t int numMonstre;\r\n\t\t\t for(numComp = 0;numComp<this.competences.length;numComp++)\r\n\t\t\t {\r\n\t\t\t\t if(e.getActionCommand().equals(this.competences[numComp].getNom()))\r\n\t\t\t\t {\r\n\t\t\t\t\t this.choixCompetence = numComp;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t \r\n\t\t\t for(numMonstre = 0;numMonstre<this.monstres.length;numMonstre++)\r\n\t\t\t {\r\n\t\t\t\t if(e.getActionCommand().equals(this.monstres[numMonstre].getNom()))\r\n\t\t\t\t {\r\n\t\t\t\t\t this.choixMonstre = numMonstre;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t for(numMonstre = 0;numMonstre<this.monstres.length;numMonstre++)\r\n\t\t\t {\r\n\t\t\t\t if(e.getActionCommand().equals(\"Info \" + this.monstres[numMonstre].getNom()))\r\n\t\t\t\t {\r\n\t\t\t\t\t this.choixMonstreAAfficher = numMonstre;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t }\r\n\t\t \r\n\t\t \r\n\t}", "public void definirActionBoton(ActionEvent e) {\n CommandButton btnSelect = (CommandButton) e.getSource();\n\n //System.out.println(\"boton id: \" + btnSelect.getId());\n //this.getCbAction().setDisabled(false);\n if (btnSelect.getId().equals(\"btnEdit\")) {\n this.getCbActionTelefonos().setValue(\"Editar\");\n this.getListadoTelefonosBean().setiTipoBoton(1);\n //System.out.println(\"Entro al Edit\");\n }\n if (btnSelect.getId().equals(\"btnDelete\")) {\n this.getCbActionTelefonos().setValue(\"Eliminar\");\n this.getListadoTelefonosBean().setiTipoBoton(2);\n //System.out.println(\"Entro al Delete\");\n }\n\n if (btnSelect.getId().equals(\"btnCreateTelefonos\")) {\n //System.out.println(\"Entro al if : \" + this.getPersona());\n // this.getCbAction().setValue(\"Guardar\");\n //System.out.println(\"Despues del if\");\n this.getListadoTelefonosBean().setiTipoBoton(0);\n System.out.println(\"Get Tipo boton\" + this.getListadoEmailBean().getiTipoBoton());\n }//fin if\n\n //System.out.println(\"termino el definir: \" + this.getPersona());\n }", "@Listen(\"onClick =#asignarEspacioCita\")\n\tpublic void asginarEspacioCita() {\n\t\tString dir = \"gc/espacio/frm-asignar-espacio-catalogo.zul\";\n\t\tclearDivApp(dir);\n\t\t// Clients.evalJavaScript(\"document.title = 'ServiAldanas'; \");\n\t}", "@Override\r\n \tpublic boolean onPrepareOptionsMenu(Menu menu) {\r\n \t\tmenu.removeGroup(0);\r\n \t\tmenu.removeGroup(1);\r\n \t\tResources res = getResources();\r\n \t\tif(keyValue == 1)\r\n \t\t{\r\n \t\t\tmenu.add(0, R.id.selectAll, 0, res.getString(R.string.select_all))\r\n \t\t\t\t.setIcon(android.R.drawable.checkbox_on_background);\r\n \t\t\tmenu.add(1, R.id.deSelect, 1, res.getString(R.string.deselect_all))\r\n \t\t\t\t.setIcon(android.R.drawable.checkbox_off_background);\r\n \t\t}\r\n \t\treturn true;\r\n \r\n \t}", "void Comunicasiones() { \t\r\n /* Comunicacion */\r\n Button dComunicacion01 = new Button();\r\n dComunicacion01.setWidth(\"73px\");\r\n dComunicacion01.setHeight(\"47px\");\r\n dComunicacion01.setIcon(ByosImagenes.icon[133]);\r\n dComunicacion01.setStyleName(EstiloCSS + \"BotonComunicacion\");\r\n layout.addComponent(dComunicacion01, \"left: 661px; top: 403px;\"); \r\n\r\n /* Comunicacion */\r\n Button iComunicacion01 = new Button();\r\n iComunicacion01.setWidth(\"73px\");\r\n iComunicacion01.setHeight(\"47px\");\r\n iComunicacion01.setIcon(ByosImagenes.icon[132]);\r\n iComunicacion01.setStyleName(EstiloCSS + \"BotonComunicacion\");\r\n layout.addComponent(iComunicacion01, \"left: 287px; top: 403px;\"); \r\n \r\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n String comando = e.getActionCommand();\n\n if (comando == \"Novo labirinto\")\n this.btnNovoLabirinto();\n else if (comando == \"Abrir labirinto\")\n this.btnAbrirLabirinto();\n else if (comando == \"Salvar labirinto\")\n this.btnSalvarLabirinto();\n else // comando==\"Executar labirinto\"\n this.btnExecutarLabirinto();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jToolBar1 = new javax.swing.JToolBar();\n local_prova_label = new javax.swing.JLabel();\n questoes_label = new javax.swing.JLabel();\n provas_label = new javax.swing.JLabel();\n provas_geradas_label = new javax.swing.JLabel();\n carregando_label = new javax.swing.JLabel();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n novo_banco_de_provas_menu = new javax.swing.JMenuItem();\n importar_banco_de_dados_menu = new javax.swing.JMenuItem();\n salvar_banco_de_prova_menu = new javax.swing.JMenuItem();\n salvar_como_banco_de_prova_menu = new javax.swing.JMenuItem();\n sair_menu = new javax.swing.JMenuItem();\n jMenu2 = new javax.swing.JMenu();\n importar_provas_menu = new javax.swing.JMenuItem();\n gerar_provas_menu = new javax.swing.JMenuItem();\n exportar_provas_menu = new javax.swing.JMenuItem();\n jMenu3 = new javax.swing.JMenu();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Gerador de Provas Aleatórias\");\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gerador/de/provas/aleatorias/view/imgs/Elegant_circle-icons-78.png\"))); // NOI18N\n jLabel1.setToolTipText(\"\");\n\n jToolBar1.setFloatable(false);\n jToolBar1.setRollover(true);\n\n local_prova_label.setText(\"...\");\n jToolBar1.add(local_prova_label);\n local_prova_label.getAccessibleContext().setAccessibleName(\"banco_de_prova_label\");\n\n questoes_label.setText(\"0 Questões\");\n\n provas_label.setText(\"0 Provas\");\n\n provas_geradas_label.setText(\"0 Provas Geradas\");\n\n carregando_label.setText(\"Carregando banco de provas ...\");\n\n jMenu1.setText(\"Banco de Provas\");\n\n novo_banco_de_provas_menu.setText(\"Novo\");\n jMenu1.add(novo_banco_de_provas_menu);\n\n importar_banco_de_dados_menu.setText(\"Importar\");\n jMenu1.add(importar_banco_de_dados_menu);\n\n salvar_banco_de_prova_menu.setText(\"Salvar\");\n jMenu1.add(salvar_banco_de_prova_menu);\n\n salvar_como_banco_de_prova_menu.setText(\"Salvar como\");\n jMenu1.add(salvar_como_banco_de_prova_menu);\n\n sair_menu.setText(\"Sair\");\n jMenu1.add(sair_menu);\n\n jMenuBar1.add(jMenu1);\n\n jMenu2.setText(\"Prova\");\n\n importar_provas_menu.setText(\"Importar provas\");\n jMenu2.add(importar_provas_menu);\n\n gerar_provas_menu.setText(\"Gerar provas\");\n jMenu2.add(gerar_provas_menu);\n\n exportar_provas_menu.setText(\"Exportar Provas\");\n jMenu2.add(exportar_provas_menu);\n\n jMenuBar1.add(jMenu2);\n\n jMenu3.setText(\"Sobre\");\n jMenuBar1.add(jMenu3);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(questoes_label)\n .addComponent(provas_label)\n .addComponent(provas_geradas_label)\n .addComponent(carregando_label))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 28, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 401, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addComponent(questoes_label)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(provas_label)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(provas_geradas_label)\n .addGap(43, 43, 43)\n .addComponent(carregando_label)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 332, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))\n .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n jLabel1.getAccessibleContext().setAccessibleName(\"imagem_prova\");\n questoes_label.getAccessibleContext().setAccessibleName(\"questoes_label\");\n\n pack();\n }", "public void click_dashboardMenu_button() {\n\t\tdashboardMenu.click();\n\t}", "public void mniBuscarPrestamoActionPerformed(ActionEvent e) {\n }", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n //inflater.inflate(R.menu.menu_buscador,menu);\n MenuItem buscador = menu.findItem(R.id.buscador2);\n MenuItem carrito = menu.findItem(R.id.carrito);\n carrito.setVisible(false);\n buscador.setVisible(false);\n }", "private void initialize() {\n frame = new JFrame();\n frame.setBounds(500, 500, 450, 300);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n JMenuBar menuBar = new JMenuBar();\n frame.setJMenuBar(menuBar);\n\n\n JMenu mnArchivo = new JMenu(\"Registrar Cliente\");\n menuBar.add(mnArchivo);\n\n\n JMenuItem mntmNewMenuItem_1 = new JMenuItem(\"CLIENTE CENTRO COMERCIAL\");\n mntmNewMenuItem_1.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent arg0) {\n Principal.RegistrarCliente objPA = new Principal.RegistrarCliente();\n objPA.Clientes();\n }\n });\n mnArchivo.add( mntmNewMenuItem_1);\n\n\n JMenu mnReportes = new JMenu(\"Tiendas\");\n menuBar.add(mnReportes);\n\n JMenu mnTienda1 = new JMenu(\"ETAFASHION\");\n mnReportes.add(mnTienda1);\n\n JMenuItem mntmNewMenuItem_2 = new JMenuItem(\"Deportiva\");\n mntmNewMenuItem_2.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent arg0) {\n Comprar objVA = new Comprar(0);\n objVA.Producto(0);\n }\n });\n mnTienda1.add(mntmNewMenuItem_2);\n\n JMenuItem mntmNewMenuItem_3 = new JMenuItem(\"Casual\");\n mntmNewMenuItem_3.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent arg0) {\n Comprar objVA = new Comprar(1);\n objVA.Producto(1);\n }\n });\n mnTienda1.add(mntmNewMenuItem_3);\n\n JMenu mnTienda2 = new JMenu(\"LA GANGA\");\n mnReportes.add(mnTienda2);\n\n JMenuItem mntmNewMenuItem_4 = new JMenuItem(\"Electrodomesticos\");\n mntmNewMenuItem_4.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent arg0) {\n Comprar objVA = new Comprar(2);\n objVA.Producto(2);\n }\n });\n mnTienda2.add(mntmNewMenuItem_4);\n\n JMenuItem mntmNewMenuItem_5 = new JMenuItem(\"Tecnologia\");\n mntmNewMenuItem_5.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent arg0) {\n Comprar objVA = new Comprar(3);\n objVA.Producto(3);\n }\n });\n mnTienda2.add(mntmNewMenuItem_5);\n\n JMenuItem mnCarrito = new JMenuItem(\"Carrito\");\n mnCarrito.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent arg0) {\n Principal.Pedido objC = new Principal.Pedido();\n objC.Carrito();\n }\n });\n mnReportes.add(mnCarrito);\n\n JMenu mnArchMNSesion = new JMenu(\"Iniciar Secion\");\n menuBar.add(mnArchMNSesion);\n\n JMenuItem mntmAdministrador= new JMenuItem(\"Administrador\");\n mntmAdministrador.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent arg0) {\n Usuario usr = new Usuario();\n usr.setVisible(true);\n }\n });\n mnArchMNSesion.add(mntmAdministrador);\n\n JMenuItem mntmCliente= new JMenuItem(\"Usuario\");\n mntmCliente.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent arg0) {\n //Principal.Manual objST = new Principal.Manual();\n //objST.Manual();\n }\n });\n mnArchMNSesion.add(mntmCliente);\n\n JMenu mnManual = new JMenu(\"Manual\");\n menuBar.add(mnManual);\n\n JMenuItem mntmNewMenuItem_N = new JMenuItem(\"Servicio Técnico\");\n mntmNewMenuItem_N.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent arg0) {\n Principal.Manual objST = new Principal.Manual();\n objST.Manual();\n }\n });\n mnManual.add(mntmNewMenuItem_N);\n\n JLayeredPane layeredPane = new JLayeredPane();\n layeredPane.setBounds(23, 11, 374, 204);\n frame.getContentPane().add(layeredPane);\n\n\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_edit_evento_pessoa, menu);\r\n menu.findItem(R.id.action_save).setVisible(false);\r\n this.mInterno = menu;\r\n\r\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\r\n\r\n return true;\r\n }", "public void mostrarAyudaCB() {\n try {\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"res/help_breaker.png\")));\n }\n catch (Exception e) {}\n }", "protected void CriarEventos() {\r\n\r\n\r\n //CRIANDO EVENTO NO BOTÃO SALVAR\r\n buttonSalvar.setOnClickListener(new View.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(View v) {\r\n\r\n Salvar_onClick();\r\n }\r\n });\r\n\r\n //CRIANDO EVENTO NO BOTÃO VOLTAR\r\n buttonVoltar.setOnClickListener(new View.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(View v) {\r\n\r\n Intent intentMainActivity = new Intent(getApplicationContext(), CadastrarActivity.class);\r\n startActivity(intentMainActivity);\r\n finish();\r\n }\r\n });\r\n }", "@Override\n public boolean onOptionsItemSelected (MenuItem item){\n final Context context=this;\n switch(item.getItemId()){\n\n // Intent intent1 = new Intent(context, visalle.class);\n //startActivity(intent1);\n }\n\n //noinspection SimplifiableIfStatement\n /*if (id == R.id.action_settings) {\n return true;\n }*/\n\n return super.onOptionsItemSelected(item);\n }", "public void activarEscudo() {\n\t\tif(escudo) {\n\t\t\twidth = 40;\n\t\t\theight = 40;\n\t\t\tescudo = false;\n\t\t\tsetGrafico(0);\n\t\t}\n\t\telse {\n\t\t\tescudo = true;\n\t\t\twidth = 50;\n\t\t\theight = 50;\n\t\t\tsetGrafico(1);\n\t\t}\n\t}", "private void menuFileNuevo_actionPerformed(ActionEvent e) {\n nuevoJuego();\n\n mostrarTablero();\n }", "private void menuMotifActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuMotifActionPerformed\n try {\n UIManager.setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\n SwingUtilities.updateComponentTreeUI(this);\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jMenuBar1 = new javax.swing.JMenuBar();\n menu_salir = new javax.swing.JMenu();\n jMenuItem4 = new javax.swing.JMenuItem();\n jMenu2 = new javax.swing.JMenu();\n menu_nuevo = new javax.swing.JMenuItem();\n menu_actualizar = new javax.swing.JMenuItem();\n menu_eliminar = new javax.swing.JMenuItem();\n\n setTitle(\"Modulo Asignatura\");\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/asigntauras.jpg\"))); // NOI18N\n\n menu_salir.setText(\"Archivo\");\n\n jMenuItem4.setText(\"Salir\");\n jMenuItem4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem4ActionPerformed(evt);\n }\n });\n menu_salir.add(jMenuItem4);\n\n jMenuBar1.add(menu_salir);\n\n jMenu2.setText(\"Gestionar\");\n\n menu_nuevo.setText(\"Nuevo\");\n menu_nuevo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menu_nuevoActionPerformed(evt);\n }\n });\n jMenu2.add(menu_nuevo);\n\n menu_actualizar.setText(\"Actualizar\");\n menu_actualizar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menu_actualizarActionPerformed(evt);\n }\n });\n jMenu2.add(menu_actualizar);\n\n menu_eliminar.setText(\"Eliminar\");\n menu_eliminar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menu_eliminarActionPerformed(evt);\n }\n });\n jMenu2.add(menu_eliminar);\n\n jMenuBar1.add(jMenu2);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n );\n\n pack();\n }", "@Override\n public void mouseClicked(MouseEvent evt) {\n if (evt.getButton() == MouseEvent.BUTTON1 && parent.getExtendedState() == JFrame.ICONIFIED) {\n MensajeTrayIcon(\"Modulo Envio ejecutandose en segundo plano\", TrayIcon.MessageType.INFO);\n }\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_registro_conductor, menu);\n return true;\n }", "private void ButtonWypelnijToolbarActionPerformed(java.awt.event.ActionEvent evt) {\n }", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n \tmenu.findItem(R.id.menu_principla_4).setTitle(\"Notificacion\");\n \treturn true;\n }", "public void cargararchivo() throws InterruptedException {\n sleep(1000);\n cargararchivo.click();\n sleep(1000);\n selectDescargas.click();\n sleep(1000);\n selectarchivoEvidencia.click();\n // waitVisibilityOfElement(btnnext);\n /* tomaEvidencia(evidencia,\"PantallaCargadaImagen\");*/\n //btnnext.click();\n }", "@Listen(\"onClick =#asignarEspacio\")\n\tpublic void Planificacion() {\n\t\tString dir = \"gc/espacio/frm-asignar-espacio-recursos-catalogo.zul\";\n\t\tclearDivApp(dir);\n\t\t// Clients.evalJavaScript(\"document.title = 'ServiAldanas'; \");\n\t}", "private void voltarMenu() {\n\t\tmenu = new TelaMenu();\r\n\t\tmenu.setVisible(true);\r\n\t\tthis.dispose();\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n Toast.makeText(this,\"Crée par BENSELEM MOEZ\",Toast.LENGTH_LONG).show();\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void setComenzar(JButton comenzar) {\n this.comenzar = comenzar;\n }", "private static void gestorMenu(String ruta) {\t\t\n\t\tFile f = new File (ruta);\n\t\t// establece el directorio padre\n\t\tString base = f.getPath();\n\t\truta = f.getPath();\n\t\t// Presenta por pantalla el menu del programa\n\t\tmostrarMenu();\n\t\t// Inicia el tiempo\n\t\tlong tiempoInicial = System.currentTimeMillis();\n\t\tMenu(ruta, base, tiempoInicial, 0);\n\t}", "@FXML\n public void menuItemCadastroClienteClick() throws IOException {\n chamaTela(\"Cliente\");\n }", "private void ponerBoton(String rotulo) {\n\t\t\n\t\tJButton boton = new JButton(rotulo);\n\t\t\n\t\tmilamina2.add(boton);\n\t\t\n\t}" ]
[ "0.641147", "0.6319682", "0.61982864", "0.6186804", "0.61734384", "0.60464734", "0.6018182", "0.6013938", "0.60055673", "0.5971183", "0.5942499", "0.5940272", "0.59275025", "0.5924853", "0.5906173", "0.5891711", "0.5883396", "0.58504987", "0.5846852", "0.5845353", "0.58113956", "0.5799775", "0.5790073", "0.57754475", "0.57592", "0.57512635", "0.57469636", "0.57374436", "0.5733138", "0.572483", "0.5721869", "0.57197064", "0.57025856", "0.5700394", "0.5694406", "0.568716", "0.5684502", "0.56738394", "0.5670502", "0.5663593", "0.56627804", "0.56599075", "0.5646091", "0.56423265", "0.56354696", "0.56349653", "0.56311303", "0.56311303", "0.56304383", "0.56269985", "0.5621826", "0.56209606", "0.56181383", "0.5616603", "0.5602671", "0.5597961", "0.5592613", "0.5583167", "0.5575638", "0.5569593", "0.55695254", "0.5568577", "0.5566163", "0.55582845", "0.5557346", "0.55548733", "0.5553483", "0.55481", "0.5542542", "0.554207", "0.553879", "0.5535572", "0.55348676", "0.5534576", "0.5528236", "0.5527935", "0.55271864", "0.5522521", "0.55217713", "0.5518857", "0.5517681", "0.55152214", "0.550714", "0.55018973", "0.55012274", "0.5501168", "0.550076", "0.54990315", "0.54951507", "0.54950917", "0.54924977", "0.5492196", "0.5478848", "0.5477867", "0.5477154", "0.547673", "0.5472283", "0.54715014", "0.54712", "0.54693216" ]
0.6306403
2
Devuelve un intent para cambiar al presentador que corresponda: PresenV > PresenH PresenH > PresenV
protected Intent getIntentForChangePresenter() { // Destino: Presentador H Intent intent = new Intent(PresentadorV_main.this, PresentadorH_main.class); intent.setAction(INTENT_ACTION); // Guarda en el intent el contenido de la searchview // ojo: es tipo CharSequence intent.putExtra(INTENT_CONTENT_WISEARCH, wi_search.getQuery()); return intent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(MainActivity.this, PartNoList.class);\n\t\t\t\tintent.putExtra(\"motortype\", \"vcmpartno\");\n\t\t\t\tstartActivity(intent);\t\n\t\t\t}", "@Override\n public void onClick(View v) {\n Intent cambioVentana = new Intent(Portada.this, Preferencias.class);\n startActivity(cambioVentana);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(MainActivity.this, PartNoList.class);\n\t\t\t\tintent.putExtra(\"motortype\", \"ddrmpartno\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "public void modifierPersonne(View v) {\n Intent intent = new Intent(this, ModifierPersonne.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent cambioVentana = new Intent(Portada.this, MainActivity.class);\n startActivity(cambioVentana);\n }", "public void Siguente(View view){\n Intent Siguiente = new Intent(this,FigurasCompuestas2.class);\n startActivity(Siguiente);\n }", "public void goToCrearMomentoActivity(int i, Momento momento){\n Intent intent = new Intent(getApplicationContext(),CrearMomentoActivity.class);\n Bundle bundle = new Bundle();\n bundle.putInt(\"opcion\",i);\n intent.putExtra(\"opcion\",i);\n intent.putExtra(\"momento\",momento);\n startActivity(intent);\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\n\t\t\t\t\tint ligaNr = Integer.parseInt(v.getContentDescription().toString().split(\";\")[0]);\n\t\t\t\t\tint spielNr = Integer.parseInt(v.getContentDescription().toString().split(\";\")[1]);\n\t\t\t\t\tIntent intent = new Intent(getActivity().getApplicationContext(), SpielActivity.class);\n\t\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\t\tbundle.putString(\"liganame\", ligaName);\n\t\t\t\t\tbundle.putInt(\"liganummer\", ligaNr);\n\t\t\t\t\tbundle.putInt(\"spielnummer\", spielNr);\n\t\t\t\t\tintent.putExtras(bundle);\n\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t}", "public void verProfesionista(View view){\n Intent siguiente = new Intent(verEmpleos.this,verProfesionista.class);\n startActivity(siguiente);//se inicia\n }", "public void repitencia(View view){\n Intent rep = new Intent(this, Repitencia.class);\n startActivity(rep);\n }", "@Override\n public void onClick(View v) {\n Thought chosenThought = thoughts.get((int) v.getTag());\n Intent thoughtContentIntent = new Intent(getActivity(), ThougtContentActivity.class);\n thoughtContentIntent.putExtra(\"id\", chosenThought.thoughtId.toString());\n thoughtContentIntent.putExtra(\"image\", chosenThought.imagePath.getPath());\n thoughtContentIntent.putExtra(\"recording\", chosenThought.recordingPath.getPath());\n thoughtContentIntent.putExtra(\"title\", chosenThought.title);\n thoughtContentIntent.putExtra(\"details\", chosenThought.details);\n startActivity(thoughtContentIntent);\n }", "public void Riesgos_interno_quintana (View view){\n Intent intent = new Intent(this, quintanaroo_id_riesgo_interno.class);\n startActivity(intent);\n }", "private void viewMove(Move move) {\n Intent intent = new Intent(this, MoveInfoActivity.class);\n intent.putExtra(getString(R.string.moveKey), move);\n startActivity(intent);\n }", "@Override\n\t public void onClick(View view) {\n\t \tIntent i;\n\t \tif (botonPrincipal.equals(\"2\"))\n\t \t{\n\t \t\ti = new Intent(getApplicationContext(), Dispositivo.class);\n\t \t}\n\t \telse\n\t \t{\n\t \t\ti = new Intent(getApplicationContext(), SetPersianas.class);\n\t \t}\n\t \t\t\t\ti.putExtra(\"codigo_dispositivo\" , cod_disp[position-1]);\n\t \t\t\t\ti.putExtra(\"estado_dispositivo\" , est_disp[position-1]);\n\t \t\t\t\ti.putExtra(\"descripcion_dispositivo\", desc_disp[position-1]);\n\t \t\t\t\ti.putExtra(\"tipo_dispositivo\", tipo_disp[position-1]);\n\t \t\t\t\ti.putExtra(\"codigo_habitacion\", cod_hab);\n\t \t\t\t\ti.putExtra(\"habitacion\", hab_dom);\n\t \t\t\t\ti.putExtra(\"botonPrincipal\",botonPrincipal);\n\t startActivity(i);\n\t finish();\n\t }", "@Override\n public void onClick(View v) {\n Intent i = new Intent(Intent.ACTION_SEND);\n // se cambbia el tipo a texto plano\n i.setType(\"text/plain\");\n // se añade al intent el asunto\n i.putExtra(android.content.Intent.EXTRA_SUBJECT, R.string.listadelacompra);\n // Se crea la variable text1 que nos ayudara a concatenar los nombres de los atributos de la lista de productos\n String text1 = \"\";\n for (int x = 0 ; x < losproductos.size(); x++ ){\n String text = losproductos.get(x).getNombre() + losproductos.get(x).getDescripcion()+losproductos.get(x).getTalla()+losproductos.get(x).getPrecio()+ \"\\n\";\n text1 = text1 + text;\n }\n // cuando ya concatenamos todos los valores de la lista la añadimos al intent\n i.putExtra(android.content.Intent.EXTRA_TEXT,text1);\n // lanzamos el activity con el titulo\n startActivity(Intent.createChooser(i, getResources().getText(R.string.lista)));\n }", "public void informacionHorastrabajadas(View v){\n Intent ventana = new Intent(Administrador.this,Informacion_Horas_trabajadas.class);\n startActivity(ventana);\n\n }", "public void verTecnicos(View view){\n Intent siguiente = new Intent(verEmpleos.this,verTecnico.class);\n startActivity(siguiente);//se inicia\n }", "@Override\n public void onClick(View view) {\n // Create a new intent\n Intent new_release_intent = new Intent(VietPopActivity.this, MainActivity.class);\n new_release_intent.putExtra(\"uniqueid\",\"from_viet\");\n // Start the new activity\n startActivity(new_release_intent);\n }", "void mChapie(){\n Intent i = new Intent(context,Peminjaman.class);\n context.startActivity(i);\n\n }", "private void showViewToursActivity() {\n//\t\tIntent intent = new intent(this, ActivityViewTours.class);\n System.out.println(\"Not Yet Implemented\");\n }", "@Override\n public void onClick(View view) {\n String moviename=pname4.getText().toString();\n\n Intent i=new Intent(getActivity(), dreamgirltrailer.class);\n i.putExtra(\"name\",moviename);\n startActivity(i);\n }", "public void toBeam(){\n Intent intent = new Intent(this, Beam.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n String moviename=pname5.getText().toString();\n\n Intent i=new Intent(getActivity(), dreamgirltrailer.class);\n i.putExtra(\"name\",moviename);\n startActivity(i);\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tintent = new Intent(SnaDetailsActivity.this,HostActivity.class);\r\n\t\t\t\tintent.putExtra(\"stoid\", stoid);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), MacroEdit.class);\n\n if(macroHandler.getMacro(currentName)!= null) {\n Object[] info = macroHandler.getMacro(currentName);\n ArrayList<String> actions = (ArrayList<String>) info[0];\n ArrayList<Integer> hours = (ArrayList<Integer>) info[1];\n ArrayList<Integer> minutes = (ArrayList<Integer>) info[2];\n int MID = (Integer) info[3];\n intent.putExtra(\"macroToEdit\", currentName); //Optional parameters\n intent.putExtra(\"actions\", actions);\n intent.putExtra(\"hours\", hours);\n intent.putExtra(\"minutes\", minutes);\n intent.putExtra(\"MID\", MID);\n getApplicationContext().startActivity(intent);\n }\n }", "private Intent createIntent() {\n Intent intent = new Intent(this, GameOverActivity.class);\n intent.putExtra(POINTS, presenter.getPoints() + points);\n intent.putExtra(PASS_USER, user);\n intent.putExtra(CORRECT, correct);\n intent.putExtra(INCORRECT, incorrect);\n intent.putExtra(TIME, time);\n intent.putExtra(EVIL, evil);\n intent.putExtra(FRIENDLY, friendly);\n intent.putExtra(\"from\", \"bonus\");\n return intent;\n }", "void mo21580A(Intent intent);", "@Override\n public void onClick(View view) {\n String moviename=pname.getText().toString();\n\n Intent i=new Intent(getActivity(), dreamgirltrailer.class);\n i.putExtra(\"name\",moviename);\n startActivity(i);\n }", "@Override\n public void onClick(View v) {\n Intent p1page = new Intent(v.getContext(), AshmoleanMusuem.class);\n startActivity(p1page);\n }", "@Override\n public void onClick(View view) {\n String moviename=pname2.getText().toString();\n\n Intent i=new Intent(getActivity(), dreamgirltrailer.class);\n i.putExtra(\"name\",moviename);\n startActivity(i);\n }", "@Override\r\n\t public void onClick(View v) {\n\t\tBundle bundle = new Bundle();\r\n\t\tbundle.putString(\"msgKind\", \"TRALOG\");\r\n\t\tbundle.putStringArray(\"msgValue\", traLogStr);\r\n\t\tIntent intent = new Intent(DisplayChoice.this, Display.class);\r\n\t\tintent.putExtras(bundle);\r\n\t\tstartActivity(intent);\r\n\t }", "@Override\n public void onClick(View v) {\n Intent r1page = new Intent(v.getContext(), the_oxford_kitchen.class);\n startActivity(r1page);\n }", "@Override\n public void onClick(View view) {\n String moviename=pname3.getText().toString();\n\n Intent i=new Intent(getActivity(), dreamgirltrailer.class);\n i.putExtra(\"name\",moviename);\n startActivity(i);\n }", "private void iniciarPesquisa(String pesquisa) {\n Intent intent = new Intent(PesquisasRecentesActivity.this, PesquisaActivity.class);\n intent.putExtra(PesquisasRecentesActivity.PESQUISA_KEY, pesquisa);\n intent.putExtra(PesquisasRecentesActivity.LUGARES_KEY, (HashSet) lugares);\n startActivity(intent);\n }", "@Override //Con esto se redirige a la DisplayActivity\n public void onClick(View v) {Intent goToDisplay = new Intent(context,DisplayActivity.class);\n\n /*Se añaden además otros dos parámetros: el id (para que sepa a cuál libro buscar)\n y el título (para ponerlo como título\n */\n goToDisplay.putExtra(\"ID\",id);\n goToDisplay.putExtra(\"titulo\", title);\n\n //Se inicia la DisplayActivity\n context.startActivity(goToDisplay);\n String url=null;\n goToDisplay.putExtra(\"http://http://127.0.0.1:5000/archivo/<ID>\", url);\n\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tIntent intent = new Intent(mContext, ChangeClarityActivity.class);\n\t\t\t\t\tintent.putExtra(ChangeClarityActivity.VIDEOPATH, videoPath);\n\t\t\t\t\tmContext.startActivity(intent);\n\t\t\t\t}", "@Override\r\n public void onClick(View v) {\n Intent i = new Intent(mActivity, ShowPhotoFragment.FullScreenViewActivity.class);\r\n i.putExtra(\"position\", _postion);\r\n mActivity.startActivity(i);\r\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tfinal String info[] = getResources().getStringArray(\r\n\t\t\t\t\t\tR.array.data);\r\n\t\t\t\tintent = new Intent(context, AnActivity.class);\r\n\t\t\t\tintent.putExtra(\"plane1\", R.drawable.an225ru);\r\n\t\t\t\tintent.putExtra(\"plane2\", R.drawable.an124ru);\r\n\t\t\t\tintent.putExtra(\"plane3\", R.drawable.an70ru);\r\n\t\t\t\tintent.putExtra(\"plane4\", R.drawable.an32ru);\r\n\t\t\t\tintent.putExtra(\"plane5\", R.drawable.an22ru);\r\n\t\t\t\tintent.putExtra(\"plane6\", R.drawable.an12ru);\r\n\t\t\t\tintent.putExtra(\"data\", info);\r\n\t\t\t\tintent.putExtra(\"switch\", 0);\r\n\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "private void launchComp(String name) {\n Intent comp = new Intent(homeActivity.this, cardsMenu.class);\n Bundle b = new Bundle();\n b.putString(\"key\",\"computer\"); //pass along that this will be a single player multigame\n b.putString(\"name\",name); //pass the player's name\n // b.putString(\"State\", State); //pass along the game type\n comp.putExtras(b);\n startActivity(comp);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n\t\t\t\t// 下面这句指定调用相机拍照后的照片存储的路径\n\t\t\t\tintent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File(Environment.getExternalStorageDirectory(), \"xiaoma.jpg\")));\n\t\t\t\tstartActivityForResult(intent, 2);\n\t\t\t\tmenu_mine.setVisibility(View.GONE);\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\t//intent.putExtra(\"path\",path);\n\t\t\t\tintent.setClass(MainInterfceActivity.this, PersonalInfoActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View v) {\n if(v == mInspiration) {\n Intent intent = new Intent(getActivity(), InspirationActivity.class);\n startActivity(intent);\n }\n if(v == mLife) {\n Intent intent = new Intent(getActivity(), LifeActivity.class);\n startActivity(intent);\n }\n if(v == mLove) {\n Intent intent = new Intent(getActivity(), LoveActivity.class);\n startActivity(intent);\n }\n if(v == mFunny) {\n Intent intent = new Intent(getActivity(), FunnyActivity.class);\n startActivity(intent);\n }\n if(v == mPositive) {\n Intent intent = new Intent(getActivity(), PositiveActivity.class);\n startActivity(intent);\n }\n if(v == mWisdom) {\n Intent intent = new Intent(getActivity(), WisdomActivity.class);\n startActivity(intent);\n }\n if(v == mMotivation) {\n Intent intent = new Intent(getActivity(), LoaActivity.class);\n startActivity(intent);\n }\n if(v == mMoney) {\n Intent intent = new Intent(getActivity(), WealthActivity.class);\n startActivity(intent);\n }\n if(v == mSuccess) {\n Intent intent = new Intent(getActivity(), SuccessActivity.class);\n startActivity(intent);\n }\n if(v == mFriendship) {\n Intent intent = new Intent(getActivity(), FriendshipActivity.class);\n startActivity(intent);\n }\n if(v == mHappiness) {\n Intent intent = new Intent(getActivity(), HappinessActivity.class);\n startActivity(intent);\n }\n if(v == mHope) {\n Intent intent = new Intent(getActivity(), HopeActivity.class);\n startActivity(intent);\n }\n }", "public void sendMessage(View view) {\n\n Log.d(DEBUG, \"About to create intent with John 3:16\");\n\n Intent intent = new Intent(this, DisplayScripturesActivity.class);\n\n EditText editText1 = (EditText) findViewById(R.id.book);\n String bookValue = editText1.getText().toString();\n\n EditText editText2 = (EditText) findViewById(R.id.chapter);\n String chapterValue = editText2.getText().toString();\n\n EditText editText3 = (EditText) findViewById(R.id.verse);\n String verseValue = editText3.getText().toString();\n\n //put all extra info in the intent\n intent.putExtra(SCRIPTURE_BOOK, bookValue);\n intent.putExtra(BOOK_CHAPTER, chapterValue);\n intent.putExtra(CHAPTER_VERSE, verseValue);\n startActivity(intent);\n }", "public void showhardrank(View v){\n Intent intent = new Intent(Activity_login.this, HardRank.class);\n startActivity(intent);\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tIntent i = new Intent(MainActivity.this, OgleAksam.class);\n\t\t\ti.putExtra(\"GosterimTipi\", 2);\n\t\t\tstartActivity(i);\n\t\t}", "public void VolverVentana(View view){\n Intent volver = new Intent(this, MainActivity.class);\n startActivity(volver);\n }", "@Override\n public void onClick(View v) {\n Referinta.Verset = v.getId();\n\n Intent intent = new Intent(getContext(), TextActivity.class);\n // 2. put key/value data\n\n // intent.putExtra(\"referinta\", referinta );\n // intent.putExtra(\"message\", capitole[1]);\n\n // 3. or you can add data to a bundle\n\n\n // 5. start the activity\n startActivity(intent);\n // finish();\n\n }", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(getActivity(), DetailActivity.class);\n intent.putExtra(\"NAME\", (String) mNameTextView.getText());\n intent.putExtra(\"REALNAME\", (String) mRealNameTextView.getText());\n intent.putExtra(\"URL\", (String) mHero.getUrl());\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n Post info_post = ControladoraPresentacio.getpost_perName(view.getContentDescription().toString());\n ControladoraPosts.settitle(info_post.getTitle());\n ControladoraPosts.setDescripcion(info_post.getDescription());\n ControladoraPosts.setuser(info_post.getUser());\n ControladoraPosts.setid(info_post.getId());\n ControladoraPosts.setdate(info_post.getTime());\n //Nos vamos a la ventana de VisualizeListOUser\n Intent intent = new Intent(PersonalPosts.this, VisualizePosts.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n //finish();\n }", "public void gotoUitgaven(View v){\n Intent uitgaven;\n uitgaven = new Intent(getBaseContext(),UitgavenActivity.class);\n startActivity(uitgaven);\n }", "public void vistaApoyo (View view){\n Intent interfaz = new Intent(this,MainApoyo.class);\n Intent enviar = new Intent( view.getContext(), MainNivelesReto.class );\n //Metodo que me permite crear variable\n enviar.putExtra(\"IdCategoria\", getIntent().getStringExtra(\"IdCategoria\") );\n startActivity(interfaz);\n finish();\n }", "public void showPopUp(View v) {\n int n = (int) v.getTag();\n\n // Переход на FullScreenImageActivity\n Intent intent = new Intent(getActivity(), FullScreenImageActivity.class);\n\n intent.putExtra(\"Bitmap\", product.getImages());\n intent.putExtra(\"position\", n);\n\n // Передаем в FullScreenImageActivity bitmap картинки и стартуем\n// intent.putExtra(\"Bitmap\", product.getImage(n));\n\n startActivity(intent);\n }", "public void onClick(View v) {\n \tIntent intent = new Intent(HistoryActivity.this, PrewarexpansionActivity.class);\n \t \tstartActivity(intent);\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tfinal String info2[] = getResources().getStringArray(\r\n\t\t\t\t\t\tR.array.data2);\r\n\t\t\t\tintent = new Intent(context, AnActivity.class);\r\n\t\t\t\tintent.putExtra(\"plane1\", R.drawable.an158ru);\r\n\t\t\t\tintent.putExtra(\"plane2\", R.drawable.an148ru);\r\n\t\t\t\tintent.putExtra(\"plane3\", R.drawable.an140ru);\r\n\t\t\t\tintent.putExtra(\"plane4\", R.drawable.an74ru);\r\n\t\t\t\tintent.putExtra(\"plane5\", R.drawable.an74tk300ru);\r\n\t\t\t\tintent.putExtra(\"plane6\", R.drawable.an38ru);\r\n\t\t\t\tintent.putExtra(\"data\", info2);\r\n\t\t\t\tintent.putExtra(\"switch\", 6);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(Visa.this,Recepit.class);\n startActivity(intent);\n\n\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.imagen1:\n\t\t\t\t\tToast toast = new Toast(this);\n\t\t\t\t\tToast.makeText(this, \"le diste clic a la imagen\",Toast.LENGTH_LONG).show();\n\t\t\tbreak;\n\t\tcase R.id.boton:\n\t\t\t\t\tString tx = et1.getText().toString();\n\t\t\t\t\ttv1.setText(tx);\n\t\t\tbreak;\n\t\t\t\n\t\tcase R.id.boton2:\n\t\t\t\t\tAnimation rotacion;\n\t\t\t\t\trotacion = AnimationUtils.loadAnimation(this,R.anim.rotate);\n\t\t\t\t\trotacion.reset();\n\t\t\t\t\timagen.startAnimation(rotacion);\n\t\t\tbreak;\t\t\n\t\tcase R.id.boton3:\n\t\t\tString nombre= et1.getText().toString();\n\t\t\tIntent intent = new Intent(\"android.intent.action.VENTANA2\");\n\t\t\tintent.putExtra(\"nombrenuevo\", nombre);\n\t\t\tstartActivity(intent);\n\t\t\n\t\t\tbreak;\t\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), DetailActivity.class)\n .putExtra(\"title\", model.getMovieName())\n .putExtra(\"vote_average\", model.getVotes() + \"\")\n .putExtra(\"overview\", model.getMovieOverview())\n .putExtra(\"popularity\", model.getMoviePopularity() + \"\")\n .putExtra(\"release_date\", model.getMovieReleaseDate())\n .putExtra(\"vote_count\", model.getMovieVoteCount())\n .putExtra(\"Picture\", model.getMoviePoster());\n\n startActivity(intent);\n\n }", "private void menuArmadura(){\n System.out.println(\"Escolha o local em que queira colocar a uma armadura:\");\n System.out.println(\"1 - Cabeça\");\n System.out.println(\"2 - Tronco\");\n System.out.println(\"3 - Pernas\");\n System.out.println(\"4 - Pés\");\n System.out.println(\"0 - Sair\");\n }", "public void figura1(View view){\n Intent figura1 = new Intent(this,Figura1.class);\n startActivity(figura1);\n }", "@OnClick(R.id.ivPosterPortrait)\n public void onClick(View v) {\n if (mMainActivity.ismTwoPane()) {\n Bundle arguments = new Bundle();\n arguments.putParcelable(MovieDetailFragment.ARG_MOVIE, mItem);\n Fragment fragment = new MovieDetailFragment();\n fragment.setArguments(arguments);\n mMainActivity.getSupportFragmentManager().beginTransaction()\n .replace(R.id.movie_detail_container, fragment)\n .commit();\n lastClicked = position;\n } else {\n //Starting Details Activity\n Context context = v.getContext();\n Intent intent = new Intent(context, MovieDetailActivity.class);\n intent.putExtra(MovieDetailFragment.ARG_MOVIE, mItem);\n context.startActivity(intent);\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(mContext, FullScreenActivity.class);\n\t\t\t\tintent.putExtra(\"videoPathType\", \"4\");\n\t\t\t\tintent.putExtra(\"type\", \"videoFragment\");\n\t\t\t\tstartActivity(intent);\n\t\t\t\tgetActivity().finish();\n\t\t\t}", "public void volver(View view) {\n Intent cambioUs = new Intent(this, MenuAdmin.class);\n startActivity(cambioUs);\n }", "public void onClickImgBtnHablar_(View v) {\n Intent intentActionRecognizeSpeech = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\n // Establece el idioma, predeterminado Ingles Ussa\n intentActionRecognizeSpeech.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, \"us-US\");\n\n // Inicia la actividad de reconocimiento de voz\n try {\n startActivityForResult(intentActionRecognizeSpeech, RECOGNIZE_SPEECH_ACTIVITY);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getApplicationContext(), \"¡Opps! Su dispositivo no es compatible con el reconocimiento de voz.\", Toast.LENGTH_SHORT).show();\n }\n }", "public void onClick(DialogInterface arg0, int arg1) {\n Intent intent = new Intent(getActivity(), RecordWorkoutRoutine.class);\n //When we start the new intent we want to pass the name of the Routine from the list\n intent.putExtra(ROUTINE_ITEM_NAME, myPrivateRoutinesList.get(pos));\n startActivity(intent);\n }", "public void Listagrupo(View v2){\n Intent i = new Intent(this, grupos.class );\n startActivity(i);\n }", "public void figura2(View view){\n Intent figura2 = new Intent(this,Figura2.class);\n startActivity(figura2);\n }", "@Override\n public void onClick(View v) {\n Intent p2page = new Intent(v.getContext(), ChristChurch.class);\n startActivity(p2page);\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tIntent intent = new Intent();\n\t\tString ruta = String.valueOf(v.getTag());\n\t\tintent.putExtra(\"ruta\", ruta);\n\t\tintent.setClass(this.activity, FichaActivity.class);\n\t\tthis.activity.startActivity(intent);\n\n\t}", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tIntent i = new Intent(MainActivity.this, OgleAksam.class);\n\t\t\ti.putExtra(\"GosterimTipi\", 1); //sonraki activity'e yemeklerin gosterim seklini aktariyor\n\t\t\tstartActivity(i);\n\t\t}", "@Override\n public void onClick(View v) {\n Intent intent = ChorePagerActivity.newIntent(getActivity(), mChore.getId());\n //getActivity gets the hosting activity of this fragment (ChoreListActivity),\n // passes host activity and chores ID to new Intent in ChoreActivity\n startActivity(intent); //start ChoreActivity on click\n }", "void mstrange(){\n Intent i = new Intent(context,Pengembalian.class);\n context.startActivity(i);\n }", "public void cariGambar(View view) {\n Intent i = new Intent(this, CariGambar.class);\n //memulai activity cari gambar\n startActivity(i);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(mContext, FullScreenActivity.class);\n\t\t\t\tintent.putExtra(\"videoPathType\", \"2\");\n\t\t\t\tintent.putExtra(\"type\", \"videoFragment\");\n\t\t\t\tstartActivity(intent);\n\t\t\t\tgetActivity().finish();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent it = new Intent(ManaInsertActivity.this,ManaMediActivity.class); \n it.putExtras(it);\n startActivity(it);\n\t\t\t}", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(this, Game.class);\n intent.putExtra(\"MODE\",isInvert);\n\n int id = view.getId();\n if(id == easy.getId()){\n intent.putExtra(\"FLAG\", 0);\n startActivity(intent);\n }\n\n if (id == medium.getId()){\n intent.putExtra(\"FLAG\", 1);\n startActivity(intent);\n }\n\n if (id == expert.getId()){\n intent.putExtra(\"FLAG\", 2);\n startActivity(intent);\n }\n if (id == statistics.getId()){\n startActivity(new Intent(this, ScoreActivity.class));\n }\n }", "public void showShelter(View view) throws IOException{\n Intent goShelter = new Intent(this,ShelterInfoActivity.class);\n goShelter.putExtra(\"shelterId\",shelterId);\n startActivity(goShelter);\n }", "public void vistaInterfazNiveles (View view){\n Intent interfaz = new Intent(this,MainActivity.class);\n //Intancio el Objeto Intent que necesito enviar la información\n Intent enviar = new Intent( view.getContext(), MainNivelesReto.class );\n //Metodo que me permite crear variable\n enviar.putExtra(\"IdCategoria\", getIntent().getStringExtra(\"IdCategoria\") );\n startActivity(interfaz);\n finish();\n }", "public void mangoButton(View view){\n Intent intent=new Intent(PM_L1.this,PM_L1_G2.class);\n startActivity(intent);\n\n }", "@Override\n public void onClick(View v) {\n Intent myIntent = new Intent(ChooseParty.this, HelpActivity.class);\n // myIntent.putExtra(\"key\", value); //Optional parameters\n myIntent.putExtra(\"username\", mUsername);\n startActivity(myIntent);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(mContext, FullScreenActivity.class);\n\t\t\t\tintent.putExtra(\"videoPathType\", \"3\");\n\t\t\t\tintent.putExtra(\"type\", \"videoFragment\");\n\t\t\t\tstartActivity(intent);\n\t\t\t\tgetActivity().finish();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(MyPictureActivity.this,SetInfo.class);\n\t\t\t\tintent.putExtra(\"ext\", \"client\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n public void onClick(View v) {\n Intent it = new Intent(Intent.ACTION_VIEW);\n Uri uri = Uri.parse(\"http://\"+ PostUrl.Media+\":8080/upload/\"+item.getMediaPath().get(0).split(\"\\\\.\")[0]+\".mp4\");\n it.setDataAndType(uri, \"video/mp4\");\n context.startActivity(it);\n\n }", "public void Volgende(Intent intent){\r\n\r\n startActivity(intent);\r\n\r\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tfinal String info3[] = getResources().getStringArray(\r\n\t\t\t\t\t\tR.array.data3);\r\n\t\t\t\tintent = new Intent(context, AnActivity.class);\r\n\t\t\t\tintent.putExtra(\"plane1\", R.drawable.an2ru);\r\n\t\t\t\tintent.putExtra(\"plane2\", R.drawable.an3ru);\r\n\t\t\t\tintent.putExtra(\"plane3\", R.drawable.an6ru);\r\n\t\t\t\tintent.putExtra(\"plane4\", R.drawable.an14ru);\r\n\t\t\t\tintent.putExtra(\"plane5\", R.drawable.an32pru);\r\n\t\t\t\tintent.putExtra(\"plane6\", R.drawable.an74ru);\r\n\t\t\t\tintent.putExtra(\"data\", info3);\r\n\t\t\t\tintent.putExtra(\"switch\", 12);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "public void gotoSharp(View v) {\n Intent intent = new Intent(chords.this, sharp.class);\n startActivity(intent);\n }", "public void phonesister(View v){\n \tIntent intent =new Intent();//意图\n \tintent.setAction(MediaStore.ACTION_IMAGE_CAPTURE);//设置拍照意图\n \tstartActivity(intent);//开启意图\t\t\n }", "public void onClick(View v) {\n \tIntent intent = new Intent(HistoryActivity.this, PostwarexpansionActivity.class);\n \t \tstartActivity(intent);\n }", "@Override\n public void onClick(View view)\n {\n Intent sendIntent = new Intent();\n // La accion es un envio a una aplicacion externa\n sendIntent.setAction(Intent.ACTION_SEND);\n // Enlace que vamos a enviar\n sendIntent.putExtra(Intent.EXTRA_TEXT, direccionAplicacion);\n // Se va a enviar un texto plano\n sendIntent.setType(\"text/plain\");\n\n // manda mensaje si no tiene aplicacion con la que compartir en el sistema\n Intent shareIntent = Intent.createChooser(sendIntent, \"no tengo aplicacion para compartir en emulador\");\n // Inicia la actividad compartir enlace de la noticia\n getContext().startActivity(shareIntent);\n }", "public void moveActivity(Class<?> kelas, Bundle bundle){\n Intent i = new Intent(context,kelas);\n i.putExtras(bundle);\n context.startActivity(i);\n }", "@Override\r\n\t public void onClick(View v) {\n\t\tBundle bundle = new Bundle();\r\n\t\tbundle.putString(\"msgKind\", \"SMSLOG\");\r\n\t\tbundle.putStringArray(\"msgValue\", smsLogStr);\r\n\t\tIntent intent = new Intent(DisplayChoice.this, Display.class);\r\n\t\tintent.putExtras(bundle);\r\n\t\tstartActivity(intent);\r\n\t }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(mContext, FullScreenActivity.class);\n\t\t\t\tintent.putExtra(\"videoPathType\", \"1\");\n\t\t\t\tintent.putExtra(\"type\", \"videoFragment\");\n\t\t\t\tstartActivity(intent);\n\t\t\t\tgetActivity().finish();\n\t\t\t}", "public void matriculaEscolar(View view){\n Intent mat = new Intent(this, MatriculaEscolar.class);\n startActivity(mat);\n }", "public void onClick(View v) {\n switch (v.getId()) {\n //button de listveiw simple\n case R.id.button1:\n Intent enviamentSimple = new Intent(Activitat_Principal.this, ListViewSimple.class);\n startActivity(enviamentSimple);\n break;\n //listview complex boto\n case R.id.button2:\n\n Intent enviamentComplex = new Intent(Activitat_Principal.this, ListViewComplex.class);\n\n startActivity(enviamentComplex);\n break;\n }\n }", "public void onClickAddPhone(View v) {\n Intent intent = new Intent(CatalogActivity.this, EditorActivity.class);\n startActivity(intent);\n }", "public void series (View vista){\n\n Intent series = new Intent(this,ActivitySeries.class);\n startActivity (series);\n\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent i = new Intent(Akun.this, Riwayat_pemesanan.class);\n\t\t\t\tstartActivity(i);\n\t\t\t}", "public void playerView(View view) {\n PlayerCapabilityFacade pcf = new PlayerCapabilityFacade();\n Intent intent;\n if(pcf.isTournamentActive()) {\n intent = new Intent(ModeSelectionActivity.this, PlayerTourneyActivity.class);\n } else {\n intent = new Intent(ModeSelectionActivity.this, PlayerTotalsActivity.class);\n }\n\n startActivity(intent);\n\n //else onclick go to PlayerTourneyActivity\n }", "@Override\n public void onDetailsClick(int position) {\n Intent intent = new Intent(getActivity(), MovieViewActivity.class);\n intent.putExtra(\"movieName\", memoirs.get(position).getMovieName());\n intent.putExtra(\"userId\", userId);\n intent.putExtra(\"from\", \"memoir\");\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, CardapioActivity.class);\n startActivity(intent);\n }", "public void mostrarTurnos(String act, String sig);" ]
[ "0.57824904", "0.568164", "0.5661087", "0.56236875", "0.5595401", "0.5591518", "0.5496658", "0.54863435", "0.54570866", "0.5450434", "0.54213935", "0.5407629", "0.53870785", "0.5370112", "0.53475636", "0.5343468", "0.53431123", "0.53408515", "0.5331768", "0.5313453", "0.52893305", "0.52885", "0.5283356", "0.5273398", "0.52710485", "0.5261019", "0.5260368", "0.5259116", "0.52573687", "0.52549875", "0.5253293", "0.52529496", "0.5237197", "0.52283317", "0.5225172", "0.52217466", "0.5208501", "0.52004415", "0.51969814", "0.5189461", "0.51855016", "0.5174249", "0.5160841", "0.51512444", "0.5149814", "0.5145488", "0.5144116", "0.51367867", "0.5131396", "0.51300424", "0.5127293", "0.51237106", "0.5122741", "0.5121258", "0.51178104", "0.5113022", "0.5111738", "0.51064706", "0.51004106", "0.5099863", "0.5098641", "0.50969535", "0.5093876", "0.5087765", "0.5085478", "0.5084687", "0.5079483", "0.507903", "0.5078209", "0.50730276", "0.506994", "0.5069518", "0.5067976", "0.5065187", "0.50651383", "0.5063111", "0.5048171", "0.5044649", "0.50419647", "0.5041032", "0.5040729", "0.5034951", "0.5034816", "0.5031981", "0.50300246", "0.5024039", "0.5023244", "0.50185287", "0.50163203", "0.50159377", "0.501528", "0.50107735", "0.50102574", "0.5008396", "0.5002859", "0.5002828", "0.49980074", "0.4993041", "0.49886224", "0.49873465" ]
0.6955415
0
/ Gestiona el intent que se recibe en el arranque o la llamada a onNewIntent de la actividad
private void gestionaIntent(Intent intent) { if (Intent.ACTION_VIEW.equals(intent.getAction())) { /*** Click en una sugerencia de searchview... (no soportado aún) ***/ } else if (Intent.ACTION_SEARCH.equals(intent.getAction())) { /*** Ejecutar una búsqueda ***/ // Extrae la cadena desde el Intent String query_string = intent.getStringExtra(SearchManager.QUERY); // Si la cadena tiene menos de MIN_TAM... caracteres no se hace nada if ( (query_string == null) || (query_string.length() < MIN_TAM_BUSQUEDA) ) { return; } // Ejecuta la búsqueda en segundo plano busqueda = new TareaBusqueda(buscador, this); if (busqueda !=null) { busqueda.execute(query_string); } // Actualiza los botones de sugerencias actualizaSugerencias(); } else if (INTENT_ACTION.equals(intent.getAction())) { /*** Cambio de orientación ***/ // Mantiene el contenido de la searchview wi_search.setQuery( intent.getCharSequenceExtra(INTENT_CONTENT_WISEARCH), false); } else { /*** No se hace nada ***/ } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onNewIntent(Intent intent){\n handleIntent(intent);\n }", "@Override\n public void onNewIntent(Intent intent) {\n }", "public void onNewIntent(Intent intent) {\n }", "@Override\n protected void onNewIntent(Intent intent) {\n }", "@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n handleIntent(intent);\n }", "@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n }", "@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n }", "@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n }", "@Override\n public void onNewIntent(Activity activity, Intent data) {\n }", "@Override\r\n public void onNewIntent(Intent intent){\r\n super.onNewIntent(intent);\r\n\r\n //changes the intent returned by getIntent()\r\n setIntent(intent);\r\n }", "@Override\n\tpublic void onNewIntent(Intent intent) {\n\t\tsetIntent(intent);\n\t}", "@Override\n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n handleIntent(intent);\n }", "public void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n handleIntent(intent);\n }", "@Override\n\tprotected void onNewIntent(Intent intent) {\n\t\tsuper.onNewIntent(intent);\n\t\tsetIntent(intent);\n\t}", "@Override\r\nprotected void onNewIntent(Intent intent) {\n\tsuper.onNewIntent(intent);\r\nSystem.out.println(\"onNewIntent\");\r\n}", "@Override\n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n Log.e(TAG, \"onNew Intent \" + this.getClass().getName());\n }", "@Override\n protected void onHandleIntent(Intent intent) {\n\n }", "@Override\n\tprotected void onHandleIntent(Intent arg0) {\n\t\t\n\t}", "public void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n initParams(intent);\n }", "@Override\n\tprotected void onHandleIntent(Intent intent) {\n\n\t}", "private void handleIntent(Intent intent, boolean isOnNewIntent) {\n handleIntent(intent.getAction(), intent.getExtras(), intent.getData(), isOnNewIntent);\n }", "@Override \n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent); \n \n initData();\n }", "public void onNewIntent(Intent intent) {\n this.eventDelegate.onNewIntent(intent);\n }", "@Override\n protected void onHandleIntent(Intent workIntent) {\n }", "void mo21580A(Intent intent);", "@Override\n\t\t\t\tpublic void onNewIntent(TiRootActivity activity, Intent intent)\n\t\t\t\t{\n\t\t\t\t\tTiActivity.this.onNewIntent(intent);\n\t\t\t\t}", "void startNewActivity(Intent intent);", "@Override\r\n\tprotected void onNewIntent(Intent intent) {\n\t\tXSDK.getInstance().onNewIntent(intent);\r\n\t\tsuper.onNewIntent(intent);\r\n\t}", "public void onNewIntent(Intent intent) {\n AppMethodBeat.m2504i(16653);\n super.onNewIntent(intent);\n setIntent(intent);\n if (this.ggF != null) {\n this.ggF.dismiss();\n this.ggF = null;\n }\n if (!anB()) {\n finish();\n }\n AppMethodBeat.m2505o(16653);\n }", "@Override\r\n public void onNewIntent(Intent intent){\r\n \t\r\n \tthis.activateExamBoard(intent);\r\n }", "protected abstract Intent getIntent();", "@Override\n\tpublic void onNewIntent(Intent intent) {\n\t\tsuper.onNewIntent(intent);\n\t\tfinal Uri uri = intent.getData();\n\t\tpreferencias = this.getSharedPreferences(\"TwitterPrefs\", MODE_PRIVATE);\n\t\n\t\tif (uri != null && uri.toString().indexOf(TwitterData.CALLBACK_URL) != -1) {\n\t\t\tLog.i(\"MGL\", \"Callback received : \" + uri);\n\t\t\n\t\t\tnew RetrieveAccessTokenTask(this, getConsumer(), getProvider(),\n\t\t\t\t\tpreferencias).execute(uri);\n\t\t}\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n intent = getIntent();\n }", "Intent createNewIntent(Class cls);", "public void onNewIntent(Intent intent) {\n C0938a.m5002a(\"SR/SoundRecorder\", \"~~~~~~~~~~~~~~~~~~~~~~~~~~~~onNewIntent\");\n m6632c(intent);\n }", "@Override\n\tprotected void onNewIntent(Intent intent)\n\t{\n\t\tif (checkIntentForSearch(intent))\n\t\t\tfillData();\n\t}", "public void onNewIntent(Intent intent) {\n AppMethodBeat.i(79441);\n super.onNewIntent(intent);\n setIntent(intent);\n if (this.ggF != null) {\n this.ggF.dismiss();\n this.ggF = null;\n }\n aVh();\n AppMethodBeat.o(79441);\n }", "protected void onNewIntent(android.content.Intent intent) {\n java.lang.String referrer = intent.getStringExtra(\"referrer\");\n android.util.Log.d(\"TRACKING\", \"Reffff: \" + referrer);\n android.content.Intent i = new android.content.Intent();\n i.setAction(\"RRR_AAA_FFF\");\n i.putExtra(\"r\", referrer);\n this.context.sendBroadcast(i);\n super.onNewIntent(intent);\n }", "@Override\n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n //get the retrieved data\n Uri twitURI = intent.getData();\n //make sure the url is correct\n if (twitURI != null && twitURI.toString().startsWith(TWIT_URL)) {\n //is verifcation - get the returned data\n String oaVerifier = twitURI.getQueryParameter(\"oauth_verifier\");\n new RetrieveAuthData().execute(oaVerifier);\n }\n }", "@Override\n\tprotected void getIntentData(Bundle savedInstanceState) {\n\n\t}", "public void intentHandler() {\n Intent intent = getIntent();\n if (intent.hasExtra(\"DATA\")) {\n data = (String[]) getIntent().getSerializableExtra(\"DATA\");\n recievedPosition = (int) getIntent().getSerializableExtra(\"POS\");\n if(recievedPosition != 0){\n IOException e = new IOException();\n try {\n itemArrAdapt.updateItem(recievedPosition, data, e);\n this.setPrefs();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n } else {\n // Start Normal\n }\n }", "@Override\r\n\tprotected void onNewIntent(Intent intent) {\n\t\tsuper.onNewIntent(intent);\r\n\t\tString message = intent.getStringExtra(PARAM_NAME_CALLER_MESSAGE);\r\n\t\t\r\n\t\tmessageView.setText(\"onNewIntent : caller message - \" + message + \"\\n\"\r\n\t\t\t\t+ \"activity \" + this.toString());\r\n\t}", "@Override\n protected void onNewIntent(Intent intent) {\n Log.d(TAG, getString(R.string.debug_key) + \"TagWriter intent filter success\");\n this.setIntent(intent);\n }", "@Override\r\n\tprotected void onNewIntent(Intent intent) {\n\t\tUtils.printLog(TAG, \"onNewIntent\");\r\n\t\tif (!getPlayList(intent)) {\r\n\t\t\texitPlayforNoPlayList();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (mVideoContrl != null && mVideoContrl.isFinishInit()) {\r\n\t\t\tmVideoContrl.setFinishInit(false);\r\n\t\t\tisOnNewIntent = true;\r\n\t\t\tmVideoContrl.releaseMediaPlayer();\r\n\t\t}\r\n\t\tsuper.onNewIntent(intent);\r\n\t\tUtils.printLog(TAG, \"onNewIntent end\");\r\n\t}", "public interface OnNewIntent {\n void onNewIntent(ZHIntent zHIntent);\n}", "@Override\n\tprotected void onNewIntent(Intent intent) {\n\t\tsuper.onNewIntent(intent);\n\t\tToast.makeText(MainActivity.this, \"player\", Toast.LENGTH_SHORT).show();\n\t}", "public void onNewIntent(Intent intent) {\n ArrayList<Object> blaubotComponents = new ArrayList<>();\n blaubotComponents.addAll(getAdapters());\n blaubotComponents.addAll(getConnectionStateMachine().getBeaconService().getBeacons());\n for(Object component : blaubotComponents) {\n if (component instanceof IBlaubotAndroidComponent) {\n final IBlaubotAndroidComponent androidComponent = (IBlaubotAndroidComponent) component;\n androidComponent.onNewIntent(intent);\n }\n }\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t\thandleIntent(getIntent());\r\n\t}", "void start(Intent intent, IntentFilter filter, IIntentCallback callback, IEclipseContext context);", "public void onNewIntent(Intent intent) {\n NetworkDiagnosticsActivity.super.onNewIntent(intent);\n this.mFrom = getIntent().getStringExtra(EXTRA_FROM);\n }", "public void getintent() {\n Intent intent = this.getIntent();\n acceptDetailsModel = (AcceptDetailsModel) intent.getSerializableExtra(\"menu_item\");\n }", "private Intent setUpBackIntent() {\n Intent intent = new Intent();\n\n intent.putExtra(Nanuda.EXTRA_GROUP, group);\n intent.putParcelableArrayListExtra(Nanuda.EXTRA_EXPENSES, expenses);\n\n return intent;\n }", "protected abstract Intent createOne();", "private void handleIntent() {\n // Get the intent set on this activity\n Intent intent = getIntent();\n\n // Get the uri from the intent\n Uri uri = intent.getData();\n\n // Do not continue if the uri does not exist\n if (uri == null) {\n return;\n }\n\n // Let the deep linker do its job\n Bundle data = mDeepLinker.buildBundle(uri);\n if (data == null) {\n return;\n }\n\n // See if we have a valid link\n DeepLinker.Link link = DeepLinker.getLinkFromBundle(data);\n if (link == null) {\n return;\n }\n\n // Do something with the link\n switch (link) {\n case HOME:\n break;\n case PROFILE:\n break;\n case PROFILE_OTHER:\n break;\n case SETTINGS:\n break;\n }\n\n String msg;\n long id = DeepLinker.getIdFromBundle(data);\n if (id == 0) {\n msg = String.format(\"Link: %s\", link);\n } else {\n msg = String.format(\"Link: %s, ID: %s\", link, id);\n }\n\n Toast.makeText(this, msg, Toast.LENGTH_LONG).show();\n }", "@Override\n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n System.out.println(\"Has Match Status : One \");\n if (intent.hasExtra(\"matchStatus\")){\n System.out.println(\"Has Match Status : Two \");\n sessionManager.setRefreshChatFragment(true);\n viewPager.setCurrentItem(2,true);\n }\n }", "@Override\r\n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\r\n Tag tagFromIntent = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);\r\n DataDevice ma = (DataDevice) getApplication();\r\n ma.setCurrentTag(tagFromIntent);\r\n }", "@Override\n public void onMessageReceived(MessageEvent messageEvent) {\n\n if( messageEvent.getPath().equalsIgnoreCase(\"/0\")) {\n String value = new String(messageEvent.getData(), StandardCharsets.UTF_8);\n Intent intent = new Intent(this, MainActivity.class );\n\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n //you need to add this flag since you're starting a new activity from a service\n String string = value;\n String[] parts = string.split(\",\");\n String part1 = parts[0];\n String part2 = parts[1];\n String part3 = parts[2];\n\n\n intent.putExtra(\"0\", part1);\n intent.putExtra(\"1\", part2);\n intent.putExtra(\"2\", part3);\n startActivity(intent);\n } else {\n super.onMessageReceived( messageEvent );\n }\n\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n\n gerarNotificacaoTomarRemedio(context, new Intent(context , MainActivity.class));\n }", "public Intent putIntentToNext(){\n Intent myTobaccoIntent = new Intent(getApplicationContext(), LoginActivity.class);\n myTobaccoIntent.putExtra(AppSettingUtils.EXTRAS_DEVICE_ADDRESS, deviceAddress);\n myTobaccoIntent.putExtra(AppSettingUtils.EXTRAS_SERVER_IP, ipAddress);\n return myTobaccoIntent;\n }", "@Override\n protected void onNewIntent(Intent intent) {\n\n Bundle bundle=intent.getExtras();\n int uniqueFlagID=1;\n if(bundle!=null && (bundle.getInt(\"uniqueAppId\") > 0)) {\n DBAdapter adapter = new DBAdapter(getApplicationContext());\n adapter.getUpdatePresFlag(bundle.getString(\"type\"), bundle.getInt(\"uniqueAppId\"), \"1\");\n String AppointmentMessage1 = bundle.getString(AlarmReceiver.APPOINTMENT_MESSAGE);\n ApplicationBackgroundCheck.showNotificationDialog(\"Appointment Alert\", AppointmentMessage1, \"App\",uniqueFlagID,getApplicationContext(),getFragmentManager());\n }\n if(bundle!=null && (bundle.getInt(\"presUniqueId\") > 0)) {\n DBAdapter adapter = new DBAdapter(getApplicationContext());\n adapter.getUpdatePresFlag(bundle.getString(\"type\"),bundle.getInt(\"presUniqueId\"),\"1\");\n String RenewalMessage = bundle.getString(AlarmReceiver.PRESCRIPTION_RENEWAL_MESSAGE);\n ApplicationBackgroundCheck.showNotificationDialog(\"Prescription Renewal Alert\", RenewalMessage, \"PRES\",uniqueFlagID,getApplicationContext(),getFragmentManager());\n }\n if(bundle!=null && (bundle.getString(\"type\").equals(\"MED_TIT\"))) {\n String TitrationMessage = bundle.getString(AlarmReceiver.MEICATION_TITRATION_MESSAGE);\n ApplicationBackgroundCheck.showNotificationDialog(\"Medication Titration Alert\", TitrationMessage, \"MED_TIT\", uniqueFlagID,getApplicationContext(),getFragmentManager());\n }\n if(bundle!=null && (bundle.getString(\"type\").equals(\"EME\"))) {\n DBAdapter adapter= new DBAdapter(getApplicationContext());\n adapter.getUpdateReminderFlag(bundle.getString(\"type\"), bundle.getInt(\"id\"),\"1\");\n String EmergencyMedicationMessage = bundle.getString(AlarmReceiver.EMERGENCY_MEDICATION_MESSAGE);\n ApplicationBackgroundCheck.showNotificationDialog(\"Emergency Medication Alert\", EmergencyMedicationMessage, \"EME\",uniqueFlagID,getApplicationContext(),getFragmentManager());\n\n }\n\n\n }", "public void onButtonMyReceiverIntent(View view) {\n\n Intent myCustomIntent = new Intent(this, CustomIntent.class);\n startActivity(myCustomIntent);\n\n\n }", "void onCreate(Intent intent);", "void intentHasBeenReceivedThroughTheBroadCast(Intent intent);", "private void getIncomingIntent()\n {\n if(getIntent().hasExtra(\"Title\")\n && getIntent().hasExtra(\"Time\")\n && getIntent().hasExtra(\"Date\")\n && getIntent().hasExtra(\"Duration\")\n && getIntent().hasExtra(\"Location\")\n && getIntent().hasExtra(\"EventDetails\"))\n {\n Title = getIntent().getStringExtra(\"Title\");\n Time = getIntent().getStringExtra(\"Time\");\n Date = getIntent().getStringExtra(\"Date\");\n Duration = getIntent().getStringExtra(\"Duration\");\n Location = getIntent().getStringExtra(\"Location\");\n EventDetails = getIntent().getStringExtra(\"EventDetails\");\n\n setData(Title,Time,Date,Duration,Location,EventDetails);\n }\n }", "public Intent getIntent() {\n return mIntent;\n }", "private void getAndSetIncomingIntent(){\n if (getIntent().hasExtra(\"asso\")) {\n Log.d(TAG, getIntent().getStringExtra(\"asso\"));\n edt_asso_name.setText(getIntent().getStringExtra(\"asso\"));\n }\n if (getIntent().hasExtra(\"school\")) {\n edt_school.setText(getIntent().getStringExtra(\"school\"));\n }\n if (getIntent().hasExtra(\"purpose\")) {\n edt_purpose.setText(getIntent().getStringExtra(\"purpose\"));\n }\n if (getIntent().hasExtra(\"link\")) {\n edt_link.setText(getIntent().getStringExtra(\"link\"));\n }\n if (getIntent().hasExtra(\"type\")) {\n selectedSpinnerType = getIntent().getStringExtra(\"type\");\n }\n\n }", "public void mo1401a(Intent intent) {\n }", "@Override\n public void onClick(View v) {\n\n\n Intent int1 = new Intent(getApplicationContext(), lista.class);\n int1.putExtra(\"variableInvitado\", Sesion);\n startActivity(int1 );\n }", "@Override\n public void onClick(View v) {\n String nombre = editNombre.getText().toString();\n String nacimiento = editNace.getText().toString();\n String telefono = editPhone.getText().toString();\n String email = editEmail.getText().toString();\n String descripcion = editDescript.getText().toString();\n\n //podria pasar los datos en variable directo a cada intent pero queria probar los objetos\n\n nuevo = new Contacto(nombre,telefono,email,nacimiento,descripcion);\n\n\n Intent intento = new Intent(MainActivity.this,ConfirmarActivity.class);\n /*pName es una var de texto que tiene el string \"Nombre\"\n * para mantener nuestro codigo ordenando lo uso asi\n * sin embargo tambien puedo poner por ejemplo \"nombre\"\n y de igual manera pedirlo en confirmarActivity.java*/\n intento.putExtra(getResources().getString(R.string.pName),nuevo.getNombre());\n intento.putExtra(getResources().getString(R.string.pNace), nuevo.getNacimiento());\n intento.putExtra(getResources().getString(R.string.pPhone), nuevo.getTelefono());\n intento.putExtra(getResources().getString(R.string.pEmail), nuevo.getEmail());\n intento.putExtra(getResources().getString(R.string.pDescript), nuevo.getDescript());\n startActivity(intento);\n }", "@Override\n public void handleResult(Intent data) {\n }", "void processIntent(Intent intent) {\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(\n NfcAdapter.EXTRA_NDEF_MESSAGES);\n // only one message sent during the beam\n NdefMessage msg = (NdefMessage) rawMsgs[0];\n // record 0 contains the MIME type, record 1 is the AAR, if present\n menuInfo = new String(msg.getRecords()[0].getPayload());\n \n Toast.makeText(getApplicationContext(), menuInfo, Toast.LENGTH_LONG).show();\n }", "public Intent getIntent() {\n return mIntent;\n }", "public void resolveIntent(Intent intent) {\n String action = intent.getAction();\n if (NfcAdapter.ACTION_TAG_DISCOVERED.equals(action)\n || NfcAdapter.ACTION_NDEF_DISCOVERED.equals(action)) {\n\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);\n NdefMessage[] msgs;\n if (this.status == Status.bereit_zum_schreiben) {\n\n Tag wTAG = (Tag) intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);\n if (wTAG != null) {\n this.setStatus(Status.schreibt);\n writeTag(wTAG, this.createNdefMessage());\n\n }\n }\n }\n\n }", "@Override\r\n\tprotected void onNewIntent(Intent intent) {\n\t\tsuper.onNewIntent(intent);\r\n\t\tboolean isNotifHandeled = MyNotification.handleNotificationIfNeeded(this, intent);\r\n\t\tif(isNotifHandeled){\r\n\t\t\tmHomeFragment.getCardDetails(false);\r\n\t\t}\r\n\t}", "@Override\n public void onReceive(Context context, Intent intent) {\n\n Intent intentMessage = new Intent(context, MessageActivity.class);\n intentMessage.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intentMessage);\n }", "public void Volgende(Intent intent){\r\n\r\n startActivity(intent);\r\n\r\n }", "@Override\r\n protected void onNewIntent(Intent intent) {\r\n\r\n if (Intent.ACTION_SEARCH.equals(intent.getAction())) {\r\n\r\n MergeFragment mergeFragment = (MergeFragment) fragmentManager\r\n .findFragmentByTag(MERGE_FRAGMENT_TAG);\r\n\r\n if (mergeFragment != null) {\r\n mergeFragment.handleIntent(intent);\r\n }\r\n }\r\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(SpecialAttentionActivity.this, AddAttentionActivity.class);\n intent.putExtra(Navigator.EXTRA_ROUTER_ID, GlobleConstant.getgDeviceId());\n intent.putExtra(\"AleadyAttentioned\", (Serializable) mAttentionList);\n startActivityForResult(intent, REQUEST_ADD_ATTENTION);\n }", "protected Intent getStravaActivityIntent()\n {\n return new Intent(this, MainActivity.class);\n }", "@Override\n protected void onNewIntent(Intent intent){\n\n //If the new intent matches the filtered NFC intent, read in the tag's raw data.\n if(NfcAdapter.ACTION_TAG_DISCOVERED.equals(intent.getAction())) {\n mytag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);\n //Display a visible notification showing the object has been found.\n Toast.makeText(this, \"Object Found.\", Toast.LENGTH_LONG).show();\n\n //If the new story is ready to be written\n if (newStoryReady) {\n\n //Initialize success boolean which returns true only if the nfc interaction has been successful\n boolean success = false;\n success = nfcInteraction.doWrite(mytag, tag_data);\n\n //If the nfc write process has succeeded, take the following action\n if (success) {\n\n //Return the value of newStoryReady to false as current ready story has been written\n newStoryReady = false;\n //Stop the clickability of the current range of image views\n disableViewClickability();\n //Stop any active commentary\n commentaryInstruction.stopPlaying();\n //Cancel idleSaveStoryToArchiveHandler which automatically saves the current story to the archive\n cancelIdleStoryCountdown();\n //Reset the camera to a new preview\n resetCamera();\n //Release current camera instance\n releaseCamera();\n// nfcInteraction.Complete(success);\n //Complete the process by navigating to back to HomeScreen activity which will play the new story\n Complete(success);\n } else {\n\n newStoryReady = true;\n }\n }\n }\n }", "@Override\n public void onClick(View v) {\n Intent i = new Intent(ManageTaskActivity.this, AddTaskActivity.class);\n\n //Storing the task list in this intent\n i.putParcelableArrayListExtra(\"TASK_LIST\", _Task);\n i.putParcelableArrayListExtra(\"ACCOUNT_LIST\", _List);\n\n //starting actvity for result to return the list when a task has been added.\n startActivityForResult(i,2);\n\n }", "@Override\n\t\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\t Intent prefIntent = new Intent(intent);\n\t\t\t prefIntent.setComponent(new ComponentName(\n\t\t\t rList.get(arg2).activityInfo.packageName, rList.get(arg2).activityInfo.name));\n\t\t\t Test.this.startActivity(prefIntent);\n\t\t\t\t}", "private static Intent getIntent(Context context, Class<?> cls) {\n Intent intent = new Intent(context, cls);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n return intent;\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(AddMemberActivity.this, CommunityBoardMain.class);\n if (initial_intent.getParcelableExtra(\"sub_parcel\") != null) {\n SubscriptionParcel sub_parcel = initial_intent.getParcelableExtra(\"sub_parcel\");\n intent.putExtra(\"sub_parcel\", sub_parcel);\n }\n startActivity(intent);\n }", "public Intent getTrackedIntent(){\n Intent trackedIntent = new Intent(context, PPOpenTrackerActivity.class);\n trackedIntent.putExtra(PushPrime.NOTIFICATION, this);\n return trackedIntent;\n }", "protected Intent getIntentForChangePresenter() {\n \t// Destino: Presentador H\n \tIntent intent = new Intent(PresentadorV_main.this,\n \t\t\tPresentadorH_main.class);\n\t\tintent.setAction(INTENT_ACTION);\t\n\t\t// Guarda en el intent el contenido de la searchview\n\t\t// ojo: es tipo CharSequence\t\t\n\t\tintent.putExtra(INTENT_CONTENT_WISEARCH, wi_search.getQuery());\n \treturn intent;\n }", "@Override\n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n String payload = null;\n if (intent != null && NfcAdapter.ACTION_NDEF_DISCOVERED.equals(intent.getAction())) {\n Parcelable[] rawMessages = intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);\n if (rawMessages != null) {\n NdefMessage[] messages = new NdefMessage[rawMessages.length];\n messages[0] = (NdefMessage) rawMessages[0];\n NdefRecord rec = messages[0].getRecords()[0];\n payload = new String(rec.getPayload());\n //Toast.makeText(getApplicationContext(),payload,Toast.LENGTH_LONG).show();\n ServerComm serverComm = new ServerComm();\n String result=\"\";\n try {\n result = serverComm.execute(\"1\", MainActivity.user.getUserId(), MainActivity.user.getPassword(), payload).get();\n }catch (InterruptedException ex){\n Toast.makeText(getApplicationContext(),\"Attendance not registered, try again\",Toast.LENGTH_SHORT).show();\n return;\n }catch (ExecutionException ex){\n Toast.makeText(getApplicationContext(),\"Attendance not registered, try again\",Toast.LENGTH_SHORT).show();\n return;\n }\n\n if(result==null){\n Toast.makeText(getApplicationContext(),\"Check your Internet Connection\",Toast.LENGTH_LONG).show();\n return;\n }\n\n if(result.equalsIgnoreCase(\"successful\")){\n Toast.makeText(getApplicationContext(),\"Attendance Registered successfully!\",Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(getApplicationContext(),\"Attendance not registered, try again\",Toast.LENGTH_SHORT).show();\n }\n\n }\n }\n }", "@Override\r\n public void onClick(View v) {\n String robodata=\"robot data\";\r\n String stringdata = \"throwing\";\r\n Intent mysqlintent = new Intent(collect_Data.this,mysql.class); //defining the intent.\r\n mysqlintent.putExtra(robodata, stringdata); //putting the data into the intent\r\n startActivity(mysqlintent); //launching the mysql activity\r\n }", "@Override\n public IBinder onBind(Intent arg0) {\n intent=arg0;\n return null;\n }", "public void onIntentReceived(final String payload) {\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n if (intent.getAction().equals(\"SELECTSTUDIO\")) {\n Studiotype startingstudio = Studiotype.valueOf(intent.getStringExtra(\"launchstudio\"));\n switch (startingstudio) {\n case RiskFactor:\n Intent i = new Intent(context, RiskFactor.class);\n i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(i);\n return;\n case Product:\n case Simulation:\n case Scenario:\n case Dashboard:\n Log.w(\"kek\", \"lololol unimplemented hohohoho\");\n return;\n default:\n Log.w(\"kek\", \"not even a choice bro\");\n return;\n }\n }\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Bundle b = new Bundle(); //passing values to other activity\n b.putString(\"IP_position\", String.valueOf(position));\n //b.putStringArrayList(\"arrayIP\", peersStr);\n Intent i=new Intent(NeighbourAdd.this, MsgSenderActivity.class);\n i.putExtras(b);\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK); //caller activity eliminated\n startActivity(i);\n\n\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(AddMemberActivity.this, Subscriptions.class);\n if (initial_intent.getParcelableExtra(\"sub_parcel\") != null) {\n SubscriptionParcel sub_parcel = initial_intent.getParcelableExtra(\"sub_parcel\");\n intent.putExtra(\"sub_parcel\", sub_parcel);\n }\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(AddMemberActivity.this, Subscriptions.class);\n if (initial_intent.getParcelableExtra(\"sub_parcel\") != null) {\n SubscriptionParcel sub_parcel = initial_intent.getParcelableExtra(\"sub_parcel\");\n intent.putExtra(\"sub_parcel\", sub_parcel);\n }\n startActivity(intent);\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\t\tintentToClass(getApplicationContext(), GlassRoomActivity.class);\n\t\t\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n String deliveryOrder=order+\"\\t\"+noOfPlates;\n arrayList.add(deliveryOrder);\n Intent intent=new Intent(Confirm.this,DeliveryAddress.class);\n intent.putExtra(\"mylist\",arrayList);\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Cursor cursor = ResolverHelper.getData((int) id, MainListaActivity.this.getContentResolver());\n Bundle bundle = new Bundle();\n while(cursor.moveToNext()){\n bundle.putString(Constants._ID,cursor.getString(0));\n bundle.putString(Constants.PRODUCENT,cursor.getString(1));\n bundle.putString(Constants.MODEL_NAME,cursor.getString(2));\n bundle.putString(Constants.ANDR_VER,cursor.getString(3));\n bundle.putString(Constants.WWW,cursor.getString(4));\n }\n cursor.close();\n Intent intent = new Intent(MainListaActivity.this,PhoneActivity.class);\n intent.putExtras(bundle);\n startActivity(intent);\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n }", "public interface IntentStarter {\n void startActivityForResult(ResultRequestor requestor, Intent intent);\n}" ]
[ "0.80656695", "0.80070055", "0.7978103", "0.793693", "0.7863076", "0.78514785", "0.77954036", "0.77954036", "0.7791385", "0.76564246", "0.76212555", "0.760227", "0.74675167", "0.7320793", "0.7283157", "0.7257268", "0.71212363", "0.71101594", "0.70264477", "0.70149773", "0.69600844", "0.6896006", "0.6773313", "0.6748286", "0.6731658", "0.6721317", "0.6681842", "0.66658294", "0.66636497", "0.66449", "0.6643083", "0.6615852", "0.66076845", "0.66047263", "0.6575131", "0.65700924", "0.6538778", "0.6536754", "0.6501318", "0.6478835", "0.64563024", "0.6438949", "0.64363587", "0.6378796", "0.63724464", "0.6372401", "0.6356861", "0.6347675", "0.6338162", "0.6332461", "0.6304921", "0.6276944", "0.6251056", "0.62443626", "0.6242825", "0.6235596", "0.6208275", "0.6202869", "0.61728287", "0.61663926", "0.6108942", "0.60866004", "0.6049667", "0.6049429", "0.60465086", "0.60393524", "0.6035251", "0.6032403", "0.60209066", "0.6004947", "0.6001416", "0.5991793", "0.5983834", "0.59794337", "0.59784985", "0.5972699", "0.596593", "0.5958985", "0.5954631", "0.59534913", "0.5926299", "0.5922976", "0.59202445", "0.5907476", "0.5906376", "0.5892363", "0.5878696", "0.58756614", "0.58715296", "0.587064", "0.58671385", "0.5866596", "0.5851269", "0.5851269", "0.58493125", "0.5849095", "0.5841465", "0.5822602", "0.5822602", "0.58200127" ]
0.59321034
80
Cambia a la actividad que muestra el widget del tiempo
private void goToWeather(){ Intent intent = new Intent(PresentadorV_main.this, Presentador_weather.class); startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setWidget(Object arg0)\n {\n \n }", "public TemporizadorPanel() {\n initComponents();\n }", "public ttussntpt() {\n initComponents();\n }", "private GUIAltaHabitacion() {\r\n\t initComponents();\r\n\t }", "public TImerPanel ()\r\n\t{\r\n\t\t\r\n\t\tsetFont(new Font(\"Verdana\", Font.BOLD, 22));\r\n\t\tadd(setTime);\r\n\t\tsetT.start();\r\n\t\tsetVisible(true);\r\n\t}", "public Widget() {\n\t\tenabled = true;\n\t}", "public GestorTiquetesTiempos() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Tienda() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public TicketCambio() {\n initComponents();\n parteticket();\n TxtCabezera1.setText(Cabezera1);\n TxtCabezera2.setText(Cabezera2);\n TxtCabezera3.setText(Cabezera3);\n TxtCabezera4.setText(Cabezera4);\n TxtCabezera5.setText(Cabezera5);\n this.setResizable(false); \n TxtPie1.setText(Pie1);\n TxtPie2.setText(Pie2);\n TxtPie3.setText(Pie3);\n TxtPie4.setText(Pie4);\n TxtPie5.setText(Pie5); \n }", "public GUI_Edit_Tour(){\n init();\n }", "public balik_turleri() {\n initComponents();\n Toolkit toolkit = getToolkit();\n Dimension dim = toolkit.getScreenSize();\n setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n setTitle(\"Balık Türleri Ekranı\");\n }", "public Punto_venta() {\n initComponents();\n }", "@Override\n public void onEnabled(Context context) {\n // Enter relevant functionality for when the first widget is created\n }", "@FXML\n public void useWeather(ActionEvent event){\n statusTxt.setText(\"Ongoing\");\n readFromFileBtn.setVisible(false);\n resumeBtn.setVisible(false);\n readNameBox.setVisible(false);\n tc.setMiasto(cityBox.getText());\n tc.ws = new WeatherStation(tc.getMiasto());\n BoxSetting bx = new BoxSetting(devTempBox,devHumBox,presDevBox,maxTempDevBox,minTempDevBox,measTxt,presChart,humidChart,tempChart,tempBox,humidBox,presBox,maxTempBox,minTempBox,meanTempBox,meanHumidBox,meanPresBox,meanMaxTempBox,meanMinTempBox,meanTempBox,meanHumidBox,meanPresBox);\n tc.addObserver(bx);\n tc.k.start();\n\n\n }", "@Override\n\tpublic void guiTinNhan() {\n\n\t}", "public TelaAgendamento() {\n initComponents();\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n TelaInvestimentos telaInvestimentos = new TelaInvestimentos(cliente, telaQueChamou);\n telaInvestimentos.pack();\n telaInvestimentos.setLocation(920, 250); // Posição inicial da TelaConta no monitor do pc\n telaInvestimentos.setVisible(true);\n }", "@Override\r\n \tpublic void start(AcceptsOneWidget panel, EventBus eventBus) {\n \t\tpanel.setWidget(view);\t\t\r\n \t}", "public HousingAnimation() {\n\t\tsetSize(WINDOW_X, WINDOW_Y);\n\t\tsetVisible(true);\n\n\t\tTimer timer = new Timer(TENANT_SPEED, this);\n\t\ttimer.start();\n\t\n\t\t//addGui(tenant.getGui());\n\t}", "public Tela() {\n initComponents();\n setLocationRelativeTo(null);\n setVisible(true);\n }", "@Override\r\n\tpublic void onShow() {\n\t\t\r\n\t}", "public TelaSecundaria() {\n initComponents();\n ArrayTexto();\n btpara.setVisible(false);\n btresposta.setVisible(false);\n }", "@Override\n\tprotected void initAddButton() {\n addBtn = addButton(\"newBtn\", TwlLocalisationKeys.ADD_BEAT_TYPE_TOOLTIP, new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tnew AddEditBeatTypePanel(true, null, BeatTypesList.this).run(); // adding\n\t\t\t\t}\n\t }); \t\t\n\t}", "@Override\n\tpublic void widgetClick(View v) {\n\n\t}", "private GUIReminder() {\n\n initComponents();\n initOthers();\n\n }", "private void jMI_interfazTareaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMI_interfazTareaActionPerformed\n Homework tarea = new Homework();\n tarea.setVisible(true);\n tarea.Tareastxt();\n tarea.setTitle(\"StickyCalendar 2.0 - \" + date_update);\n tarea.Labels();\n }", "public ShowMain() {\n initComponents();\n this.tishi.setOpaque(false);\n this.tishi.setEditable(false);\n }", "public TimKiemJPanel() {\n initComponents();\n }", "private void initializeTecnico() {\r\n\t\t\r\n\t\tcontroleAtividade = new ControleAtividade();\r\n\t\t\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 640, 480);\r\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\t\r\n\t\tframe.setTitle(\"Avaliar atividade pendente\");\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tGroupLayout groupLayout = new GroupLayout(frame.getContentPane());\r\n\t\tgroupLayout.setHorizontalGroup(\r\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addComponent(panel, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 624, Short.MAX_VALUE)\r\n\t\t);\r\n\t\tgroupLayout.setVerticalGroup(\r\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addComponent(panel, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 442, Short.MAX_VALUE)\r\n\t\t);\r\n\t\t\r\n\t\t//TODO Popular a lista dinamicamente;\r\n\t\t\r\n\t\tlist = new JList();\r\n\t\t\r\n\t\tList<Atividade> atividadesPendentes = controleAtividade.recuperarAtividades(Status.PENDENTE);\t\t\r\n\t\tatividadesPendentesArray = new Atividade[atividadesPendentes.size()];\r\n\t\t\r\n\t\t\r\n\t\tfor(int i = 0; i < atividadesPendentesArray.length; i++)\r\n\t\t\tatividadesPendentesArray[i] = (Atividade) atividadesPendentes.get(i);\r\n\r\n\t\t\r\n\t\tlist.setListData(atividadesPendentesArray);\r\n\t\t\r\n\t\tlist.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\t//TODO Seria interessante passar o controle como parametro, afim de usa-lo no listener dos botoes;\r\n\t\t\t\tif(atividadesPendentesArray.length > 0) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tAtividade atividade = (Atividade) list.getSelectedValue();\r\n\t\t\t\t\t\r\n\t\t\t\t\tjanelaDeDecisao = new ViewDecisaoAtividadesPendentes(atividade);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJLabel lblAtividadesPendendentes = new JLabel(\"Atividades pendentes:\");\r\n\t\t\r\n\t\tbtnFechar = new JButton(\"Fechar\");\r\n\t\t\r\n\t\tbtnFechar.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\t//TODO Seria interessante passar o controle como parametro, afim de usa-lo no listener dos botoes;\r\n\t\t\t\tframe.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tGroupLayout gl_panel = new GroupLayout(panel);\r\n\t\tgl_panel.setHorizontalGroup(\r\n\t\t\tgl_panel.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addGroup(gl_panel.createSequentialGroup()\r\n\t\t\t\t\t.addContainerGap()\r\n\t\t\t\t\t.addGroup(gl_panel.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t\t\t.addComponent(list, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 604, Short.MAX_VALUE)\r\n\t\t\t\t\t\t.addComponent(lblAtividadesPendendentes)\r\n\t\t\t\t\t\t.addComponent(btnFechar, Alignment.TRAILING))\r\n\t\t\t\t\t.addContainerGap())\r\n\t\t);\r\n\t\tgl_panel.setVerticalGroup(\r\n\t\t\tgl_panel.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addGroup(gl_panel.createSequentialGroup()\r\n\t\t\t\t\t.addGap(23)\r\n\t\t\t\t\t.addComponent(lblAtividadesPendendentes)\r\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 26, Short.MAX_VALUE)\r\n\t\t\t\t\t.addComponent(list, GroupLayout.PREFERRED_SIZE, 338, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\r\n\t\t\t\t\t.addComponent(btnFechar)\r\n\t\t\t\t\t.addGap(7))\r\n\t\t);\r\n\t\tpanel.setLayout(gl_panel);\r\n\t\tframe.getContentPane().setLayout(groupLayout);\r\n\t}", "@Override\n public void onEnabled(Context context) {\n AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context);\n CharSequence widgetText = context.getString(R.string.appwidget_text);\n RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.my_widget);\n remoteViews.setTextViewText(R.id.widgetText, widgetText);\n Intent intent = new Intent(context, MainActivity.class);\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_ONE_SHOT);\n remoteViews.setOnClickPendingIntent(R.id.widgetLogo, pendingIntent);\n ComponentName componentName = new ComponentName(context, MyWidget.class);\n appWidgetManager.updateAppWidget(componentName, remoteViews);\n }", "public KamarFrom() {\n \n initComponents();\n tabel();\n \n }", "@Override\n public void onEnabled(Context context) {\n SetAlarm(context,1,mywidget.class);\n\n }", "public History_GUI(){\n super();\n InitializeComponents();\n ConfigureWin();\n\n }", "public tlConferencia() {\n initComponents();\n }", "public formdatamahasiswa() {\n initComponents();\n }", "public MenuTamu() {\n initComponents();\n \n }", "public TodoGUI() {\r\n todoChooserGui();\r\n }", "public TaskControlButton(Context context) {\n super(context);\n }", "private void dashboard() {\n\n Timeline timeline = new Timeline(\n new KeyFrame(Duration.seconds(0),\n new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent actionEvent) {\n Calendar time = Calendar.getInstance();\n\n String hourString = POSUtilies.pad(2, ' ', time.get(Calendar.HOUR) == 0 ? \"12\" : time.get(Calendar.HOUR) + \"\");\n String minuteString = POSUtilies.pad(2, '0', time.get(Calendar.MINUTE) + \"\");\n String secondString = POSUtilies.pad(2, '0', time.get(Calendar.SECOND) + \"\");\n String am_pm = POSUtilies.pad(2, '0', time.get(Calendar.AM_PM) + \"\");\n if (am_pm.equalsIgnoreCase(\"00\")) {\n am_pm = \"AM\";\n\n }\n if (am_pm.equalsIgnoreCase(\"01\")) {\n am_pm = \"PM\";\n\n }\n\n lblTime.setText(hourString + \":\" + minuteString + \":\" + secondString + \" \" + am_pm);\n lblDate.setText(d.format(date));\n }\n }\n ),\n new KeyFrame(Duration.seconds(1))\n );\n timeline.setCycleCount(Animation.INDEFINITE);\n timeline.play();\n }", "private void criaInterface() {\n\t\tColor azul = new Color(212, 212, 240);\n\n\t\tpainelMetadado.setLayout(null);\n\t\tpainelMetadado.setBackground(azul);\n\n\t\tmetadadoLabel = FactoryInterface.createJLabel(10, 3, 157, 30);\n\t\tpainelMetadado.add(metadadoLabel);\n\n\t\tbotaoAdicionar = FactoryInterface.createJButton(520, 3, 30, 30);\n\t\tbotaoAdicionar.setIcon(FactoryInterface.criarImageIcon(Imagem.ADICIONAR));\n\t\tbotaoAdicionar.setToolTipText(Sap.ADICIONAR.get(Sap.TERMO.get()));\n\t\tpainelMetadado.add(botaoAdicionar);\n\n\t\tbotaoEscolha = FactoryInterface.createJButton(560, 3, 30, 30);\n\t\tbotaoEscolha.setIcon(FactoryInterface.criarImageIcon(Imagem.VOLTAR_PRETO));\n\t\tbotaoEscolha.setToolTipText(Sap.ESCOLHER.get(Sap.TERMO.get()));\n\t\tbotaoEscolha.setEnabled(false);\n\t\tpainelMetadado.add(botaoEscolha);\n\n\t\talterarModo(false);\n\t\tatribuirAcoes();\n\t}", "public finestrabenvinguda() {\n //inciem componets misatge ,la seva localitzacio, i diem que sigui un misatge que ens apareixi de manera temporal\n initComponents();\n this.setLocationRelativeTo(null);\n ac = new ActionListener() {\n\n @Override\n /**\n * Controlem la barra de carregue la cual li diem el que socceix una vegada\n * tenim el temps establert en el qual volem carreguar el nostre projecte,es a di,\n * que fara una vegada tenim carreguada completament la carregua de la taula\n */\n public void actionPerformed(ActionEvent e) {\n x = x + 1;\n jProgressBar1.setValue(x);\n if (jProgressBar1.getValue() == 100) {\n dispose();\n t.stop();\n }\n }\n };\n // seleccionem el temps que tardara aquesta barra en carregar completament\n t = new Timer(50, ac);\n t.start();\n }", "public VistaGraficaQytetet() {\n ArrayList <String> nombres = obtenerNombreJugadores();\n modelo = Qytetet.getInstance();\n controlador = ControladorQytetet.getInstance(nombres);\n initComponents();\n creaMenuOperacion();\n creaMenuCasilla();\n update();\n }", "public void textBoxAction( TextBoxWidgetExt tbwe ){}", "public TelaCadasroProjeto() {\n initComponents();\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\tif (Mascota.get_hambre() > 0 && Mascota.get_hambre() != 5) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n try {\r\n \t Mascota.set_alimentar();\r\n\t\t\t\t\t\tmostrar_hambre.setText(\"Nivel de hambre : \" + Mascota.get_hambre());\r\n\t\t\t\t\t\teti_actividad.setText(\"Ñam...ñam...Estoy comiendo\");\r\n\t\t\t\t\t\teti_actividad.setVisible(true);\r\n\t\t\t\t\t\tThread.sleep(6000);\r\n\t\t\t\t\t\teti_actividad.setVisible(false);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t }\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}else {\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\teti_actividad.setText(\"No tengo hambre\");\r\n\t\t\t\t\t\teti_actividad.setVisible(true);\r\n\t\t\t\t\t\tThread.sleep(6000);\r\n\t\t\t\t\t\teti_actividad.setVisible(false);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\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\r\n\t\t\t}", "public Tela_cadastro_secretaria() {\n initComponents();\n }", "public Onview() {\r\n initComponents();\r\n loadDisplayScreen();\r\n jcbX_Axis.setModel(new DefaultComboBoxModel(new String[]{}));\r\n jcbX_Axis.setEnabled(false);\r\n jcbY_Axis.setModel(new DefaultComboBoxModel(new String[]{}));\r\n jcbY_Axis.setEnabled(false);\r\n setResizable(false);\r\n }", "public TareasEvento() {\n initComponents();\n setTitle (\"Tareas\");\n mostrardatos(jTextField1.getText());\n \n }", "void inicializaComponentes(){\r\n\t\t\r\n\t\t//Botão com status\r\n\t\ttgbGeral = (ToggleButton) findViewById(R.id.tgbGeral);\r\n\t\ttgbGeral.setOnClickListener(this);\r\n\t\ttgbMovimento = (ToggleButton) findViewById(R.id.tgbMovimento);\r\n\t\ttgbMovimento.setOnClickListener(this);\r\n\t\ttgbfogo = (ToggleButton) findViewById(R.id.tgbFogo);\r\n\t\ttgbfogo.setOnClickListener(this);\r\n\r\n\t\t//botão\r\n\t\tbtnTemperatura = (Button) findViewById(R.id.btnTemperatura);\r\n\t\tbtnTemperatura.setOnClickListener(this);\r\n\t\t\r\n\t\t//label\r\n\t\ttxtLegenda = (TextView) findViewById(R.id.txtSensorLegenda);\r\n\t}", "public SalesSystemUI(SalesDomainController domainController) {\n this.domainController = domainController;\n this.model = new SalesSystemModel(domainController);\n \n // Create singleton instances of the tab classes\n historyTab = new HistoryTab(model);\n stockTab = new StockTab(model);\n purchaseTab = new PurchaseTab(domainController, model);\n \n setTitle(\"Sales system\");\n \n // set L&F to the nice Windows style\n try {\n UIManager.setLookAndFeel(new WindowsLookAndFeel());\n \n } catch (UnsupportedLookAndFeelException e1) {\n log.warn(e1.getMessage());\n }\n \n drawWidgets();\n \n // size & location\n int width = 600;\n int height = 400;\n setSize(width, height);\n Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();\n setLocation((screen.width - width) / 2, (screen.height - height) / 2);\n \n addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n System.exit(0);\n }\n });\n }", "public alarm() {\n initComponents();\n }", "@Override\n public void postHideEt() {\n }", "public EjemplarUI() {\n initComponents();\n controlador = Controladores.peliculaController;\n }", "public void setDashboardPanel(){\n Timer dashboardTimer = new Timer();\n dashboardTimer.scheduleAtFixedRate(new TimerTask() {\n @Override\n public void run() {\n Platform.runLater(() -> {\n //get flight parameter values and set them to dashboard\n AltitudeValue.setText(vm.getParameter(\"altimeter_indicated-altitude-ft\") + \"\");\n speedValue.setText(vm.getParameter(\"airspeed-indicator_indicated-speed-kt\")+\"\");\n DirectionValue.setText(vm.getParameter(\"indicated-heading-deg\")+\"\");\n RollValue.setText(vm.getParameter(\"attitude-indicator_indicated-roll-deg\")+\"\");\n PitchValue.setText(vm.getParameter(\"attitude-indicator_internal-pitch-deg\")+\"\");\n yawValue.setText(vm.getParameter(\"heading-deg\")+\"\");\n });\n }\n }, 0, 100);\n }", "public bt526() {\n initComponents();\n }", "private void inicComponent() {\n\n\t\tprogres = (LinearLayout) findViewById(R.id.linearLayoutProgres);\n\t\t\n\t\tbuttonKategorije = (Button) findViewById(R.id.buttonKategorije);\n\t\t\n\t}", "private void mo71772t() {\n this.f74253i.mo60157b(R.id.ebb, new VideoPostTimeWidget());\n }", "public VistaTrabaja() {\n initComponents();\n }", "private void updateUi() {\n this.tabDetail.setDisable(false);\n this.lblDisplayName.setText(this.currentChild.getDisplayName());\n this.lblPersonalId.setText(String.format(\"(%s)\", this.currentChild.getPersonalId()));\n this.lblPrice.setText(String.format(\"%.2f\", this.currentChild.getPrice()));\n this.lblAge.setText(String.valueOf(this.currentChild.getAge()));\n this.dtBirthDate.setValue(this.currentChild\n .getBirthDate()\n .toInstant()\n .atZone(ZoneId.systemDefault())\n .toLocalDate());\n this.lblWeight.setText(String.format(\"%.1f kg\", this.currentChild.getWeight()));\n this.sldWeight.setValue(this.currentChild.getWeight());\n this.checkboxTrueRace.setSelected(!this.currentChild.isRace());\n this.imgChildProfile.setImage(this.currentChild.getAvatar());\n if (this.currentChild.getGender().equals(GenderType.MALE)){\n this.imgSex.setImage(FileUtils.loadImage(\"assets/image/gender/boy.png\"));\n this.lblSex.setText(\"Male\");\n }\n else {\n this.imgSex.setImage(FileUtils.loadImage(\"assets/image/gender/girl.png\"));\n this.lblSex.setText(\"Female\");\n }\n if (this.currentChild.isVirginity()){\n this.imgVirginity.setImage(FileUtils.loadImage(\"assets/image/virginity/virgin.png\"));\n this.lblVirginity.setText(\"Virgin\");\n }\n else {\n this.imgVirginity.setImage(FileUtils.loadImage(\"assets/image/virginity/not-virgin.png\"));\n this.lblVirginity.setText(\"Not Virgin\");\n }\n\n // TODO [assignment2] nastavit obrazek/avatar ditete v karte detailu\n // TODO [assignment2] nastavit spravny obrazek pohlavi v karte detailu\n // TODO [assignment2] nastavit spravny obrazek virginity atribut v v karte detailu\n }", "public agendaVentana() {\n initComponents();\n setIconImage(new ImageIcon(this.getClass().getResource(\"/IMG/maqui.png\")).getImage());\n citasDAO = new CitasDAO();\n clienteDAO = new ClienteDAO();\n loadmodel();\n loadClientesCombo();\n loadClientesComboA();\n jTabbedPane1.setEnabledAt(2, false);\n\n }", "public TelaContaUnica() {\n initComponents();\n }", "public void run() {\n\t\t\t\tVerticalPanel panelCompteRendu = new VerticalPanel();\r\n\t\t\t\thtmlCompteRendu = new HTML();\r\n\t\t\t\tpanelCompteRendu.add(htmlCompteRendu);\r\n\t\t\t\tRootPanel.get(\"compteRendu\").add(panelCompteRendu);\r\n\t\t\t\t\r\n\t\t\t\tVerticalPanel panelLegende = new VerticalPanel();\r\n\t\t\t\thtmlLegende = new HTML();\r\n\t\t\t\tpanelLegende.add(htmlLegende);\r\n\t\t\t\tRootPanel.get(\"legende\").add(htmlLegende);\r\n\t\t\t\t\r\n\t\t\t\t// temps d'intˇgration restant\r\n\t\t\t\tLabel tempsDIntegrationRestant = new Label();\r\n\t\t\t\tRootPanel.get(\"tempsDIntegrationRestant\").add(tempsDIntegrationRestant);\r\n\t\t\t\t\r\n\t\t\t\t// ajout de la carte\r\n\t\t\t\twMap = new MapFaWidget2(htmlCompteRendu);\r\n\t\t\t\tRootPanel.get(\"carte\").add(wMap);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// ajout du bouton reset\r\n\t\t\t\tButton boutonReset = new Button(\"Nettoyer la carte\");\r\n\t\t\t\tboutonReset.addClickHandler(actionBoutonReset());\r\n\t\t\t\tRootPanel.get(\"boutonReset\").add(boutonReset);\r\n\r\n\t\t\t\t// ajout du formulaire d'intˇgration\r\n\t\t\t\tnew FileUploadView(wMap,htmlLegende, htmlCompteRendu,tempsDIntegrationRestant);\r\n\r\n\t\t\t}", "public TelaAbigo() {\n initComponents();\n setLocationRelativeTo(null);\n setResizable(false);\n }", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "public CadastrarNota() {\n initComponents();\n setLocationRelativeTo(this);\n setTitle(\"Cadastro de Alunos\");\n setResizable(false);\n Atualizar();\n }", "@Override\n public void onAttached() {\n tabView.addTab(); // EMPTY\n tabView.addTab().addWidget(new MapWidgetEntityTypeList() { // ENTITY\n @Override\n public void onAttached() {\n super.onAttached();\n this.setEntityType(getAttachment().getConfig().get(\"entityType\", EntityType.MINECART));\n }\n\n @Override\n public void onEntityTypeChanged() {\n getAttachment().getConfig().set(\"entityType\", this.getEntityType());\n markChanged();\n }\n }).setBounds(0, 0, 100, 11);\n tabView.addTab().addWidget(new MapWidgetItemSelector() { // ITEM\n @Override\n public void onAttached() {\n super.onAttached();\n this.setSelectedItem(getAttachment().getConfig().get(\"item\", new ItemStack(Material.PUMPKIN)));\n }\n\n @Override\n public void onSelectedItemChanged() {\n getAttachment().getConfig().set(\"item\", this.getSelectedItem());\n markChanged();\n }\n });\n tabView.addTab().addWidget(new MapWidgetButton() { // SEAT\n private boolean checked = false;\n\n @Override\n public void onAttached() {\n super.onAttached();\n this.checked = getAttachment().getConfig().get(\"lockRotation\", false);\n updateText();\n }\n\n private void updateText() {\n this.setText(\"Lock Rotation: \" + (checked ? \"ON\":\"OFF\"));\n }\n\n @Override\n public void onActivate() {\n this.checked = !this.checked;\n updateText();\n getAttachment().getConfig().set(\"lockRotation\", this.checked);\n markChanged();\n display.playSound(CommonSounds.CLICK);\n }\n }).setBounds(0, 10, 100, 16);\n tabView.addTab(); // MODEL\n\n tabView.setPosition(7, 16);\n this.addWidget(tabView);\n\n // This widget is always visible: type selector\n MapWidgetSelectionBox typeSelectionBox = this.addWidget(new MapWidgetSelectionBox() {\n @Override\n public void onSelectedItemChanged() {\n setType(ParseUtil.parseEnum(this.getSelectedItem(), CartAttachmentType.EMPTY));\n }\n });\n for (CartAttachmentType type : CartAttachmentType.values()) {\n typeSelectionBox.addItem(type.toString());\n }\n typeSelectionBox.setSelectedItem(getAttachment().getConfig().get(\"type\", String.class));\n typeSelectionBox.setBounds(7, 3, 100, 11);\n\n // Set to display currently selected type\n setType(getAttachment().getConfig().get(\"type\", CartAttachmentType.EMPTY));\n\n this.tabView.activate();\n }", "private void initComponent(){\n chart = view.findViewById(R.id.chart1);\n imMood = view.findViewById(R.id.mood_view);\n btnSetMood = view.findViewById(R.id.btnSetMood);\n tvToday = view.findViewById(R.id.step_today);\n tvStepTakenToday = view.findViewById(R.id.step_takens_today);\n tvStepRunningToday = view.findViewById(R.id.step_running_today);\n btnSetMood2 = view.findViewById(R.id.btnSetMood2);\n tvToday.setText(DateUtilities.getCurrentDateInString());\n tvStepRunningToday.setText(\"0 km\");\n }", "public void initWidgets(){\n\n g = (Globals)getApplication();\n\n //Application\n context = this;\n res = context.getResources();\n\n //Objekt\n mannschaft = g.getMannschaft();\n statistik = new Statistik();\n statistikwerte = new Statistikwerte();\n isUpdate = getIntent().getExtras().getBoolean(\"Update\");\n\n //Input-Widgets\n heim = (RadioGroup) findViewById(R.id.radioHeimAuswärts);\n gegner = (EditText) findViewById(R.id.gegnerbezeichnung);\n spielerListView = new SwipeMenuEditDelete(this, mannschaft, (SwipeMenuListView)findViewById(R.id.spielerList), new Spieler(), R.layout.swipemenu_item, false, false, false, true);\n anlegen = (Button) findViewById(R.id.stati_Anlegen);\n\n //Variablen\n spieler = new ArrayList<Spieler>();\n kategorien = new ArrayList<Kategorie>();\n datum = new Date();\n\n }", "private void initToolbar() {\n\t\tButton nextStep = new Button(\"Next Step\");\n\t\tnextStep.setOnMouseClicked(new EventHandler<Event>() {\n\t\t\t@Override\n\t\t\tpublic void handle(Event event) {\n\t\t\t\tcontrol.performOneStep();\n\t\t\t}\n\t\t});\n\t\tthis.getItems().add(nextStep);\n\n\t\t// Make and set Start Button\n\t\tButton startButton = new Button(\"Start Game\");\n\t\tstartButton.setOnMouseClicked(new EventHandler<Event>() {\n\n\t\t\t@Override\n\t\t\tpublic void handle(Event event) {\n\t\t\t\tcontrol.startGame();\n\t\t\t}\n\t\t});\n\t\tthis.getItems().add(startButton);\n\n\t\t// Make and set Pause Button\n\t\tButton pauseButton = new Button(\"Pause Game\");\n\t\tpauseButton.setOnMouseClicked(new EventHandler<Event>() {\n\n\t\t\t@Override\n\t\t\tpublic void handle(Event event) {\n\t\t\t\tcontrol.pauseGame();\n\t\t\t}\n\t\t});\n\t\tthis.getItems().add(pauseButton);\n\n\t\t//Text Field for GameSpeed\n\t\tText gameSpeedText = new Text(\"Delay between steps: \" + initialSpeed +\"ms\");\n\t\tthis.getItems().add(gameSpeedText);\n\t\t\n\t\t//Make and add Slider for GameSpeed control\n\t\tSlider gameSpeedSlider = new Slider(10, 250, initialSpeed);\n\t\tcontrol.setGameSpeed(initialSpeed);\n\t\t\n\t\tgameSpeedSlider.valueProperty().addListener(\n\t\t (observable, oldvalue, newvalue) ->\n\t\t {\n\t\t int i = newvalue.intValue();\n\t\t //This sets the delay in the controller\n\t\t control.setGameSpeed(i);\n\t\t //Text Label that displays delay\n\t\t gameSpeedText.setText(\"Delay between steps: \" + i +\"ms\");\n\t\t } );\n\t\t\n\t\tthis.getItems().add(gameSpeedSlider);\n\t\n\t\t\n\t\t\n\t}", "public GUI() {\n app = new Aplikasi();\n initComponents();\n }", "private void createEvents() {\n\t\tbtnRetour.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tDashboard_Preteur dashboard_Preteur = new Dashboard_Preteur(currentPreteur);\r\n\t\t\t\tdashboard_Preteur.setVisible(true);\r\n\t\t\t\tdashboard_Preteur.setResizable(false);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public static void startActionUpdateBakingWidget(Context context) {\n Intent intent = new Intent(context, Service_WidgetUpdate.class);\n intent.setAction(Constants.ACTION_UPDATE_DRIVER_WIDGET);\n context.startService(intent);\n }", "private void setupUI(){\n this.setupTimerSchedule(controller, 0, 500);\n this.setupFocusable(); \n this.setupSensSlider();\n this.setupInitEnable();\n this.setupDebugger();\n }", "public AlterarCliente() {\n initComponents();\n setTitle(\"LocVideo\");\n }", "public void setGui()\n\t{\n\t\tdisplay = new Display();\n\t\tshell = new Shell(display, SWT.CLOSE | SWT.TITLE | SWT.MIN);\n\t\tshell.setText(\"Sensor Configurator\");\n\t\t// create a new GridLayout with 3 columns of same size\n\t\tGridLayout layout = new GridLayout(3, false);\n\t\tshell.setLayout(layout);\n\n\t\tsetTrayIcon();\n\n\t\tGroup groupLeft = new Group(shell, SWT.SHADOW_OUT);\n\t\tgroupLeft.setLayout(new GridLayout());\n\t\tgroupLeft.setText(\"Customer Group\");\n\n\t\tlistLabel = new Label(groupLeft, SWT.NONE);\n\t\tlistLabel.setText(\"List of Customers\");\n\t\tlistLabel.setLayoutData(new GridData(SWT.CENTER, SWT.TOP, false, false, 1, 1));\n\n\t\tcustomerList = new List(groupLeft, SWT.BORDER | SWT.V_SCROLL);\n\t\tGridData gridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.BEGINNING;\n\t\tgridData.heightHint = 220;\n\t\tgridData.widthHint = 150;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = false;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tcustomerList.setLayoutData(gridData);\n\t\tcustomerList.select(0);\n\t\t// customerList.showSelection();\n\n\t\t// Combo selection\n\t\tpriorityCombo = new Combo(groupLeft, SWT.READ_ONLY);\n\t\tpriorityCombo.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, true, 1, 1));\n\t\tpriorityCombo.setItems(new String[] {\"Filter by Priority\", \"HIGH\", \"MEDIUM\", \"LOW\"});\n\t\tpriorityCombo.select(0);\n\n\t\t// updateButton\n\t\tupdateButton = new Button(groupLeft, SWT.PUSH);\n\t\tupdateButton.setText(\"Update List\");\n\t\tgridData = new GridData();\n\t\tgridData.verticalAlignment = GridData.CENTER;\n\t\tgridData.horizontalAlignment = GridData.CENTER;\n\t\tgridData.widthHint = 100;\n\t\tgridData.heightHint = 30;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tupdateButton.setLayoutData(gridData);\n\n\t\t// center group\n\t\tGroup groupCenter = new Group(shell, SWT.SHADOW_OUT);\n\t\tGridLayout groupLayout = new GridLayout(2, false);\n\t\tgroupCenter.setLayout(groupLayout);\n\t\tgroupCenter.setText(\"Measurement group\");\n\n\t\tcustomerLabel = new Label(groupCenter, SWT.NONE);\n\t\tcustomerLabel.setText(\"Customer Info\");\n\t\tcustomerLabel.setLayoutData(new GridData(SWT.CENTER, SWT.TOP, false, false, 1, 1));\n\n\t\t// Measurement Label\n\t\tmeasLabel = new Label(groupCenter, SWT.NONE);\n\t\tmeasLabel.setText(\"Measurement Info\");\n\t\tmeasLabel.setLayoutData(new GridData(SWT.CENTER, SWT.TOP, true, false, 1, 1));\n\n\t\t// customerText\n\t\tcustomerText = new StyledText(groupCenter, SWT.BORDER | SWT.V_SCROLL | SWT.READ_ONLY | SWT.MULTI);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.BEGINNING;\n\t\tgridData.heightHint = 145;\n\t\tgridData.widthHint = 110;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = false;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tcustomerText.setLayoutData(gridData);\n\n\t\t// Measurement Text\n\t\tmeasureText = new StyledText(groupCenter, SWT.BORDER | SWT.V_SCROLL | SWT.READ_ONLY | SWT.MULTI);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.BEGINNING;\n\t\tgridData.heightHint = 145;\n\t\tgridData.widthHint = 160;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tmeasureText.setLayoutData(gridData);\n\n\t\t// Comment Label\n\t\tcommentLabel = new Label(groupCenter, SWT.NONE);\n\t\tcommentLabel.setText(\"Comment Here!\");\n\t\tcommentLabel.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\n\t\t// Measurement Task Label\n\t\tmeasTaskLabel = new Label(groupCenter, SWT.NONE);\n\t\tmeasTaskLabel.setText(\"Measurement Tasks!\");\n\t\tmeasTaskLabel.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\n\t\t// Comment Text\n\t\tcommentText = new StyledText(groupCenter, SWT.BORDER | SWT.MULTI);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.BEGINNING;\n\t\tgridData.heightHint = 80;\n\t\tgridData.widthHint = 110;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tcommentText.setLayoutData(gridData);\n\n\t\t// Measurement Task Text\n\t\tmeasurTaskText = new StyledText(groupCenter, SWT.BORDER | SWT.READ_ONLY | SWT.MULTI);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.BEGINNING;\n\t\tgridData.heightHint = 80;\n\t\tgridData.widthHint = 160;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tmeasurTaskText.setLayoutData(gridData);\n\n\t\t// Electrode selection\n\t\telectrodeCombo = new Combo(groupCenter, SWT.READ_ONLY);\n\t\telectrodeCombo.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, true, 2, 1));\n\t\telectrodeCombo.setItems(new String[] {\"Electrode\", \"Simple\", \"Test\", \"New\"});\n\t\telectrodeCombo.select(0);\n\n\t\t// right group\n\t\tGroup groupRight = new Group(shell, SWT.SHADOW_OUT);\n\t\tgroupRight.setLayout(new GridLayout());\n\t\tgroupRight.setText(\"Sensor group\");\n\n\t\tsensorLabel = new Label(groupRight, SWT.NONE);\n\t\tsensorLabel.setText(\"Sensor Info\");\n\t\tsensorLabel.setLayoutData(new GridData(SWT.CENTER, SWT.TOP, false, false, 1, 1));\n\n\t\tsensorText = new StyledText(groupRight, SWT.BORDER | SWT.V_SCROLL | SWT.READ_ONLY | SWT.MULTI);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.FILL;\n\t\tgridData.heightHint = 140;\n\t\tgridData.widthHint = 180;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = false;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tsensorText.setLayoutData(gridData);\n\n\t\t// sensor Task label\n\t\tsensorTaskLabel = new Label(groupRight, SWT.NONE);\n\t\tsensorTaskLabel.setText(\"Sensor Tasks\");\n\t\tsensorTaskLabel.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\n\t\tsensorTaskText = new StyledText(groupRight, SWT.BORDER | SWT.READ_ONLY | SWT.MULTI);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.CENTER;\n\t\tgridData.verticalAlignment = GridData.BEGINNING;\n\t\tgridData.heightHint = 80;\n\t\tgridData.widthHint = 180;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tsensorTaskText.setLayoutData(gridData);\n\n\t\t// configButton\n\t\tconfigButton = new Button(groupRight, SWT.PUSH);\n\t\tconfigButton.setText(\"Start Configure\");\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.CENTER;\n\t\tgridData.verticalAlignment = GridData.CENTER;\n\t\tgridData.widthHint = 100;\n\t\tgridData.heightHint = 30;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tconfigButton.setLayoutData(gridData);\n\n\t\tstatusBar = new Text(shell, SWT.BORDER | SWT.READ_ONLY | SWT.SINGLE);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.FILL;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 4;\n\t\tgridData.verticalSpan = 1;\n\t\tstatusBar.setLayoutData(gridData);\n\n\t}", "private void getBaseDatos() {\r\n java.awt.EventQueue.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n new IngresoBaseDeDatos(isAdministrador()).setVisible(true);\r\n }\r\n });\r\n }", "public void InitUI() {\n this.mSetData = new CanDataInfo.CAN_Msg();\n this.mDoorInfo = new CanDataInfo.CAN_DoorInfo();\n setBackgroundResource(R.drawable.can_vw_carinfo_bg);\n this.mDoorIcons = new CustomImgView[6];\n if (MainSet.GetScreenType() == 5) {\n InitUI_1280x480();\n } else {\n InitUI_1024x600();\n }\n this.mOilItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mTempItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mElctricItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mTrunkUpItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mParkingItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mXhlcItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mRPMItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mSpeedItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mDistanceItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mLqywdItemTxt.setText(TXZResourceManager.STYLE_DEFAULT);\n }", "@Override\n public Object getWidget()\n {\n return null;\n }", "public void activate () {\n\t\tif (_timer!=null) {\n\t\t\treturn;\n\t\t}\n\t\t_timer = new Timer (\"tray-notifier\", true);\n\t\t\n\t\tfinal TimerTask task = \n\t\t\tnew TimerTask () {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tSwingUtilities.invokeLater (new Runnable () {\n\t\t\t\t\t\tpublic void run () {\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * @workaround invoca in modo asincrono la modifica tooltip\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tnotifyTray (_traySupport);\n\t\t\t\t\t\t}});\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\tif (_period<0) {\n\t\t\t_timer.schedule (task, _delay);\n\t\t} else {\n\t\t\t_timer.schedule (task, _delay, _period);\n\t\t}\n\t}", "@Override\n public void run() {\n mButton_Buy_Ticket.setVisibility(View.VISIBLE);\n ln_view_number.setVisibility(View.VISIBLE);\n }", "@Override\n public void run() {\n mButton_Buy_Ticket.setVisibility(View.VISIBLE);\n ln_view_number.setVisibility(View.VISIBLE);\n }", "private void setUpWidgets(){\n\n }", "public void activar(){\n\n }", "public AdminUpdateFly() {\n initComponents();\n }", "private void initComponent()\n {\n groupName = findViewById(R.id.groupName);\n groupId = findViewById(R.id.gId);\n groupAddress = findViewById(R.id.gAddress);\n groupDescription = findViewById(R.id.gDescription);\n bCreate = findViewById(R.id.bCreate);\n rPublic = findViewById(R.id.rSecret);\n fTime = findViewById(R.id.fTime);\n toolbar = findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n calendar = Calendar.getInstance();\n progressBar = findViewById(R.id.progress);\n\n //set scrollview in description editText\n groupDescription.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n if(v.getId() == R.id.txtNotice){\n v.getParent().requestDisallowInterceptTouchEvent(true);\n switch (event.getAction() & MotionEvent.ACTION_MASK){\n case MotionEvent.ACTION_UP:\n v.getParent().requestDisallowInterceptTouchEvent(false);\n break;\n }\n }\n return false;\n }\n });\n\n\n sharedPreferenceData = new SharedPreferenceData(this);\n currentUserName = sharedPreferenceData.getCurrentUserName();\n someMethod = new NeedSomeMethod(this);\n internetIsOn = new CheckInternetIsOn(this);\n dialogClass = new AlertDialogClass(this);\n }", "public rplorcamentoTelaCadGastos() {\n initComponents();\n }", "@Override\n public void onClick(View v) {\n new TimePickerDialog(getActivity(), starttimepicker, trigger.getStarttime().get(Calendar.HOUR), trigger.getStarttime().get(Calendar.MINUTE), true).show();\n }", "public PanelTKPhong() {\n\t\tinitComponents();\n\t\tloaddataTable();\n\t\tloaddataLabel();\n\t}", "private void initWidget() {\n\t\taccount=(LinearLayout)findViewById(R.id.setting_account);\n\t\tabout=(LinearLayout)findViewById(R.id.setting_about);\n\t\tupdate=(LinearLayout)findViewById(R.id.setting_update);\n\t\thelp=(LinearLayout)findViewById(R.id.setting_help);\n\t\tfeedback=(LinearLayout)findViewById(R.id.setting_feedback);\n\t\texit=(LinearLayout)findViewById(R.id.setting_exit);\n\t\tprogressBar_downLoad=(ProgressBar)findViewById(R.id.progressBar_update);\n\t\t//应用\n\t\tsong=(LinearLayout)findViewById(R.id.song);\n\t\tvoachangsu=(LinearLayout)findViewById(R.id.voachangsu_btn);\n\t\tmeiyuzenmshuo=(LinearLayout)findViewById(R.id.meiyuzenmshuo);\n\t\tcet4=(LinearLayout)findViewById(R.id.cet4);\n\t\tvoavideo=(LinearLayout)findViewById(R.id.voavideo);\n\t\taccount.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent intent =new Intent();\n\t\t\t\tintent.setClass(mContext, AccountManagerActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t});\n\t\tabout.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent intent =new Intent();\n\t\t\t\tintent.setClass(mContext, AboutActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t});\n\t\tupdate.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tVersionManager.Instace(mContext).checkNewVersion(RuntimeManager.getAppInfo().versionCode, \n\t\t\t\t\t\tnew AppUpdateCallBack() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void appUpdateSave(String version_code, String newAppNetworkUrl) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tSettingActivity.this.version_code=version_code;\n\t\t\t\t\t\t\t\tappUpdateUrl=newAppNetworkUrl;\n\t\t\t\t\t\t\t\thandler.sendEmptyMessage(0);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void appUpdateFaild() {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\thandler.sendEmptyMessage(1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void appUpdateBegin(String newAppNetworkUrl) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\thelp.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\tintent.putExtra(\"isFirstInfo\", 1);\n\t\t\t\tintent.setClass(mContext, HelpActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t});\n\t\tfeedback.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent intent=new Intent();\t\t\t\n\t\t\t\tintent.setClass(mContext, FeedBackActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t});\n\t\texit.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t//注销用户,跳到登录页面\n\t\t\t\tAccountManager.Instace(mContext).loginOut();\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\tintent.setClass(mContext,LoginActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t\tSettingActivity.this.finish();\n\t\t\t}\n\t\t});\n\t\tsong.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(mContext, WebActivity.class);\n\t\t\t\tintent.putExtra(\"url\", \"http://iyuba.com/apps.php?mod=app&id=209\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t});\n\t\tvoachangsu.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(mContext, WebActivity.class);\n\t\t\t\tintent.putExtra(\"url\", \"http://iyuba.com/apps.php?mod=app&id=201\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t});\n\t\tmeiyuzenmshuo.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(mContext, WebActivity.class);\n\t\t\t\tintent.putExtra(\"url\", \"http://iyuba.com/apps.php?mod=app&id=213\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t});\n\t\tcet4.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(mContext, WebActivity.class);\n\t\t\t\tintent.putExtra(\"url\", \"http://iyuba.com/apps.php?mod=app&id=207\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t});\n\t\tvoavideo.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(mContext, WebActivity.class);\n\t\t\t\tintent.putExtra(\"url\", \"http://iyuba.com/apps.php?mod=app&id=217\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t});\n\t}", "public void initialize() {\n lID.setText(Integer.toString(idTowaru));\n tfNazwa.setTooltip(new Tooltip(\"Długość do 50 znaków\"));\n tfNazwa.setText(nazwa);\n tfWaznosc.setTooltip(new Tooltip(\"Format YYYY-MM-DD\"));\n tfWaznosc.setText(waznosc);\n cbTyp.setTooltip(new Tooltip(\"Długość do 50 znaków\"));\n tfCenaZakupu.setTooltip(new Tooltip(\"Wartości z przedziału <0.01;999999.99>\"));\n tfCenaZakupu.setText(Double.toString(cenaZakupu));\n tfCenaSprzedazy.setTooltip(new Tooltip(\"Wartości z przedziału <0.01;999999.99>\"));\n tfCenaSprzedazy.setText(Double.toString(cenaSprzedazy));\n tfIlosc.setTooltip(new Tooltip(\"Wartości z przedziału <1;99999>\"));\n tfIlosc.setText(Integer.toString(ilosc));\n try{\n Statement stmt = Silownia.conn.createStatement();\n ResultSet rs = stmt.executeQuery(\"SELECT id_plac FROM c##wlasciciel.placowki ORDER by id_plac\");\n while(rs.next()){\n cdIDPlacowki.getItems().add(rs.getInt(1));\n }\n cdIDPlacowki.getSelectionModel().select(Integer.valueOf(idPlacowki));\n rs.close();\n rs = stmt.executeQuery(\"SELECT typ FROM c##wlasciciel.towary ORDER by typ\");\n while(rs.next()){\n cbTyp.getItems().add(rs.getString(1));\n }\n cbTyp.getSelectionModel().select(Typ);\n rs.close();\n stmt.close();\n }catch(Exception e){\n Stage err = new Stage(StageStyle.DECORATED);\n err.setTitle(\"Błąd\");\n err.initModality(Modality.APPLICATION_MODAL);\n Scene sc = new Scene(new Label(\"Nastąpił niespodziewany problem, uruchom aplikację ponownie\"),400,50);\n err.setScene(sc);\n err.show();\n Stage okno = (Stage) cbTyp.getScene().getWindow();\n okno.fireEvent(new WindowEvent(okno, WindowEvent.WINDOW_CLOSE_REQUEST));\n }\n }", "public TelaEscolhaAssento() {\n initComponents();\n }", "@Override\n\tpublic void activarModoPrestamo() {\n\t\tif(uiHomePrestamo!=null){\n\t\t\tif(uiHomePrestamo.getModo().equals(\"HISTORIAL\")){\n\t\t\t\tbtnNuevo.setVisible(false);\t\n\t\t\t\tbtnEliminar.setVisible(false);\n\t\t\t}else{\n\t\t\t\tbtnNuevo.setVisible(true);\n\t\t\t\tbtnEliminar.setVisible(true);\n\t\t\t}\n\t\t}else if(uiHomeCobranza!=null){\n\t\t\tbtnEliminar.setVisible(false);\n\t\t\tbtnNuevo.setVisible(true);\n\t\t\t//pnlEstadoPrestamo.setVisible(false);\n\t\t}\n\t\t\n\t}", "public AlterarDadosTarAtrasadas() {\n initComponents();\n }", "public lectManage() {\n initComponents();\n tableComponents();\n viewSchedule();\n }", "@Override\n public void onStart () {\n lt.setText(activity.getString(R.string.toastSending));\n lt.setBackgroundColor(activity.getResources().getColor(R.color.indigo_600));\n lt.setTextColor(activity.getResources().getColor(R.color.white));\n lt.show();\n }", "@Override\n public void onStart () {\n lt.setText(activity.getString(R.string.toastSending));\n lt.setBackgroundColor(activity.getResources().getColor(R.color.indigo_600));\n lt.setTextColor(activity.getResources().getColor(R.color.white));\n lt.show();\n }", "public static void createWidget(Activity act) {\n logger.debug(\"/onCreateWidget/suggesting user to add widget to dashboard\");\n AppWidgetHost host = new AppWidgetHost(act, HOST_CODE);\n int nextId = host.allocateAppWidgetId();\n Intent pickIntent = new Intent(AppWidgetManager.ACTION_APPWIDGET_PICK);\n pickIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, nextId);\n act.startActivityForResult(pickIntent, ADD_WIDGET_KEY_CODE);\n\n }", "public Vencimientos() {\n initComponents();\n \n \n }", "public TelaCidadaoDescarte() {\n initComponents();\n }", "public void limpiar() {\n\t//txtBuscar.setText(\"\");\n\n\t// codTemporal.setText(\"\");\n\thabilita(true, false, false, false, false, true, false, true, true);\n }" ]
[ "0.6252361", "0.61273396", "0.6123733", "0.6105113", "0.60061955", "0.60005885", "0.5939863", "0.59341884", "0.592569", "0.5918013", "0.59138536", "0.5912027", "0.58714163", "0.58614194", "0.58481485", "0.58459127", "0.5828363", "0.5817516", "0.5796344", "0.57896703", "0.578626", "0.5782221", "0.5747362", "0.57422656", "0.5696768", "0.5680539", "0.5677716", "0.5670328", "0.5670094", "0.56699485", "0.56662244", "0.56652594", "0.56595844", "0.5655855", "0.56523734", "0.5649013", "0.5642559", "0.56422716", "0.56400406", "0.5629659", "0.56198734", "0.56169593", "0.56152266", "0.5615044", "0.5604319", "0.55988085", "0.55952764", "0.55947125", "0.55927676", "0.5588404", "0.5588099", "0.5587659", "0.55836964", "0.5583658", "0.55789685", "0.55781835", "0.55773604", "0.55751705", "0.55695003", "0.55671173", "0.55670327", "0.55667174", "0.55657256", "0.556433", "0.556433", "0.55627775", "0.55603045", "0.55589396", "0.5545603", "0.55456024", "0.55432075", "0.553951", "0.55371773", "0.5535154", "0.55339503", "0.5533906", "0.55320394", "0.5530214", "0.5528576", "0.5528077", "0.552393", "0.552393", "0.5522218", "0.5519526", "0.5517629", "0.55145514", "0.5513543", "0.55116403", "0.55096275", "0.55094343", "0.5505141", "0.5503336", "0.5502956", "0.54978466", "0.54960406", "0.54953563", "0.54953563", "0.54916984", "0.5490999", "0.54877436", "0.54875827" ]
0.0
-1
Actualiza los botones de sugerencias
private void actualizaSugerencias() { // Pide un vector con las últimas N_SUGERENCIAS búsquedas // get_historial siempre devuelve un vector tamaño N_SUGERENCIAS // relleno con null si no las hay String[] historial = buscador.get_historial(N_SUGERENCIAS); // Establece el texto para cada botón... for(int k=0; k < historial.length; k++) { String texto = historial[k]; // Si la entrada k está vacía.. if ( texto == null) { // Rellena el botón con el valor por defecto texto = DEF_SUGERENCIAS[k]; // Y lo añade al historial para que haya concordancia buscador.add_to_historial(texto); } b_sugerencias[k].setText(texto); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void inicializarBotones() {\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'login'\n\t\tthis.controladorLogin = new ControladorLogin(vista, modelo);\n\t\tthis.controladorLogin.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'registro'\n\t\tthis.controladorRegistro = new ControladorRegistro(vista, modelo);\n\t\tthis.controladorRegistro.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'bienvenida'\n\t\tthis.controladorBienvenida = new ControladorBienvenida(vista, modelo);\n\t\tthis.controladorBienvenida.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'sel_billete'\n\t\tthis.controladorBillete = new ControladorBillete(vista, modelo);\n\t\tthis.controladorBillete.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'sel_fecha'\n\t\tthis.controladorFecha = new ControladorFecha(vista, modelo);\n\t\tthis.controladorFecha.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'detalles_compra'\n\t\tthis.controladorDetalles = new ControladorDetalles(vista, modelo);\n\t\tthis.controladorDetalles.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'pago'\n\t\tthis.controladorPago = new ControladorPago(vista, modelo);\n\t\tthis.controladorPago.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel \"fin_pago\"\n\t\tthis.controladorFinPago = new ControladorFinPago(vista, modelo);\n\t\tthis.controladorFinPago.addListeners();\n\t}", "public void conectarControlador(Controlador c){\n int i = 1;\n for(BCE b : eleccion.getBotones()){\n b.getBoton().setActionCommand(\"\" + i++);\n b.getBoton().addActionListener(c);\n }\n btnRegistrar.addActionListener(c);\n }", "private void cargarBotones() {\n recordar_pass = findViewById(R.id.button_recordar);\n recordar_pass.setOnClickListener(new View.OnClickListener() {\n public void onClick(final View v) {\n //Antes de hacer la peticion al servidor hacemos las comprobaciones necesarias.\n if (textInputLayout_email.getText().toString().isEmpty() || textInputLayout_email.getText().toString().equals(\"\")) {\n mensaje=getResources().getString(R.string.debe_indicar_nombre_usuario_registrado);\n Snackbar.make(v, mensaje, Snackbar.LENGTH_LONG).setAction(\"Action\", null).show();\n } else {\n // Para cerrar el teclado antes de mostrar el AlertDialog\n InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n inputMethodManager.hideSoftInputFromWindow(textInputLayout_email.getWindowToken(), 0);\n //Dialogo que confirma el cambio de contraseña informado al usuario que se\n // le enviara un correo con la nueva contraseña auto generada.\n AlertDialog alertDialog = new AlertDialog.Builder(RecordarPass.this).create();\n alertDialog.setTitle(getResources().getString(R.string.recordarpasstitulo));\n alertDialog.setMessage(getResources().getString(R.string.mensaje_recordar_pass));\n alertDialog.setButton(AlertDialog.BUTTON_POSITIVE, getResources().getString(R.string.aceptar), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n JSONObject json = new JSONObject();\n try {\n json.put(Tags.USUARIO, textInputLayout_email.getText().toString());\n //Se hace la peticion al servidor con el json que lleva dentro el email del usuario.\n json = JSONUtil.hacerPeticionServidor(\"usuarios/java/recuperar_contrasena/\", json);\n\n\n String p = json.getString(Tags.RESULTADO);\n //Comprobamos la conexión con el servidor\n if (p.contains(Tags.ERRORCONEXION)) {\n //Si no conecta imprime un snackbar\n mensaje=getResources().getString(R.string.error_conexion);\n Snackbar.make(v, mensaje, Snackbar.LENGTH_LONG).setAction(\"Action\", null).show();\n\n// return false;\n }\n else if (p.contains(Tags.OK)) {\n //Si el servidor devuelve OK y se ha generado una nueva\n // contraseña porque el usuario es correcto, tendra que mirar\n // el su correo para poder acceder a la apliacion con la nueva contraseña.\n mensaje= getResources().getString(R.string.mensaje_enviado);\n Snackbar.make(v, mensaje, Snackbar.LENGTH_LONG).setAction(\"Action\", null).show();\n finish();\n }\n //resultado falla por otro error\n else if (p.contains(Tags.ERROR)) {\n String msg = json.getString(Tags.MENSAJE);\n Snackbar.make(v, msg, Snackbar.LENGTH_LONG).setAction(\"Action\", null).show();\n\n// return false;\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n dialog.dismiss();\n }\n });\n\n alertDialog.setButton(AlertDialog.BUTTON_NEGATIVE, getResources().getString(R.string.cancelar), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n alertDialog.show();\n }\n }\n\n });\n }", "private void commitApuesta() {\n\t\tif(tipo != -1){\n\t\t\tmodelo.setDestLogin(ModeloApuestas.DEST_APOSTUBERRI);\n\t\t\tmodelo.setApuestaInProgress(apostado.get(), tipo);\n\t\t\tif(!myController.isScreenLoaded(\"login\")){\n\t\t\t\tmyController.loadScreen(ScreensFramework.Login, ScreensFramework.Login_FXML);\n\t\t\t}\n\t\t\tmyController.setScreenOverlay(\"login\");\n\t\t}\n\t\t\n\t\t\n\t}", "public void enviaMotorista() {\n\t\tConector con = new Conector();\r\n\t\tString params[] = new String[2];\r\n\r\n\t\tparams[0] = \"op=4\";\r\n\t\tparams[1] = \"email=\" + usuario;\r\n\r\n\t\tcon.sendHTTP(params);\r\n\t}", "public void executeBot(){\n if(botSignal){\n if(bot != null){\n bot.execute();\n }\n }\n botSignal=false;\n }", "private void actualizarCampos(){\n obtenerPreguntasConRespuestas();\n actualizarRespuestasActuales();\n \n _opcionMultiple.actualizarPregunta(obtenerPregunta());\n _opcionMultiple.actualizarOpcion1(\"<html>\"+_respuestasActuales.get(0).getRespuesta()+\"</html>\");\n _opcionMultiple.actualizarOpcion2(\"<html>\"+_respuestasActuales.get(1).getRespuesta()+\"</html>\");\n _opcionMultiple.actualizarOpcion3(\"<html>\"+_respuestasActuales.get(2).getRespuesta()+\"</html>\");\n _opcionMultiple.actualizarOpcion4(\"<html>\"+_respuestasActuales.get(3).getRespuesta()+\"</html>\");\n \n if(_respuestaUsuario.size()>_posicion){\n _opcionMultiple.limpiarSelecciones();\n int numeroRespuesta = _respuestasActuales.indexOf(_respuestaUsuario.get(_posicion));\n _opcionMultiple.selecionarOpcion(numeroRespuesta);\n }else{\n _opcionMultiple.limpiarSelecciones();\n }\n }", "@Quando(\"acionar o botao save\")\r\n\tpublic void acionarOBotaoSave() {\n\t\tNa(CadastrarUsuarioPage.class).acionarBtnSave();\r\n\t}", "@FXML private void manejadorBotonAceptar() {\n\t\tif (this.validarDatos()) {\n\t\t\tif (this.opcion == CREAR) {\n\t\t\t\tthis.usuario.setUsuario(this.campoTextoNombreUsuario.getText());\n\t\t\t\tthis.usuario.setContrasena(this.campoContrasena.getText());\n\t\t\t\tthis.usuario.setCorreoElectronico(this.campoCorreo.getText());\n\t\t\t\tif (comboStatus.getSelectionModel().getSelectedItem() == \"Bloqueado\")\n\t\t\t\t\tthis.usuario.setStatus(0);\n\t\t\t\tif (comboStatus.getSelectionModel().getSelectedItem() == \"Activo\")\n\t\t\t\t\tthis.usuario.setStatus(1);\n\t\t\t\tif (comboStatus.getSelectionModel().getSelectedItem() == \"Baja\")\n\t\t\t\t\tthis.usuario.setStatus(2);\n\t\t\t\tthis.usuario.setGrupoUsuarioFk(listaGrupoUsuario.get(comboGrupoUsuario.getSelectionModel().getSelectedIndex()).getSysPk());\n\t\t\t\tthis.usuario.setEmpleadoFK(EmpleadoDAO.readEmpleadoPorNombre(this.mainApp.getConnection(), comboEmpleados.getSelectionModel().getSelectedItem()).getSysPK());\n\n\t\t\t\tif (UsuarioDAO.crear(this.mainApp.getConnection(), this.usuario)) {\n\t\t\t\t\tmanejadorBotonCerrar();\n\t\t\t\t\tNotificacion.dialogoAlerta(AlertType.INFORMATION, \"\", \"El registro se creo correctamente\");\n\t\t\t\t} else {\n\t\t\t\t\tNotificacion.dialogoAlerta(AlertType.INFORMATION, \"\", \"No se pudo crear el registro\");\n\t\t\t\t}//FIN IF-ELSE\n\t\t\t} else if (this.opcion == EDITAR) {\n\t\t\t\tthis.usuario.setUsuario(this.campoTextoNombreUsuario.getText());\n\t\t\t\tthis.usuario.setContrasena(this.campoContrasena.getText());\n\t\t\t\tthis.usuario.setCorreoElectronico(this.campoCorreo.getText());\n\t\t\t\tif (comboStatus.getSelectionModel().getSelectedItem() == \"Bloqueado\")\n\t\t\t\t\tthis.usuario.setStatus(0);\n\t\t\t\tif (comboStatus.getSelectionModel().getSelectedItem() == \"Activo\")\n\t\t\t\t\tthis.usuario.setStatus(1);\n\t\t\t\tif (comboStatus.getSelectionModel().getSelectedItem() == \"Baja\")\n\t\t\t\t\tthis.usuario.setStatus(2);\n\t\t\t\tthis.usuario.setGrupoUsuarioFk(listaGrupoUsuario.get(comboGrupoUsuario.getSelectionModel().getSelectedIndex()).getSysPk());\n\t\t\t\tthis.usuario.setEmpleadoFK(EmpleadoDAO.readEmpleadoPorNombre(this.mainApp.getConnection(), comboEmpleados.getSelectionModel().getSelectedItem()).getSysPK());\n\n\t\t\t\tif (UsuarioDAO.update(this.mainApp.getConnection(), this.usuario)) {\n\t\t\t\t\tmanejadorBotonCerrar();\n\t\t\t\t\tNotificacion.dialogoAlerta(AlertType.INFORMATION, \"\", \"El registro se modifico correctamente\");\n\t\t\t\t} else {\n\t\t\t\t\tNotificacion.dialogoAlerta(AlertType.INFORMATION, \"\", \"No se pudo modificar el registro, revisa la información sea correcta\");\n\t\t\t\t}//FIN IF-ELSE\n\t\t\t} else if (this.opcion == VER) {\n\t\t\t\tmanejadorBotonCerrar();\n\t\t\t}//FIN IF ELSE\n\t\t}//FIN METODO\n\t}", "public void treatment()\n {\n\t\tCommunicationManagerServer cms = CommunicationManagerServer.getInstance();\n\t\tDataServerToComm dataInterface = cms.getDataInterface();\n\t\t/** On récupère et stocke l'adresse IP du serveur\n\t\t */\n\t\tdataInterface.updateUserChanges(user);\n\n\t /** Création du message pour le broadcast des informations**/\n\t updatedAccountMsg message = new updatedAccountMsg(this.user);\n\t\tmessage.setPort(this.getPort());\n\t cms.broadcast(message);\n\t}", "private void enableBotonAceptar()\r\n\t{\r\n\t\t\r\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n if(e.getActionCommand() == \"Iniciar sesión\" ){\n this.mostrarDatosUsuario();\n this.entrar();\n }\n if(e.getActionCommand() == \"Registrate\" ){\n JOptionPane.showMessageDialog(null, \"Oprimió botón registrarse\" , \"Advertencia\", 1);\n }\n if(e.getActionCommand() == \"¿Olvidaste tu contraseña?\" ){\n JOptionPane.showMessageDialog(null, \"Oprimió botón recuperar contraseña\" , \"Advertencia\", 1);\n }\n if(e.getSource() == logintemplate.getBVerContraseña()){\n JOptionPane.showMessageDialog(null, \"Oprimido botón ver contraseña\" , \"Advertencia\", 1);\n }\n if(e.getSource() == logintemplate.getBVerMas()){\n JOptionPane.showMessageDialog(null, \"Oprimido botón ver mas\" , \"Advertencia\", 1);\n }\n }", "public void iniciarComponentes(){\n\n crearPanel();\n colocarBotones();\n \n }", "private void iniciarRondaJuego() {\n\n\t\tthis.mostrarMensaje(\"bloqueando al servidor para despertar al jugador 1\");\n\t\tbloqueoJuego.lock();\n\n\t\t// despertar al jugador 1 porque es su turno\n\t\ttry {\n\t\t\tthis.mostrarMensaje(\"Despertando al jugador 1 para que inicie el juego\");\n\t\t\tjugadores[0].setSuspendido(false);\n\t\t\tjugadores[1].setSuspendido(false);\n\t\t\tesperarInicio.signalAll();\n\t\t} catch (Exception e) {\n\n\t\t} finally {\n\t\t\tthis.mostrarMensaje(\"Desbloqueando al servidor luego de despertar al jugador 1 para que inicie el juego\");\n\t\t\tbloqueoJuego.unlock();\n\t\t}\n\t}", "private void notificarSensores() {\n\t\tmvmSensorsObservers.forEach(sensorObserver -> sensorObserver.update());\n\t}", "protected void agregarUbicacion(){\n\n\n\n }", "private void fncConversacionPendienteSessionActiva() {\n if( Storage.fncStorageEncontrarUnaLinea(perfil.stgFriends, yoker) == true && \r\n Storage.fncStorageEncontrarUnaLinea(perfil.stgChats, yoker) == true\r\n ){\r\n\r\n // Agrego un nuevo mensaje a la conversion original\r\n // por que si perfil me tiene como amigo pudo estar enviado mesajes... (Entonces es el más actualizado)\r\n String chat_original = Storage.fncStorageCrearRutaChats(perfil.getStrEmail(), session_activa.getStrEmail());\r\n Storage.fncStorageAcoplarUnaLinea(chat_original, mensaje);\r\n\r\n // Registrar a perfil en mi cuenta o session_activa\r\n Storage.fncStorageActualizarUnaLinea(session_activa.stgFriends, perfil_seleccionado);\r\n\r\n // Regitrar a perfil en mi cuenta o session_activa (Este no es necesario)\r\n // Storage.fncStorageActualizarUnaLinea(session_activa.stgChats, perfil);\r\n\r\n // Clonar la conversion de perfil a session_activa (Entonces es el más actualizado)\r\n String chat_clone = Storage.fncStorageCrearRutaChats(session_activa.getStrEmail(), perfil.getStrEmail());\r\n Storage.fncStorageCopiarArchivo(new File(chat_original), chat_clone);\r\n \r\n if( this.mostrar_msg )\r\n JOptionPane.showMessageDialog(null, \"Tienes una conversación pendiente con \"\r\n + \"\\n\\t\\t\\t\\t\" + perfil.getStrEmail()\r\n + \"\\nPuedes chatear pueden conservar en usuario en las lista de amigos.\");\r\n }else{ \r\n\r\n // Agrego un nuevo mensaje en la conversación de session_activa\r\n String chat = Storage.fncStorageCrearRutaChats(session_activa.getStrEmail(), perfil.getStrEmail());\r\n Storage.fncStorageAcoplarUnaLinea(chat, mensaje);\r\n\r\n // Clonar la conversion de session_activa a perfil \r\n String chat_clone = Storage.fncStorageCrearRutaChats(perfil.getStrEmail(), session_activa.getStrEmail());\r\n Storage.fncStorageCopiarArchivo(new File(chat), chat_clone);\r\n\r\n // * Verificar que los puedan conversar entre ellos ....\r\n if( Storage.fncStorageEncontrarUnaLinea(perfil.stgFriends, yoker) == false && \r\n Storage.fncStorageEncontrarUnaLinea(session_activa.stgFriends, perfil_seleccionado) == false\r\n ){\r\n\r\n Storage.fncStorageActualizarUnaLinea(perfil.stgFriends, yoker);\r\n Storage.fncStorageActualizarUnaLinea(session_activa.stgFriends, perfil_seleccionado);\r\n \r\n if( this.mostrar_msg )\r\n JOptionPane.showMessageDialog(null, \"Haz recuperado la conversación con \"\r\n + \"\\n\\t\\t\\t\\t\" + perfil.getStrEmail()\r\n + \"\\nPuedes chatear pueden conservar en usuario en las lista de amigos.\");\r\n\r\n }else JOptionPane.showMessageDialog(null, \"Mensaje enviado.\"); \r\n } \r\n }", "private void suarez() {\n\t\ttry {\n\t\t\tThread.sleep(5000); // espera, para dar tempo de ver as mensagens iniciais\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tint xInit = -10;\n\t\tint yInit = 8;\n\t\tplayerDeafaultPosition = new Vector2D(xInit*selfPerception.getSide().value(), yInit*selfPerception.getSide().value());\n\t\twhile (commander.isActive()) {\n\t\t\t\n\t\t\tupdatePerceptions(); // deixar aqui, no começo do loop, para ler o resultado do 'move'\n\t\t\tswitch (matchPerception.getState()) {\n\t\t\tcase BEFORE_KICK_OFF:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\t\t\t\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase PLAY_ON:\n\t\t\t\t//state = State.FOLLOW;\n\t\t\t\texecuteStateMachine();\n\t\t\t\tbreak;\n\t\t\tcase KICK_OFF_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_OFF_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORNER_KICK_LEFT: // escanteio time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORNER_KICK_RIGHT: // escanteio time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_IN_LEFT: // lateral time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\tcase KICK_IN_RIGHT: // lateal time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_LEFT: // Tiro livre time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_RIGHT: // Tiro Livre time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_FAULT_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_FAULT_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GOAL_KICK_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GOAL_KICK_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase AFTER_GOAL_LEFT:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\n\t\t\t\tbreak;\n\t\t\tcase AFTER_GOAL_RIGHT:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\n\t\t\t\tbreak;\n\t\t\tcase INDIRECT_FREE_KICK_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase INDIRECT_FREE_KICK_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t}", "public void actualizar(){\n\t\tif( EventoTeclado.pause ){\n\t\t\tgame.pauseAll();\n\t\t\tpause.setVisible(game.isPaused());\n\t\t}\n\t\tgame.jugar();\n\t\tmoverPlataformas();\n\t\tactualizarContadores();\n\t\tactualizarNombrePoder();\n\t\t \t\n\t}", "@Override\n\tpublic void conferenceroom() {\n\t\t\n\t}", "private void doConnect() throws Exception {\n try {\n Registry reg = LocateRegistry.getRegistry(conf.getNameServiceHost(), conf.getNameServicePort());\n server = (IChatServer) reg.lookup(conf.getServerName());\n } catch (RemoteException e) {\n throw new Exception(\"rmiregistry not found at '\" + conf.getNameServiceHost() + \":\" +\n conf.getNameServicePort() + \"'\");\n } catch (NotBoundException e) {\n throw new Exception(\"Server '\" + conf.getServerName() + \"' not found.\");\n }\n\n //Unir al bot al canal com a usuari\n //el Hashcode li afig un valor unic al nom, per a que ningu\n //li copie el nom com a usuari\n user = new ChatUser(\"bot \" + this.hashCode(), this);\n if (!server.connectUser(user))\n throw new Exception(\"Nick already in use\");\n\n //Comprovar si hi ha canals en el servidor.\n IChatChannel[] channels = server.listChannels();\n if (channels == null || channels.length == 0)\n throw new Exception(\"Server has no channels\");\n \n //Unir el bot a cadascun dels canals\n for (IChatChannel channel : channels) {\n channel.join(user);\n }\n\n System.out.println(\"Bot unit als canals i preparat.\");\n }", "public void actualizarUsuario(Long idUsr,String nick,String nombres,String pass){\n\t\t\t\t\t //buscamos el objeto que debe ser actualizado:\n\t\t\t\t\t Usuario u = findbyIdUsuario(idUsr);\n\t\t\t\t\t em.getTransaction().begin();\n\t\t\t\t\t // no se actualiza la clave primaria, en este caso solo la descripcion\n\t\t\t\t\t u.setNick(nick);\n\t\t\t\t\t u.setNombres(nombres);\n\t\t\t\t\t u.setPass(pass);\n\t\t\t\t\t em.merge(u);\n\t\t\t\t\t em.getTransaction().commit();\n\t\t\t\t }", "public void metodoBotaoFinalizarCadastro() {\n\n\n nomeCadastro = campoCadastroNome.getText().toString();\n emailCadastro = campoCadastroEmail.getText().toString();\n senhaCadastro = campoCadastroSenha.getText().toString();\n\n\n if (!nomeCadastro.isEmpty()) {\n\n if (!emailCadastro.isEmpty()) {\n\n if (!senhaCadastro.isEmpty()) {\n\n Usuarios classeUsuarios = new Usuarios();\n\n classeUsuarios.setNome(nomeCadastro);\n classeUsuarios.setEmail(emailCadastro);\n classeUsuarios.setSenha(senhaCadastro);\n classeUsuarios.setTipo(pegarTipoUsuarioSwitch());\n\n //Chamando metodo pra salvar o usuario\n metodoSalvarUsuarioFirebase(classeUsuarios);\n\n\n } else {\n\n Toast.makeText(CadastroUsuario.this, \"Por favor insira uma senha válida\", Toast.LENGTH_LONG).show();\n }\n\n } else {\n Toast.makeText(CadastroUsuario.this, \"Por favor preencha o email\", Toast.LENGTH_LONG).show();\n }\n\n } else {\n Toast.makeText(CadastroUsuario.this, \"Por favor preencha o campo nome\", Toast.LENGTH_LONG).show();\n }\n\n\n\n }", "public void inicializa_controles() {\n bloquea_campos();\n bloquea_botones();\n carga_fecha();\n ocultar_labeles();\n }", "private void tiendasButtonActionPerformed(java.awt.event.ActionEvent evt) {\n actualizarTiendas();\n }", "private void handleMessage (Message message, Update update){\r\n\t\tSendMessage sendMessage = new SendMessage();\r\n\t\tLong chatId = update.getMessage().getChatId();\r\n\t\tif (isPolling == true){//Si el comando de la encuesta ha sido pulsado, modo encuesta...\t\t\t\r\n\t\t\tif (haveQuestion == false){//Si es falso todavia no se ha asignado la pregunta...\r\n\t\t\t\tpoll.setQuestion(message.getText());//Asignamos\tla pregunta.\t\t\t\r\n\t\t\t\tsendMessage.setChatId(chatId);\r\n\t\t\t\tsendMessage.setParseMode(Poll.parseMode);\r\n\t\t\t\tsendMessage.setText(BotConfig.POLL_QUESTION_STRING+ message.getText() +BotConfig.POLL_FIRST_ANSWER_STRING);\r\n\t\t\t\thaveQuestion = true;//Marcamos que hay pregunta.\r\n\t\t\t} else {//En este estado tenemos la pregunta, asignamos las respuestas.\r\n\t\t\t\tpoll.setAnswers(message.getText());\t\t\t\t\r\n\t\t\t\tsendMessage.setChatId(chatId);\r\n\t\t\t\tsendMessage.setText(BotConfig.POLL_ANSWER_STRING);\r\n\t\t\t}\t\t\t\r\n\t\t} else if(update.getMessage().getFrom().getId() != null){//Si el id del usuario no es null...\r\n\t\t\tInteger id = update.getMessage().getFrom().getId();\r\n\t\t\tif (id == BotConfig.DEV_ID){//Si es mi id...\r\n\t\t\t\tsendMessage.setChatId(chatId);\r\n\t\t\t\tsendMessage.setText(BotConfig.DEV_WORDS);//Mensaje personalizado...xD\r\n\t\t\t}\t\r\n\t\t} else {//Sino respondemos con el mismo texto enviado por el usuario.\r\n\t\t\tsendMessage.setChatId(chatId);\r\n\t\t\tsendMessage.setText(update.getMessage().getText());\r\n\t\t} \t\t\r\n try { \t\r\n execute(sendMessage);//Enviamos mensaje. \r\n } catch (TelegramApiException e) {\r\n \tBotLogger.error(LOGTAG, e);//Guardamos mensaje y lo mostramos en pantalla de la consola.\r\n e.printStackTrace();\r\n }\r\n\t}", "public void ejecutarMaquinaTuring() {\n\n\t\tString cadenaEntrada;\n\t\tArrayList<String> cadenaCinta = new ArrayList<>();\n\t\tsetEstadoActual(getEstadoInicial());\n\t\tSystem.out.println(\"Inserte la cadena a probar:\");\n\t\tScanner imputUsuario = new Scanner(System.in);\n\t\tcadenaEntrada = imputUsuario.nextLine();\n\t\tfor (int i = 0; i < cadenaEntrada.length(); i++) {\n\t\t\tcadenaCinta.add(String.valueOf(cadenaEntrada.charAt(i)));\n\t\t}\n\n\t\tcinta = new Cinta(cadenaCinta, new CabezaLE());// inicializamos la cinta\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// con la cadena del\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// usuario\n\t\t/*\n\t\t * Evaluamos\n\t\t */\n\t\tboolean noTransiciones = false;\n\n\t\twhile (noTransiciones == false) {// para cuando no hayan transiciones\n\n\t\t\tnoTransiciones = true;// suponemos, a priori, que no hay\n\t\t\t\t\t\t\t\t\t// transiciones\n\n\t\t\tfor (int j = 0; j < conjuntoTransiciones.size(); j++) {\n\n\t\t\t\tString estadoSiguiente = cinta.getCabezaLE().transitar(estadoActual, cinta.getCadenaCinta(),\n\t\t\t\t\t\tconjuntoTransiciones.get(j));\n\n\t\t\t\tif (estadoSiguiente != null) {// si encontro un estado al que\n\t\t\t\t\t\t\t\t\t\t\t\t// transitar...\n\n\t\t\t\t\testadoActual = estadoSiguiente; // transita\n\t\t\t\t\tnoTransiciones = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} // END FOR\n\t\t} // END WHILE (NO QUEDAN TRANSICIONES)\n\t\tgetCinta().mostrarCinta();\n\t\tcadenaEsAceptada();\n\t}", "@When(\"^acionar o Botao de ENTRAR$\")\n\tpublic void acionar_o_Botao_de_ENTRAR() throws Throwable {\n\t\t\n\t\tPageObject_Login.ButtonEntrar();\t\n\t\t\n\t}", "private void initVistas() {\n // La actividad responderá al pulsar el botón.\n Button btnSolicitar = (Button) this.findViewById(R.id.btnSolicitar);\n btnSolicitar.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n solicitarDatos();\n }\n });\n lblDatos = (TextView) this.findViewById(R.id.lblDatos);\n }", "public void actualizarDatosComprador(Integer idUsuarioAratek) {\n\n ServicioBDD servicioBDD = new ServicioBDD(this);\n servicioBDD.abrirBD();\n EmpleadoVO empleadoVO = servicioBDD.obtenerNombreUsuario( idUsuarioAratek.toString() );\n servicioBDD.cerrarBD();\n\n if( empleadoVO==null ){\n\n StringBuilder mensaje = new StringBuilder();\n mensaje.append(\"No se encuentra registrado el usuario con id aratek: \")\n .append( idUsuarioAratek );\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage( mensaje.toString() );\n builder.setTitle(R.string.mns_titulo)\n .setPositiveButton(R.string.mns_ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n //Intent intent = new Intent(context, MenuActivity.class);\n //startActivity(intent);\n //finish();\n return;\n\n }\n })\n .setCancelable(false)\n .show();\n\n }else{\n\n mCedulaIdentidad.setText( empleadoVO.getNumeroDocumento() );\n mNombrePersona.setText( empleadoVO.getNombresCompletos() );\n\n }\n\n //logger.addRecordToLog(\"observaciones : \" + observaciones);\n\n /*Intent intent = new Intent(this, ConfirmarCompraActivity.class);\n Bundle bundle = new Bundle();\n bundle.putString(Constantes.NUMERO_CEDULA , empleadoVO.getNumeroDocumento());\n bundle.putString(Constantes.VALOR_COMPRA, this.valorCompra);\n bundle.putString(Constantes.OBSERVACIONES, observaciones);\n bundle.putInt(Constantes.ID_USUARIO_ARATEK, idUsuarioAratek);\n bundle.putString(Constantes.NOMBRE_USUARIO, empleadoVO.getNombresCompletos());\n\n intent.putExtras(bundle);\n\n startActivity(intent);\n //finish();*/\n //aqui\n\n\n /*AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"XXXYYYYY confirma la compra por xxxx !!!?\");\n builder.setTitle(R.string.mns_titulo)\n .setPositiveButton(R.string.mns_ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n //Intent intent = new Intent(context, MenuActivity.class);\n //startActivity(intent);\n //finish();\n\n\n confirmarCompra();\n\n Toast.makeText(UnicaCompraActivity.this, \"Compra confirmada\" , Toast.LENGTH_LONG).show();\n }\n })\n .setNegativeButton(R.string.mns_cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n //Intent intent = new Intent(context, MenuActivity.class);\n //startActivity(intent);\n //finish();\n\n\n cancelarCompra();\n\n Toast.makeText(UnicaCompraActivity.this, \"Compra confirmada\" , Toast.LENGTH_LONG).show();\n }\n })\n .setCancelable(false)\n .show();\n */\n }", "@Override\r\n public void run() {\n EnviarDatos(user,fecha1,pasos);\r\n }", "public void salir() {\n LoginManager.getInstance().logOut();\n irInicio();\n }", "@Override\n\tpublic void updateEncuestaConExito() {\n\n\t}", "protected void botonAceptarPulsado() {\n\t\tString pass = this.vista.getClave();\n\t\tchar[] arrayC = campoClave.getPassword();\n\t\tString clave = new String(arrayC);\n\t\tclave = Vista.md5(clave);\n\t\t\n\t\tif (pass.equals(clave)) {\n\t\t\tarrayC = campoClaveNueva.getPassword();\n\t\t\tString pass1 = new String(arrayC);\n\t\t\t\n\t\t\tarrayC = campoClaveRepita.getPassword();\n\t\t\tString pass2 = new String(arrayC);\n\t\t\t\n\t\t\tif (pass1.equals(pass2)) {\n\t\t\t\tif (this.vista.cambiarClave(pass1)) {\n\t\t\t\t\tthis.vista.msg(this, \"Contraseña maestra cambiada con éxito\");\n\t\t\t\t\tthis.setVisible(false);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.vista.error(this, \"Error al cambiar la contraseña maestra\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.vista.error(this, \"Las contraseñas no coinciden\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthis.vista.error(this, \"Contraseña incorrecta\");\n\t\t}\n\t}", "public void mantenimiento(){\n\t}", "public void Conectar(){\n Executors.newSingleThreadExecutor().execute(() -> {\n try {\n ws.connect();\n // se indica que el proposito del mensaje es identificar este nodo.\n // para lo cual se manda en el cuerpo que se trata de una tablet origin\n // y se envia la identificacion.\n String mensaje = buildMessage(this.PROPOSITO_ID, this.id, this.TABLET_ORIG);\n ws.sendText(mensaje);\n } catch (WebSocketException e) {\n e.printStackTrace();\n }\n });\n }", "private void fncMensajeEnviadoMensajeTo() {\n this.perfil_seleccionado = this.perfil.getStrEmail();\r\n this.yoker = session_activa.getStrEmail();\r\n \r\n \r\n if( !Storage.fncStorageBuscarUnaLinea(session_activa.stgFriends, this.perfil.getStrEmail()+Storage.identificador_amigo1) ){\r\n // Si no somos amigos nos ponemos un *\r\n perfil_seleccionado += \"*\"; // Si perfil selecciona no es amigo mio se pone un *\r\n yoker += \"*\";\r\n }\r\n \r\n // Buscar el chat\r\n boolean db_chats = Storage.fncStorageBuscarUnaLinea(session_activa.stgChats, perfil_seleccionado);\r\n boolean db_friends = Storage.fncStorageBuscarUnaLinea(session_activa.stgFriends, perfil_seleccionado+Storage.identificador_amigo1);\r\n \r\n // * Verificar estado de amistad para perfil\r\n String amistad = Storage.fncStorageVerificarAmistad(this.session_activa.stgFriends, this.perfil.getStrEmail());\r\n \r\n // * Verificar si somos amigos\r\n if( db_friends == true && db_chats == true && amistad.equals(\"amigos\") )\r\n this.fncConversacionActiva();\r\n else if( db_friends == false && db_chats == false && amistad.equals(\"none\") ) \r\n this.fncCrearConversacion();\r\n \r\n// }else if( db_friends == true && db_chats == false ){\r\n// this.fncConversacionPendientePerfil();\r\n// \r\n// }else if( db_friends == false && db_chats == true ){\r\n// this.fncConversacionPendienteSessionActiva();\r\n// \r\n// }else if( db_friends == false && db_chats == false ){\r\n// this.fncCrearConversacion();\r\n// '\r\n// }\r\n\r\n }", "private void analizarMensaje(String entrada, int indexJugador) {\n\t\tSystem.out.println(\"Analizando el mensaje del jugador con index \"+indexJugador+\" que dice \"+entrada);\n\t\t// TODO Auto-generated method stub\n\t\t// garantizar que solo se analice la petición del jugador en turno.\n\t\twhile (indexJugador != jugadorEnTurno && !entrada.equals(\"reiniciar\") && !entrada.equals(\"abandonar\")) {\n\t\t\tbloqueoJuego.lock();\n\t\t\ttry {\n\t\t\t\tesperarTurno.await();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tbloqueoJuego.unlock();\n\t\t}\n\n\t\t// valida turnos para jugador 0 o 1\n\n\t\tif (entrada.equals(\"pedir\")) {\n\t\t\t// dar carta\n\t\t\tmostrarMensaje(\"Se envió carta al jugador \" + idJugadores[indexJugador]);\n\t\t\tCarta carta = mazo.getCarta();\n\t\t\t// adicionar la carta a la mano del jugador en turno\n\t\t\tmanosJugadores.get(indexJugador).add(carta);\n\t\t\tcalcularValorMano(carta, indexJugador);\n\n\t\t\tdatosEnviar = new DatosBlackJack();\n\t\t\tdatosEnviar.setIdJugadores(idJugadores);\n\t\t\tdatosEnviar.setValorManos(valorManos);\n\t\t\tdatosEnviar.setCarta(carta);\n\t\t\t// datosEnviar.ponerImagen(carta);\n\t\t\tdatosEnviar.setJugador(idJugadores[indexJugador]);\n\t\t\t// determinar qué sucede con la carta dada en la mano del jugador y\n\t\t\t// mandar mensaje a todos los jugadores\n\t\t\tif (valorManos[indexJugador] > 21) {\n\t\t\t\t// jugador Voló\n\t\t\t\tdatosEnviar\n\t\t\t\t\t\t.setMensaje(idJugadores[indexJugador] + \" tienes \" + valorManos[indexJugador] + \" volaste :(\");\n\t\t\t\tdatosEnviar.setJugadorEstado(\"voló\");\n\t\t\t\tfor (int i = 0; i < jugadores.length; i++) {\n\t\t\t\t\tif (indexJugador == i) {\n\t\t\t\t\t\tdatosEnviar.setMensaje(\n\t\t\t\t\t\t\t\tidJugadores[indexJugador] + \" tienes \" + valorManos[indexJugador] + \" volaste\");\n\t\t\t\t\t\tjugadores[i].enviarMensajeCliente(datosEnviar);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdatosEnviar.setMensaje(\n\t\t\t\t\t\t\t\tidJugadores[indexJugador] + \" ahora tiene \" + valorManos[indexJugador] + \" volo\");\n\t\t\t\t\t\tjugadores[i].enviarMensajeCliente(datosEnviar);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// notificar a todos que jugador sigue\n\t\t\t\tif (jugadorEnTurno == 0) {\n\n\t\t\t\t\tdatosEnviar = new DatosBlackJack();\n\t\t\t\t\tdatosEnviar.setIdJugadores(idJugadores);\n\t\t\t\t\tdatosEnviar.setValorManos(valorManos);\n\t\t\t\t\tdatosEnviar.setJugador(idJugadores[1]);\n\t\t\t\t\tdatosEnviar.setJugadorEstado(\"iniciar\");\n\n\t\t\t\t\tdatosEnviar.setMensaje(\"Juega \" + idJugadores[1] + \" y tiene: \" + valorManos[1]);\n\t\t\t\t\tjugadores[0].enviarMensajeCliente(datosEnviar);\n\t\t\t\t\tjugadores[2].enviarMensajeCliente(datosEnviar);\n\t\t\t\t\tdatosEnviar.setMensaje(idJugadores[1] + \" te toca jugar y tienes \" + valorManos[1]);\n\t\t\t\t\tjugadores[1].enviarMensajeCliente(datosEnviar);\n\t\t\t\t\t// levantar al jugador en espera de turno\n\n\t\t\t\t\tbloqueoJuego.lock();\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// esperarInicio.await();\n\t\t\t\t\t\tjugadores[0].setSuspendido(true);\n\t\t\t\t\t\tesperarTurno.signalAll();\n\t\t\t\t\t\tjugadorEnTurno++;\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tbloqueoJuego.unlock();\n\t\t\t\t\t}\n\t\t\t\t} else if (jugadorEnTurno == 1) {\n\t\t\t\t\tdatosEnviar = new DatosBlackJack();\n\t\t\t\t\tdatosEnviar.setIdJugadores(idJugadores);\n\t\t\t\t\tdatosEnviar.setValorManos(valorManos);\n\t\t\t\t\tdatosEnviar.setJugador(idJugadores[2]);\n\t\t\t\t\tdatosEnviar.setJugadorEstado(\"iniciar\");\n\t\t\t\t\tdatosEnviar.setMensaje(\"Juega \" + idJugadores[2] + \" y tiene: \" + valorManos[2]);\n\t\t\t\t\tjugadores[0].enviarMensajeCliente(datosEnviar);\n\t\t\t\t\tjugadores[1].enviarMensajeCliente(datosEnviar);\n\t\t\t\t\tdatosEnviar.setMensaje(idJugadores[2] + \" te toca jugar y tienes \" + valorManos[2]);\n\t\t\t\t\tjugadores[2].enviarMensajeCliente(datosEnviar);\n\n\t\t\t\t\tbloqueoJuego.lock();\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// esperarInicio.await();\n\t\t\t\t\t\tjugadores[1].setSuspendido(true);\n\t\t\t\t\t\tesperarTurno.signalAll();\n\t\t\t\t\t\tjugadorEnTurno++;\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tbloqueoJuego.unlock();\n\t\t\t\t\t}\n\t\t\t\t} else {// era el jugador 3 entonces se debe iniciar el dealer\n\t\t\t\t\t\t// notificar a todos que le toca jugar al dealer\n\t\t\t\t\tdatosEnviar = new DatosBlackJack();\n\t\t\t\t\tdatosEnviar.setIdJugadores(idJugadores);\n\t\t\t\t\tdatosEnviar.setValorManos(valorManos);\n\t\t\t\t\tdatosEnviar.setJugador(\"dealer\");\n\t\t\t\t\tdatosEnviar.setJugadorEstado(\"iniciar\");\n\t\t\t\t\tdatosEnviar.setMensaje(\"Dealer se repartirá carta\");\n\n\t\t\t\t\tjugadores[0].enviarMensajeCliente(datosEnviar);\n\t\t\t\t\tjugadores[1].enviarMensajeCliente(datosEnviar);\n\t\t\t\t\tjugadores[2].enviarMensajeCliente(datosEnviar);\n\t\t\t\t\tiniciarDealer();\n\t\t\t\t}\n\n\t\t\t} else {// jugador no se pasa de 21 puede seguir jugando\n\t\t\t\tdatosEnviar.setCarta(carta);\n\t\t\t\tdatosEnviar.setJugador(idJugadores[indexJugador]);\n\t\t\t\tdatosEnviar.setMensaje(idJugadores[indexJugador] + \" ahora tienes \" + valorManos[indexJugador]);\n\t\t\t\tdatosEnviar.setJugadorEstado(\"sigue\");\n\n\t\t\t\tfor (int i = 0; i < jugadores.length; i++) {\n\t\t\t\t\tif (indexJugador == i) {\n\t\t\t\t\t\tdatosEnviar.setMensaje(idJugadores[indexJugador] + \" ahora tienes \" + valorManos[indexJugador]);\n\t\t\t\t\t\tjugadores[i].enviarMensajeCliente(datosEnviar);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdatosEnviar.setMensaje(idJugadores[indexJugador] + \" ahora tiene \" + valorManos[indexJugador]);\n\t\t\t\t\t\tjugadores[i].enviarMensajeCliente(datosEnviar);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Plantar\n\t\t} else if (entrada.equals(\"plantar\")) {\n\t\t\t// jugador en turno plantó\n\t\t\tdatosEnviar = new DatosBlackJack();\n\t\t\tdatosEnviar.setIdJugadores(idJugadores);\n\t\t\tdatosEnviar.setValorManos(valorManos);\n\t\t\tdatosEnviar.setJugador(idJugadores[indexJugador]);\n\t\t\tdatosEnviar.setMensaje(idJugadores[indexJugador] + \" se plantó\");\n\t\t\tdatosEnviar.setJugadorEstado(\"plantó\");\n\n\t\t\tjugadores[0].enviarMensajeCliente(datosEnviar);\n\t\t\tjugadores[1].enviarMensajeCliente(datosEnviar);\n\t\t\tjugadores[2].enviarMensajeCliente(datosEnviar);\n\n\t\t\t// notificar a todos el jugador que sigue en turno\n\t\t\tif (jugadorEnTurno == 0) {\n\n\t\t\t\tdatosEnviar = new DatosBlackJack();\n\t\t\t\tdatosEnviar.setIdJugadores(idJugadores);\n\t\t\t\tdatosEnviar.setValorManos(valorManos);\n\t\t\t\tdatosEnviar.setJugador(idJugadores[1]);\n\t\t\t\tdatosEnviar.setJugadorEstado(\"iniciar\");\n\t\t\t\tdatosEnviar.setMensaje(idJugadores[1] + \" te toca jugar y tienes \" + valorManos[1]);\n\t\t\t\tjugadores[1].enviarMensajeCliente(datosEnviar);\n\t\t\t\tdatosEnviar.setMensaje(\"Juega \" + idJugadores[1] + \" y tiene: \" + valorManos[1]);\n\t\t\t\tjugadores[0].enviarMensajeCliente(datosEnviar);\n\t\t\t\tjugadores[2].enviarMensajeCliente(datosEnviar);\n\t\t\t\t// levantar al jugador en espera de turno\n\n\t\t\t\tbloqueoJuego.lock();\n\t\t\t\ttry {\n\t\t\t\t\t// esperarInicio.await();\n\t\t\t\t\tjugadores[indexJugador].setSuspendido(true);\n\t\t\t\t\tesperarTurno.signalAll();\n\t\t\t\t\tjugadorEnTurno++;\n\t\t\t\t} finally {\n\t\t\t\t\tbloqueoJuego.unlock();\n\t\t\t\t}\n\t\t\t} else if (jugadorEnTurno == 1) {\n\t\t\t\tdatosEnviar = new DatosBlackJack();\n\t\t\t\tdatosEnviar.setIdJugadores(idJugadores);\n\t\t\t\tdatosEnviar.setValorManos(valorManos);\n\t\t\t\tdatosEnviar.setJugador(idJugadores[2]);\n\t\t\t\tdatosEnviar.setJugadorEstado(\"iniciar\");\n\t\t\t\tdatosEnviar.setMensaje(idJugadores[2] + \" te toca jugar y tienes \" + valorManos[2]);\n\t\t\t\tjugadores[2].enviarMensajeCliente(datosEnviar);\n\t\t\t\tdatosEnviar.setMensaje(\"Juega \" + idJugadores[2] + \" y tiene: \" + valorManos[2]);\n\t\t\t\tjugadores[0].enviarMensajeCliente(datosEnviar);\n\t\t\t\tjugadores[1].enviarMensajeCliente(datosEnviar);\n\n\t\t\t\t// levantar al jugador en espera de turno\n\n\t\t\t\tbloqueoJuego.lock();\n\t\t\t\ttry {\n\t\t\t\t\t// esperarInicio.await();\n\t\t\t\t\tjugadores[indexJugador].setSuspendido(true);\n\t\t\t\t\tesperarTurno.signalAll();\n\t\t\t\t\tjugadorEnTurno++;\n\t\t\t\t} finally {\n\t\t\t\t\tbloqueoJuego.unlock();\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\t// notificar a todos que le toca jugar al dealer\n\t\t\t\tdatosEnviar = new DatosBlackJack();\n\t\t\t\tdatosEnviar.setIdJugadores(idJugadores);\n\t\t\t\tdatosEnviar.setValorManos(valorManos);\n\t\t\t\tdatosEnviar.setJugador(\"dealer\");\n\t\t\t\tdatosEnviar.setJugadorEstado(\"iniciar\");\n\t\t\t\tdatosEnviar.setMensaje(\"Dealer se repartirá carta\");\n\n\t\t\t\tjugadores[0].enviarMensajeCliente(datosEnviar);\n\t\t\t\tjugadores[1].enviarMensajeCliente(datosEnviar);\n\t\t\t\tjugadores[2].enviarMensajeCliente(datosEnviar);\n\t\t\t\tiniciarDealer();\n\t\t\t}\n\t\t\t// APUESTA\n\t\t}\n\t\telse if(entrada.equals(\"abandonar\")) {\n\t\t\tdatosEnviar.setJugador(idJugadores[indexJugador]);\n\t\t\tterminarJuego();\n\t\t}\n\t\telse if(entrada.equals(\"salgo\")) {\n\t\t\t\n\t\t}\n\t\telse if(entrada.equals(\"reiniciar\")) {\n\t\t\tnumeroJugadoresReiniciando++;\n\t\t\tif(numeroJugadoresReiniciando==3) {\n\t\t\t\treiniciar();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdatosEnviar.setJugadorEstado(\"reiniciando\");\n\t\t\t\tjugadores[indexJugador].enviarMensajeCliente(datosEnviar);\n\t\t\t\tSystem.out.println(\"Enviando reiniciar al jugador con index \"+indexJugador);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tdatosEnviar = new DatosBlackJack();\n\t\t\tapuestasJugadores[indexJugador] = Integer.parseInt(entrada);\n\n\t\t\tdatosEnviar.setIdJugadores(idJugadores);\n\t\t\tdatosEnviar.setValorManos(valorManos);\n\t\t\tdatosEnviar.setJugador(idJugadores[indexJugador]);\n\t\t\tdatosEnviar.setMensaje(idJugadores[indexJugador] + \" aposto \" + entrada);\n\t\t\tSystem.out.println(indexJugador+\" aposto \"+entrada);\n\t\t\tdatosEnviar.setEstadoJuego(true);\n\t\t\tdatosEnviar.setJugadorEstado(\"apuesta\");\n\t\t\tdatosEnviar.setApuestas(apuestasJugadores);\n\t\t\tSystem.out.println(\"Apuestas a enviar:\");\n\t\t\tfor(int i=0; i<apuestasJugadores.length;i++) {\n\t\t\t\tSystem.out.println(\"[\"+i+\",\"+apuestasJugadores[i]+\"]\");\n\t\t\t}\n\n\t\t\tjugadores[0].enviarMensajeCliente(datosEnviar);\n\t\t\tjugadores[1].enviarMensajeCliente(datosEnviar);\n\t\t\tjugadores[2].enviarMensajeCliente(datosEnviar);\n\n\t\t\tdatosEnviar.setJugadorEstado(\"iniciar\");\n\t\t\tdatosEnviar.setMensaje(\"\");\n\t\t\tdatosEnviar.setEstadoJuego(false);// Ronda de pedir cartas.\n\t\t\tdatosEnviar.setApuestas(apuestasJugadores);\n\t\t\tjugadores[0].enviarMensajeCliente(datosEnviar);\n\t\t\tjugadores[1].enviarMensajeCliente(datosEnviar);\n\t\t\tjugadores[2].enviarMensajeCliente(datosEnviar);\n\n\t\t}\n\t}", "public void registraControlador(ActionListener controller) { //Registro els botons\n jbReserva.addActionListener(controller);\n jbDemanar.addActionListener(controller);\n jbReserva.setActionCommand(\"RESERVAR\");\n jbDemanar.setActionCommand(\"DEMANAR\");\n }", "public void actualizarContadores(){\n\t\tparent.refresqueContadores();\n\t}", "public void ejecutarConsola() {\n\n try {\n this._agente = new SearchAgent(this._problema, this._busqueda);\n this._problema.getInitialState().toString();\n this.imprimir(this._agente.getActions());\n this.imprimirPropiedades(this._agente.getInstrumentation());\n if (_esSolucion) {\n Logger.getLogger(Juego.class.getName()).log(Level.INFO, \"SOLUCIONADO\");\n } else {\n Logger.getLogger(Juego.class.getName()).log(Level.INFO, \"No lo he podido solucionar...\");\n }\n } catch (Exception ex) {\n System.out.println(ex);\n }\n }", "private void turnos() {\n\t\tfor(int i=0; i<JuegoListener.elementos.size(); i++){\n\t\t\tElemento elemento = JuegoListener.elementos.get(i);\n\t\t\t\n\t\t\telemento.jugar();\n\t\t}\n\t}", "public cambiarContrasenna() {\n initComponents();\n txtNombreUsuario.setEnabled(false);\n inicializarComponentes();\n cargarUsuarios();\n }", "private void controladorAdmin(Controlador controlador){\n this.contAdminUsuarios = controlador.getAdminUsuarios();\n inicioAdmin.setControlAdminUsuarios(contAdminUsuarios);\n \n this.contAdminConfig = controlador.getAdminConfig();\n inicioAdmin.setControlAdminConfig(contAdminConfig);\n \n this.contAdminProyectosGuardar = controlador.getAdminProyectosGuardar();\n inicioAdmin.setControlAdminGuardar(contAdminProyectosGuardar);\n }", "@Override\n protected void onMessage(String channel, String sender, String login, String hostname, String message) {\n commands.updateVariables(this, sender, channel, message);\n security.updateVariables(this, channel, sender, message, hostname);\n \n commands.run();\n security.run();\n }", "private void btnEnviarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEnviarActionPerformed\n EnviarDatos(txtMensaje.getText());\n txtMensaje.setText(\"\");\n letras();\n }", "public void changerJoueur() {\r\n\t\t\r\n\t}", "@Override\n\tvoid postarComentario() {\n\n\t}", "private void abrirVentanaChatPrivada() {\n\t\tthis.chatPublico = new MenuVentanaChat(\"Sala\", this, false);\n\t}", "private void controladorLogin(Controlador controlador){\n this.contLogin = controlador.getLogin();\n login.setControlContinuar(contLogin);\n }", "@Command\n\tpublic void actualizarEstatus(@BindingParam(\"analista\") final Analista analista){\n\t\tsuper.mostrarMensaje(\"Confirmacion\", \"¿Está seguro que desea cambiar el estatus del analista?\", Messagebox.EXCLAMATION, new Messagebox.Button[]{Messagebox.Button.YES,Messagebox.Button.NO}, \n\t\t\t\tnew EventListener(){\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tMessagebox.Button button = (Messagebox.Button) event.getData();\n\t\t\t\t\t\tif (button == Messagebox.Button.YES) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tanalista.setiEstatus(EstatusPersonaFactory.getEstatusActivo());\n\t\t\t\t\t\t\t\t//EL METODO DICE ACTUTALIZARPERSONA\n\t\t\t\t\t\t\t\tsMaestros.acutalizarPersona(analista);\n\t\t\t\t\t\t\t\tcambiarAnalistas(0, null, null);\n\t\t\t\t\t\t\t\tnotifyChange(\"analistas\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\n\t\t}, null);\n\t}", "@Override\r\n\tpublic void alterar(Telefone vo) throws Exception {\n\t\t\r\n\t}", "public void processActualizar() {\n }", "@Override\n\tpublic void ejecutar() {\n\t\tcontrolador.resetPartida();\n\n\t}", "private void EnviarDatos(String user, String fecha, String pasos){\n\r\n HttpClient httpclient = new DefaultHttpClient();\r\n //Utilizamos la HttpPost para enviar lso datos\r\n //A la url donde se encuentre nuestro archivo receptor\r\n\r\n\r\n\r\n\r\n HttpPost httppost2 = new HttpPost(\"http://mets.itisol.com.mx/paciente/insertaActividad\");\r\n try {\r\n //Añadimos los datos a enviar en este caso solo uno\r\n //que le llamamos de nombre 'a'\r\n //La segunda linea podría repetirse tantas veces como queramos\r\n //siempre cambiando el nombre ('a')\r\n List<NameValuePair> postValues = new ArrayList<NameValuePair>(2);\r\n postValues.add(new BasicNameValuePair(\"usuario\", user));\r\n\r\n postValues.add(new BasicNameValuePair(\"fecha\", fecha));\r\n Log.d(\"la fecha es\", \"\" + cambiaFecha(fecha));\r\n postValues.add(new BasicNameValuePair(\"pasos\", pasos));\r\n\r\n // postValues.add(new BasicNameValuePair(\"tipo\", \"1\"));\r\n\r\n //Encapsulamos\r\n httppost2.setEntity(new UrlEncodedFormEntity(postValues));\r\n //Lanzamos la petición\r\n HttpResponse respuesta2 = httpclient.execute(httppost2);\r\n //Conectamos para recibir datos de respuesta\r\n HttpEntity entity2 = respuesta2.getEntity();\r\n //Creamos el InputStream como su propio nombre indica\r\n InputStream is2 = entity2.getContent();\r\n //Limpiamos el codigo obtenido atraves de la funcion\r\n //StreamToString explicada más abajo\r\n String resultado2= StreamToString(is2);\r\n\r\n //Enviamos el resultado LIMPIO al Handler para mostrarlo\r\n Message sms2 = new Message();\r\n sms2.obj = resultado2;\r\n\r\n puente.sendMessage(sms2);\r\n }catch (IOException e) {\r\n //TODO Auto-generated catch block\r\n }\r\n\r\n }", "public void mandar_al_cliente_destino_nuevo_mensaje(String salida) throws SQLException, InterruptedException{\n this.multiServer.acceder_a_hebra_y_mandar_mensaje(this.usuario_destino, salida);\n //2-Cambiar el booleano enviado de la bd\n this.controladorMensajes.change_boolean_send(this.usuario, this.usuario_destino,this.fechahora_men_enviado);\n }", "private void syncWithServer() {\n if (!mIsActivityResumedFromSleep) {\n LogHelper\n .log(TAG, \"Activity is not resuming from sleep. So service initialization will handle xmpp login.\");\n return;\n }\n RobotCommandServiceManager.loginXmppIfRequired(getApplicationContext());\n }", "public void registrarAdministrador() throws IOException {\n\n //asignamos al usuario la imagen de perfil default\n usuarioView.setUsuarioFotoRuta(getPathDefaultUsuario());\n usuarioView.setUsuarioFotoNombre(getNameDefaultUsuario());\n\n //Se genera un login y un pass aleatorio que se le envia al proveedor\n MD5 md = new MD5();\n GenerarPassword pass = new GenerarPassword();\n SendEmail email = new SendEmail();\n\n password = pass.generarPass(6);//Generamos pass aleatorio\n\n //Encriptamos las contraseñas\n usuarioView.setUsuarioPassword(md.getMD5(password));//Se encripta la contreseña\n usuarioView.setUsuarioRememberToken(md.getMD5(password));\n\n //el metodo recibe los atributos, agrega al atributo ciudad del objeto usuario un objeto correspondiente, \n //de la misma forma comprueba el rol y lo asocia, por ultimo persiste el usuario en la base de datos\n usuarioView.setSmsCiudad(ciudadDao.consultarCiudad(usuarioView.getSmsCiudad()));//Asociamos una ciudad a un usuario\n usuarioView.setSmsRol(rolDao.consultarRol(usuarioView.getSmsRol()));//Asociamos un rol a un usuario\n usuarioView.setUsuarioEstadoUsuario(1);//Asignamos un estado de cuenta\n usuarioView.setSmsNacionalidad(nacionalidadDao.consultarNacionalidad(usuarioView.getSmsNacionalidad()));\n\n //registramos el usuario y recargamos la lista de clientes\n usuarioDao.registrarUsuario(usuarioView);\n usuariosListView = adminDao.consultarUsuariosAdministradores();\n\n //Enviar correo\n email.sendEmailAdministradorBienvenida(usuarioView, password);\n\n //limpiamos objetos\n usuarioView = new SmsUsuario();\n password = \"\";\n }", "private void controladorAdminUsuarios(Controlador controlador) {\n \tthis.contAdminConfig = controlador.getAdminConfig();\n \tadminUsuarios.setControlAdminConfig(contAdminConfig);\n \t\n \tthis.contAdminProyectos = controlador.getAdminProyectos();\n \tadminUsuarios.setControlAdminProyectos(contAdminProyectos);\n \t\n \tthis.contAdminUsuariosBloq = controlador.getAdminUsuariosBloq();\n \tadminUsuarios.setControlAdminBloq(contAdminUsuariosBloq);\n \t\n }", "private void handleCommand(String command, Update update){\r\n\t\tSendMessage message= new SendMessage();\t\t\r\n\t\tLong chatId = update.getMessage().getChatId();\r\n\t\tswitch (command){\r\n\t\tcase BotConfig.START_COMMAND:\t\t\t\t\r\n\t\t\tmessage.setText(BotConfig.WELCOME_STRING);\r\n\t\t\tbreak;\r\n\t\tcase BotConfig.HELP_COMMAND:\t\t\t\r\n\t\t\tmessage.setText(BotConfig.HELP_STRING);\r\n\t\t\tbreak;\r\n\t\tcase BotConfig.POLL_COMMAND:\t\t\t\r\n\t\t\tmessage.setText(BotConfig.POLL_STRING);\r\n\t\t\tpoll = new Poll();//Iniciamos la clase...\r\n\t\t\tisPolling = true;//\"Encendemos\" el modo encuesta.\t\t\t\r\n\t\t\tbreak;\r\n\t\tcase BotConfig.POLL_COMMAND_DONE:\r\n\t\t\tisPolling = false;//Reiniciamos la variable al finalizar el comando.\r\n\t\t\thaveQuestion = false;//Reiniciamos la variable para la pregunta.\r\n\t\t\tsendSurvey = true;//Marcamos para enviar la encuesta.\t\t\t\t\r\n\t\t\tmessage.setText(BotConfig.POLL_DONE_STRING);\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}\t\t\r\n\t\ttry {\r\n\t\t\tmessage.setChatId(chatId);\r\n\t\t\texecute(message);//Enviamos el mensaje... \r\n if (sendSurvey == true){ \t\r\n \t\r\n \texecute(poll.sendFinishedSurvey(chatId, poll.createSurveyString(poll.createSurvey())));//Enviamos encuesta antes de compartir.\r\n \tsendSurvey = false;//Marcamos como no enviada despues de haberlo hecho.\r\n }\r\n } catch (TelegramApiException e) {\r\n \tBotLogger.error(LOGTAG, e);//Guardamos mensaje y lo mostramos en pantalla de la consola.\r\n e.printStackTrace();\r\n }\r\n\t}", "private void controladorUser(Controlador controlador){\n this.contUserCrearProyecto = controlador.getUserCrearProyecto();\n inicioUser.setControlCrearProyecto(contUserCrearProyecto);\n \n this.contUserCrearColectivo = controlador.getUserCrearColectivo();\n inicioUser.setControlCrearColectivo(contUserCrearColectivo);\n\n this.contInformes = controlador.getInformes();\n inicioUser.setControlSolicitarInformes(contInformes); \n \n this.contFiltrar = controlador.getFiltrar();\n inicioUser.setControlFiltrar(contFiltrar);\n\n this.contLimpiar = controlador.getLimpiarFiltro();\n inicioUser.setControlLimpiarFiltro(contLimpiar);\n }", "private void actualizarUsuario() {\n\n\n if (!altura_et.getText().toString().isEmpty() && !peso_et.getText().toString().isEmpty() &&\n !email_et.getText().toString().isEmpty() && !nombreUO_et.getText().toString().isEmpty()) {\n\n user.setAltura(Integer.parseInt(altura_et.getText().toString()));\n user.setPeso(Integer.parseInt(peso_et.getText().toString()));\n user.setCorreo(email_et.getText().toString());\n user.setUserID(nombreUO_et.getText().toString());\n\n\n }else\n Toast.makeText(this,\"Comprueba los datos\", Toast.LENGTH_LONG).show();\n\n }", "private void esqueceu() {\n\n //Declaração de Objetos\n Veterinario veterinario = new Veterinario();\n\n //Declaração de Variaveis\n int crmv;\n String senha;\n\n //Atribuição de Valores\n try {\n crmv = Integer.parseInt(TextCrmv.getText());\n senha = TextSenha.getText();\n \n //Atualizando no Banco\n veterinario.Vdao.atualizarAnimalSenhaPeloCrmv(senha, crmv);\n \n } catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(null, \"APENAS NUMEROS NO CRMV!\");\n }\n JOptionPane.showMessageDialog(null, \"SUCESSO AO ALTERAR SENHA!\");\n\n }", "public void actionPerformed(ActionEvent arg0) {\n\r\n try {\r\n // Aplicacion Comprador\r\n if (ac != null) {\r\n System.out.println(\"Obteniendo ServiciosCompradorModelo\");\r\n sm = (ServiciosCompradorModelo) ac.getSm();\r\n System.out.println(\"Realizando login\");\r\n sm = (ServiciosCompradorModelo) sm.login((pl.getTxtCUsuario())\r\n .getText(), (pl.getTxtPassword()).getText(), true);\r\n \r\n ac.setSm((ServiciosCompradorRegistradoModelo)sm);\r\n \r\n System.out.println(\"Mostrando menu de usuario registrado\");\r\n ac.setMenuRegistrado();\r\n\r\n } else {\r\n System.out.println(\"***\\nObteniendo serviciosAccesoModelo\");\r\n \r\n sm = (ServiciosAccesoModelo) ae.getSm();\r\n System.out.println(\"Realizando login\");\r\n sm = (ServiciosAccesoModelo) sm.login((pl.getTxtCUsuario()).getText(),\r\n (pl.getTxtPassword()).getText(), false);\r\n \r\n if (sm instanceof ServiciosAdAuxModelo) {\r\n\t\t\t\t\tae.setMenuAdAux();\r\n\t\t}else if(sm instanceof ServiciosCocinaModelo) {\r\n\t\t\tae.setMenuCocina();\t\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"Que servicios tenemos?\");\r\n\t\t}\r\n \r\n ae.setSm(sm);\r\n }\r\n\r\n // Actualizamos los servicios de la aplicacion a cliente registrado\r\n pl.setVisible(false);\r\n\r\n } catch (MalformedURLException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (RemoteException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (errorConexionBD e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (errorSQL e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (NotBoundException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n\r\n }", "private void sendMetoMain(){\n Intent sendUserUI = new Intent(RegistrationActivity.this, MainActivity.class);\n sendUserUI.putExtra(KeyUserType, actualUserType);\n // unique id\n sendUserUI.putExtra(SenderKey, \"Register\");\n startActivity(sendUserUI);\n }", "public void nuevo(){\n switch(tipoDeOperaciones){\n case NINGUNO:\n activarControles();\n btnNuevo.setText(\"Guardar\");\n btnEliminar.setDisable(false);\n btnEliminar.setText(\"Cancelar\");\n btnEditar.setDisable(true);\n btnReporte.setDisable(true);\n tipoDeOperaciones = operaciones.GUARDAR;\n break;\n case GUARDAR:\n guardar();\n \n desactivarControles();\n limpiarControles();\n btnNuevo.setText(\"Nuevo\");\n btnEliminar.setText(\"Eliminar\");\n btnEliminar.setDisable(true);\n btnEditar.setDisable(true);\n btnReporte.setDisable(true);\n tipoDeOperaciones = operaciones.NINGUNO;\n break;\n } \n \n }", "@Test\n public void UserCanWriteAndSendAMessage() {\n proLogin(proWait);\n handler.getDriver(\"user\").navigate().refresh();\n // User to queue\n waitAndFillInformation(userWait);\n // User from queue\n\n waitAndPickFromQueue(proWait);\n\n // User can write message\n waitChatWindowsAppear(userWait).sendKeys(\"yy kaa koo\");\n\n // Can send it By Pressing Submit\n waitElementPresent(userWait, By.name(\"send\")).submit();\n assertEquals(\"\", waitChatWindowsAppear(userWait).getText());\n assertTrue(waitForTextToAppear(userWait, \"yy kaa koo\"));\n\n // Can send it By Pressing Enter\n waitChatWindowsAppear(userWait).sendKeys(\"kaa koo yy\");\n waitChatWindowsAppear(userWait).sendKeys(Keys.ENTER);\n\n assertEquals(\"\", waitChatWindowsAppear(userWait).getText());\n assertTrue(waitForTextToAppear(userWait, \"kaa koo yy\"));\n endConversationPro(proWait);\n }", "public static void eventoArticuloClienteDistribuidor(boolean preguntar) {\n if (preguntar) {\n if (Logica.Cuadros_Emergentes.confirmacionDefinida(\"\"\n + \"-Se borraran todos los datos escritos del nuevo distribuidor.\\n\\n\") == 0) {\n panel_nuevoDistribuidor.panelNuevoDistribuidor_textFieldCodigo.setText(\"\");\n panel_nuevoDistribuidor.panelNuevoDistribuidor_textFieldNombre.setText(\"\");\n panel_nuevoDistribuidor.panelNuevoDistribuidor_textFieldContacto.setText(\"\");\n panel_nuevoDistribuidor.panelNuevoDistribuidor_textFieldDireccion.setText(\"\");\n panel_nuevoDistribuidor.panelNuevoDistribuidor_botonHistorialDeDistribuidor.setVisible(false);\n panel_nuevoDistribuidor.panelNuevoDistribuidor_textFieldCodigo.setEditable(true);\n Diseño.Facturacion.paneles_base.panelBase_inventarioClientesDistribuidores.reestablecerComponentes();\n }\n } else {\n panel_nuevoDistribuidor.panelNuevoDistribuidor_textFieldCodigo.setText(\"\");\n panel_nuevoDistribuidor.panelNuevoDistribuidor_textFieldNombre.setText(\"\");\n panel_nuevoDistribuidor.panelNuevoDistribuidor_textFieldContacto.setText(\"\");\n panel_nuevoDistribuidor.panelNuevoDistribuidor_textFieldDireccion.setText(\"\");\n panel_nuevoDistribuidor.panelNuevoDistribuidor_botonHistorialDeDistribuidor.setVisible(false);\n panel_nuevoDistribuidor.panelNuevoDistribuidor_textFieldCodigo.setEditable(true);\n Diseño.Facturacion.paneles_base.panelBase_inventarioClientesDistribuidores.reestablecerComponentes();\n }\n }", "void spawnBot( String className, String login, String password, String messager ) {\n CoreData cdata = m_botAction.getCoreData();\n long currentTime;\n\n String rawClassName = className.toLowerCase();\n BotSettings botInfo = cdata.getBotConfig( rawClassName );\n\n if( botInfo == null ) {\n\n if(messager != null)\n m_botAction.sendChatMessage( 1, messager + \" tried to spawn bot of type \" + className + \". Invalid bot type or missing CFG file.\" );\n else\n m_botAction.sendChatMessage( 1, \"AutoLoader tried to spawn bot of type \" + className + \". Invalid bot type or missing CFG file.\" );\n\n m_botAction.sendSmartPrivateMessage( messager, \"That bot type does not exist, or the CFG file for it is missing.\" );\n return;\n }\n\n Integer maxBots = botInfo.getInteger( \"Max Bots\" );\n Integer currentBotCount = m_botTypes.get( rawClassName );\n\n if( maxBots == null ) {\n\n if(messager != null)\n m_botAction.sendChatMessage( 1, messager + \" tried to spawn bot of type \" + className + \". Invalid settings file. (MaxBots improperly defined)\" );\n else\n m_botAction.sendChatMessage( 1, \"AutoLoader tried to spawn bot of type \" + className + \". Invalid settings file. (MaxBots improperly defined)\" );\n\n m_botAction.sendSmartPrivateMessage( messager, \"The CFG file for that bot type is invalid. (MaxBots improperly defined)\" );\n return;\n }\n\n if( login == null && maxBots.intValue() == 0 ) {\n\n if(messager != null)\n m_botAction.sendChatMessage( 1, messager + \" tried to spawn bot of type \" + className + \". Spawning for this type is disabled on this hub.\" );\n else\n m_botAction.sendChatMessage( 1, \"AutoLoader tried to spawn bot of type \" + className + \". Spawning for this type is disabled on this hub.\" );\n\n m_botAction.sendSmartPrivateMessage( messager, \"Bots of this type are currently disabled on this hub. If you are running another hub, please try from it instead.\" );\n return;\n }\n\n if( currentBotCount == null ) {\n currentBotCount = new Integer( 0 );\n m_botTypes.put( rawClassName, currentBotCount );\n }\n\n if( login == null && currentBotCount.intValue() >= maxBots.intValue() ) {\n\n if(messager != null)\n m_botAction.sendChatMessage( 1, messager + \" tried to spawn a new bot of type \" + className + \". Maximum number already reached (\" + maxBots + \")\" );\n else\n m_botAction.sendChatMessage( 1, \"AutoLoader tried to spawn a new bot of type \" + className + \". Maximum number already reached (\" + maxBots + \")\" );\n\n m_botAction.sendSmartPrivateMessage( messager, \"Maximum number of bots of this type (\" + maxBots + \") has been reached.\" );\n return;\n }\n\n String botName, botPassword;\n currentBotCount = new Integer( getFreeBotNumber( botInfo ) );\n\n if( login == null || password == null ) {\n botName = botInfo.getString( \"Name\" + currentBotCount );\n botPassword = botInfo.getString( \"Password\" + currentBotCount );\n } else {\n botName = login;\n botPassword = password;\n }\n\n Session childBot = null;\n\n try {\n // FIXME: KNOWN BUG - sometimes, even when it detects that a class is updated, the loader\n // will load the old copy/cached class. Perhaps Java itself is caching the class on occasion?\n if( m_loader.shouldReload() ) {\n System.out.println( \"Reinstantiating class loader; cached classes are not up to date.\" );\n resetRepository();\n m_loader = m_loader.reinstantiate();\n }\n\n Class<? extends SubspaceBot> roboClass = m_loader.loadClass( \"twcore.bots.\" + rawClassName + \".\" + rawClassName ).asSubclass(SubspaceBot.class);\n String altIP = botInfo.getString(\"AltIP\" + currentBotCount);\n int altPort = botInfo.getInt(\"AltPort\" + currentBotCount);\n String altSysop = botInfo.getString(\"AltSysop\" + currentBotCount);\n\n if(altIP != null && altSysop != null && altPort > 0)\n childBot = new Session( cdata, roboClass, botName, botPassword, currentBotCount.intValue(), m_group, altIP, altPort, altSysop, true);\n else\n childBot = new Session( cdata, roboClass, botName, botPassword, currentBotCount.intValue(), m_group, true);\n } catch( ClassNotFoundException cnfe ) {\n Tools.printLog( \"Class not found: \" + rawClassName + \".class. Reinstall this bot?\" );\n return;\n }\n\n currentTime = System.currentTimeMillis();\n\n if( m_lastSpawnTime + SPAWN_DELAY > currentTime ) {\n m_botAction.sendSmartPrivateMessage( messager, \"Subspace only allows a certain amount of logins in a short time frame. Please be patient while your bot waits to be spawned.\" );\n\n if( m_spawnQueue.isEmpty() == false ) {\n int size = m_spawnQueue.size();\n\n if( size > 1 ) {\n m_botAction.sendSmartPrivateMessage( messager, \"There are currently \" + m_spawnQueue.size() + \" bots in front of yours.\" );\n } else {\n m_botAction.sendSmartPrivateMessage( messager, \"There is only one bot in front of yours.\" );\n }\n } else {\n m_botAction.sendSmartPrivateMessage( messager, \"You are the only person waiting in line. Your bot will log in shortly.\" );\n }\n\n if(messager != null)\n m_botAction.sendChatMessage( 1, messager + \" in queue to spawn bot of type \" + className );\n else\n m_botAction.sendChatMessage( 1, \"AutoLoader in queue to spawn bot of type \" + className );\n }\n\n String creator;\n\n if(messager != null) creator = messager;\n else creator = \"AutoLoader\";\n\n ChildBot newChildBot = new ChildBot( rawClassName, creator, childBot );\n addToBotCount( rawClassName, 1 );\n m_botStable.put( botName, newChildBot );\n m_spawnQueue.add( newChildBot );\n }", "public void actualizarMobibus(Mobibus mobibus);", "private void enviarRequisicaoAdicionar() {\n servidor.adicionarPalito(nomeJogador);\n atualizarPalitos();\n }", "@Override\n\tpublic void ejecutarActividadesConProposito() {\n\t\t\n\t}", "private void enviarDatos() {\n try {\n if (validarDatos()) { // verificar si todos los datos obligatorios tienen informacion\n // verificar que el usuario de la pantalla presiono el boton YES\n if (obtenerMensajeDeConfirmacion() == JOptionPane.YES_OPTION) {\n llenarEntidadConLosDatosDeLosControles(); // llenar la entidad de Rol con los datos de la caja de texto del formulario\n int resultado = 0;\n switch (opcionForm) {\n case FormEscOpcion.CREAR:\n resultado = ClienteDAL.crear(clienteActual); // si la propiedad opcionForm es CREAR guardar esos datos en la base de datos\n break;\n case FormEscOpcion.MODIFICAR:\n resultado = ClienteDAL.modificar(clienteActual);// si la propiedad opcionForm es MODIFICAR actualizar esos datos en la base de datos\n break;\n case FormEscOpcion.ELIMINAR:\n // si la propiedad opcionForm es ELIMINAR entonces quitamos ese registro de la base de datos\n resultado = ClienteDAL.eliminar(clienteActual);\n break;\n default:\n break;\n }\n if (resultado != 0) {\n // notificar al usuario que \"Los datos fueron correctamente actualizados\"\n JOptionPane.showMessageDialog(this, \"Los datos fueron correctamente actualizados\");\n if (frmPadre != null) {\n // limpiar los datos de la tabla de datos del formulario FrmRolLec\n frmPadre.iniciarDatosDeLaTabla(new ArrayList());\n }\n this.cerrarFormulario(false); // Cerrar el formulario utilizando el metodo \"cerrarFormulario\"\n } else {\n // En el caso que las filas modificadas en el la base de datos sean cero \n // mostrar el siguiente mensaje al usuario \"Sucedio un error al momento de actualizar los datos\"\n JOptionPane.showMessageDialog(this, \"Sucedio un error al momento de actualizar los datos\");\n }\n }\n }\n } catch (Exception ex) {\n // En el caso que suceda un error al ejecutar la consulta en la base de datos \n // mostrar el siguiente mensaje al usuario \"Sucedio un error al momento de actualizar los datos\"\n JOptionPane.showMessageDialog(this, \"Sucedio el siguiente error: \" + ex.getMessage());\n }\n\n }", "public void enviarRequisicaoAtualizarChat(String mensagem) {\n servidor.enviarMensagem(nomeJogador, mensagem);\n }", "public alterarSenhaCliente() {\n }", "public void procesarTramaEasyFuel(){\n switch (bufferRecepcion[4]){\n //TRAMA DE CONFIGURACION\n case 0x06:\n if(bufferRecepcion[5] == 0x01 || bufferRecepcion[5] == 0x02){\n //TRAMA DE CONFIGURACION\n //Log.v(\"NOMBRE EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(bufferRecepcion,bufferRecepcion.length)));\n //Log.v(\"NOMBRE EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaNombreEmbedded,tramaNombreEmbedded.length)));\n //Log.v(\"TRAMA EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaMACEmbedded,tramaMACEmbedded.length)));\n //Log.v(\"PING HOST EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaPingHost,tramaPingHost.length)));\n //Log.v(\"NÚMERO DE BOMBAS\", \"\" + byteArrayToHexInt(numeroBombas,1));\n\n llenarDatosConfiguracion();\n insertarMaestrosSQLite();\n agregarImagenEstaciones();\n //inicializarMangueras();\n clientTCPThread.write(EmbeddedPtcl.b_ext_configuracion); //0x06\n\n //inicializarMangueras();\n /*try {\n Thread.sleep(3000);\n } catch (InterruptedException ie) {\n ie.printStackTrace();\n }*/\n\n //cambiarEstadoIniciaAbastecimiento(1);\n\n }\n break;\n\n //CAMBIO DE ESTADO\n case 0x01:\n int indiceLayoutHose=0;\n //Capturar idBomba\n int[] arrayIdBomba = new int[1];\n int idBomba = 0;\n arrayIdBomba[0] = bufferRecepcion[7];\n idBomba = Integer.parseInt(byteArrayToHexIntGeneral(arrayIdBomba,1));\n\n for(int i=0;i<hoseEntities.size();i++ ){\n if(hoseEntities.get(i).idBomba==idBomba) {\n indiceLayoutHose = i;\n break;\n }\n }\n\n switch (bufferRecepcion[5]){\n case 0x01:\n //Cambio de estado\n if(hoseEntities.size() > 0){\n cambioEstado(indiceLayoutHose, bufferRecepcion[8]);\n }\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n break;\n case 0x02:\n //Estado actual de Mangueras\n cambioEstado(indiceLayoutHose, bufferRecepcion[8]);\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n //mConnectedThread.write(EmbeddedPtcl.b_ext_cambio_estado); //0x01\n break;\n case 0x03:\n //Cambio de Pulsos\n switch (bufferRecepcion[9]){\n case 0x01:\n // FLUJO\n if(hoseEntities.size() > 0){\n cambiarPulsos(indiceLayoutHose);\n }\n break;\n case 0x02:\n // INICIO NO FLUJO\n if(hoseEntities.size() > 0){\n cambiarEstadoSinFlujo(indiceLayoutHose);\n }\n break;\n case 0x03:\n // NO FLUJO\n if(hoseEntities.size() > 0){\n cambiarEstadoCierreHook(indiceLayoutHose);\n }\n break;\n }\n break;\n case 0x04:\n //Vehiculo Leido\n if(hoseEntities.size() > 0){\n cambiarPlaca(indiceLayoutHose);\n }\n\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n break;\n case 0x07:\n //Ultima transaccion\n\n if(hoseEntities.size() > 0){\n\n /*for(int j = 0; j< hoseEntities.size(); j++){\n if(hoseEntities.get(j).idBomba == idBomba){\n //llenarDatosTransaccion(hoseEntities.get(j));\n break;\n }\n }*/\n\n llenarDatosTransaccion(hoseEntities.get(indiceLayoutHose),indiceLayoutHose);\n\n }\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n //mConnectedThread.write(EmbeddedPtcl.b_ext_cambio_estado); //0x01\n break;\n }\n break;\n\n case 0x07:\n switch(bufferRecepcion[5]){\n case 0x01:\n break;\n }\n break;\n }\n changeFragment=true;\n }", "private static void imprimirMensajeEnPantalla() {\n\tSystem.out.println(\"########### JUEGO EL AHORCADO ###########\");\n\timprimirAhorcado(intentosRestantes);\n\tSystem.out.println(\"\\nPALABRA ACTUAL: \" + getPalabraActualGuionBajo());\n\tSystem.out.println(\"INTENTOS RESTANTES: \" + intentosRestantes);\n\t}", "private void sendNotifications() {\n this.sendNotifications(null);\n }", "@Override\n public void run() {\n if (plugin.getGm().getPlayersInGame().size() < plugin.getAm().getMinPlayers()) {\n plugin.getGm().setCheckStart(true);\n plugin.getServer().getOnlinePlayers().forEach(pl -> pl.setLevel(0));\n GameState.state = GameState.LOBBY;\n cancel();\n return;\n }\n \n plugin.getGm().getPlayersInGame().stream().forEach(players -> {\n plugin.getMsg().sendActionBar(players, \"&a&lEl juego empieza en: \" + count);\n });\n\n switch (count){\n case 30:\n plugin.getMsg().sendBroadcast(\"&7El juego empezará en &c30 &7segundos\");\n break;\n case 5:\n GameState.state = GameState.GAME;\n plugin.getGm().getPlayersInGame().forEach(p -> {\n plugin.getAm().teleport(p);\n TntWars.getPlayer(p).setCleanPlayer(GameMode.SURVIVAL);\n });\n break;\n case 4:\n case 3:\n case 2:\n case 1:\n plugin.getMsg().sendBroadcast(\"&7El juego empezará en &c\" + count + \" &7segundos\");\n plugin.getGm().getPlayersInGame().forEach(p -> p.playSound(p.getLocation(), Sound.NOTE_PLING, 1F, 1F));\n break;\n case 0:\n plugin.getGm().setDañoEnCaida(false);\n\n //Iniciar hilo de la fase de esconder (Ja, still nope)\n new GameTask(plugin).runTaskTimer(plugin, 20, 20);\n cancel();\n break;\n }\n --count; \n }", "private void noti1(){\n\t\t/*Contenido de notificacion*/\n\t\tNotification notificacion = new Notification( \n R.drawable.metrans_logo,\n \"Metrans inicializando... Bienvenido\",\n System.currentTimeMillis() );\n\t\t/*Fin de contenido de la notificacion*/\n\t\tPendingIntent intencionPendiente = PendingIntent.getActivity(\n\t\t this, 0, new Intent(this, MainActivity.class), 0);\n\t\tnotificacion.setLatestEventInfo(this, \"Somos tan chingones\",\n\t\t \"que tenemos notificaciones aqui\", intencionPendiente);\n\t\n\t\t nm1.notify(ID_NOTIFICACION_CREAR, notificacion); //Enviamos la notificacion al status bar\n\t\tnotificacion.defaults |= Notification.DEFAULT_VIBRATE; //Agregando algo de vibracion... Espero y funcione\n\t\t\n\t}", "static void sendNotifications() {\n\t\testablishConnection();\n\t\tSystem.out.println(\"sending multiple notificatiosn\");\n\t}", "void realizarSolicitud(Cliente cliente);", "private void RealizarAccion() {\n if (ValidarCampos()) {\n\n persona.setPrimerNombre(txtPrimerNombre.getText());\n persona.setSegundoNombre(txtSegundoNombre.getText());\n persona.setPrimerApellido(txtPrimerApellido.getText());\n persona.setSegundoApellido(txtSegundoApellido.getText());\n persona.setTelefono(txtTelefono.getText());\n persona.setCedula(txtCedula.getText());\n persona.setCorreo(txtCorreo.getText());\n persona.setDireccion(txtDireccion.getText());\n\n empleado.setFechaInicio(dcFechaInicio.getDate());\n empleado.setSalario(Double.parseDouble(txtSalario.getText()));\n empleado.setCargo(txtCargo.getText());\n empleado.setUsuarioByUserModificacion(SessionHelper.usuario);\n empleado.setFechaModificacion(new Date());\n empleado.setRegAnulado(false);\n\n switch (btnAction.getText()) {\n case \"Guardar\":\n int maxid = personaBean.MaxId() + 1;\n persona.setIdPersona(maxid);\n\n Dbcontext.guardar(persona);\n\n empleado.setIdEmpleado(maxid);\n empleado.setPersona(persona);\n empleado.setUsuarioByUserCreacion(SessionHelper.usuario);\n empleado.setFechaCreacion(new Date());\n\n Dbcontext.guardar(empleado);\n break;\n\n case \"Actualizar\":\n\n Dbcontext.actualizar(persona);\n\n Dbcontext.actualizar(empleado);\n break;\n }\n if (ifrRegistroEmpleados.isActive) {\n ifrRegistroEmpleados.CargarTabla();\n }\n\n Mensajes.OperacionExitosa(this);\n dispose();\n } else {\n Mensajes.InformacionIncompleta(this);\n }\n }", "public void actualizarPantallaJuego(float delta)\r\n {\r\n //recuadroInfoJuego.actualizarTiempo(delta); // Con esto actualizamos el tiempo del HUD\r\n\r\n // Con el siguiente ciclo actualizamos el movimiento o posicion de los monstruos\r\n for (int i=0; i < enemigos.size(); i++)\r\n {\r\n // Metodo encargado de renovar las posiciones dado un diferencial de tiempo\r\n enemigos.get(i).actualizarPosicion(delta);\r\n\r\n // En caso que el enemigo haya muerto entonces\r\n if (enemigos.get(i).haMuerto())\r\n {\r\n // Se lo pasamos al jugador contrario de modo que\r\n try\r\n {\r\n // Le enviamos un mensaje sobre que tipo de enemigo debe generar de manera aleatoria\r\n String aux = \"Transferir enemigo: \" + enemigos.get(i).getTipo() + \"\\n\";\r\n socketCliente.getOutputStream().write(aux.getBytes());\r\n }\r\n catch (Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n\r\n // Se suma su valor en puntaje al puntaje general obtenido por el usuario\r\n recuadroInfoJuego.agregarPuntaje(enemigos.get(i).getPuntaje());\r\n\r\n // Luego, se suma uno al numero total de enemigos eliminados por el jugador\r\n recuadroInfoJuego.anotarEnemigo();\r\n\r\n // Y se elimina el monstruo de la lista de enemigos\r\n enemigos.remove(i);\r\n i = i - 1;\r\n }\r\n }\r\n\r\n // Si ya se cumplio el tiempo para generar otro monstruo entonces\r\n if (contaTiempo >= tiempoParaGeneracion)\r\n {\r\n // Agregamos un nuevo enemigo aleatorio en coordenas generadas tambien de manera aleatoria\r\n enemigos.add(new Monstruo(MathUtils.random(0, MainGame.ANCHO_VIRTUAL), MathUtils.random(0, MainGame.ALTO_VIRTUAL), MathUtils.random(1,5), true));\r\n\r\n // Y reseteamos el contador de tiempo\r\n contaTiempo = 0;\r\n }\r\n\r\n // O si se detecto que me pasaron un monstruo entonces\r\n if (enemigoTransferido != -1)\r\n {\r\n // Genero el tipo de monstruo especificado en coordenadas aleatorias\r\n enemigos.add(new Monstruo(MathUtils.random(0, MainGame.ANCHO_VIRTUAL), MathUtils.random(0, MainGame.ALTO_VIRTUAL), enemigoTransferido, true));\r\n\r\n // Y reinicio el dectector de monstruos tranferidos\r\n enemigoTransferido = -1;\r\n }\r\n\r\n contaTiempo = contaTiempo + delta; // Por ultimo se cuenta el tiempo\r\n }", "@Listen(\"onChange = #txtUsuario; onOK = #txtUsuario\")\r\n\tpublic void buscarPorLogin() {\r\n\t\tUsuario usuario = servicioUsuario.buscarPorLogin(txtUsuario.getValue());\r\n\t\tif (usuario != null)\r\n\t\t\tllenarCamposUser(usuario);\r\n\t\telse {\r\n\t\t\tmsj.mensajeAlerta(Mensaje.noHayRegistros);\r\n\t\t\tidUser = \"TODOS\";\r\n\t\t\ttxtUsuario.setValue(\"TODOS\");\r\n\t\t\tlblUsuario.setValue(\"TODOS\");\r\n\t\t\ttxtUsuario.setFocus(true);\r\n\t\t}\r\n\t}", "private void inizia() throws Exception {\n\n try { // prova ad eseguire il codice\n\n /* questo dialogo non e' modale */\n this.getDialogo().setModal(false);\n\n this.setTitolo(TITOLO_DIALOGO);\n this.addBottoneStampa();\n this.addBottoneChiudi();\n\n /* crea il modulo con db in memoria */\n this.creaModuloMem();\n\n /* crea i pannelli del dialogo */\n this.creaPannelli();\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "private void botonActualizarActionPerformed(java.awt.event.ActionEvent evt) {\n boolean errorFormatoDocumento = false;\n boolean errorFormatoTelefono = false;\n\n String usuario = this.textUsuario.getText();\n String contraseña = this.textContraseña.getText();\n String nombre = this.textNombre.getText();\n String apellido = this.textApellido.getText();\n String direccion = this.textDireccion.getText();\n int documento = 0;\n int telefono = 0;\n // Controlo que el documento sea un número\n if (controladorUsuarios.esNumero(this.textDocumento.getText())) {\n errorFormatoDocumento = false;\n documento = Integer.valueOf(this.textDocumento.getText());\n } else {\n // Si no es número, tiro error\n errorFormatoDocumento = true;\n JOptionPane.showMessageDialog(this,\n \"Documento debe ser un número.\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n // Controlo que el teléfono sea un número\n if (controladorUsuarios.esNumero(this.textTelefono.getText())) {\n errorFormatoTelefono = false;\n telefono = Integer.valueOf(this.textTelefono.getText());\n } else {\n // si no es número, tiro error\n errorFormatoDocumento = true;\n JOptionPane.showMessageDialog(this,\n \"Teléfono debe ser un número.\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n\n String sentenciaInsertarUsuario = \"UPDATE usuarios\\n\"\n + \"SET usuario = '\" + usuario + \"', contraseña = '\" + contraseña + \"', nombre = '\" + nombre + \"', apellido = '\" + apellido + \"', documento = '\" + documento + \"', telefono = '\" + telefono + \"', direccion = '\" + direccion + \"'\\n\"\n + \"WHERE id_usuario = '\" + this.usuarioCargado.getId() + \"';\";\n\n try {\n // debo verificar si el usuario ya existe antes de mandar crearlo\n if (controladorUsuarios.usuarioYaExiste(this.usuarioCargado.getId(), usuario)) {\n JOptionPane.showMessageDialog(this,\n \"Ese usuario ya existe. Pongale otro nombre de usuario.\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n\n } else if (!errorFormatoDocumento && !errorFormatoTelefono) {\n // Si no hay errores, envío la sentencia a la base de datos.\n adminPostgres.enviarSentencia(sentenciaInsertarUsuario);\n pantallaAnterior.construirTabla();\n this.dispose();\n }\n\n } catch (SQLException ex) {\n Logger.getLogger(FormularioNuevoUsuario.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void controladorAtras(Controlador controlador){\n this.contAtras = controlador.getAtras();\n registro.setControlAtras(contAtras);\n login.setControlAtras(contAtras);\n }", "@Override\n public void onClick(View v) {\n\n FirebaseInstanceId.getInstance().getInstanceId()\n .addOnCompleteListener(new OnCompleteListener<InstanceIdResult>() {\n @Override\n public void onComplete(@NonNull Task<InstanceIdResult> task) {\n if (!task.isSuccessful()) {\n msg = \"error\";\n }\n String token = task.getResult().getToken();\n Log.d(\"token\", \"el token que se envia es : \"+ msg );\n String php = \"https://134.209.235.115/ebracamonte001/WEB/messaging.php\";\n JSONObject parametrosJSON = new JSONObject();\n parametrosJSON.put(\"token\",token);\n\n Log.d(\"fecha\", \"onComplete: \"+ fecha.getText());\n if(fecha.getText().length() != 0) {\n parametrosJSON.put(\"fecha\", fecha.getText());\n\n ConectarAlServidor bdremota = new ConectarAlServidor(contexto, parametrosJSON, php);\n bdremota.execute();\n } else{\n Toast.makeText(Carrodelacompra.this, \"elige una fecha\", Toast.LENGTH_LONG).show();\n }\n\n\n }\n });\n\n }", "public void conectar() {\n\t\tif (isOnline()) {\n\t\t\tregister_user();\n\n\t\t} else {\n\t\t\tToast notification = Toast.makeText(this,\n\t\t\t\t\t\"Activa tu conexión a internet\", Toast.LENGTH_SHORT);\n\t\t\tnotification.setGravity(Gravity.CENTER, 0, 0);\n\t\t\tnotification.show();\n\t\t\t//progreso.setVisibility(View.GONE);\n\t\t\tsetProgressBarIndeterminateVisibility(false);\n\t\t}\n\t}", "public void ejecutar() {\r\n\t\tmediador.irInicioInsert(true);\r\n\t}", "@Override\r\n\tpublic void updateJoueurWon(Joueur joueur) {\n\t\t\r\n\t}", "public void actualizar() {\n\n\t}", "public void enviarValoresCabecera(){\n }", "public void acutualizarInfo(){\n String pibId = String.valueOf(comentario.getId());\n labelId.setText(\"#\" + pibId);\n\n String autor = comentario.getAutor().toString();\n labelAutor.setText(autor);\n\n String fecha = comentario.getFechaCreacion().toString();\n labelFecha.setText(fecha);\n \n String contenido = comentario.getContenido();\n textAreaContenido.setText(contenido);\n \n String likes = ((Integer)comentario.totalLikes()).toString();\n labelLikes.setText(likes);\n \n Collection<Comentario> comments = socialNetwork.searchSubComentarios(comentario);\n panelSubComentarios.loadItems(comments, 15);\n \n if(comentario.isSubcomentario()){\n jButton4.setEnabled(true);\n }\n else{\n jButton4.setEnabled(false);\n }\n }", "@Override\n public void run() {\n if (accion) {\n InsertarAsignacionServidorKRADAC();\n } else {\n InsertarLibreServidorKRADAC();\n }\n }", "public void enviarControlador(ControladorABMCuarto controladorABMCuarto) {\n\t\tthis.controladorABMCuarto = controladorABMCuarto;\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\t ctrl.setJogadores(2);\r\n\t\t\t\t\t t.criaPinos();\r\n\t\t\t\t\t m.atualizaBotoess(ctrl,t,men);\r\n\t\t\t\t }", "private void cargarBotones() throws Exception{\n Image img = null;\n Image img2 = null;\n try {\n img = Lienzo.cargarImagen(\"imagenes/skip.png\");\n //img2 = Lienzo.cargarImagen(\"imagenes/skipHover.png\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n //añadimos los botones al menu\n Boton b =new BotonGeneral(img, img, \"Menu\", 900, 550, img.getWidth(null), img.getHeight(null));\n new ObservadorCredits(b);\n botones.add(b);\n }", "@Override\n public void updateAlumno(String contenido) {\n txtRecibido.setText(contenido);\n clienteServer.enviar(buscarKardex(contenido));\n }" ]
[ "0.686721", "0.61611784", "0.61369944", "0.6085598", "0.59344214", "0.5815085", "0.5798482", "0.57466406", "0.57456595", "0.5695468", "0.56839424", "0.5645788", "0.56391263", "0.5636234", "0.5635666", "0.56349003", "0.55843866", "0.55815804", "0.5579463", "0.5568103", "0.5559201", "0.55559945", "0.55535924", "0.55350894", "0.55198985", "0.5518036", "0.5516291", "0.5501661", "0.5500258", "0.5498506", "0.5498448", "0.5496467", "0.5495159", "0.5491819", "0.5488588", "0.5487346", "0.54764163", "0.54688555", "0.5466941", "0.5466651", "0.54610693", "0.54469", "0.5438345", "0.5431902", "0.5425178", "0.5418405", "0.54179966", "0.5417904", "0.5415735", "0.54133266", "0.54116404", "0.5391289", "0.53857017", "0.53787047", "0.5374255", "0.5369459", "0.5365944", "0.5361108", "0.53604704", "0.5359838", "0.5352564", "0.53492874", "0.53374696", "0.5334422", "0.5333297", "0.53331697", "0.5327782", "0.53127104", "0.5308257", "0.53064644", "0.5304262", "0.53026867", "0.53022844", "0.53012925", "0.5297691", "0.5296342", "0.52943337", "0.52921134", "0.5290501", "0.5286207", "0.5282094", "0.5273137", "0.52716553", "0.52635354", "0.5262804", "0.52613294", "0.5257557", "0.5257035", "0.5256087", "0.52510244", "0.5250341", "0.52491486", "0.524591", "0.52410775", "0.52387804", "0.52362543", "0.52317727", "0.5231486", "0.5230338", "0.52279276" ]
0.5484971
36
Activa/desactiva la progress bar
private void startProgressBar() { b_buscar.setVisibility(View.GONE); // wi_progreso.setVisibility(View.VISIBLE); ly_progreso.setVisibility(View.VISIBLE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void toggleProgress() {\n if (progWheel.getVisibility() == View.VISIBLE) {\n // Needs its own thread for timing control\n Handler handler = new Handler();\n final Runnable r = new Runnable() {\n public void run() {\n if (progWheel.getVisibility()\n == View.VISIBLE) {\n progWheel.setVisibility(View.GONE);\n }\n }\n };\n handler.postDelayed(r, 1);\n } else if (progWheel.getVisibility() == View.GONE) {\n progWheel.spin();\n progWheel.setVisibility(View.VISIBLE);\n }\n }", "void setProgress(int progress);", "void setProgress(int progress);", "public void setProgress(int value);", "void setProgress(float progress);", "public void setProgress( boolean onOff );", "public void setStateToInProgress() {\n progressBar.setIndeterminate(true);\n progressBarLabel.setText(\"Simulation is in progress...\");\n openFolderButton.setVisible(false);\n }", "public void setProgress(int progress) {\n\n this.percent = progress;\n percentdraw = 0;\n start = true;\n anim();\n invalidate();\n }", "void showProgress();", "void startProgress();", "public void setPending()\n\t{\n\t\tprogressBar.setString(XSTR.getString(\"progressBarWaiting\"));\n\t\tprogressBar.setIndeterminate(true);\n\t\tprogressBar.setValue(0);\n\t\t\n\t\tstoplightPanel.setPending();\n\t}", "@Override\n public void onClick(View view) {\n progressStatus = 0;\n\n // Start the lengthy operation in a background thread\n new Thread(new Runnable() {\n @Override\n public void run() {\n while (progressStatus < 100) {\n // Update the progress status\n progressStatus += 1;\n }\n\n //Try to sleep the thread for 30 milliseconds\n try {\n Thread.sleep(30);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n // Update the progress bar\n handler.post(new Runnable() {\n @Override\n public void run() {\n pgb.setProgress(progressStatus);\n }\n });\n }\n }).start();// Start the operation\n }", "public void setBar(JProgressBar bar){\n prog = bar;\n }", "public void setProgress(int progress) {\n \t\t\tsynchronized (this) {\n \t\t\t\tm_progress = progress;\n \t\t\t\tthis.notify();\n \t\t\t}\n \t\t}", "void setProgress(@FloatRange(from = 0, to = 1) float progress);", "@Override\n\t\t\t\tpublic void onProgress(int progress) {\n\t\t\t\t\tmProgressBar.setProgress(progress);\n\t\t\t\t}", "@Override\n public void enableProgressBar() {\n et_log_email.setEnabled(false);\n et_log_password.setEnabled(false);\n acb_login.setVisibility(View.GONE);\n acb_register.setVisibility(View.GONE);\n\n //Enable progressbar\n pb_login.setVisibility(View.VISIBLE);\n }", "void showModalProgress();", "public void onBtnBeginClicked(View v) {\n progressBar.setSecondaryProgress(0);\n\n //Setting initial value to time textview\n txtTime.setText(String.format(\"%d\\\"\", PROGRESSBAR_TIME_MS / 1000));\n\n //Disable button to prevent more clicks\n btnBegin.setEnabled(false);\n\n new CountDownTimer(PROGRESSBAR_TIME_MS, PROGRESSBAR_INTERVAL_MS) {\n\n public void onTick(long millisUntilFinished) {\n\n //Setting current step to progress bar\n int progress = (int)(Math.ceil((PROGRESSBAR_TIME_MS - millisUntilFinished)/(double)PROGRESSBAR_INTERVAL_MS));\n progressBar.setSecondaryProgress(progress);\n\n //Updating value to time textview\n txtTime.setText(String.format(\"%d\\\"\", millisUntilFinished / 1000));\n\n }\n\n public void onFinish() {\n\n //final value for the progress bar (100%)\n progressBar.setSecondaryProgress(PROGRESSBAR_TIME_MS);\n\n Toast.makeText(getApplicationContext(), \"FINISHED TIME\", Toast.LENGTH_SHORT).show();\n\n //Enable button again\n btnBegin.setEnabled(true);\n }\n }.start();\n\n\n\n }", "@Override\n public void showProgressBar() {\n MainActivity.sInstance.showProgressBar();\n }", "@Override\n public void showProgress() {\n\n }", "public void increment() { this.progressBar.setValue(++this.progressValue); }", "void onShowProgress();", "private void updateProgressBar() {\n\t\tdouble current = model.scannedCounter;\n\t\tdouble total = model.fileCounter;\n\t\tdouble percentage = (double)(current/total);\n\t\t\n\t\t//Update Progress indicators\n\t\ttxtNumCompleted.setText((int) current + \" of \" + (int) total + \" Completed (\" + Math.round(percentage*100) + \"%)\");\n\t\tprogressBar.setProgress(percentage);\n\t}", "protected void sendProgress() {\n setProgress(getProgress() ^ 1);\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n progress.setVisibility(View.VISIBLE);\n progress.setProgress(values[0]);\n super.onProgressUpdate(values);\n }", "private void progressMode() {\n\t\t// lazily build the layout\n\t\tif (progressLayout == null) {\n\t\t\tprogressLayout = new DefaultVerticalLayout(true, true);\n\n\t\t\tprogressBar = new ProgressBar();\n\t\t\tprogressBar.setHeight(\"20px\");\n\t\t\tprogressLayout.add(progressBar);\n\n\t\t\tstatusLabel = new Text(\"\");\n\t\t\tprogressLayout.add(statusLabel);\n\t\t}\n\t\tprogressBar.setValue(0.0f);\n\t\tstatusLabel.setText(\"\");\n\n\t\tremoveAll();\n\t\tadd(progressLayout);\n\t}", "@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tprogressBar.setVisibility(View.VISIBLE);\n\n\t\t\t// updating progress bar value\n\t\t\tprogressBar.setProgress(progress[0]);\n\n\t\t\t// updating percentage value\n\t\t\ttxtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n\t\t}", "public void setProgressBar(JProgressBar bar) {\n\t\tprogressBar = bar;\n\t}", "@Override\n public void esconderBarraProgresso(){\n progressbar.setVisibility(View.GONE);\n listView.setVisibility(View.VISIBLE);\n }", "public void onFinish() {\n progressBar.setSecondaryProgress(PROGRESSBAR_TIME_MS);\n\n Toast.makeText(getApplicationContext(), \"FINISHED TIME\", Toast.LENGTH_SHORT).show();\n\n //Enable button again\n btnBegin.setEnabled(true);\n }", "void hideProgress();", "public void setProgressBar(JProgressBar bar) {\n matchProgressBar = bar;\n }", "public void progressMade();", "public void setProgress(int progressValue) {\n progress.set(defaultToHundred(progressValue));\n indeterminate.set(progressValue < 0);\n }", "@Override\n\tpublic void showProgress() {\n\t\twaitDialog(true);\n\t}", "public static void updateProgressBar() {\r\n mHandler.postDelayed(mUpdateTime, 100);\r\n }", "void setStatus(int status);", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tshowDialog(progress_bar_type);\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tshowDialog(progress_bar_type);\n\t\t}", "public void mo1539b(int progress) {\n this.f4002h.setProgress(progress);\n }", "@Override\n public void resume() {\n originProgress = 10;\n mSkbProgress.setProgress((int) originProgress);\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tprogressBar.setProgress(0);\n\t\t\tprogressBar.getProgressDrawable().setColorFilter(Color.RED, PorterDuff.Mode.SRC_IN);\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n protected void onProgressUpdate(Integer... progress) {\n progressBar.setVisibility(View.VISIBLE);\n\n // updating progress bar value\n progressBar.setProgress(progress[0]);\n\n // updating percentage value\n txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }", "public void setProgress(BigValue progress) {\n this.progress = progress;\n this.checkProgress();\n }", "public void progressTheGame() {\r\n gameProgress = GameState.values()[this.gameProgress.ordinal()+1];\r\n }", "public void progressBarTimer() {\r\n progressBar.setProgress(0);\r\n TimerTask task = new TimerTask() {\r\n @Override\r\n public void run() {\r\n if(!pause) progressBar.incrementProgressBy(1);\r\n\r\n //Game over\r\n if (progressBar.getProgress() >= 100) gameOver();\r\n }\r\n };\r\n\r\n //schedule starts after 0.01 seconds and repeats every second.\r\n timer.schedule(task, 10, 1000);\r\n }", "public void scanningBlurScoreBarSetProgress(int progress) {\n if (progress > scanningBlurValueBar.getProgress()) {\n scanningBlurValueBar.setProgress(progress);\n scanningBlurScoreBarDecrease();\n }\n }", "private void showProgressIndicator() {\n setProgressBarIndeterminateVisibility(true);\n setProgressBarIndeterminate(true);\n }", "private void changeSeekbar() {\n\n seekbar.setProgress(mediaPlayer.getCurrentPosition());\n\n if(mediaPlayer.isPlaying())\n {\n runnable=new Runnable() {\n @Override\n public void run() {\n changeSeekbar();\n }\n };\n handler.postDelayed(runnable,1000);\n }\n\n }", "void showProgressBar(boolean show, boolean isFirstPage);", "public void setProgress(String progress) {\n this.progress = progress;\n }", "private void updateAgentChangeFromSlider(int progress) {\n\t\tplayer.setAgentNumberChange(progress / 10);\n\n\t}", "private void updateProgressBar(int currentPoints){\n\n progressBar.setProgress(currentPoints);\n\n switch(currentPoints){\n case 1:\n progressBar.getProgressDrawable().setColorFilter(Color.RED, PorterDuff.Mode.SRC_IN);\n\n break;\n case 2:\n progressBar.getProgressDrawable().setColorFilter(Color.parseColor(\"#FF6600\"), PorterDuff.Mode.SRC_IN);\n\n break;\n case 3:\n progressBar.getProgressDrawable().setColorFilter(Color.parseColor(\"#FFFF66\"), PorterDuff.Mode.SRC_IN);\n\n break;\n case 4:\n progressBar.getProgressDrawable().setColorFilter(Color.GREEN, PorterDuff.Mode.SRC_IN);\n\n break;\n case 5:\n progressBar.getProgressDrawable().setColorFilter(Color.parseColor(\"#2C6700\"), PorterDuff.Mode.SRC_IN);\n\n }\n\n\n\n }", "public void enlazarBarra() {\n progressTask = reproductionTask();\n pbCancion.progressProperty().unbind();\n Platform.runLater(() -> {\n pbCancion.progressProperty().bind(progressTask.progressProperty());\n });\n\n reproductionThread = new Thread(progressTask);\n reproductionThread.start();\n }", "public void showProgress(boolean show) {\n \t}", "public void setStatus(int status);", "public void setStatus(int status);", "public void setStatus(boolean newstatus){activestatus = newstatus;}", "@Override\n public void showProgressIndicator(boolean active) {\n\n try {\n if (getActivity().isFinishing()) {\n return;\n }\n if (progessDialog == null) {\n progessDialog = new ProgressDialog(getActivity());\n progessDialog.setCancelable(false);\n progessDialog.setMessage(\"Please wait...\");\n }\n\n if (active && !progessDialog.isShowing()) {\n progessDialog.show();\n } else {\n progessDialog.dismiss();\n }\n }\n catch (NullPointerException e) {\n e.printStackTrace();\n }\n }", "public void setProgress(final int percentage, final String user) {\r\n\t\tif (this.statusBar != null) {\r\n\t\t\tif (this.progressBarUser == null || user == null || this.progressBarUser.equals(user)) {\r\n\t\t\t\tif (percentage > 99 | percentage == 0)\r\n\t\t\t\t\tthis.progressBarUser = null;\r\n\t\t\t\telse\r\n\t\t\t\t\tthis.progressBarUser = user;\r\n\r\n\t\t\t\tif (Thread.currentThread().getId() == DataExplorer.application.getThreadId()) {\r\n\t\t\t\t\tthis.statusBar.setProgress(percentage);\r\n\t\t\t\t\tif (this.taskBarItem != null) {\r\n\t\t\t\t\t\tif (user == null)\r\n\t\t\t\t\t\t\tthis.taskBarItem.setProgressState(SWT.DEFAULT);\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tthis.taskBarItem.setProgressState(GDE.IS_MAC ? SWT.PAUSED : SWT.NORMAL);\r\n\r\n\t\t\t\t\t\tthis.taskBarItem.setProgress(percentage);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tGDE.display.asyncExec(new Runnable() {\r\n\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\tDataExplorer.this.statusBar.setProgress(percentage);\r\n\t\t\t\t\t\t\tif (DataExplorer.this.taskBarItem != null) {\r\n\t\t\t\t\t\t\t\tif (user == null)\r\n\t\t\t\t\t\t\t\t\tDataExplorer.this.taskBarItem.setProgressState(SWT.DEFAULT);\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\tDataExplorer.this.taskBarItem.setProgressState(GDE.IS_MAC ? SWT.PAUSED : SWT.NORMAL);\r\n\r\n\t\t\t\t\t\t\t\tDataExplorer.this.taskBarItem.setProgress(percentage);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\tthis.progessPercentage = percentage;\r\n\t\t\t\tif (percentage >= 100) DataExplorer.this.resetProgressBar();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n protected void onPreExecute() {\n\n myProgress = 0;\n }", "private void showSpinerProgress() {\n dialog.setMessage(\"Loading\");\n//\n// dialog.setButton(ProgressDialog.BUTTON_POSITIVE, \"YES\", new DialogInterface.OnClickListener() {\n// @Override\n// public void onClick(DialogInterface dialog, int which) {\n//\n// }\n// });\n\n //thiet lap k the huy - co the huy\n dialog.setCancelable(false);\n\n //show dialog\n dialog.show();\n Timer timer = new Timer();\n timer.schedule(new TimerTask() {\n @Override\n public void run() {\n dialog.dismiss();\n }\n }, 20000000);\n }", "@Override\n protected void onPreExecute() {\n mProgressBar.setVisibility(View.VISIBLE);\n }", "public void setStatus(boolean stat) {\n\t\tstatus = stat;\n\t}", "public void setProgressDialog(Progress pb)\n {\n progressBar = pb;\n }", "private void showActionBarProgress(boolean visible)\n\t{\n\t\t((ActionBarActivity) getActivity()).setSupportProgressBarIndeterminateVisibility(visible);\n\t\tmActionBarProgress = visible;\n\t}", "public void onProgressUpdate(int numRouleau,String prochain);", "private void progressBar()\n {\n int amount = 0;\n for(Movie a:\n baseMovieList)\n if(a.isWatched())\n amount++;\n int fill = 100 / baseMovieList.size() * amount;\n progressBar.setProgress(fill);\n }", "@Override\n protected void onPreExecute() {\n mProgressbar.setVisibility(View.VISIBLE);\n }", "private void progressBarLoading() {\n new Thread(new Runnable() {\n public void run() {\n while (progressStatus < 100) {\n progressStatus += 1;\n handler.post(new Runnable() {\n public void run() {\n progressBar.setProgress(progressStatus);\n }\n });\n try {\n Thread.sleep(30);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n if (progressStatus == 100) {\n //intent for go next page\n MainActivityGo = new Intent(getApplicationContext(),MainActivity.class);\n startActivity(MainActivityGo);\n }\n }\n }).start();\n }", "private JProgressBar setProgressBar(JProgressBar PB)\r\n\t{\r\n\t\tPB = new JProgressBar(0, 100);\r\n\t\tPB.setMinimum(0);\r\n\t\tPB.setMaximum(100);\r\n\t\tPB.setStringPainted(true);\r\n\t\treturn PB;\r\n\t}", "private void showProgressBar(boolean show){\n if(show){\n progressBar.show();\n } else {\n progressBar.dismiss();\n }\n }", "public void showProgress() {\n img_left_action.setVisibility(View.GONE);\n search_progress.setAlpha(0.0f);\n search_progress.setVisibility(View.VISIBLE);\n ObjectAnimator.ofFloat(search_progress, \"alpha\", 0.0f, 1.0f).start();\n }", "@Override\n protected void onPreExecute() {\n myProgress = 0;\n }", "private void updateProgress() {\n progressBar.setProgress( (1.0d * currentQuestion) / numQuestions);\n }", "private void setOnClickListeners() {\n progressBar = (ProgressBar) findViewById(R.id.progressBar);\n progressBar.setMax(100);\n progressBar.setIndeterminate(false);\n\n }", "public void action (ProgressListener progressListener) throws Exception;", "void onProgress(float progress);", "@Test\n public void continueProgressionAfterSwitchingActivity() throws Throwable {\n final int progress = 24;\n expandPanel();\n onView(withId(R.id.mpi_seek_bar)).perform(ViewActions.slideSeekBar(progress));\n\n Utils.openDrawer(getActivityTestRule());\n clickAdapterViewItem(2, R.id.navigation_drawer); //select movie activity\n\n waitForPanelState(BottomSheetBehavior.STATE_COLLAPSED);\n expandPanel();\n\n onView(isRoot()).perform(ViewActions.waitForView(R.id.mpi_seek_bar, new ViewActions.CheckStatus() {\n @Override\n public boolean check(View v) {\n int seekBarProgress = ((SeekBar) v).getProgress();\n return (seekBarProgress > progress) && (seekBarProgress < (progress + 4));\n }\n }, 10000));\n }", "public void setStatus(boolean newStatus);", "private void updateProgress(int progress) {\n if (myHost != null && progress != previousProgress) {\n myHost.updateProgress(progress);\n }\n previousProgress = progress;\n }", "@Override\n public void propertyChange(PropertyChangeEvent pce) {\n if (\"progress\".equals(pce.getPropertyName()) ) {\n int progress = (Integer) pce.getNewValue();\n jProgressBar1.setValue( progress );\n if (progress == 100 ) {\n jBtnReadFile.setEnabled(true);\n jBtnWriteFile.setEnabled(true);\n }\n }\n }", "@Override\n\tpublic void showProgress() {\n\t\tprogress.show();\n\t\tprogress.setCancelable(false);\n\t\tprogress.setContentView(R.layout.progress);\n\t}", "private void updateGUIStatus() {\r\n\r\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n barratime.setProgress(values[0]);\n }", "private void updateTaskActivityLabel()\r\n {\r\n setLabelValue(\"Tile Downloads \" + myActiveQueryCounter.intValue());\r\n setProgress(myDoneQueryCounter.doubleValue() / myTotalSinceLastAllDoneCounter.doubleValue());\r\n }", "public void setProgress(float p) {\n _progress = Math.max(0.0f, Math.min(1.0f, p));\n }", "void progress(int pUnitsCompleted);", "public void setStatus( boolean avtive ){\r\n\t\tthis.activ = avtive;\r\n\t}", "public void setProgressBarVisible(final boolean flag) {\r\n pBarVisible = flag;\r\n }", "public void setIndeterminate(final boolean b){\n\t\tRunnable changeValueRunnable = new Runnable(){\n\t\t\tpublic void run(){\n\t\t\t\tloadBar.setIndeterminate(b);\n\t\t\t}\n\t\t};\n\t\tSwingUtilities.invokeLater(changeValueRunnable);\n\t}", "public void setProgress(int progress) {\n\t\tif (progress > mMax || progress < 0) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"Progress (%d) must be between %d and %d\", progress, 0, mMax));\n\t\t}\n\t\tmProgress = progress;\n\t\tinvalidate();\n\t}", "public S<T> progress(Boolean active){\n\t\t\n\t\tif(pDialog==null){\n\t\t\t\n\t\t\t pDialog = new ProgressDialog(activity);\n\t\t pDialog.setMessage(\"Please wait...\");\n\t\t pDialog.setCancelable(false);\n\t\t}\n\t\t\n\t\tif(active){\n\t\t\tif (!pDialog.isShowing())\n\t pDialog.show();\n\t\t}else{\n\t\t\tif (pDialog.isShowing())\n\t pDialog.dismiss();;\n\t\t}\n\t\t\n\t\treturn this;\n\t}", "public synchronized final void setStatus(int sts) {\n\t\tm_status = sts;\n\t\tnotifyAll();\n\t}", "@Override\n\tpublic void updateRunningStatus \n\t\t(final int progress, final String label1, final String label2)\n\t{\n\t\t\n\t\tRunnable doSetRunningStatus = new Runnable()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tmRunningPanel.updateProgressBar(progress);\n\t\t\t\tmRunningPanel.updateProgressLabel1(label1);\n\t\t\t\tmRunningPanel.updateProgressLabel2(label2);\n\t\t\t}\n\t\t};\n\t\t\n\t\tSwingUtilities.invokeLater(doSetRunningStatus);\n\t\t\n\t}", "protected void setCurrentTaskNumber( final int value )\r\n {\r\n jProgressBarGlobal.setValue( value );\r\n }", "private void pause() {\n if (!isStarted) {\n return;\n }\n\n isPaused = !isPaused;\n\n if (isPaused) {\n\n statusbar.setText(\"paused\");\n } else {\n\n statusbar.setText(String.valueOf(numLinesRemoved));\n }\n }", "@Override\n public void showProgress() {\n mCircleProgressThemeDetail.setVisibility(View.VISIBLE);\n mCircleProgressThemeDetail.spin();\n mRecyclerThemeDaily.setVisibility(View.GONE);\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }" ]
[ "0.7294199", "0.70519036", "0.70519036", "0.69984245", "0.6925512", "0.6865719", "0.67764103", "0.6691122", "0.66070265", "0.6582781", "0.6578709", "0.64251053", "0.6378557", "0.6335183", "0.63333434", "0.6328232", "0.6316412", "0.62870246", "0.6268346", "0.62528783", "0.6239629", "0.61998045", "0.6198566", "0.6198009", "0.61948764", "0.61591345", "0.6152069", "0.61283475", "0.61123854", "0.61064094", "0.6087124", "0.6078617", "0.60622567", "0.60497475", "0.60335445", "0.60326505", "0.6027579", "0.6015987", "0.60104805", "0.60104805", "0.6006372", "0.59977233", "0.59789485", "0.59717095", "0.59691614", "0.59644955", "0.59483165", "0.5944475", "0.5939655", "0.59311247", "0.5930352", "0.5924217", "0.59237903", "0.59124094", "0.5890195", "0.58853704", "0.5875931", "0.5875931", "0.5860896", "0.5858168", "0.5857371", "0.58463514", "0.5842585", "0.5841495", "0.5839801", "0.58389044", "0.5833365", "0.58234906", "0.5821893", "0.58217734", "0.5820323", "0.5817308", "0.58161855", "0.58127", "0.58122844", "0.58112484", "0.5810923", "0.58068794", "0.58055925", "0.58033526", "0.58030725", "0.5802105", "0.57977265", "0.57934743", "0.5789998", "0.57853645", "0.57814956", "0.5772695", "0.57692456", "0.5769112", "0.57617843", "0.57604104", "0.57603014", "0.5755883", "0.57540685", "0.575267", "0.5749562", "0.57476807", "0.5744555", "0.5743833" ]
0.6823658
6
if the thread is not running return null
public Results doQuery(String[] settings) { if (queryThread != null) { // create the query object and to hand to the thread QueryObject query = new QueryObject(settings); synchronized (query) { synchronized (this) { // hand the query object to the thread queries.add(query); // wake up the thread notify(); } try { // wait until we know we have the result query.wait(); } catch (InterruptedException e) { } } // return the results return query.results; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Thread getThread();", "boolean hasThreadId();", "private synchronized WorkerThread getThread() {\n\t\tfor (int i = 0; i < this.threadPool.size(); ++i) {\n\t\t\tif (this.threadPool.get(i).available()) {\n\t\t\t\tthis.threadPool.get(i).setAvailable(false);\n\t\t\t\treturn this.threadPool.get(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public LoadThread getThread() {\r\n return thread;\r\n }", "public Thread getThread() {\n return thread;\n }", "public String getThreadName() {\n return null;\n }", "public String getThread()\n\t{\n\t\treturn this.thread;\n\t}", "boolean isRunning();", "boolean isRunning();", "boolean isRunning();", "boolean isRunning();", "boolean isRunning();", "public boolean isRunning();", "public boolean isRunning();", "public boolean isRunning();", "public boolean isRunning();", "public boolean isRunning();", "public boolean isRunning();", "static public boolean getCapture() {\n final Future<Boolean> task = ThreadPoolWorkQueue.submit(new Callable<Boolean>() {\n @Override public Boolean call() {\n return getCaptureSync();\n }\n });\n\n try {\n return task.get();\n }\n catch (Exception e) {\n return getCaptureSync();\n }\n }", "public boolean isAlive(){\r\n\t\treturn Thread.currentThread() == workerThread;\r\n\t}", "public boolean isRunning() { return _timer!=null && _timer.isRunning(); }", "public boolean isRunning() {\n/* 101 */ return this.isRunning;\n/* */ }", "public synchronized Thread getThread() {\n return thread;\n }", "public IgniteThread checkpointerThread() {\n return checkpointerThread;\n }", "public abstract boolean isMainThread();", "private static boolean m61442b() {\n if (Looper.getMainLooper().getThread() == Thread.currentThread()) {\n return true;\n }\n return false;\n }", "static boolean isGradlePollThread(RecordedThread thread) {\n return (thread != null && thread.getJavaName().startsWith(\"/127.0.0.1\"));\n }", "long getThreadId();", "public long getRunning() { return running; }", "public boolean isRunning(){\n return isRunning;\n }", "public String waitThread() throws InterruptedException {\n return \"Not Waiting Yet\";\n }", "public boolean isThreadStopped() {\r\n return threadStopped;\r\n }", "protected ThreadState pickNextThread() {\n Lib.assertTrue(Machine.interrupt().disabled());\n if (threadStates.isEmpty())\n return null;\n\n return threadStates.last();\n }", "public boolean iAmRunning();", "public synchronized HttpThread getThread() {\n \t\tadjustThreadCount();\n \n \t\twhile (upper > 0) {\n \t\t\tint count = idleThreads.size();\n \t\t\tif (count > 0) {\n \t\t\t\tint i = count - 1;\n \n \t\t\t\tHttpThread thread = (HttpThread) idleThreads.elementAt(i);\n \t\t\t\tidleThreads.removeElementAt(i);\n \t\t\t\tif (thread.getPriority() != priority) {\n \t\t\t\t\tthread.setPriority(priority);\n \t\t\t\t}\n \t\t\t\tactiveThreads.addElement(thread);\n \t\t\t\t//new Exception((size-i)+\" Threads are at work!\").printStackTrace();\n \t\t\t\tif (Http.DEBUG) {\n \t\t\t\t\thttp.logDebug(thread.getName() + \": becoming active\"); //$NON-NLS-1$\n \t\t\t\t}\n \n \t\t\t\treturn thread;\n \t\t\t}\n \t\t\ttry {\n \t\t\t\twait();\n \t\t\t} catch (InterruptedException e) {\n \t\t\t\t// ignore and check exit condition\n \t\t\t}\n \t\t}\n \n \t\treturn null;\n \t}", "@Override\n public boolean isRunning() {\n return isRunning;\n }", "@Override\n public boolean isRunning() {\n return isRunning;\n }", "public boolean isRunning()\n {\n\n // TODO Auto-generated method stub\n return !started || running;\n }", "String getThreadId();", "private Runnable getTask() {\r\n if (mType== Type.FIFO){\r\n return mTaskQueue.removeFirst();\r\n }else if (mType== Type.LIFO){\r\n return mTaskQueue.removeLast();\r\n }\r\n return null;\r\n }", "public Boolean timerCheck(){\n return isRunning;\n }", "@Override\n public boolean isRunning() {\n return running;\n }", "protected ThreadState pickNextThread() //Returns the ThreadState of the head of the PriorityQueue or null if the queue is empty\n\t\t{\n\t\t\tLib.assertTrue(Machine.interrupt().disabled());\n KThread thread = waitQueue.peek();\n if(thread == null)\n\t\t\t{\n return null;\n }\n else\n\t\t\t{\n return getThreadState(thread);\n }\n\t\t}", "public static boolean isRunning() {\n return _thd != null && _thd.isAlive();\n }", "public abstract int getThreadNumber();", "public BThread getThread() {\n Long __key = this.threadDaoId;\n if (thread__resolvedKey == null || !thread__resolvedKey.equals(__key)) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n BThreadDao targetDao = daoSession.getBThreadDao();\n BThread threadNew = targetDao.load(__key);\n synchronized (this) {\n thread = threadNew;\n \tthread__resolvedKey = __key;\n }\n }\n return thread;\n }", "public boolean isAlive()\r\n\t{\r\n\t\treturn internalThread.isAlive();\r\n\t}", "public boolean IsAlive() {\n\treturn process != null;\n }", "public boolean isRunning() {\n\t\treturn !loopTask.stop;\n\t}", "public static int getThreadsRunning(){\r\n return threadsRunning;\r\n }", "WorkerThread getWorker() {\n WorkerThread worker = null;\n\n synchronized (idle) {\n if (idle.size() > 0) {\n worker = (WorkerThread) idle.remove(0);\n }\n }\n\n return (worker);\n }", "public boolean isActive()\n {\n return fetcherThread.isActive();\n }", "public boolean isRunning() {\n return isRunning;\n }", "public static Task getCurrentTask(Fiber paramFiber)\n/* 194 */ throws Pausable { return null; }", "@Override\n\tprotected Object run() {\n\t\treturn null;\n\t}", "public boolean isRunning() {\n return bRunning;\n }", "public boolean isRunning() {\r\n return running;\r\n }", "public boolean isRunning()\n\t{\n\t\treturn running;\n\t}", "public boolean isRunning(){\n\t\treturn this.running;\n\t}", "public WorkerStatus getStatus(){\r\n\t\ttry {\r\n\t\t\t//System.out.println(\"Place 1\");\r\n\t\t\treturn this.workerStatusHandler.getWorkerStatus(this.getPassword());\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t//System.out.println(\"Place 2\");\r\n\t\t\te.printStackTrace();\r\n\t\t\tdead = true;\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public boolean isRunning()\n\t{\n\t\treturn this.running;\n\t}", "public Node getNode() {\n return thread;\n }", "public synchronized boolean isRunning() {\n return running;\n }", "public boolean isRunning() {\n return running;\n }", "public boolean isRunning() {\n return running;\n }", "public ThreadUtils getThreadOperation(String threadKey) {\n if (threadControl.containsKey(threadKey)) {\n return threadControl.get(threadKey);\n }\n return null;\n }", "public boolean isRunning() {\n return running;\n }", "public boolean isRunning() {\n return running;\n }", "public boolean isRunning() {\n return this.runningThread != null && !serverSocket.isClosed();\n }", "@Override\n\tpublic boolean isJobRunning() {\n\t\treturn false;\n\t}", "boolean hasTask();", "protected final boolean isRunning() {\n\t\treturn _running;\n\t}", "public String getThreadName() {\n return threadName;\n }", "public boolean isRunning() {\n\t\treturn isRunning;\n\t}", "public boolean isRunning()\n\t{\n\t\treturn m_running;\n\t}", "@Override\n\t\tprotected Void doInBackground(Void... params)\n\t\t{\n\t\t\t//Get the current thread's token\n\t\t\tsynchronized (this)\n\t\t\t{\n\t\t\t\tMyApplication app = (MyApplication) getApplication();\n\t\t\t\twhile(app.getSyncStatus());\n\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "private DispatchTask next()\n {\n synchronized (m_lock)\n {\n while (null == m_runnable)\n {\n if (m_released)\n {\n return null;\n }\n\n try\n {\n m_lock.wait();\n } catch (InterruptedException e)\n {\n // Not needed\n }\n }\n\n return m_runnable;\n }\n }", "public boolean isRunning() {\n \t\tif (localMonitor == null) {\n\t\t\treturn localMonitor.isRunning();\n \t\t}\n \n \t\treturn localMonitor.isRunning();\n \t}", "boolean start()\n {\n // log.info(\"Begin start(), instance = '\" + instance + \"'\");\n boolean retVal = false;\n\n if (isStartable())\n {\n t = new Thread(processor);\n t.start();\n nextStartTime = System.currentTimeMillis() + minDurationInMillis;\n running = true;\n retVal = true;\n }\n\n // log.info(\"End start(), instance = '\" + instance + \"', retVal = \" + retVal);\n return retVal;\n }", "public synchronized boolean isRunning() {\n return this.running;\n }", "public boolean getRunning() {\n return this.running;\n }", "public boolean isRunning ()\n {\n return server == null ? false : true;\n }", "@Override\r\n\tpublic Thread newThread(Runnable arg0) {\n\t\treturn null;\r\n\t}", "public int getThreadUsed();", "public boolean isRunning () {\n\t\t\tsynchronized (runningLock) {\n\t\t\t\treturn running;\n\t\t\t}\n\t\t}", "public Long getWaiting_thread_id() {\n return waiting_thread_id;\n }", "public AbstractThread getThread () {\n ToolsDebugger debugger = (ToolsDebugger) getDebugger ();\n ToolsThread tt = ((ToolsThreadGroup) debugger.getThreadGroupRoot ()).getThread (thread);\n if (tt != null) return tt;\n debugger.lastCurrentThread = thread;\n return new ToolsThread ((ToolsDebugger) getDebugger (), null, thread);\n }", "public boolean getRunning() {\n\t\treturn running;\n\t}", "public boolean isRunning() {\n\t\treturn running;\n\t}", "protected ThreadState getThreadState(KThread thread) {\n Lib.assertTrue(Machine.interrupt().disabled());\n if (thread.schedulingState == null)\n thread.schedulingState = new ThreadState(thread);\n\n return (ThreadState) thread.schedulingState;\n }", "public boolean getRunning() {\n\t\treturn this.isRunning;\n\t}", "public KThread nextThread() \n\t\t{\n\t\t\tLib.assertTrue(Machine.interrupt().disabled());\n\t\t\tif (waitQueue.isEmpty())\n\t\t\t{\n\t\t\t\towner=null;\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\towner=waitQueue.peek(); //Set the head of the waitQueue as owner\n\t\t\tThreadState waiterState = getThreadState(owner);\n\t\t\tgetThreadState(owner).acquire(this); //Make the new owner acquire the queue\n\t\t\treturn waitQueue.poll(); //return next thread\n\t\t}", "public boolean isRunning() {\r\n\t\treturn __flagRunning;\r\n\t}", "private boolean removeWaitingThread(SceKernelThreadInfo thread) {\n SceKernelEventFlagInfo event = eventMap.get(thread.wait.EventFlag_id);\n if (event == null) {\n \treturn false;\n }\n\n event.threadWaitingList.removeWaitingThread(thread);\n\n return true;\n }", "private ISuspendableSchedulableProcess currentStep() {\n if (!processQ_NonInterruptable.isEmpty()) {\r\n return processQ_NonInterruptable.peek();\r\n } else {\r\n return processQ_Interruptable.peek();\r\n }\r\n }", "boolean isThreadedAsyncMode();", "public boolean usesAniThread() {\r\n\t\treturn false;\r\n\t}", "private Thread getThreadFor(Agent ag) {\n return getDataFor(ag).thread;\n }", "private boolean isJreDaemonThread(Thread t) {\n List<StackTraceElement> stack = new ArrayList<StackTraceElement>(Arrays.asList(t.getStackTrace()));\n Collections.reverse(stack);\n \n // Check for TokenPoller (MessageDigest spawns it).\n if (stack.size() > 2 && \n stack.get(1).getClassName().startsWith(\"sun.security.pkcs11.SunPKCS11$TokenPoller\")) {\n return true;\n }\n \n return false;\n }", "public boolean isDone(){\r\n\t\tif(worker.getState()==Thread.State.TERMINATED) return true;\r\n\t\treturn false;\r\n\t}", "@Override\n public final boolean isRunning() {\n return (this.running && runningAllowed());\n }" ]
[ "0.67936", "0.6670531", "0.653881", "0.64459246", "0.64318997", "0.6421152", "0.6365477", "0.6346325", "0.6346325", "0.6346325", "0.6346325", "0.6346325", "0.63128066", "0.63128066", "0.63128066", "0.63128066", "0.63128066", "0.63128066", "0.62442905", "0.61872244", "0.61811036", "0.6168862", "0.6144123", "0.6144009", "0.6127349", "0.6115516", "0.6102818", "0.6093901", "0.6082861", "0.60678005", "0.60396856", "0.60259557", "0.6022028", "0.6018287", "0.60063285", "0.5965724", "0.5965724", "0.5929365", "0.5925098", "0.58958715", "0.58937985", "0.5893161", "0.5882929", "0.58813214", "0.58627754", "0.5857534", "0.5840086", "0.5820277", "0.58181345", "0.58158726", "0.5812654", "0.5811583", "0.5805964", "0.5783185", "0.576559", "0.57641137", "0.5761663", "0.5750805", "0.5746939", "0.57247597", "0.57127094", "0.5711344", "0.5702397", "0.5694139", "0.5694139", "0.5691937", "0.5688596", "0.5688596", "0.5687782", "0.5686482", "0.5676667", "0.56705236", "0.5670469", "0.5661419", "0.5660147", "0.5645029", "0.5643841", "0.5641453", "0.56348234", "0.56340086", "0.5632903", "0.5625875", "0.56248546", "0.5610114", "0.5608203", "0.55888814", "0.5587657", "0.55863535", "0.5583895", "0.5569153", "0.5563974", "0.55624807", "0.5559439", "0.5558931", "0.5555037", "0.55456465", "0.5536499", "0.55364597", "0.55364573", "0.5534775", "0.5530155" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Scanner sc=new Scanner(System.in); String str=sc.next(); File f=new File(str); System.out.println(f.exists()); System.out.println(f.canRead()); System.out.println(f.canWrite()); System.out.println(f.length()); System.out.println(f.getClass()); }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
/ Setup various view contents for Notification
public static void buildDemoNotification(Context context) { int eventId = 0; String eventTitle = "Demo title"; String eventLocation = "Mountain View"; int notificationId = 001; // Build intent for notification content Intent viewIntent = new Intent(context, ViewEventActivity.class); viewIntent.putExtra(EXTRA_EVENT_ID, eventId); PendingIntent viewPendingIntent = PendingIntent.getActivity(context, 0, viewIntent, 0); NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context) .setSmallIcon(R.mipmap.ic_launcher) .setContentTitle(eventTitle) .setContentText(eventLocation) .setContentIntent(viewPendingIntent); // Get an instance of the NotificationManager service NotificationManagerCompat notificationManager = NotificationManagerCompat.from(context); // Build the notification and issues it with notification manager. notificationManager.notify(notificationId, notificationBuilder.build()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupNotificationLayout() {\n //Setup notification area to begin date-set process on click.\n notificationLayout.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n showTimerPickerDialog();\n return false;\n }\n });\n\n //Remove date from task and updated view\n notificationRemoveButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n cal = null;\n EventBus.getDefault().post(new TaskEditedEvent());\n }\n });\n }", "public PopupNotificationView(Context context, String[] args, String head, String line1, String line2, int type) {\r\n \tsuper(context);\r\n \tpopupNotificationController = new PopupNotificationController(this);\r\n }", "private void initView() {\n TIMManager.getInstance().addMessageListener(this);\n initAdapter();\n initRefresh();\n }", "protected void createContents() {\n\t\t\n\t\tshlMailview = new Shell();\n\t\tshlMailview.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellClosed(ShellEvent e) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tshlMailview.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\tshlMailview.setSize(1124, 800);\n\t\tshlMailview.setText(\"MailView\");\n\t\tshlMailview.setLayout(new BorderLayout(0, 0));\t\t\n\t\t\n\t\tMenu menu = new Menu(shlMailview, SWT.BAR);\n\t\tshlMailview.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"\\u0413\\u043B\\u0430\\u0432\\u043D\\u0430\\u044F\");\n\t\t\n\t\tMenu mainMenu = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(mainMenu);\n\t\t\n\t\tMenuItem menuItem = new MenuItem(mainMenu, SWT.NONE);\n\t\tmenuItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmyThready.stop();// interrupt();\n\t\t\t\tmyThready = new Thread(timer);\n\t\t\t\tmyThready.setDaemon(true);\n\t\t\t\tmyThready.start();\n\t\t\t}\n\t\t});\n\t\tmenuItem.setText(\"\\u041E\\u0431\\u043D\\u043E\\u0432\\u0438\\u0442\\u044C\");\n\t\t\n\t\tMenuItem exitMenu = new MenuItem(mainMenu, SWT.NONE);\n\t\texitMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\t\t\t\t\n\t\t\t\tshlMailview.close();\n\t\t\t}\n\t\t});\n\t\texitMenu.setText(\"\\u0412\\u044B\\u0445\\u043E\\u0434\");\n\t\t\n\t\tMenuItem filtrMenu = new MenuItem(menu, SWT.NONE);\n\t\tfiltrMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tfilterDialog fd = new filterDialog(shlMailview, 0);\n\t\t\t\tfd.open();\n\t\t\t}\n\t\t});\n\t\tfiltrMenu.setText(\"\\u0424\\u0438\\u043B\\u044C\\u0442\\u0440\");\n\t\t\n\t\tMenuItem settingsMenu = new MenuItem(menu, SWT.NONE);\n\t\tsettingsMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tsettingDialog sd = new settingDialog(shlMailview, 0);\n\t\t\t\tsd.open();\n\t\t\t}\n\t\t});\n\t\tsettingsMenu.setText(\"\\u041D\\u0430\\u0441\\u0442\\u0440\\u043E\\u0439\\u043A\\u0438\");\n\t\t\n\t\tfinal TabFolder tabFolder = new TabFolder(shlMailview, SWT.NONE);\n\t\ttabFolder.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(tabFolder.getSelectionIndex() == 1)\n\t\t\t\t{\n\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttabFolder.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\t\n\t\tTabItem lettersTab = new TabItem(tabFolder, SWT.NONE);\n\t\tlettersTab.setText(\"\\u041F\\u0438\\u0441\\u044C\\u043C\\u0430\");\n\t\t\n\t\tComposite composite_2 = new Composite(tabFolder, SWT.NONE);\n\t\tlettersTab.setControl(composite_2);\n\t\tcomposite_2.setLayout(new FormLayout());\n\t\t\n\t\tComposite composite_4 = new Composite(composite_2, SWT.NONE);\n\t\tFormData fd_composite_4 = new FormData();\n\t\tfd_composite_4.bottom = new FormAttachment(0, 81);\n\t\tfd_composite_4.top = new FormAttachment(0);\n\t\tfd_composite_4.left = new FormAttachment(0);\n\t\tfd_composite_4.right = new FormAttachment(0, 1100);\n\t\tcomposite_4.setLayoutData(fd_composite_4);\n\t\t\n\t\tComposite composite_5 = new Composite(composite_2, SWT.NONE);\n\t\tcomposite_5.setLayout(new BorderLayout(0, 0));\n\t\tFormData fd_composite_5 = new FormData();\n\t\tfd_composite_5.bottom = new FormAttachment(composite_4, 281, SWT.BOTTOM);\n\t\tfd_composite_5.left = new FormAttachment(composite_4, 0, SWT.LEFT);\n\t\tfd_composite_5.right = new FormAttachment(composite_4, 0, SWT.RIGHT);\n\t\tfd_composite_5.top = new FormAttachment(composite_4, 6);\n\t\tcomposite_5.setLayoutData(fd_composite_5);\n\t\t\n\t\tComposite composite_10 = new Composite(composite_2, SWT.NONE);\n\t\tFormData fd_composite_10 = new FormData();\n\t\tfd_composite_10.top = new FormAttachment(composite_5, 6);\n\t\tfd_composite_10.bottom = new FormAttachment(100, -10);\n\t\t\n\t\tlettersTable = new Table(composite_5, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tlettersTable.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\titem.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.NONE));\n\t\t\t\t\tbox.Preview(Integer.parseInt(item.getText(0)));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tlettersTable.setLinesVisible(true);\n\t\tlettersTable.setHeaderVisible(true);\n\t\tTableColumn msgId = new TableColumn(lettersTable, SWT.NONE);\n\t\tmsgId.setResizable(false);\n\t\tmsgId.setText(\"ID\");\n\t\t\n\t\tTableColumn from = new TableColumn(lettersTable, SWT.NONE);\n\t\tfrom.setWidth(105);\n\t\tfrom.setText(\"\\u041E\\u0442\");\n\t\tfrom.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn to = new TableColumn(lettersTable, SWT.NONE);\n\t\tto.setWidth(111);\n\t\tto.setText(\"\\u041A\\u043E\\u043C\\u0443\");\n\t\tto.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn subject = new TableColumn(lettersTable, SWT.NONE);\n\t\tsubject.setWidth(406);\n\t\tsubject.setText(\"\\u0422\\u0435\\u043C\\u0430\");\n\t\tsubject.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn created = new TableColumn(lettersTable, SWT.NONE);\n\t\tcreated.setWidth(176);\n\t\tcreated.setText(\"\\u0421\\u043E\\u0437\\u0434\\u0430\\u043D\\u043E\");\n\t\tcreated.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.DATE_COMPARATOR));\n\t\t\n\t\tTableColumn received = new TableColumn(lettersTable, SWT.NONE);\n\t\treceived.setWidth(194);\n\t\treceived.setText(\"\\u041F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D\\u043E\");\n\t\treceived.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.DATE_COMPARATOR));\t\t\n\t\t\n\t\tMenu popupMenuLetter = new Menu(lettersTable);\n\t\tlettersTable.setMenu(popupMenuLetter);\n\t\t\n\t\tMenuItem miUpdate = new MenuItem(popupMenuLetter, SWT.NONE);\n\t\tmiUpdate.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmyThready.stop();// interrupt();\n\t\t\t\tmyThready = new Thread(timer);\n\t\t\t\tmyThready.setDaemon(true);\n\t\t\t\tmyThready.start();\n\t\t\t}\n\t\t});\n\t\tmiUpdate.setText(\"\\u041E\\u0431\\u043D\\u043E\\u0432\\u0438\\u0442\\u044C\");\n\t\t\n\t\tfinal MenuItem miDelete = new MenuItem(popupMenuLetter, SWT.NONE);\n\t\tmiDelete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\tbox.deleteMessage(Integer.parseInt(item.getText(0)), lettersTable.getSelectionIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmiDelete.setText(\"\\u0412 \\u043A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0443\");\n\t\tfd_composite_10.right = new FormAttachment(composite_4, 0, SWT.RIGHT);\n\t\t\n\t\tfinal Button btnInbox = new Button(composite_4, SWT.NONE);\n\t\tfinal Button btnTrash = new Button(composite_4, SWT.NONE);\n\t\t\n\t\tbtnInbox.setBounds(10, 10, 146, 39);\n\t\tbtnInbox.setEnabled(false);\n\t\tbtnInbox.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSetting.Instance().SetTab(false);\t\t\t\t\n\t\t\t\tbtnInbox.setEnabled(false);\n\t\t\t\tmiDelete.setText(\"\\u0412 \\u043A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0443\");\n\t\t\t\tbtnTrash.setEnabled(true);\n\t\t\t\tbox.rePaint();\n\t\t\t}\n\t\t});\n\t\tbtnInbox.setText(\"\\u0412\\u0445\\u043E\\u0434\\u044F\\u0449\\u0438\\u0435\");\n\t\tbtnTrash.setLocation(170, 10);\n\t\tbtnTrash.setSize(146, 39);\n\t\tbtnTrash.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSetting.Instance().SetTab(true);\n\t\t\t\tbtnInbox.setEnabled(true);\n\t\t\t\tmiDelete.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\t\tbtnTrash.setEnabled(false);\n\t\t\t\tbox.rePaint();\n\t\t\t}\n\t\t});\n\t\tbtnTrash.setText(\"\\u041A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0430\");\n\t\t\n\t\tButton deleteLetter = new Button(composite_4, SWT.NONE);\n\t\tdeleteLetter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\tbox.deleteMessage(Integer.parseInt(item.getText(0)), lettersTable.getSelectionIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tdeleteLetter.setLocation(327, 11);\n\t\tdeleteLetter.setSize(146, 37);\n\t\tdeleteLetter.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\n\t\tdeleteLetter.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\n\t\tLabel label = new Label(composite_4, SWT.NONE);\n\t\tlabel.setLocation(501, 17);\n\t\tlabel.setSize(74, 27);\n\t\tlabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tlabel.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\t\n\t\tCombo listAccounts = new Combo(composite_4, SWT.NONE);\n\t\tlistAccounts.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlistAccounts.setLocation(583, 19);\n\t\tlistAccounts.setSize(180, 23);\n\t\tlistAccounts.setItems(new String[] {\"\\u0412\\u0441\\u0435\"});\n\t\tlistAccounts.select(0);\n\t\t\n\t\tprogressBar = new ProgressBar(composite_4, SWT.NONE);\n\t\tprogressBar.setBounds(10, 64, 263, 17);\n\t\tfd_composite_10.left = new FormAttachment(0);\n\t\tcomposite_10.setLayoutData(fd_composite_10);\n\t\t\n\t\theaderMessage = new Text(composite_10, SWT.BORDER);\n\t\theaderMessage.setFont(SWTResourceManager.getFont(\"Segoe UI\", 14, SWT.NORMAL));\n\t\theaderMessage.setBounds(0, 0, 1100, 79);\n\t\t\n\t\tsc = new ScrolledComposite(composite_10, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tsc.setBounds(0, 85, 1100, 230);\n\t\tsc.setExpandHorizontal(true);\n\t\tsc.setExpandVertical(true);\t\t\n\t\t\n\t\tTabItem accountsTab = new TabItem(tabFolder, SWT.NONE);\n\t\taccountsTab.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u044B\");\n\t\t\n\t\tComposite accountComposite = new Composite(tabFolder, SWT.NONE);\n\t\taccountsTab.setControl(accountComposite);\n\t\taccountComposite.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\t\n\t\t\tLabel labelListAccounts = new Label(accountComposite, SWT.NONE);\n\t\t\tlabelListAccounts.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\t\tlabelListAccounts.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\tlabelListAccounts.setBounds(10, 37, 148, 31);\n\t\t\tlabelListAccounts.setText(\"\\u0421\\u043F\\u0438\\u0441\\u043E\\u043A \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u043E\\u0432\");\n\t\t\t\n\t\t\tComposite Actions = new Composite(accountComposite, SWT.NONE);\n\t\t\tActions.setBounds(412, 71, 163, 234);\n\t\t\t\n\t\t\tButton addAccount = new Button(Actions, SWT.NONE);\n\t\t\taddAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tAccountDialog ad = new AccountDialog(shlMailview, accountsTable, true);\n\t\t\t\t\tad.open();\n\t\t\t\t}\n\t\t\t});\n\t\t\taddAccount.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\t\taddAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\taddAccount.setBounds(10, 68, 141, 47);\n\t\t\taddAccount.setText(\"\\u0414\\u043E\\u0431\\u0430\\u0432\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tButton editAccount = new Button(Actions, SWT.NONE);\n\t\t\teditAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\tAccountDialog ad = new AccountDialog(shlMailview, accountsTable, false);\n\t\t\t\t\tad.open();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\teditAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\teditAccount.setBounds(10, 121, 141, 47);\n\t\t\teditAccount.setText(\"\\u0418\\u0437\\u043C\\u0435\\u043D\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tButton deleteAccount = new Button(Actions, SWT.NONE);\n\t\t\tdeleteAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tTableItem item = accountsTable.getSelection()[0];\n\t\t\t\t\t\tif(MessageDialog.openConfirm(shlMailview, \"Удаление\", \"Вы хотите удалить учетную запись \" + item.getText(1)+\"?\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tservice.DeleteAccount(item.getText(0));\n\t\t\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tdeleteAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\t\t\t\n\t\t\tdeleteAccount.setBounds(10, 174, 141, 47);\n\t\t\tdeleteAccount.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tfinal Button Include = new Button(Actions, SWT.NONE);\n\t\t\tInclude.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tTableItem item = accountsTable.getSelection()[0];\n\t\t\t\t\t\tservice.toogleIncludeAccount(item.getText(0));\n\t\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tInclude.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\tInclude.setBounds(10, 10, 141, 47);\n\t\t\tInclude.setText(\"\\u0412\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\n\t\t\taccountsTable = new Table(accountComposite, SWT.SINGLE | SWT.BORDER | SWT.FULL_SELECTION);\n\t\t\taccountsTable.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getSelection()[0].getText(2)==\"Включен\")\n\t\t\t\t\t{\n\t\t\t\t\t\tInclude.setText(\"\\u0412\\u044B\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tInclude.setText(\"\\u0412\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\taccountsTable.setBounds(10, 74, 396, 296);\n\t\t\taccountsTable.setHeaderVisible(true);\n\t\t\taccountsTable.setLinesVisible(true);\n\t\t\t\n\t\t\tTableColumn tblclmnId = new TableColumn(accountsTable, SWT.NONE);\n\t\t\ttblclmnId.setWidth(35);\n\t\t\ttblclmnId.setText(\"ID\");\n\t\t\t//accountsTable.setRedraw(false);\n\t\t\t\n\t\t\tTableColumn columnLogin = new TableColumn(accountsTable, SWT.LEFT);\n\t\t\tcolumnLogin.setWidth(244);\n\t\t\tcolumnLogin.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\t\t\n\t\t\tTableColumn columnState = new TableColumn(accountsTable, SWT.LEFT);\n\t\t\tcolumnState.setWidth(100);\n\t\t\tcolumnState.setText(\"\\u0421\\u043E\\u0441\\u0442\\u043E\\u044F\\u043D\\u0438\\u0435\");\n\t}", "private void setUpViews() {\n\n updateFooterCarInfo();\n updateFooterUsrInfo();\n\n\n setResultActionListener(new ResultActionListener() {\n @Override\n public void onResultAction(AppService.ActionType actionType) {\n if (ModelManager.getInstance().getGlobalInfo() != null) {\n GlobalInfo globalInfo = ModelManager.getInstance().getGlobalInfo();\n\n switch (actionType) {\n case CarInfo:\n updateFooterCarInfo();\n break;\n case UsrInfo:\n updateFooterUsrInfo();\n break;\n case Charger:\n updateChargeStationList();\n break;\n }\n }\n }\n });\n }", "public void createNotification(View view) {\n Intent intent = new Intent(this, Status1.class);\r\n PendingIntent pIntent = PendingIntent.getActivity(this, 0, intent, 0);\r\n\r\n // Build notification\r\n // Actions are just fake\r\n Notification noti = new Notification.Builder(this)\r\n .setContentTitle(\"RKC App \")\r\n .setContentText(\"Click To Enter \").setSmallIcon(R.drawable.arc)\r\n .setContentIntent(pIntent)\r\n .addAction(R.drawable.ironman, \"Back\", pIntent)\r\n .addAction(R.drawable.gun, \"More\", pIntent)\r\n .build();\r\n NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\r\n // hide the notification after its selected\r\n noti.flags |= Notification.FLAG_AUTO_CANCEL;\r\n\r\n notificationManager.notify(0, noti);\r\n\r\n }", "public void setNotificationProperties(){\r\n \t\ttry{\r\n\t\t\tint totalNotifications = this.getChildCount();\r\n\t\t\tfor (int i=0; i<totalNotifications; i++){\r\n\t\t\t\tNotificationView currentNotificationView = (NotificationView) this.getChildAt(i);\r\n\t\t\t\tsetViewLayoutProperties(currentNotificationView);\r\n\t\t\t}\r\n \t\t}catch(Exception ex){\r\n \t\t\tLog.e(_context, \"NotificationViewFlipper.setNotificationProperties() ERROR: \" + ex.toString());\r\n \t\t}\r\n \t}", "@Override\r\n\tprotected void initViews() {\n\t\t\r\n\t}", "@Override\r\n protected void setupViews(Bundle bundle) {\n initPersonalInfo();\r\n }", "protected void setNotificationView(View notificationView) {\n mNotificationView = notificationView;\n }", "private void initViews() {\n\n\t}", "@Override\n protected void iniView()\n {\n txtHead = (TextView) findViewById(R.id.txtHead);\n imgBack = (ImageView) findViewById(R.id.img_left);\n\n txtHead.setText(\"回复列表\");\n\n TopicID = this.getIntent().getExtras().getString(\"TopicID\").toString();\n LeftID = this.getIntent().getExtras().getString(\"LeftID\").toString();\n listview = (ListView) findViewById(R.id.listview_postlist);\n TopicType = this.getIntent().getExtras().getString(\"TopicType\").toString();\n }", "private void setViews() {\n\n }", "@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}", "private void createContent() {\n\t\t// Design mail content\n\t\tview.getTxtSubject().setText(\n\t\t\t\tMessages.getString(\"SendAlertController.1\") + arr[9]);\n\t\tcontent += Messages.getString(\"SendAlertController.2\") + arr[1]\n\t\t\t\t+ Messages.getString(\"SendAlertController.3\");\n\t\tcontent += Messages.getString(\"SendAlertController.4\") + arr[12]\n\t\t\t\t+ Messages.getString(\"SendAlertController.5\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.6\");\n\t\tcontent += Messages.getString(\"SendAlertController.7\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.8\")\n\t\t\t\t+ new Date().toString()\n\t\t\t\t+ Messages.getString(\"SendAlertController.9\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.10\") + arr[9]\n\t\t\t\t+ Messages.getString(\"SendAlertController.11\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.12\") + arr[11]\n\t\t\t\t+ Messages.getString(\"SendAlertController.13\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.14\") + arr[12]\n\t\t\t\t+ Messages.getString(\"SendAlertController.15\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.16\")\n\t\t\t\t+ fee.getBorFee()\n\t\t\t\t+ Messages.getString(\"SendAlertController.17\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.18\")\n\t\t\t\t+ fee.getLateFee()\n\t\t\t\t+ Messages.getString(\"SendAlertController.19\");\n\t\tcontent += Messages.getString(\"SendAlertController.20\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.21\") + arr[1]\n\t\t\t\t+ Messages.getString(\"SendAlertController.22\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.23\") + arr[4]\n\t\t\t\t+ Messages.getString(\"SendAlertController.24\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.25\") + arr[6]\n\t\t\t\t+ Messages.getString(\"SendAlertController.26\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.27\") + arr[7]\n\t\t\t\t+ Messages.getString(\"SendAlertController.28\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.29\") + arr[5]\n\t\t\t\t+ Messages.getString(\"SendAlertController.30\");\n\t\tcontent += Messages.getString(\"SendAlertController.31\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.32\") + arr[15]\n\t\t\t\t+ Messages.getString(\"SendAlertController.33\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.34\") + arr[16]\n\t\t\t\t+ Messages.getString(\"SendAlertController.35\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.36\") + arr[17]\n\t\t\t\t+ Messages.getString(\"SendAlertController.37\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.38\") + arr[18]\n\t\t\t\t+ Messages.getString(\"SendAlertController.39\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.40\") + arr[19]\n\t\t\t\t+ Messages.getString(\"SendAlertController.41\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.42\") + arr[20]\n\t\t\t\t+ Messages.getString(\"SendAlertController.43\");\n\t\tcontent += Messages.getString(\"SendAlertController.44\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.45\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.46\");\n\t\tcontent += Messages.getString(\"SendAlertController.47\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.48\");\n\t\tview.getTxtContent().setText(content);\n\t}", "public static void setNotificationsView(NotificationsView view) {\n\t\t\n\t\tnotificationsView = view;\n\t\t\n\t}", "protected void createContents() {\r\n\t\tsetText(Messages.getString(\"HMS.PatientManagementShell.title\"));\r\n\t\tsetSize(900, 700);\r\n\r\n\t}", "@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}", "@Override\n\tprotected void initView() {\n\t\t\n\t}", "@Override\n\tprotected void initView() {\n\t\t\n\t}", "@Override\n\tprotected void iniView() {\n\t\ttxtHead = (TextView) findViewById(R.id.txtHead);\n\t\timgBack = (ImageView) findViewById(R.id.img_left);\n\n\t\ttxtHead.setText(\"回复列表\");\n\t\tlistview = (ListView) findViewById(R.id.listview_postlist);\n\t}", "protected void setupView(Context context, final ViewGroup parent) {\n\n\t\tLayoutInflater inflater = (LayoutInflater) context\n\t\t.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\tView v = inflater.inflate(R.layout.map_popup_layout, parent);\n\t\timage = (ImageView) v.findViewById(R.id.statusImgOnMAP);\n\t\tBitmap weatherImg = UtilityFunctions.StringToBitMap(\"\");\n\t\tif(weatherImg!=null)\n\t\t\timage.setImageBitmap(weatherImg);\n\t\theader = (TextView) v.findViewById(R.id.locationHeaderOnMap);\n\t\ttitle1 = (TextView) v.findViewById(R.id.descripOnMap);\n\t\ttitle2 = (TextView) v.findViewById(R.id.dateOnMap);\n\t\ttitle3 = (TextView) v.findViewById(R.id.minTempOnMapValue);\n\t\ttitle4 = (TextView) v.findViewById(R.id.maxTempOnMapValue);\n\n\t}", "@Override\n\tprotected void initView()\n\t{\n\n\t}", "private void initViews() {\n\n }", "protected abstract void initViews();", "public void elementView() {\n\t\tsetTitle(\"Envío de E-mail\");\n\t\tsetLocation(370, 150);\n\t\tsetBounds(100, 100, 600, 400);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBackground(UIManager.getColor(\"TextField.selectionBackground\"));\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\t\tJLabel lblNewLabel = new JLabel(model.getNameTags().get(0));\n\t\tlblNewLabel.setBounds(10, 11, 66, 14);\n\t\tcontentPane.add(lblNewLabel);\n\t\t\n\t\tto = new JTextField();\n\t\tto.setBounds(86, 8, 488, 20);\n\t\tcontentPane.add(to);\n\t\tto.setColumns(10);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(model.getNameTags().get(1));\n\t\tlblNewLabel_1.setBounds(10, 45, 66, 14);\n\t\tcontentPane.add(lblNewLabel_1);\n\t\t\n\t\tsubject = new JTextField();\n\t\tsubject.setBounds(86, 42, 488, 20);\n\t\tcontentPane.add(subject);\n\t\tsubject.setColumns(10);\n\t\t\n\t\tsend = new JButton(model.getNameButtons().get(0));\n\t\tsend.setBounds(10, 327, 89, 23);\n\t\tcontentPane.add(send);\n\t\t\n\t\tcloseProgram = new JButton(model.getNameButtons().get(1));\n\t\tcloseProgram.setBounds(213, 327, 150, 23);\n\t\tcontentPane.add(closeProgram);\n\t\t\n\t\tclearBox = new JButton(model.getNameButtons().get(2));\n\t\tclearBox.setBounds(424, 327, 150, 23);\n\t\tcontentPane.add(clearBox);\n\t\t\n\t\tscrollPane = new JScrollPane();\n\t\tscrollPane.setBounds(10, 100, 564, 203);\n\t\tcontentPane.add(scrollPane);\n\t\t\n\t\tmessage = new JTextArea();\n\t\tscrollPane.setViewportView(message);\n\t}", "@Override\n\tprotected void initContentView() {\n\t\t\n\t}", "@Override\n protected void initViewSetup() {\n }", "private void registerViews() {\n\t}", "@Override\n protected void initView() {\n }", "@Override\n protected void initView() {\n }", "@Override\n\tprotected void initViews(View view) {\n\t\tsuper.initViews(view);\n//\t\tsendRequestData();\n\t}", "public interface INotificationView extends IView {\n\n void setNotificationListAdapter(NotificationAdapter notificationAdapter);\n\n void navigateToLink(Uri data);\n}", "private void setUpView()\n {\n view = new DefaultDrawingView();\n DrawingEditorProxy editor = new DrawingEditorProxy();\n editor.setTarget(new DefaultDrawingEditor());\n view.addNotify(editor);\n for (Handle h : handles)\n h.setView(view);\n }", "private void setupView() {\n view.setName(advertisement.getTitle());\n view.setPrice(advertisement.getPrice());\n view.setDescription(advertisement.getDescription());\n view.setDate(advertisement.getDatePublished());\n view.setTags(advertisement.getTags());\n setCondition();\n if (advertisement.getImageUrl() != null) { //the url here is null right after upload\n view.setImageUrl(advertisement.getImageUrl());\n }\n }", "private void addViews() {\n\t}", "protected void createContents() {\n\t\tsetText(\"Muokkaa asiakastietoja\");\n\t\tsetSize(800, 550);\n\n\t}", "@Override\n\tpublic void InitView() {\n\t\t\n\t}", "protected void viewSetup() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "public interface NotificationSettingView {\n\n public void onSuccessNotificationUpdate();// for updating the setting\n\n public void onUnscuuessNotificationUpdate(String message);\n\n public void onInternetErrorUpdate();\n\n public void onSuccessNotification(NotificationSettingModel.Result result);\n\n public void onUnsuccessNotification(String message);\n\n public void onInternetError();\n\n\n}", "@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}", "private void initview() {\n\t\tMyOnClickLinstener clickLinstener = new MyOnClickLinstener();\n\t\tdeliverynote_query_back.setOnClickListener(clickLinstener);\n\t\tdate_layout.setOnClickListener(clickLinstener);\n\t\t\n\t\t//listview条目点击事件\n\t\tDeliveryQueryListView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> adapterView, View view, int position,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent intent = new Intent(DeliveryNoteQueryActivity.this, DeliveryNoteDetailActivity.class);\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tDeliveryNote deliveryNote = (DeliveryNote) adapterView.getItemAtPosition(position);\n\t\t\t\tbundle.putString(\"currenttime\",currenttime);\n\t\t\t\tbundle.putSerializable(\"deliveryNote\", deliveryNote);\n\t\t\t\tintent.putExtras(bundle);\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t});\n\t}", "public abstract void initViews();", "@Override\n\tpublic void initView() {\n\t\t\n\t}", "public ShowView() {\n\t\tsuper(null);\n\t\tcreateActions();\n\t\taddToolBar(SWT.FLAT | SWT.WRAP);\n\t\taddMenuBar();\n\t\taddStatusLine();\n\t}", "protected void createContents() {\n\t\tshell = new Shell(SWT.TITLE | SWT.CLOSE | SWT.BORDER);\n\t\tshell.setSize(713, 226);\n\t\tshell.setText(\"ALT Planner\");\n\t\t\n\t\tCalendarPop calendarComp = new CalendarPop(shell, SWT.NONE);\n\t\tcalendarComp.setBounds(5, 5, 139, 148);\n\t\t\n\t\tComposite composite = new PlannerInterface(shell, SWT.NONE, calendarComp);\n\t\tcomposite.setBounds(0, 0, 713, 200);\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmFile = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmFile.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmFile);\n\t\tmntmFile.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmSettings = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmSettings.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSettings settings = new Settings(Display.getDefault());\n\t\t\t\tsettings.open();\n\t\t\t}\n\t\t});\n\t\tmntmSettings.setText(\"Settings\");\n\t}", "public interface PrivateNotificationsView {\n\n Context getContext();\n Context getActivity();\n\n void clearList();\n void addNotificationsToList(List<Notification> notifications);\n void showEmpty(boolean showEmpty);\n\n}", "@Override protected void initViews() {\n\t\tsetFragments(F_PopularFragment.newInstance(T_HomeActivity.this), F_TimelineFragment.newInstance(T_HomeActivity.this));\n\t}", "private RemoteViews getCustomDesign(String title, String message) {\n Log.d(\"Icon1\", \"icon:\");\n RemoteViews remoteViews = new RemoteViews(getApplicationContext().getPackageName(), R.layout.notification);\n remoteViews.setTextViewText(R.id.title, title);\n remoteViews.setTextViewText(R.id.message, message);\n remoteViews.setImageViewResource(R.id.icon, getNotificationIcon());\n return remoteViews;\n }", "public void initViews(){\n }", "private void initView() {\n\n }", "private void setViews(){\n compositeDisposable.add(storyActivityViewModel.getModeObservable().subscribe(new Consumer<StoryActivityViewModel.MODE>() {\n @Override\n public void accept(StoryActivityViewModel.MODE mode) throws Exception {\n setDoneButton(mode);\n }\n }));\n\n compositeDisposable.add(storyActivityViewModel.getPhotosObservable().subscribe(new Consumer<List<Photo>>() {\n @Override\n public void accept(List<Photo> photos) throws Exception {\n setPhotoLinear(photos);\n }\n }));\n\n compositeDisposable.add(storyActivityViewModel.getUpdatedAtObservable().subscribe(new Consumer<Date>() {\n @Override\n public void accept(Date updatedAt) throws Exception {\n setUpdatedAt(updatedAt);\n }\n }));\n\n compositeDisposable.add(storyActivityViewModel.getTitleObservable().subscribe(new Consumer<String>() {\n @Override\n public void accept(String title) throws Exception {\n setTitle(title);\n }\n }));\n\n compositeDisposable.add(storyActivityViewModel.getBodyObservable().subscribe(new Consumer<String>() {\n @Override\n public void accept(String body) throws Exception {\n setBody(body);\n }\n }));\n\n compositeDisposable.add(RxView.clicks(done).subscribe(new Consumer<Object>() {\n @Override\n public void accept(Object o) throws Exception {\n storyDone();\n }\n }));\n\n compositeDisposable.add(RxView.clicks(closePhotoDetail).subscribe(new Consumer<Object>() {\n @Override\n public void accept(Object o) throws Exception {\n closePhotoDetail();\n }\n }));\n }", "protected void createContents() {\n\t\tsetText(\"Account Settings\");\n\t\tsetSize(450, 225);\n\n\t}", "protected abstract void initView();", "@Override\n public void Create() {\n\n initView();\n }", "@Override\n public void initView() {\n }", "public void onCreate(Bundle bundle) {\n super.onCreate(bundle);\n Theme.createDialogsResources(this);\n Theme.createChatResources(this, false);\n AndroidUtilities.fillStatusBarHeight(this);\n for (int i = 0; i < 3; i++) {\n NotificationCenter.getInstance(i).addObserver(this, NotificationCenter.appDidLogout);\n NotificationCenter.getInstance(i).addObserver(this, NotificationCenter.updateInterfaces);\n NotificationCenter.getInstance(i).addObserver(this, NotificationCenter.messagePlayingProgressDidChanged);\n NotificationCenter.getInstance(i).addObserver(this, NotificationCenter.messagePlayingDidReset);\n NotificationCenter.getInstance(i).addObserver(this, NotificationCenter.contactsDidLoad);\n }\n NotificationCenter.getGlobalInstance().addObserver(this, NotificationCenter.pushMessagesUpdated);\n NotificationCenter.getGlobalInstance().addObserver(this, NotificationCenter.emojiLoaded);\n this.classGuid = ConnectionsManager.generateClassGuid();\n this.statusDrawables[0] = new TypingDotsDrawable(false);\n this.statusDrawables[1] = new RecordStatusDrawable(false);\n this.statusDrawables[2] = new SendingFileDrawable(false);\n this.statusDrawables[3] = new PlayingGameDrawable(false, (Theme.ResourcesProvider) null);\n this.statusDrawables[4] = new RoundStatusDrawable(false);\n AnonymousClass1 r2 = new SizeNotifierFrameLayout(this) {\n /* access modifiers changed from: protected */\n public void onMeasure(int i, int i2) {\n View.MeasureSpec.getMode(i);\n View.MeasureSpec.getMode(i2);\n int size = View.MeasureSpec.getSize(i);\n int size2 = View.MeasureSpec.getSize(i2);\n setMeasuredDimension(size, size2);\n if (measureKeyboardHeight() <= AndroidUtilities.dp(20.0f)) {\n size2 -= PopupNotificationActivity.this.chatActivityEnterView.getEmojiPadding();\n }\n int childCount = getChildCount();\n for (int i3 = 0; i3 < childCount; i3++) {\n View childAt = getChildAt(i3);\n if (childAt.getVisibility() != 8) {\n if (PopupNotificationActivity.this.chatActivityEnterView.isPopupView(childAt)) {\n childAt.measure(View.MeasureSpec.makeMeasureSpec(size, NUM), View.MeasureSpec.makeMeasureSpec(childAt.getLayoutParams().height, NUM));\n } else if (PopupNotificationActivity.this.chatActivityEnterView.isRecordCircle(childAt)) {\n measureChildWithMargins(childAt, i, 0, i2, 0);\n } else {\n childAt.measure(View.MeasureSpec.makeMeasureSpec(size, NUM), View.MeasureSpec.makeMeasureSpec(Math.max(AndroidUtilities.dp(10.0f), AndroidUtilities.dp(2.0f) + size2), NUM));\n }\n }\n }\n }\n\n /* access modifiers changed from: protected */\n /* JADX WARNING: Removed duplicated region for block: B:20:0x0065 */\n /* JADX WARNING: Removed duplicated region for block: B:24:0x0073 */\n /* JADX WARNING: Removed duplicated region for block: B:28:0x008b */\n /* JADX WARNING: Removed duplicated region for block: B:32:0x0094 */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void onLayout(boolean r10, int r11, int r12, int r13, int r14) {\n /*\n r9 = this;\n int r10 = r9.getChildCount()\n int r0 = r9.measureKeyboardHeight()\n r1 = 1101004800(0x41a00000, float:20.0)\n int r1 = org.telegram.messenger.AndroidUtilities.dp(r1)\n r2 = 0\n if (r0 > r1) goto L_0x001c\n org.telegram.ui.PopupNotificationActivity r0 = org.telegram.ui.PopupNotificationActivity.this\n org.telegram.ui.Components.ChatActivityEnterView r0 = r0.chatActivityEnterView\n int r0 = r0.getEmojiPadding()\n goto L_0x001d\n L_0x001c:\n r0 = 0\n L_0x001d:\n if (r2 >= r10) goto L_0x00e3\n android.view.View r1 = r9.getChildAt(r2)\n int r3 = r1.getVisibility()\n r4 = 8\n if (r3 != r4) goto L_0x002d\n goto L_0x00df\n L_0x002d:\n android.view.ViewGroup$LayoutParams r3 = r1.getLayoutParams()\n android.widget.FrameLayout$LayoutParams r3 = (android.widget.FrameLayout.LayoutParams) r3\n int r4 = r1.getMeasuredWidth()\n int r5 = r1.getMeasuredHeight()\n int r6 = r3.gravity\n r7 = -1\n if (r6 != r7) goto L_0x0042\n r6 = 51\n L_0x0042:\n r7 = r6 & 7\n r6 = r6 & 112(0x70, float:1.57E-43)\n r7 = r7 & 7\n r8 = 1\n if (r7 == r8) goto L_0x0056\n r8 = 5\n if (r7 == r8) goto L_0x0051\n int r7 = r3.leftMargin\n goto L_0x0061\n L_0x0051:\n int r7 = r13 - r4\n int r8 = r3.rightMargin\n goto L_0x0060\n L_0x0056:\n int r7 = r13 - r11\n int r7 = r7 - r4\n int r7 = r7 / 2\n int r8 = r3.leftMargin\n int r7 = r7 + r8\n int r8 = r3.rightMargin\n L_0x0060:\n int r7 = r7 - r8\n L_0x0061:\n r8 = 16\n if (r6 == r8) goto L_0x0073\n r8 = 80\n if (r6 == r8) goto L_0x006c\n int r6 = r3.topMargin\n goto L_0x007f\n L_0x006c:\n int r6 = r14 - r0\n int r6 = r6 - r12\n int r6 = r6 - r5\n int r8 = r3.bottomMargin\n goto L_0x007e\n L_0x0073:\n int r6 = r14 - r0\n int r6 = r6 - r12\n int r6 = r6 - r5\n int r6 = r6 / 2\n int r8 = r3.topMargin\n int r6 = r6 + r8\n int r8 = r3.bottomMargin\n L_0x007e:\n int r6 = r6 - r8\n L_0x007f:\n org.telegram.ui.PopupNotificationActivity r8 = org.telegram.ui.PopupNotificationActivity.this\n org.telegram.ui.Components.ChatActivityEnterView r8 = r8.chatActivityEnterView\n boolean r8 = r8.isPopupView(r1)\n if (r8 == 0) goto L_0x0094\n int r3 = r9.getMeasuredHeight()\n if (r0 == 0) goto L_0x0092\n int r3 = r3 - r0\n L_0x0092:\n r6 = r3\n goto L_0x00da\n L_0x0094:\n org.telegram.ui.PopupNotificationActivity r8 = org.telegram.ui.PopupNotificationActivity.this\n org.telegram.ui.Components.ChatActivityEnterView r8 = r8.chatActivityEnterView\n boolean r8 = r8.isRecordCircle(r1)\n if (r8 == 0) goto L_0x00da\n org.telegram.ui.PopupNotificationActivity r6 = org.telegram.ui.PopupNotificationActivity.this\n android.widget.RelativeLayout r6 = r6.popupContainer\n int r6 = r6.getTop()\n org.telegram.ui.PopupNotificationActivity r7 = org.telegram.ui.PopupNotificationActivity.this\n android.widget.RelativeLayout r7 = r7.popupContainer\n int r7 = r7.getMeasuredHeight()\n int r6 = r6 + r7\n int r7 = r1.getMeasuredHeight()\n int r6 = r6 - r7\n int r7 = r3.bottomMargin\n int r6 = r6 - r7\n org.telegram.ui.PopupNotificationActivity r7 = org.telegram.ui.PopupNotificationActivity.this\n android.widget.RelativeLayout r7 = r7.popupContainer\n int r7 = r7.getLeft()\n org.telegram.ui.PopupNotificationActivity r8 = org.telegram.ui.PopupNotificationActivity.this\n android.widget.RelativeLayout r8 = r8.popupContainer\n int r8 = r8.getMeasuredWidth()\n int r7 = r7 + r8\n int r8 = r1.getMeasuredWidth()\n int r7 = r7 - r8\n int r3 = r3.rightMargin\n int r7 = r7 - r3\n L_0x00da:\n int r4 = r4 + r7\n int r5 = r5 + r6\n r1.layout(r7, r6, r4, r5)\n L_0x00df:\n int r2 = r2 + 1\n goto L_0x001d\n L_0x00e3:\n r9.notifyHeightChanged()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.ui.PopupNotificationActivity.AnonymousClass1.onLayout(boolean, int, int, int, int):void\");\n }\n };\n setContentView(r2);\n r2.setBackgroundColor(-NUM);\n RelativeLayout relativeLayout = new RelativeLayout(this);\n r2.addView(relativeLayout, LayoutHelper.createFrame(-1, -1.0f));\n AnonymousClass2 r10 = new RelativeLayout(this) {\n /* access modifiers changed from: protected */\n public void onMeasure(int i, int i2) {\n super.onMeasure(i, i2);\n int measuredWidth = PopupNotificationActivity.this.chatActivityEnterView.getMeasuredWidth();\n int measuredHeight = PopupNotificationActivity.this.chatActivityEnterView.getMeasuredHeight();\n for (int i3 = 0; i3 < getChildCount(); i3++) {\n View childAt = getChildAt(i3);\n if (childAt.getTag() instanceof String) {\n childAt.measure(View.MeasureSpec.makeMeasureSpec(measuredWidth, NUM), View.MeasureSpec.makeMeasureSpec(measuredHeight - AndroidUtilities.dp(3.0f), NUM));\n }\n }\n }\n\n /* access modifiers changed from: protected */\n public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n super.onLayout(z, i, i2, i3, i4);\n for (int i5 = 0; i5 < getChildCount(); i5++) {\n View childAt = getChildAt(i5);\n if (childAt.getTag() instanceof String) {\n childAt.layout(childAt.getLeft(), PopupNotificationActivity.this.chatActivityEnterView.getTop() + AndroidUtilities.dp(3.0f), childAt.getRight(), PopupNotificationActivity.this.chatActivityEnterView.getBottom());\n }\n }\n }\n };\n this.popupContainer = r10;\n r10.setBackgroundColor(Theme.getColor(\"windowBackgroundWhite\"));\n relativeLayout.addView(this.popupContainer, LayoutHelper.createRelative(-1, 240, 12, 0, 12, 0, 13));\n ChatActivityEnterView chatActivityEnterView2 = this.chatActivityEnterView;\n if (chatActivityEnterView2 != null) {\n chatActivityEnterView2.onDestroy();\n }\n ChatActivityEnterView chatActivityEnterView3 = new ChatActivityEnterView(this, r2, (ChatActivity) null, false);\n this.chatActivityEnterView = chatActivityEnterView3;\n chatActivityEnterView3.setId(1000);\n this.popupContainer.addView(this.chatActivityEnterView, LayoutHelper.createRelative(-1, -2, 12));\n this.chatActivityEnterView.setDelegate(new ChatActivityEnterView.ChatActivityEnterViewDelegate() {\n public /* synthetic */ void bottomPanelTranslationYChanged(float f) {\n ChatActivityEnterView.ChatActivityEnterViewDelegate.CC.$default$bottomPanelTranslationYChanged(this, f);\n }\n\n public void didPressAttachButton() {\n }\n\n public /* synthetic */ boolean hasForwardingMessages() {\n return ChatActivityEnterView.ChatActivityEnterViewDelegate.CC.$default$hasForwardingMessages(this);\n }\n\n public /* synthetic */ boolean hasScheduledMessages() {\n return ChatActivityEnterView.ChatActivityEnterViewDelegate.CC.$default$hasScheduledMessages(this);\n }\n\n public void needChangeVideoPreviewState(int i, float f) {\n }\n\n public void needShowMediaBanHint() {\n }\n\n public void needStartRecordAudio(int i) {\n }\n\n public void needStartRecordVideo(int i, boolean z, int i2) {\n }\n\n public void onAttachButtonHidden() {\n }\n\n public void onAttachButtonShow() {\n }\n\n public void onAudioVideoInterfaceUpdated() {\n }\n\n public void onMessageEditEnd(boolean z) {\n }\n\n public void onPreAudioVideoRecord() {\n }\n\n public void onSendLongClick() {\n }\n\n public void onStickersExpandedChange() {\n }\n\n public void onStickersTab(boolean z) {\n }\n\n public void onSwitchRecordMode(boolean z) {\n }\n\n public void onTextChanged(CharSequence charSequence, boolean z) {\n }\n\n public void onTextSelectionChanged(int i, int i2) {\n }\n\n public void onTextSpansChanged(CharSequence charSequence) {\n }\n\n public /* synthetic */ void onTrendingStickersShowed(boolean z) {\n ChatActivityEnterView.ChatActivityEnterViewDelegate.CC.$default$onTrendingStickersShowed(this, z);\n }\n\n public void onUpdateSlowModeButton(View view, boolean z, CharSequence charSequence) {\n }\n\n public void onWindowSizeChanged(int i) {\n }\n\n public /* synthetic */ void openScheduledMessages() {\n ChatActivityEnterView.ChatActivityEnterViewDelegate.CC.$default$openScheduledMessages(this);\n }\n\n public /* synthetic */ void prepareMessageSending() {\n ChatActivityEnterView.ChatActivityEnterViewDelegate.CC.$default$prepareMessageSending(this);\n }\n\n public /* synthetic */ void scrollToSendingMessage() {\n ChatActivityEnterView.ChatActivityEnterViewDelegate.CC.$default$scrollToSendingMessage(this);\n }\n\n public void onMessageSend(CharSequence charSequence, boolean z, int i) {\n if (PopupNotificationActivity.this.currentMessageObject != null) {\n if (PopupNotificationActivity.this.currentMessageNum >= 0 && PopupNotificationActivity.this.currentMessageNum < PopupNotificationActivity.this.popupMessages.size()) {\n PopupNotificationActivity.this.popupMessages.remove(PopupNotificationActivity.this.currentMessageNum);\n }\n MessagesController.getInstance(PopupNotificationActivity.this.currentMessageObject.currentAccount).markDialogAsRead(PopupNotificationActivity.this.currentMessageObject.getDialogId(), PopupNotificationActivity.this.currentMessageObject.getId(), Math.max(0, PopupNotificationActivity.this.currentMessageObject.getId()), PopupNotificationActivity.this.currentMessageObject.messageOwner.date, true, 0, 0, true, 0);\n MessageObject unused = PopupNotificationActivity.this.currentMessageObject = null;\n PopupNotificationActivity.this.getNewMessage();\n }\n }\n\n public void needSendTyping() {\n if (PopupNotificationActivity.this.currentMessageObject != null) {\n MessagesController.getInstance(PopupNotificationActivity.this.currentMessageObject.currentAccount).sendTyping(PopupNotificationActivity.this.currentMessageObject.getDialogId(), 0, 0, PopupNotificationActivity.this.classGuid);\n }\n }\n });\n FrameLayoutTouch frameLayoutTouch = new FrameLayoutTouch(this);\n this.messageContainer = frameLayoutTouch;\n this.popupContainer.addView(frameLayoutTouch, 0);\n ActionBar actionBar2 = new ActionBar(this);\n this.actionBar = actionBar2;\n actionBar2.setOccupyStatusBar(false);\n this.actionBar.setBackButtonImage(NUM);\n this.actionBar.setBackgroundColor(Theme.getColor(\"actionBarDefault\"));\n this.actionBar.setItemsBackgroundColor(Theme.getColor(\"actionBarDefaultSelector\"), false);\n this.popupContainer.addView(this.actionBar);\n ViewGroup.LayoutParams layoutParams = this.actionBar.getLayoutParams();\n layoutParams.width = -1;\n this.actionBar.setLayoutParams(layoutParams);\n ActionBarMenuItem addItemWithWidth = this.actionBar.createMenu().addItemWithWidth(2, 0, AndroidUtilities.dp(56.0f));\n TextView textView = new TextView(this);\n this.countText = textView;\n textView.setTextColor(Theme.getColor(\"actionBarDefaultSubtitle\"));\n this.countText.setTextSize(1, 14.0f);\n this.countText.setGravity(17);\n addItemWithWidth.addView(this.countText, LayoutHelper.createFrame(56, -1.0f));\n FrameLayout frameLayout = new FrameLayout(this);\n this.avatarContainer = frameLayout;\n frameLayout.setPadding(AndroidUtilities.dp(4.0f), 0, AndroidUtilities.dp(4.0f), 0);\n this.actionBar.addView(this.avatarContainer);\n FrameLayout.LayoutParams layoutParams2 = (FrameLayout.LayoutParams) this.avatarContainer.getLayoutParams();\n layoutParams2.height = -1;\n layoutParams2.width = -2;\n layoutParams2.rightMargin = AndroidUtilities.dp(48.0f);\n layoutParams2.leftMargin = AndroidUtilities.dp(60.0f);\n layoutParams2.gravity = 51;\n this.avatarContainer.setLayoutParams(layoutParams2);\n BackupImageView backupImageView = new BackupImageView(this);\n this.avatarImageView = backupImageView;\n backupImageView.setRoundRadius(AndroidUtilities.dp(21.0f));\n this.avatarContainer.addView(this.avatarImageView);\n FrameLayout.LayoutParams layoutParams3 = (FrameLayout.LayoutParams) this.avatarImageView.getLayoutParams();\n layoutParams3.width = AndroidUtilities.dp(42.0f);\n layoutParams3.height = AndroidUtilities.dp(42.0f);\n layoutParams3.topMargin = AndroidUtilities.dp(3.0f);\n this.avatarImageView.setLayoutParams(layoutParams3);\n TextView textView2 = new TextView(this);\n this.nameTextView = textView2;\n textView2.setTextColor(Theme.getColor(\"actionBarDefaultTitle\"));\n this.nameTextView.setTextSize(1, 18.0f);\n this.nameTextView.setLines(1);\n this.nameTextView.setMaxLines(1);\n this.nameTextView.setSingleLine(true);\n this.nameTextView.setEllipsize(TextUtils.TruncateAt.END);\n this.nameTextView.setGravity(3);\n this.nameTextView.setTypeface(AndroidUtilities.getTypeface(\"fonts/rmedium.ttf\"));\n this.avatarContainer.addView(this.nameTextView);\n FrameLayout.LayoutParams layoutParams4 = (FrameLayout.LayoutParams) this.nameTextView.getLayoutParams();\n layoutParams4.width = -2;\n layoutParams4.height = -2;\n layoutParams4.leftMargin = AndroidUtilities.dp(54.0f);\n layoutParams4.bottomMargin = AndroidUtilities.dp(22.0f);\n layoutParams4.gravity = 80;\n this.nameTextView.setLayoutParams(layoutParams4);\n TextView textView3 = new TextView(this);\n this.onlineTextView = textView3;\n textView3.setTextColor(Theme.getColor(\"actionBarDefaultSubtitle\"));\n this.onlineTextView.setTextSize(1, 14.0f);\n this.onlineTextView.setLines(1);\n this.onlineTextView.setMaxLines(1);\n this.onlineTextView.setSingleLine(true);\n this.onlineTextView.setEllipsize(TextUtils.TruncateAt.END);\n this.onlineTextView.setGravity(3);\n this.avatarContainer.addView(this.onlineTextView);\n FrameLayout.LayoutParams layoutParams5 = (FrameLayout.LayoutParams) this.onlineTextView.getLayoutParams();\n layoutParams5.width = -2;\n layoutParams5.height = -2;\n layoutParams5.leftMargin = AndroidUtilities.dp(54.0f);\n layoutParams5.bottomMargin = AndroidUtilities.dp(4.0f);\n layoutParams5.gravity = 80;\n this.onlineTextView.setLayoutParams(layoutParams5);\n this.actionBar.setActionBarMenuOnItemClick(new ActionBar.ActionBarMenuOnItemClick() {\n public void onItemClick(int i) {\n if (i == -1) {\n PopupNotificationActivity.this.onFinish();\n PopupNotificationActivity.this.finish();\n } else if (i == 1) {\n PopupNotificationActivity.this.openCurrentMessage();\n } else if (i == 2) {\n PopupNotificationActivity.this.switchToNextMessage();\n }\n }\n });\n PowerManager.WakeLock newWakeLock = ((PowerManager) ApplicationLoader.applicationContext.getSystemService(\"power\")).newWakeLock(NUM, \"screen\");\n this.wakeLock = newWakeLock;\n newWakeLock.setReferenceCounted(false);\n handleIntent(getIntent());\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.notification_fragment, container,\r\n\t\t\t\tfalse);\r\n\r\n\t\tinitView(view);\r\n\r\n\t\tmNotificationListView.setRefreshState();\r\n\t\tgetNotificationFromNetWork(\"1\", \"0\");\r\n\r\n\t\treturn view;\r\n\t}", "private void initialiseView() {\n \tnoTasksMessageView = (TextView)findViewById(R.id.noTasksRunning);\r\n \ttaskKillWarningView = (TextView)findViewById(R.id.progressStatusMessage);\r\n\r\n \tIterator<Progress> jobsIterator = JobManager.iterator();\r\n \twhile (jobsIterator.hasNext()) {\r\n \t\tProgress job = jobsIterator.next();\r\n \t\tfindOrCreateUIControl(job);\r\n \t}\r\n\r\n // allow call back and continuation in the ui thread after JSword has been initialised\r\n \tfinal Handler uiHandler = new Handler();\r\n \tfinal Runnable uiUpdaterRunnable = new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n \t\t\tProgress prog = progressNotificationQueue.poll();\r\n \t\t\tif (prog!=null) {\r\n \t\t\t\tupdateProgress(prog);\r\n \t\t\t}\r\n\t\t\t}\r\n };\r\n\r\n // listen for Progress changes and call the above Runnable to update the ui\r\n\t\tworkListener = new WorkListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void workProgressed(WorkEvent ev) {\r\n\t\t\t\tcallUiThreadUpdateHandler(ev);\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void workStateChanged(WorkEvent ev) {\r\n\t\t\t\tcallUiThreadUpdateHandler(ev);\r\n\t\t\t}\r\n\t\t\tprivate void callUiThreadUpdateHandler(WorkEvent ev) {\r\n\t\t\t\tProgress prog = ev.getJob();\r\n\t\t\t\tprogressNotificationQueue.offer(prog);\r\n \t\t\t// switch back to ui thread to continue\r\n \t\t\tuiHandler.post(uiUpdaterRunnable);\r\n\t\t\t}\r\n\t\t};\r\n\t\tJobManager.addWorkListener(workListener);\r\n\r\n\t\t// give new jobs a chance to start then show 'No Job' msg if nothing running\r\n\t\tuiHandler.postDelayed(\r\n\t\t\tnew Runnable() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tif (!JobManager.iterator().hasNext()) {\r\n\t\t\t\t\t\tshowNoTaskMsg(true);\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}, 4000);\r\n }", "public void buildNotificationSingle(){\n if(arraylisted.size() ==1){\n Product contact = arraylisted.get(0);\n\n String userDept = arraylisted.get(0).getDept();\n String userName = arraylisted.get(0).getName();\n String userLevel = arraylisted.get(0).getLevel();\n String userID = arraylisted.get(0).getuserID();\n String str = notifyliste.get(0).getEmail();\n if(str.length() >=200){\n int k = str.length() / 2;\n str = str.substring(0,k) + \" ...\";\n }\n String prep = userName + System.getProperty(\"line.separator\") + userLevel + \" Level - \" + userDept;\n byte[] userPics = arraylisted.get(0).getBLOB();\n\n //build the actviity intents\n Intent notificationIntent = new Intent(getApplicationContext(),viewNamsn.class);\n\n notificationIntent.putExtra(\"userName\", userName);\n notificationIntent.putExtra(\"userLevel\", userLevel);\n notificationIntent.putExtra(\"userDept\", userDept);\n notificationIntent.putExtra(\"userID\", userID);\n notificationIntent.putExtra(\"userPics\", userPics);\n\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY | Intent.FLAG_ACTIVITY_NEW_TASK);\n PendingIntent pend = PendingIntent.getActivity(getApplicationContext(),0,notificationIntent,PendingIntent.FLAG_UPDATE_CURRENT);\n\n //mBuilder = buildNotification(userPics,prep);\n //design the new custom view\n RemoteViews notificationView = new RemoteViews(\n getApplicationContext().getPackageName(),\n R.layout.activity_custom_notification\n );\n Bitmap bitmap = BitmapFactory.decodeByteArray(userPics,0,userPics.length);\n // notificationView.setImageViewResource(R.id.imagenotileft,R.mipmap.ic_launcher);\n notificationView.setImageViewBitmap(R.id.imagenotileft,bitmap);\n // Locate and set the Text into customnotificationtext.xml TextViews\n notificationView.setTextViewText(R.id.title, (getString(R.string.app_name)));\n notificationView.setTextViewText(R.id.text, prep);\n // notificationView.setTextViewText(R.id.qoute, str);\n\n //go and build the notification\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(getApplicationContext());\n mBuilder.setContentIntent(pend);\n mBuilder.setContentTitle(getString(R.string.app_name));\n mBuilder.setContentText(userName + \" Recently Joined ATBU 37 NAMSSN ELITE E-YEAR BOOK !!!\");\n mBuilder.setTicker(userName + \" Recently Joined ATBU 37 NAMSSN ELITE E-YEAR BOOK !!!\");\n mBuilder.setAutoCancel(true);\n mBuilder.setContent(notificationView);\n mBuilder.setSmallIcon(R.mipmap.ic_app);\n mBuilder.setPriority(2);\n Uri alarmsound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n mBuilder.setSound(alarmsound);\n mBuilder.setLights(Color.RED, 3000, 3000);\n mBuilder.setVibrate(new long[]{1000, 1000, 1000, 1000, 1000 });\n //display the notification\n\n NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n notificationManager.notify(0123,mBuilder.build());\n }\n // arraylisted.clear();\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tView rootView = inflater.inflate(R.layout.notificationlist, container, false);\r\n\t\tconnectionClass = new ConnectionClass();\r\n\t\tnotiflist = (ListView) rootView.findViewById(R.id.notificationlist);\r\n\t\tnotiflist.setOnItemClickListener(new OnItemClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> adapter, View view, int position,\r\n\t\t\t\t\tlong arg3) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\taddNotifs();\r\n\t\treturn rootView;\r\n\t}", "private void createContents() {\n\t\tshlEditionRussie = new Shell(getParent(), getStyle());\n\t\tshlEditionRussie.setSize(470, 262);\n\t\tshlEditionRussie.setText(\"Edition r\\u00E9ussie\");\n\t\t\n\t\tLabel lblLeFilm = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblLeFilm.setBounds(153, 68, 36, 15);\n\t\tlblLeFilm.setText(\"Le film\");\n\t\t\n\t\tLabel lblXx = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblXx.setBounds(195, 68, 21, 15);\n\t\tlblXx.setText(\"\" + getViewModel());\n\t\t\n\t\tLabel lblABient = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblABient.setText(\"a bien \\u00E9t\\u00E9 modifi\\u00E9\");\n\t\tlblABient.setBounds(222, 68, 100, 15);\n\t\t\n\t\tButton btnRevenirLa = new Button(shlEditionRussie, SWT.NONE);\n\t\tbtnRevenirLa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tm_Infrastructure.runController(shlEditionRussie, ListMoviesController.class);\n\t\t\t}\n\t\t});\n\t\tbtnRevenirLa.setBounds(153, 105, 149, 25);\n\t\tbtnRevenirLa.setText(\"Revenir \\u00E0 la liste des films\");\n\n\t}", "private void setupViews() {\n ivBack.setVisibility(View.VISIBLE);\n if (isCreateDeal) {\n tvTitle.setText(getString(R.string.create_deal));\n btnDone.setVisibility(View.VISIBLE);\n btnDone.setText(R.string.done);\n etEndTime.setText(appUtils.parseToTimeAndDate(pickUpTime));\n\n } else {\n tvTitle.setText(getString(R.string.deactivated_deal));\n btnDone.setVisibility(View.VISIBLE);\n btnDone.setText(R.string.activate);\n\n if (dealData != null) {\n etTitle.setText(dealData.getDealTitle());\n etTitle.setSelection(etTitle.getText().length());\n etDescription.setText(dealData.getDealDescription());\n etTotalItems.setText(dealData.getTotalItems());\n etOriginalPrice.setText(dealData.getOriginalPrice());\n tvNewPrice.setText(dealData.getNewPrice());\n double discount = (Double.parseDouble(dealData.getOriginalPrice()) -\n Double.parseDouble(dealData.getNewPrice())) / Double.parseDouble(dealData.getOriginalPrice()) * 100;\n String perc = discount + getString(R.string.percent_symbol);\n tvDiscountPerc.setText(perc);\n seekbarNewprice.setProgress((int) discount / 5);\n etBeginTime.setText(appUtils.parseToTimeAndDate(dealData.getStartTime()));\n etEndTime.setText(appUtils.parseToTimeAndDate(dealData.getEndTime()));\n }\n }\n }", "@Override\r\n public void initializeView(ViewInterface[] subViews) {\r\n setLayout(new GridBagLayout());\r\n setBackground(Color.decode(\"#747b83\"));\r\n GridBagConstraints gridBagConstraints = new GridBagConstraints();\r\n\r\n Border titledBorder = new TitledBorder(null, \"Server Settings\", TitledBorder.LEADING,\r\n TitledBorder.TOP, FONT, null);\r\n\r\n createIntervalLabel(gridBagConstraints);\r\n createIntervalInputTextField(gridBagConstraints);\r\n createAutoRepeatCheckBox(gridBagConstraints);\r\n createServerStartStopButton(gridBagConstraints);\r\n createSendButton(gridBagConstraints);\r\n createStatusIndicator(gridBagConstraints);\r\n }", "public void launch() {\n view.setEditMode(false); \n view.setComments(report.getComments().toArray());\n \n view.addCommentsListSelectionListener(new CommentsListSelectionListener());\n view.addEditButtonActionListener(new EditButtonActionListener());\n view.addDiscardButtonActionListener(new DiscardChangesActionListener());\n view.addSaveButtonActionListener(new SaveCommentChangesActionListener());\n view.addNewCommentActionListener(new NewCommentActionListener());\n \n view.setVisible(true);\n \n refreshView();\n \n /**\n * Craig - TC B2c: Real time updates\n * Register this controller as an observer\n */\n AppObservable.getInstance().addObserver(this);\n }", "private void showNotification() {\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n\n // Inflate the layout.\n setContentView(R.layout.messagedisplaylayout);\n\n TextView primaryLabel = findViewById(R.id.mainLabel);\n primaryLabel.setVisibility(mDemoPresentationContents.mPrimaryLabelVisible);\n primaryLabel.setText(mDemoPresentationContents.mPrimaryLabelText);\n primaryLabel.setTypeface(getTypeface(mDemoPresentationContents.mPrimaryLabelTypeface));\n primaryLabel.setTextColor(mDemoPresentationContents.mPrimaryLabelTextColor);\n\n TextView secondaryLabel = findViewById(R.id.subLabel);\n secondaryLabel.setVisibility(mDemoPresentationContents.mSecondaryLabelVisible);\n if (mDemoPresentationContents.mSecondaryLabelVisible == View.VISIBLE) {\n secondaryLabel.setText(mDemoPresentationContents.mSecondaryLabelText);\n secondaryLabel.setTypeface(getTypeface(mDemoPresentationContents.mSecondaryLabelTypeface));\n secondaryLabel.setTextColor(mDemoPresentationContents.mSecondaryLabelTextColor);\n }\n\n\n\n // Show a n image for visual interest.\n ImageView image = findViewById(R.id.messageImage);\n image.setVisibility(mDemoPresentationContents.mLogoVisible);\n if (mDemoPresentationContents.mLogoVisible == View.VISIBLE)\n {\n image.setImageResource(mDemoPresentationContents.mLogoImage);\n }\n }", "protected abstract void initContentView(View view);", "private void showNotification() {\r\n\t\t// In this sample, we'll use the same text for the ticker and the\r\n\t\t// expanded notification\r\n\t\tCharSequence text = getText(R.string.local_service_started);\r\n\r\n\t\t// Set the icon, scrolling text and timestamp\r\n\t\tNotification notification = new Notification(R.drawable.compass25,\r\n\t\t\t\ttext, System.currentTimeMillis());\r\n\t\tnotification.sound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\r\n\t\t// The PendingIntent to launch our activity if the user selects this\r\n\t\t// notification\r\n\t\tIntent intent = new Intent(this, TaskOverViewActivity.class);\r\n\t\t//intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\r\n\t\tPendingIntent contentIntent = PendingIntent.getActivity(this, 0,\r\n\t\t\t\tintent, PendingIntent.FLAG_UPDATE_CURRENT);\r\n\r\n\t\t// Set the info for the views that show in the notification panel.\r\n\t\tnotification.setLatestEventInfo(this, getText(R.string.service_name),\r\n\t\t\t\ttext, contentIntent);\r\n\r\n\t\t// Send the notification.\r\n\t\t// We use a layout id because it is a unique number. We use it later to\r\n\t\t// cancel.\r\n\t\tmNM.notify(R.string.local_service_started, notification);\r\n\t}", "@Override\n public void initView() {\n\n }", "private void configureViewPresenters(View inflatedView) {\n // Instantiate the Event Listener\n listener = new PresenterListener(this);\n actionToolbarPresenter = new ActionToolbarPresenter(inflatedView);\n actionToolbarPresenter.setListener(listener);\n actionToolbarPresenter.setBattery(sharedPrefs.getInt(BATTERY_RECEIVED, 0)); }", "private void setupUi() {\n //Set title\n setTitle(R.string.send_mms);\n\n //Set numbers recycler view\n RecyclerView recyclerView = mBinding.ownNumbersList;\n recyclerView.setLayoutManager(new LinearLayoutManager(this));\n recyclerView.setHasFixedSize(true);\n\n NumbersAdapter numbersAdapter = new NumbersAdapter();\n numbersAdapter.watchSubscriptionIdData().observe(this, subscriptionId -> {\n mViewModel.setSubscriptionId(subscriptionId);\n });\n recyclerView.setAdapter(numbersAdapter);\n\n //Get data\n addToCompositeDisposable(mViewModel.getDeviceNumbersList());\n\n //Observe on data\n mViewModel.watchSimCardsList().observe(this, numbersAdapter::setData);\n }", "public void initView() {\n JPanel pane= new JPanel();\n panel = new JPanel();\n this.getFile(pane);\n JScrollPane scp = new JScrollPane(pane);\n scp.setPreferredSize(new Dimension(500, 280));\n scp.setVisible(true);\n enter.setPreferredSize(new Dimension(100, 50));\n enter.setVisible(true);\n enter.setActionCommand(\"enter\");\n enter.addActionListener(this);\n send.setPreferredSize(new Dimension(80, 50));\n send.setVisible(true);\n send.setActionCommand(\"sendOptions\");\n send.addActionListener(this);\n send.setEnabled(true);\n back.setVisible(true);\n back.setActionCommand(\"back\");\n back.addActionListener(this);\n back.setPreferredSize(new Dimension(80, 50));\n \n panel.add(scp);\n panel.add(send);\n panel.add(enter);\n panel.add(back);\n Launch.frame.add(panel);\n }", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(838, 649);\n\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(656, 296);\n\n\t}", "protected abstract void setupMvpView();", "private void viewInit() {\n }", "private void createContents() {\r\n\t\tshlEventBlocker = new Shell(getParent(), getStyle());\r\n\t\tshlEventBlocker.setSize(167, 135);\r\n\t\tshlEventBlocker.setText(\"Event Blocker\");\r\n\t\t\r\n\t\tLabel lblRunningEvent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblRunningEvent.setBounds(10, 10, 100, 15);\r\n\t\tlblRunningEvent.setText(\"Running Event:\");\r\n\t\t\r\n\t\tLabel lblevent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblevent.setFont(SWTResourceManager.getFont(\"Segoe UI\", 15, SWT.BOLD));\r\n\t\tlblevent.setBounds(20, 31, 129, 35);\r\n\t\tlblevent.setText(eventName);\r\n\t\t\r\n\t\tButton btnFinish = new Button(shlEventBlocker, SWT.NONE);\r\n\t\tbtnFinish.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlEventBlocker.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFinish.setBounds(10, 72, 75, 25);\r\n\t\tbtnFinish.setText(\"Finish\");\r\n\r\n\t}", "protected void createContents() {\r\n\t\tsetText(\"SWT Application\");\r\n\t\tsetSize(450, 300);\r\n\r\n\t}", "private void displayNotification(final String id, final String name, final String detail, String title, final String url) {\n\n NotificationManager manager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n Notification notification = new Notification(R.drawable.noti, name + \" ตอนใหม่\", System.currentTimeMillis());\n notification.defaults |= Notification.DEFAULT_SOUND;\n notification.flags |= Notification.FLAG_AUTO_CANCEL;\n\n // The PendingIntent will launch activity if the user selects this notification\n Intent browserIntent = null;\n/*\t\tbrowserIntent = new Intent(Intent.ACTION_VIEW);\n\t\tUri data = Uri.parse(url+\"#story_body\");\n\t\tbrowserIntent.setData(data);*/\n if (Setting.getArrowSelectSetting(context).equals(\"0\")) {\n browserIntent = new Intent(Intent.ACTION_VIEW);\n Uri data = Uri.parse(url + \"#story_body\");\n browserIntent.setData(data);\n } else if (Setting.getArrowSelectSetting(context).equals(\"1\")) {\n browserIntent = new Intent(this, DekdeeBrowserActivity.class);\n browserIntent.putExtra(\"id\", id);\n browserIntent.putExtra(\"url\", url);\n browserIntent.putExtra(\"title\", name);\n } else {\n browserIntent = new Intent(this, TextReadActivity.class);\n browserIntent.putExtra(\"url\", url);\n }\n System.out.println(\"moti \" + url);\n\n //PendingIntent contentIntent = PendingIntent.getActivity(context, REQUEST_CODE,browserIntent, 0);\n PendingIntent contentIntent = PendingIntent.getActivity(getApplicationContext(), REQUEST_CODE, browserIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n notification.contentIntent = contentIntent;\n //notification.contentView = contentView;\n if (title.contains(\":\")) {\n title = \":\" + title;\n }\n if (title.indexOf(\":\") + 2 < title.length()) {\n notification.setLatestEventInfo(context, name, title.substring(title.indexOf(\":\") + 2) + \" (\" + detail + \")\", contentIntent);\n } else if (title.indexOf(\":\") + 1 < title.length()) {\n notification.setLatestEventInfo(context, name, title.substring(title.indexOf(\":\") + 1) + \" (\" + detail + \")\", contentIntent);\n } else if ((!title.contains(\":\")) && (title.indexOf(\":\") < title.length())) {\n notification.setLatestEventInfo(context, name, title.substring(title.indexOf(\":\")) + \" (\" + detail + \")\", contentIntent);\n } else {\n notification.setLatestEventInfo(context, name, title + \" (\" + detail + \")\", contentIntent);\n }\n manager.notify(REQUEST_CODE, notification);\n }", "public ViewClass() {\n\t\tcreateGUI();\n\t\taddComponentsToFrame();\n\t\taddActionListeners();\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.my_message);\n\t\tinitView();\n\t\tgetData();\n setupCommonViews();\n\t}", "private void initView() {\n\t\tsna_viewpager = (ViewPager) findViewById(R.id.sna_viewpager);\r\n\t\thost_bt = (Button) findViewById(R.id.host_bt);\r\n\t\tcomment_bt = (Button) findViewById(R.id.comment_bt);\r\n\t\tback_iv = (ImageView) findViewById(R.id.back_iv);\r\n\t\trelativeLayout_project = (RelativeLayout) findViewById(R.id.relativeLayout_project);\r\n\t\trelativeLayout_addr = (RelativeLayout) findViewById(R.id.relativeLayout_addr);\r\n\t\trelativeLayout_activity = (RelativeLayout) findViewById(R.id.relativeLayout_activity);\r\n\t\trelativeLayout_host = (RelativeLayout) findViewById(R.id.relativeLayout_host);\r\n\t\trelativeLayout_comment = (RelativeLayout) findViewById(R.id.relativeLayout_comment);\r\n\t\tll_point = (LinearLayout) findViewById(R.id.ll_point);\r\n\t\tstoyrName = (TextView) findViewById(R.id.stoyrName);\r\n\t\tstory_addr = (TextView) findViewById(R.id.story_addr);\r\n\t\t\r\n\t}", "@Override\n protected void initView() {\n pushTxt = (TextView) findViewById(R.id.push_txt);\n pushActivity = (TextView)findViewById(R.id.push_activity);\n pushArticle = (TextView)findViewById(R.id.push_article);\n pushProduce = (TextView)findViewById(R.id.push_produce);\n\n\n pushTxt.setOnClickListener(this);\n pushActivity.setOnClickListener(this);\n pushArticle.setOnClickListener(this);\n pushProduce.setOnClickListener(this);\n }", "private void AddUIViewAndHandlers()\n\t{\n\t\t// Set view and autocomplete text\t\t\n\t\tSetViewAndAutoCompleteText(VIEW_ID_COMMAND);\n\t\tSetViewAndAutoCompleteText(VIEW_ID_KEY);\n\t\t\n\t\t// Set handler\n\t\tmCommandViewHandler = MakeViewHandler(VIEW_ID_COMMAND);\t\t\n\t\tmKeyViewHandler = MakeViewHandler(VIEW_ID_KEY);\n\t}", "protected abstract void initializeView();", "public void createTaskProperties(View view) {\n \t\n \tIntent intent = new Intent(this, TaskProperties.class);\n \t\n \t//dont have any task properties at this point\n \tif(!propertiesGrabbed){\n \n \t\tintent.putExtra(EDIT, \"no\");\n \t\tstartActivityForResult(intent, 3);\n \t\t \t\t\n \t//we have properties so need to populate the next page\t\n \t}else{\n \t\t\n \t\t//creating the values to pass\n\t\t\t//0 -> where to send the notification\n\t \t//1 -> visibility\n\t \t//2 -> description\n\t \t//3 -> type\n \t\tString[] send = new String[TaskProperties.propertyCount];\n \t\tsend[0] = taskResponseString;\n \t\tsend[1] = taskVisibility;\n \t\tsend[3] = taskResponseType;\n \t\tsend [2] = taskDescription; \n \t\t\n \t\tintent.putExtra(EDIT, \"yes\");\n \t\tintent.putExtra(PROPERTIES, send);\n \t\tstartActivityForResult(intent, 3); \t\t\t\n \t} \t\n }", "private void setDateTimeViews(){\n setDueDateView();\n setDueTimeView();\n }", "@Override\n protected void initView() {\n springView.setListener(new SpringView.OnFreshListener() {\n @Override\n public void onRefresh() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n isRefresh = true;\n currentPage = 1;\n handler.sendEmptyMessage(ConstantValue.SHUAXIN_SUCESS);\n }\n }).start();\n }\n\n @Override\n public void onLoadmore() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n isRefresh = false;\n currentPage++;\n handler.sendEmptyMessage(ConstantValue.JIAZAI_SUCESS);\n }\n }).start();\n }\n });\n }", "public ControlView (SimulationController sc){\n myProperties = ResourceBundle.getBundle(\"english\");\n myStartBoolean = false;\n mySimulationController = sc;\n myRoot = new HBox();\n myPropertiesList = sc.getMyPropertiesList();\n setView();\n\n }", "private void showNotification() {\n\n }", "private void showNotification(LBSBundle lbs,int status){\n\t\tScenario scenario = (Scenario) EntityPool.instance(\r\n\t\t\t\t).forId(lbs.getParentId(), lbs.getParentTag());\r\n\t\t\r\n\t\t\r\n\t\t// Set the icon, scrolling text and timestamp\r\n\t\tNotification notification = new Notification(R.drawable.compass25,\r\n\t\t\t\tscenario.getName(), System.currentTimeMillis());\r\n\t\tnotification.flags |= Notification.FLAG_AUTO_CANCEL;\r\n\t\tnotification.sound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\r\n\t\t// The PendingIntent to launch our activity if the user selects this\r\n\t\t// notification\r\n\t\tIntent intent = new Intent(this, TaskOverViewActivity.class);\r\n\t\tintent.setAction(TaskOverViewActivity.TASK_OVERVIEWBY_SCENARIO);\r\n\t\tintent.putExtra(TaskOverViewActivity.IN_SCENAIRO_ID, scenario.getId());\r\n\t\t//intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\r\n\t\tPendingIntent contentIntent = PendingIntent.getActivity(this, 0,\r\n\t\t\t\tintent, PendingIntent.FLAG_UPDATE_CURRENT);\r\n\r\n\t\tCharSequence text = getText(status);\r\n\t\t// Set the info for the views that show in the notification panel.\r\n\t\tnotification.setLatestEventInfo(this, scenario.getName(),\r\n\t\t\t\ttext, contentIntent);\r\n\r\n\t\t// Send the notification.\r\n\t\t// We use a layout id because it is a unique number. We use it later to\r\n\t\t// cancel.\r\n\t\tmNM.notify(\tstatus, notification);\r\n\t}", "public void initView(){}", "private void initializeViewAndControls() {\r\n txtEmail.setText(\"Email - \"+ AppConstants.ADMIN_EMAIL);\r\n txtCustomerCarePhone.setText(\"Customer Care - \"+ AppConstants.CUSTOMER_CARE_NUMBER);\r\n txtTollFreePhone.setText(\"Toll Free - \"+ AppConstants.TOLL_FREE_NUMBER);\r\n }", "private RemoteViews setupViews(Context context, VigilanceState state) {\n RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.emergency_button_widget);\n\n Intent intent = EmergencyNotificationService.getStartIntent(context)\n \t.putExtra(EmergencyNotificationService.SHOW_NOTIFICATION_WITH_DISABLE, true);\n PendingIntent pendingIntent = PendingIntent.getService(context, 0, intent, 0);\n views.setOnClickPendingIntent(R.id.EmergencyButton, pendingIntent);\n\n // Create ImNowOk intent\n Intent iAmNowOkIntent = EmergencyNotificationService.getStopIntent(context);\n PendingIntent pendingIAmNowOkIntent = PendingIntent.getService(context, 0, iAmNowOkIntent, 0);\n views.setOnClickPendingIntent(R.id.ImNowOKButton, pendingIAmNowOkIntent);\n\n Intent stopEmergency = EmergencyNotificationService.getCancelIntent(context);\n PendingIntent pendingStopIntent = PendingIntent.getService(context, 0, stopEmergency, 0);\n views.setOnClickPendingIntent(R.id.CancelEmergencyButton, pendingStopIntent);\n\n views.setViewVisibility(R.id.ImNowOKButton, View.INVISIBLE);\n views.setViewVisibility(R.id.CancelEmergencyButton, View.INVISIBLE);\n views.setViewVisibility(R.id.EmergencyButton, View.INVISIBLE);\n\n switch (state) {\n case NORMAL_STATE:\n views.setViewVisibility(R.id.EmergencyButton, View.VISIBLE);\n break;\n case WAITING_STATE:\n views.setViewVisibility(R.id.CancelEmergencyButton, View.VISIBLE);\n break;\n case EMERGENCY_STATE:\n views.setViewVisibility(R.id.ImNowOKButton, View.VISIBLE);\n break;\n }\n return views;\n }", "protected void initializeComponents() {\n\t\t/* Create fonts for information nodes */\n\t\tFont titleFont = Font.font(\"Arial\", FontWeight.BOLD, 18);\n\t\tFont descriptionFont = Font.font(\"Arial\", 14);\n\t\t/* Configure information nodes */\n\t\tconfigureTitle(titleFont);\n\t\tconfigureDescription(descriptionFont);\n\t\tconfigureIconContainer();\n\t\tconfigureWindow();\n\t\t/* set scene */\n\n\t\tgetContent().add(notificationContainer);\n\t}", "private void initUI(View view) {\n\t\t\n\t\t//ButterKnife.inject(this, view);\n\t\tmBtnGeneral = (Button)view.findViewById(R.id.btn_general);\n\t\tmBtnCC = (Button)view.findViewById(R.id.btn_cc);\n\t\tmBtnMc = (Button)view.findViewById(R.id.btn_mc);\n\n\t\tmViewDividerGeneral = (View)view.findViewById(R.id.v_divider_general);\n\t\tmViewDividerCC = (View)view.findViewById(R.id.v_divider_cc);\n\t\tmViewDividerMC = (View)view.findViewById(R.id.v_divider_mc);\n\t\tmFaqList = (ListView)view.findViewById(R.id.my_checks_list);\n\t\t\n\t\tmBtnGeneral.setOnClickListener(this);\n\t\tmBtnCC.setOnClickListener(this);\n\t\tmBtnMc.setOnClickListener(this);\n\n\t\tmFaqList.setOnItemClickListener(this);\n\t\tmTitle = \"General\";\n\t\tcreateRequest(EventTypes.FAQ_GENERAL, Constants.URL_FAQ_CORE);\n\n\t\tmViewDividerGeneral.setBackgroundColor(Color.parseColor(getResources().getString(R.color.color_action_bar)));\n\t\tmBtnGeneral.setTextColor(Color.parseColor(getResources().getString(R.color.color_action_bar)));\n\t\n\t}", "public abstract void initView();" ]
[ "0.68857235", "0.6703152", "0.658162", "0.6522237", "0.64789957", "0.64147776", "0.64128304", "0.6364058", "0.6277586", "0.6242749", "0.6233615", "0.62311226", "0.6216626", "0.6207008", "0.6207008", "0.6203179", "0.61907417", "0.6190058", "0.61602277", "0.61602277", "0.6158005", "0.6158005", "0.6130813", "0.61130303", "0.60988003", "0.609452", "0.6080626", "0.6078056", "0.6076297", "0.60751766", "0.6057947", "0.6054069", "0.6054069", "0.6044241", "0.60388213", "0.6023999", "0.6017824", "0.6016849", "0.6015773", "0.5999358", "0.59963167", "0.5976564", "0.59760106", "0.59760106", "0.59694135", "0.59608716", "0.59509456", "0.59402543", "0.5935756", "0.5928507", "0.5923674", "0.5906714", "0.59028804", "0.5897753", "0.58964914", "0.58942896", "0.5891864", "0.5870547", "0.5869424", "0.58669794", "0.586155", "0.5856816", "0.5853352", "0.58506685", "0.5841292", "0.5838423", "0.5836258", "0.5833907", "0.58300877", "0.5827362", "0.5826463", "0.582297", "0.5817475", "0.5815417", "0.5812755", "0.581022", "0.58030105", "0.58014494", "0.5788835", "0.5784581", "0.57822967", "0.5781062", "0.5778527", "0.57596004", "0.57587916", "0.57583326", "0.5757105", "0.5751733", "0.573822", "0.5725892", "0.57249767", "0.5721505", "0.57201517", "0.57135946", "0.5707664", "0.5706407", "0.57006776", "0.5692789", "0.5688275", "0.5688014", "0.5684201" ]
0.0
-1
/ (nonJavadoc) Returning null when not found based on spec.
@Override public String getPreferredPrefix(String namespaceUri, String suggestion, boolean requirePrefix) { return namespaceMap.getOrDefault(namespaceUri, suggestion); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract E get(S spec);", "org.hl7.fhir.String getDocumentation();", "private UriRef getRenderingSpecification(Resource renderletDef) {\n\t\tIterator<Triple> renderSpecIter = configGraph.filter(\n\t\t\t\t(NonLiteral) renderletDef, TYPERENDERING.renderingSpecification, null);\n\t\tif (renderSpecIter.hasNext()) {\n\t\t\treturn (UriRef) renderSpecIter.next().getObject();\n\t\t}\n\t\treturn null;\n\t}", "public void testGetObjectSpecificationWithNotFoundNullIdentifier() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n try {\r\n specificationFactory.getObjectSpecification(\"key\", null);\r\n fail(\"UnknownReferenceException is expected.\");\r\n } catch (UnknownReferenceException e) {\r\n // ok\r\n }\r\n }", "String getDocumentation();", "String getDocumentation();", "public abstract String getResolvedDocComment(Element forElement) throws IOException;", "public String getSpec() {\n return spec;\n }", "public String getSpec() {\n return spec;\n }", "public String getSpecification() {\n return specification;\n }", "public String getSpecification() {\n return specification;\n }", "public String getSpecification() {\n return specification;\n }", "DocumentationFactory getDocumentationFactory();", "public File getJavadocFile() {\n if (getJavadoc().size() > 0) {\n return ((FilePath) this.getJavadoc().iterator().next()).getFile();\n } else {\n return null;\n }\n }", "@Override\n\tpublic Etape find(String search) {\n\t\treturn null;\n\t}", "private String extractJavadoc(TypeMember member, IProgressMonitor monitor)\n throws DartModelException, IOException {\n if (member != null) {\n Reader reader = getHTMLContentReader(member, monitor);\n if (reader != null) {\n return getString(reader);\n }\n }\n return null;\n }", "@Implementation\n protected SearchableInfo getSearchableInfo(ComponentName componentName) {\n return null;\n }", "JavadocToken peek();", "@Implementation\n public SearchableInfo getSearchableInfo(ComponentName componentName) {\n return null;\n }", "public static String getOptionalString(Document document, String name)\n throws RepositoryException {\n String result = null;\n try {\n result = getStringAndThrow(document, name);\n } catch (IllegalArgumentException e) {\n LOGGER.log(Level.WARNING, \"Swallowing exception while accessing \" + name,\n e);\n }\n return result;\n }", "@Override\n protected String getInitialDoc(PythonParser.FuncdefContext rawMethod) {\n return null;\n }", "@Override\n public String visit(JavadocComment n, Object arg) {\n return null;\n }", "public IDefinitionLocation getLocation()\n\t\tthrows ConnectException, \n\t\t\tUnexpectedReplyException, InvocationError,\n\t\t\tCompilerInstantiationException\n\t{\n\t\treturn null;\n\t}", "public PsiElement findPsiElement() {\n final String filePath = myLocation == null ? null : FileUtil.toSystemIndependentName(myLocation.getFile());\n final VirtualFile vFile = filePath == null ? null : LocalFileSystem.getInstance().findFileByPath(filePath);\n final PsiFile psiFile = vFile == null ? null : PsiManager.getInstance(myProject).findFile(vFile);\n if (psiFile != null) {\n final int offset = DartAnalysisServerService.getInstance(myProject).getConvertedOffset(vFile, myLocation.getOffset());\n final PsiElement elementAtOffset = psiFile.findElementAt(offset);\n if (elementAtOffset != null) {\n final DartComponentName componentName = PsiTreeUtil.getParentOfType(elementAtOffset, DartComponentName.class);\n if (componentName != null) {\n return componentName;\n }\n if (elementAtOffset.getParent() instanceof DartId && elementAtOffset.getTextRange().getStartOffset() == offset) {\n return elementAtOffset; // example in WEB-25478 (https://github.com/flutter/flutter-intellij/issues/385#issuecomment-278826063)\n }\n }\n }\n return null;\n }", "@Override\n\tpublic String findPage() {\n\t\treturn null;\n\t}", "protected URL convertedFindResource(String name) {\n ServiceReference reference = bundle.getBundleContext().getServiceReference(PackageAdmin.class.getName());\n PackageAdmin packageAdmin = (PackageAdmin) bundle.getBundleContext().getService(reference);\n try {\n List<URL> resources = findResources(packageAdmin, bundle, name, false);\n if (resources.isEmpty() && isMetaInfResource(name)) {\n LinkedHashSet<Bundle> wiredBundles = getWiredBundles();\n Iterator<Bundle> iterator = wiredBundles.iterator();\n while (iterator.hasNext() && resources.isEmpty()) { \n Bundle wiredBundle = iterator.next();\n resources = findResources(packageAdmin, wiredBundle, name, false);\n }\n }\n return (resources.isEmpty()) ? null : resources.get(0);\n } catch (Exception e) {\n return null;\n } finally {\n bundle.getBundleContext().ungetService(reference);\n }\n }", "@Override\n public String describe() {\n return null;\n }", "@Override\n\tpublic ISpecies getDefault() {\n\t\treturn null;\n\t}", "public String getDescription() {\n/* 179 */ return getDescription((String)null);\n/* */ }", "@org.jetbrains.annotations.Nullable()\n public abstract java.lang.String getDescription();", "String getDescriptionIfNotMet();", "java.lang.String getHowToUse();", "java.lang.String getHowToUse();", "@Nullable\n String getMatch() {\n if (getAnchorType() == STRING_LITERAL || getAnchorType() == CHAR_LITERAL) {\n // Remove quotes inserted by parboiled for completion suggestions\n String fullToken = _anchor.getLabel();\n if (fullToken.length() >= 2) { // remove surrounding quotes\n fullToken = fullToken.substring(1, fullToken.length() - 1);\n }\n return fullToken;\n }\n return null;\n }", "public void testGetObjectSpecificationWithNotFoundIdentifier() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n try {\r\n specificationFactory.getObjectSpecification(\"key\", \"identifier2\");\r\n fail(\"UnknownReferenceException is expected.\");\r\n } catch (UnknownReferenceException e) {\r\n // ok\r\n }\r\n }", "public V get(int major, int minor, int patch) throws VersionNotFoundException {\n V result = lookupMap\n .get(AbstractSemanticVersion.createSemanticVersioningString(major, minor, patch));\n if (result == null) {\n throw new VersionNotFoundException();\n }\n return result;\n }", "@Nullable\r\n\tprotected Optional<String> describe(TerminalExpect terminalExpect, String suggestedLiteral) {\r\n\t\tif (StringUtils.isNotBlank(suggestedLiteral)) \r\n\t\t\treturn Optional.absent();\r\n\t\telse \r\n\t\t\treturn Optional.of(\"space\");\r\n\t}", "@Test\n\tpublic void testGetSparePartSpec() {\n\t\t\t\n\t\tassertTrue(spReg.getSparePartSpecification(\"1\") != null);\n\t\t\n\t\t//fail(\"Not yet implemented\");\n\t}", "protected String extractDocumentation(AnnotatedBase element) {\n if (m_schemaCustom.isJavaDocDocumentation()) {\n StringWriter writer = new StringWriter();\n AnnotationElement anno = element.getAnnotation();\n if (anno != null) {\n FilteredSegmentList items = anno.getItemsList();\n for (int i = 0; i < items.size(); i++) {\n AnnotationItem item = (AnnotationItem)items.get(i);\n if (item instanceof DocumentationElement) {\n DocumentationElement doc = (DocumentationElement)item;\n List contents = doc.getContent();\n if (contents != null) {\n for (Iterator iter = contents.iterator(); iter.hasNext();) {\n Node node = (Node)iter.next();\n DOMSource source = new DOMSource(node);\n StreamResult result = new StreamResult(writer);\n try {\n s_transformer.transform(source, result);\n } catch (TransformerException e) {\n s_logger.error(\"Failed documentation output transformation\", e);\n }\n }\n }\n }\n }\n }\n StringBuffer buff = writer.getBuffer();\n if (buff.length() > 0) {\n \n // make sure there's no embedded comment end marker\n int index = buff.length();\n while ((index = buff.lastIndexOf(\"*/\", index)) >= 0) {\n buff.replace(index, index+2, \"* /\");\n }\n return buff.toString();\n }\n }\n return null;\n }", "String getConcept();", "public static String getRequiredString(Document document, String name)\n throws RepositoryException {\n String result = null;\n result = getStringAndThrow(document, name);\n if (result == null) {\n LOGGER.log(Level.WARNING, \"Document missing required property \" + name);\n throw new RepositoryDocumentException(\n \"Document missing required property \" + name);\n }\n return result;\n }", "public IIOMetadataFormat getMetadataFormat(String formatName) {\n\t\tif (formatName.equals(nativeMetadataFormatName)) {\n\t\t\treturn null;\n\t\t\t// return (IIOMetadataFormat) nativeDoc;\n\t\t} else if (formatName.equals(commonMetadataFormatName)) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Not a recognized format!\");\n\t\t}\n\t}", "@SuppressWarnings(\"null\")\n private ServiceInterface3 getDefaultImplFromReference() throws InvalidSyntaxException {\n Collection<ServiceReference<ServiceInterface3>> references = bundleContext.getServiceReferences(ServiceInterface3.class, \"(!(prop1=abc))\");\n ServiceInterface3 service = bundleContext.getService(references.iterator().next());\n return ((ServiceInterface3ImplSelfReferencing)service).getDefaultImplementation();\n }", "public void testGetObjectSpecificationWithNullIdentifier() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n root.addChild(createObject(\"key\", TYPE_NUMBER));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n ObjectSpecification object = specificationFactory.getObjectSpecification(\"key\", null);\r\n\r\n assertEquals(\"SpecType should be complex.\", ObjectSpecification.COMPLEX_SPECIFICATION,\r\n object.getSpecType());\r\n assertNull(\"Identifier should be null.\", object.getIdentifier());\r\n assertEquals(\"Type should be 'B'.\", TYPE_NUMBER, object.getType());\r\n }", "E findOne(Specification<E> spec);", "private Macrodef getMatchingMacrodef(Element targetElement)\n {\n String targetName = targetElement.getAttribute(\"name\").getValue();\n\n for (Macrodef macrodef : localMacrodefs)\n {\n String label = macrodef.getName();\n\n if (label.equals(targetName))\n {\n return macrodef;\n }\n }\n\n return null;\n }", "public void setSpec(String spec) {\n this.spec = spec;\n }", "String getSpecUrl();", "@Programmatic\n public ObjectSpecification lookupBySpecId(ObjectSpecId objectSpecId) {\n if(!cache.isInitialized()) {\n throw new IllegalStateException(\"Internal cache not yet initialized\");\n }\n final ObjectSpecification objectSpecification = cache.getByObjectType(objectSpecId);\n if(objectSpecification == null) {\n // fallback\n return loadSpecification(objectSpecId.asString(), IntrospectionState.TYPE_AND_MEMBERS_INTROSPECTED);\n }\n return objectSpecification;\n }", "@Test\n public void testPrototypeDoesNotExist(){\n PrototypeDocument termsAndConditions = DocumentPrototypeManager.getClonedDocument(\"TermsAndConditions\");\n assertEquals(termsAndConditions, null);\n }", "@Override\r\n\tpublic String getDocumentInfo() {\n\t\treturn null;\r\n\t}", "private ObjectId getBranchRevision(String branchSpec, Path dest) {\n if (!branchSpec.contains(\"/\")) {\n\n // <tt>BRANCH</tt> is recognized as a shorthand of <tt>*/BRANCH</tt>\n // so check all remotes to fully qualify this branch spec\n String fqbn = \"origin/\" + branchSpec;\n ObjectId result = getHeadRevision(fqbn, dest);\n if (result != null) {\n return result;\n }\n } else {\n // either the branch is qualified (first part should match a valid remote)\n // or it is still unqualified, but the branch name contains a '/'\n String repository = \"origin\";\n String fqbn;\n if (branchSpec.startsWith(repository + \"/\")) {\n fqbn = \"refs/remotes/\" + branchSpec;\n } else if (branchSpec.startsWith(\"remotes/\" + repository + \"/\")) {\n fqbn = \"refs/\" + branchSpec;\n } else if (branchSpec.startsWith(\"refs/heads/\")) {\n fqbn = \"refs/remotes/\" + repository + \"/\" + branchSpec.substring(\"refs/heads/\".length());\n } else {\n //Try branchSpec as it is - e.g. \"refs/tags/mytag\"\n fqbn = branchSpec;\n }\n\n ObjectId result = getHeadRevision(fqbn, dest);\n if (result != null) {\n return result;\n }\n\n //Check if exact branch name <branchSpec> exists\n fqbn = \"refs/remotes/\" + repository + \"/\" + branchSpec;\n result = getHeadRevision(fqbn, dest);\n if (result != null) {\n return result;\n }\n }\n\n ObjectId result = getHeadRevision(branchSpec, dest);\n if (result != null) {\n return result;\n }\n\n throw new RepositoryException(\"Couldn't find any revision to build. Verify the repository and branch configuration.\");\n }", "T findOne(Specification<T> specification);", "@Override\n @XmlElement(name = \"specification\")\n public synchronized InternationalString getSpecification() {\n return specification;\n }", "private PropertyDescriptor locatePropertyDescriptor(Set<PropertyDescriptor> propertyDescriptors, PropertyDescriptor specDescriptor) {\n for (PropertyDescriptor propertyDescriptor : propertyDescriptors) {\n if (propertyDescriptor.equals(specDescriptor)) {\n return propertyDescriptor;\n }\n }\n return specDescriptor;\n }", "String getDefinition();", "private ReportConcept getReportConcept(Concept c) {\n\t\tfor (ReportConcept e : concepts) {\n\t\t\tif (c.getCode().endsWith(e.getName())) {\n\t\t\t\treturn e;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String getDefinition() {\n\t\treturn null;\n\t}", "@Override\n\tprotected String findStatement() {\n\t\treturn null;\n\t}", "@TestMethod(value=\"testGetSpecification\")\n public DescriptorSpecification getSpecification() {\n return new DescriptorSpecification(\n \"http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#bondPartialPiCharge\",\n this.getClass().getName(),\n \"$Id$\",\n \"The Chemistry Development Kit\");\n }", "private SystemDef getSystemDef(String systemDefName) {\n for (DatacollectionGroup group : externalGroupsMap.values()) {\n for (SystemDef sd : group.getSystemDefCollection()) {\n if (sd.getName().equals(systemDefName)) {\n return sd;\n }\n }\n }\n return null;\n }", "public abstract String getDefinition();", "public T caseSpecStatement(SpecStatement object) {\n\t\treturn null;\n\t}", "private IReasoner findReasoner(ReasonerDescriptor descriptor) {\r\n if (null == descriptor) {\r\n throw new IllegalArgumentException(\"descriptor must not be null\");\r\n }\r\n IReasoner reasoner = registry.findReasoner(descriptor);\r\n if (null == reasoner) {\r\n throw new IllegalArgumentException(\"descriptor does not fit to a registered reasoner\");\r\n }\r\n return reasoner;\r\n }", "@TestMethod(value=\"testGetSpecification\")\n public DescriptorSpecification getSpecification() {\n return new DescriptorSpecification(\n \"http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#partialSigmaCharge\",\n this.getClass().getName(),\n \"$Id$\",\n \"The Chemistry Development Kit\");\n }", "public Integer getSpecification() {\r\n return specification;\r\n }", "public ClassDoc classNamed(String arg0) {\n // System.out.println(\"RootDoc.classNamed(\" + arg0 + \") called.\");\n if (specClasses.containsKey(arg0)) {\n return specClasses.get(arg0);\n }\n if (otherClasses.containsKey(arg0)) {\n return otherClasses.get(arg0);\n }\n return null;\n }", "TestDocument getDocument(String name);", "Definition lookup(String name, // the name to locate\n int numParams) { // number of params\n // note that the name isn't used... all definitions contained\n // by the MultiDef have the same name\n \n // walk through the list of symbols\n Enumeration e = defs.elements();\n while(e.hasMoreElements()) {\n Definition d = (Definition)e.nextElement();\n \n // If the symbol is a method and it has the same number of\n // parameters as what we are calling, assume it's the match\n if (d instanceof MethodDef) {\n if (((MethodDef)d).getParamCount() == numParams)\n return d;\n }\n \n // otherwise, if it's not a method, AND we're not looking for\n // a method, return the definition found.\n else if (numParams == -1)\n return d;\n } \n\n // If we didn't find a match return null\n return null;\n }", "public IMAGE_SECTION_HEADER getSection(String str) {\n\t\tfor(int i=str.length();i<IMAGE_SECTION_HEADER.IMAGE_SIZEOF_SHORT_NAME;i++)\n\t\t\tstr += (char)0;\n\t\tfor(IMAGE_SECTION_HEADER ish:peFileSections) {\n\t\t\tif(ish.getName().equals(str))\n\t\t\t\treturn ish;\n\t\t}\n\t\treturn null;\n\t}", "public String getSuggestPackage() {\n/* 63 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "java.lang.String getCandidate();", "public String getSuggestPath() {\n/* 105 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "Optional<String> getSource();", "@RecentlyNullable\n/* */ public String getWidgetVersion() {\n/* 57 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "Optional<String> getExtractor();", "public noNamespace.SourceType getComparesource()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n noNamespace.SourceType target = null;\r\n target = (noNamespace.SourceType)get_store().find_element_user(COMPARESOURCE$2, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }", "public final String getInfo(IProgressMonitor monitor) {\n if (!fJavadocResolved) {\n fJavadocResolved = true;\n fJavadoc = computeInfo(monitor);\n }\n return fJavadoc;\n }", "public void testGetObjectSpecificationWithNotFoundKey() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n try {\r\n specificationFactory.getObjectSpecification(\"key2\", \"identifier\");\r\n fail(\"UnknownReferenceException is expected.\");\r\n } catch (UnknownReferenceException e) {\r\n // ok\r\n }\r\n }", "Documentation createDocumentation();", "Documentation createDocumentation();", "public void testGetObjectSpecificationWithNullKey() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n try {\r\n specificationFactory.getObjectSpecification(null, \"identifier\");\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n // ok\r\n }\r\n }", "public Optional<Term> getMatchingTerm(Term nextTerm) {\n\t\treturn Optional.ofNullable(terms.get(nextTerm.tag));\n\t}", "@Override\r\n public Element findElement()\r\n {\n return null;\r\n }", "public Optional<String> src() {\n\t\t\treturn Optional.ofNullable(_source);\n\t\t}", "org.hl7.fhir.ResourceReference getSpecimen();", "private InjectionMetadata findReferenceMetadata(String beanName, Class<?> clazz, PropertyValues pvs) {\n String cacheKey = (StringUtils.hasLength(beanName) ? beanName : clazz.getName());\n // Quick check on the concurrent map first, with minimal locking.\n ReferenceInjectionMetadata metadata = this.injectionMetadataCache.get(cacheKey);\n if (InjectionMetadata.needsRefresh(metadata, clazz)) {\n synchronized (this.injectionMetadataCache) {\n metadata = this.injectionMetadataCache.get(cacheKey);\n if (InjectionMetadata.needsRefresh(metadata, clazz)) {\n if (metadata != null) {\n metadata.clear(pvs);\n }\n try {\n metadata = buildReferenceMetadata(clazz);\n this.injectionMetadataCache.put(cacheKey, metadata);\n } catch (NoClassDefFoundError err) {\n throw new IllegalStateException(\"Failed to introspect bean class [\" + clazz.getName() +\n \"] for reference metadata: could not find class that it depends on\", err);\n }\n }\n }\n }\n return metadata;\n }", "public void testGetObjectSpecificationWithNonNullIdentifier() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n root.addChild(createObject(\"key\", TYPE_NUMBER));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n ObjectSpecification object = specificationFactory.getObjectSpecification(\"key\",\r\n \"identifier\");\r\n\r\n assertEquals(\"SpecType should be complex.\", ObjectSpecification.COMPLEX_SPECIFICATION,\r\n object.getSpecType());\r\n assertEquals(\"Identifier should be 'identifier'.\", \"identifier\", object.getIdentifier());\r\n assertEquals(\"Type should be 'java.lang.Object'.\", TYPE_OBJECT, object.getType());\r\n }", "public T findOne(String arg0) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic int find() {\n\t\treturn 0;\r\n\t}", "public Optional<String> getDescription() {\n return Optional.ofNullable(description);\n }", "public Document getDocument(long arg0) throws ContestManagementException {\r\n return null;\r\n }", "@Override\r\n public Match find(Match M) {\n return null;\r\n }", "public Element getOperationCustom(String _lookingfor) {\n Optional<Element> p = cCollection.stream()\n .filter(e -> ((NamedElement) e).getName().equals(_lookingfor))\n .findFirst();//.get();\n if (p.hashCode() != 0) {\n return p.get();\n }\n else {\n return null;\n }\n }", "@Override\n\tpublic Document getDocument(Document document) {\n\t\treturn null;\n\t}", "Optional<DescriptorDigest> getSelector();", "private static Documentation generateDocumentation(Processor processor, IJavaProject project) {\r\n\r\n\t\tString processorclassname = processor.getClazz();\r\n\r\n\t\ttry {\r\n\t\t\tIType type = project.findType(processorclassname, new NullProgressMonitor());\r\n\t\t\tif (type != null) {\r\n\t\t\t\tReader reader = JavadocContentAccess.getHTMLContentReader(type, false, false);\r\n\t\t\t\tif (reader != null) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tStringBuilder javadoc = new StringBuilder();\r\n\t\t\t\t\t\tint nextchar = reader.read();\r\n\t\t\t\t\t\twhile (nextchar != -1) {\r\n\t\t\t\t\t\t\tjavadoc.append((char)nextchar);\r\n\t\t\t\t\t\t\tnextchar = reader.read();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tDocumentation documentation = new Documentation();\r\n\t\t\t\t\t\tdocumentation.setValue(javadoc.toString());\r\n\t\t\t\t\t\treturn documentation;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfinally {\r\n\t\t\t\t\t\treader.close();\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\tcatch (JavaModelException ex) {\r\n\t\t\tlogError(\"Unable to access \" + processorclassname + \" in the project\", ex);\r\n\t\t}\r\n\t\tcatch (IOException ex) {\r\n\t\t\tlogError(\"Unable to read javadocs from \" + processorclassname, ex);\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "public String getDocument() throws Exception;", "public String getSuggestSelection() {\n/* 113 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "Reference getSpecimen();", "public void setSpec(String spec) {\n this.spec = spec == null ? null : spec.trim();\n }" ]
[ "0.58111334", "0.57374656", "0.556775", "0.5511232", "0.5470468", "0.5470468", "0.5409579", "0.5384861", "0.5384861", "0.5375555", "0.5375555", "0.5375555", "0.5333116", "0.5313751", "0.5237744", "0.5210257", "0.51741946", "0.51285654", "0.51263326", "0.51186264", "0.5109919", "0.5104995", "0.50891757", "0.5087505", "0.50558263", "0.50372547", "0.5034712", "0.50331384", "0.5033059", "0.5031792", "0.50170213", "0.50025666", "0.50025666", "0.49971002", "0.49934274", "0.49631247", "0.4962324", "0.4956367", "0.4951748", "0.49422345", "0.49379602", "0.493763", "0.4933665", "0.49141935", "0.4908697", "0.49071643", "0.49066907", "0.49031207", "0.49014735", "0.4900673", "0.49004298", "0.48949337", "0.48874286", "0.4884165", "0.48798743", "0.4877213", "0.4874694", "0.48716572", "0.4859968", "0.48580185", "0.4849227", "0.48482573", "0.48475063", "0.48338604", "0.48337045", "0.48325443", "0.48314837", "0.4825241", "0.4819684", "0.48132235", "0.4809061", "0.4799025", "0.4797203", "0.47905105", "0.4782699", "0.47821182", "0.47814596", "0.4779444", "0.4779317", "0.47788864", "0.47788864", "0.4770688", "0.47534847", "0.4741729", "0.4738877", "0.47378683", "0.47332522", "0.473215", "0.47202572", "0.47193915", "0.47096196", "0.47010803", "0.46967357", "0.4670341", "0.46595517", "0.46589512", "0.46562842", "0.46539202", "0.46532896", "0.46456534", "0.4632499" ]
0.0
-1
TODO Autogenerated method stub
@Override public ActionForward execute(HttpServletRequest request, HttpServletResponse response) throws Exception { ActionForward forward=null; int order_num=Integer.parseInt(request.getParameter("order_num")); OrderDetailSvc orderDetailSvc=new OrderDetailSvc(); Pro_order order = orderDetailSvc.getOrder(order_num); ArrayList<OrderView> orderItemList = orderDetailSvc.getItemList(order_num); request.setAttribute("order", order); request.setAttribute("itemList", orderItemList); forward = new ActionForward("/order/myOrderDetail.jsp",false); return forward; }
{ "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
entry point for FX projects
public void start(Stage primaryStage) throws Exception { DependencyGraph dg = DependencyGraph.getGraph(); //Validate out arguments and make sure they are correct _argumentsParser = new KernelParser(this); validateArguments(); _maxThreads = _argumentsParser.getMaxThreads(); //Parse the graph so that our data is ready for use in any point post this line. dg.setFilePath(_argumentsParser.getFilePath()); dg.parse(); //set up statistics ChartModel cModel = new ChartModel(_argumentsParser.getProcessorNo()); _sModel = new StatisticsModel(cModel, _argumentsParser.getFilePath()); _sModel.setStartTime(System.nanoTime()); // run the algorithm Task task = new Task<Void>() { @Override public Void call() { InitialiseScheduling(_sModel); return null; } }; new Thread(task).start(); // renders the visualisation if nessasary if (_argumentsParser.displayVisuals()) { MainScreen mainScreen = new MainScreen(primaryStage, _sModel, this); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JFXHelper() {}", "public static void main(String[] args){\n try {\n //wait to initialize toolkit\n final CountDownLatch latch = new CountDownLatch(1);\n SwingUtilities.invokeLater(() -> {\n new JFXPanel(); // initializes JavaFX environment\n latch.countDown();\n });\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n Consumer consumer = new Consumer();\n }", "public static void main(String[] args) {\n JFXPanel fxPanel = new JFXPanel();\n new Main().start();\n }", "@Override\r\n public void start(Stage primaryStage) throws Exception {\n Parent root = FXMLLoader.load(getClass().getResource(\"ui/main.fxml\")); //FXMLLoader.load(Utilities.getResourceURL(\"ui/main.fxml\"));\r\n primaryStage.setTitle(\"Custom Groovy Game Engine\");\r\n primaryStage.setScene(new Scene(root, 960, 480));\r\n primaryStage.show();\r\n }", "private FXHome() {}", "@Override\n public void run() {\n initFX(fxPanel);\n }", "private static void initAndShowGUI() {\n JFrame frame = new JFrame(\"Swing and JavaFX\");\n final JFXPanel fxPanel = new JFXPanel();\n frame.add(fxPanel);\n frame.setSize(250, 350);\n frame.setVisible(true);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n initFX(fxPanel);\n }\n });\n }", "public static void main( String[] args) {\n\t\t// this method start the javaFX application.\n\t\t// some IDEs are capable of starting JavaFX without this method.\n\t\tlaunch( args);\n\t}", "public void start(Stage mainStage) {\r\n\t\t\r\n\t}", "public void start(Stage mainStage) {\n\t\t\n\t}", "private void createFXScene() {\n try {\n Parent root = FXMLLoader.load(getClass().getResource(\"toolBarFXML.fxml\"));\n Scene scene = new Scene(root, Color.LIGHTGREY);\n fxPanel.setScene(scene);\n } catch (IOException e) {\n Exceptions.printStackTrace(e);\n }\n\n }", "public static void main(String[] args){\r\n //Launch the JavaFX app\r\n Application.launch(args);\r\n }", "@Override\r\n public void start(Stage primaryStage) {\n }", "private void setupStage(Scene scene) {\n SystemTray.create(primaryStage, shutDownHandler);\n\n primaryStage.setOnCloseRequest(event -> {\n event.consume();\n stop();\n });\n\n\n // configure the primary stage\n primaryStage.setTitle(bisqEnvironment.getRequiredProperty(AppOptionKeys.APP_NAME_KEY));\n primaryStage.setScene(scene);\n primaryStage.setMinWidth(1020);\n primaryStage.setMinHeight(620);\n\n // on windows the title icon is also used as task bar icon in a larger size\n // on Linux no title icon is supported but also a large task bar icon is derived from that title icon\n String iconPath;\n if (Utilities.isOSX())\n iconPath = ImageUtil.isRetina() ? \"/images/[email protected]\" : \"/images/window_icon.png\";\n else if (Utilities.isWindows())\n iconPath = \"/images/task_bar_icon_windows.png\";\n else\n iconPath = \"/images/task_bar_icon_linux.png\";\n\n primaryStage.getIcons().add(new Image(getClass().getResourceAsStream(iconPath)));\n\n // make the UI visible\n primaryStage.show();\n }", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\t\n\t\t//StackPane stackPane = new StackPane();\n\t\t//Button button = new Button(\"Przycisk\");\n\t\t//stackPane.getChildren().add(button);\n\t\t//Scene scene = new Scene(stackPane,400,400);\n\t\t//primaryStage.setScene(scene);\n\t\t\n\t\t\n\t\t//Stack Pane from FXML file\n\t\t//****************************************//\n\t\tFXMLLoader fxmlLoader = new FXMLLoader();\n\t\tfxmlLoader.setLocation(this.getClass().getResource(\"/fxml/MainStackPane.fxml\"));\n\t\tStackPane stackPane = fxmlLoader.load();\n\t\tScene scene = new Scene(stackPane);\n\t\tprimaryStage.setScene(scene);\n\t\t\n\t\tprimaryStage.setTitle(\"First JavaFx app\");\n\t\tprimaryStage.show();\n\t\t\n\t\t\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception {\n String filePath = null;\n\n // 2,3: export statements\n Boolean exportBits = false;\n Boolean exportPNGs = false;\n\n // check command line args\n if(commandLineArgs.length > 0) {\n if(commandLineArgs[0].equals(\"-h\") || commandLineArgs[0].equals(\"--help\")) {\n syntaxMessage();\n System.exit(0);\n }\n\n File f = new File(commandLineArgs[0]);\n\n if (f.exists() && !f.isDirectory()) {\n filePath = commandLineArgs[0];\n } else {\n System.out.println(\"File '\" + commandLineArgs[0] + \"' does not exist.\");\n System.out.println(\"Use -h | --help to show the command line help.\");\n System.exit(1);\n }\n\n for(int i = 1; i < commandLineArgs.length; i++) {\n if(commandLineArgs[i].equals(\"-eb\") || commandLineArgs[i].equals(\"--export-bits\")) {\n exportBits = true;\n }\n else if(commandLineArgs[i].equals(\"-epngs\") || commandLineArgs[i].equals(\"--export-pngs\")) {\n exportPNGs = true;\n } else {\n System.out.println(\"Unknown command line argument '\" + commandLineArgs[i] + \"'.\");\n System.out.println(\"Use -h | --help to show the command line help.\");\n System.exit(1);\n }\n }\n }\n\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"view/mainWindow.fxml\"));\n Parent root = fxmlLoader.load();\n\n Model model = new Model();\n Preferences userPreferences = Preferences.userNodeForPackage(this.getClass());\n\n Controller controller = fxmlLoader.getController();\n controller.initModelViewController(model);\n controller.setStage(primaryStage);\n\n int stageWidth = userPreferences.getInt(\"stageWidth\", 2*ConfiguratorTab.CANVAS_PADDING+2*ConfiguratorTab.PE_DRAW_SIZE+3*ConfiguratorTab.INTER_PE_DISTANCE+10);\n int stageHeight = userPreferences.getInt(\"stageHeight\", 2*ConfiguratorTab.CANVAS_PADDING+2*ConfiguratorTab.PE_DRAW_SIZE+2*ConfiguratorTab.INTER_PE_DISTANCE+110);\n\n primaryStage.setTitle(\"CRC Configurator\");\n primaryStage.getIcons().add(new Image(\"icon/icon_512x512.png\"));\n\n primaryStage.setWidth(stageWidth);\n primaryStage.setHeight(stageHeight);\n primaryStage.setScene(new Scene(root, stageWidth, stageHeight));\n\n primaryStage.setOnCloseRequest(event -> {\n // save stage width and height\n userPreferences.putInt(\"stageWidth\", (int) primaryStage.getWidth());\n userPreferences.putInt(\"stageHeight\", (int) primaryStage.getHeight());\n // quit application\n controller.quitApplication();\n });\n\n if(!exportBits && !exportPNGs) {\n primaryStage.show();\n }\n\n // open file from file path given from the command line\n if(filePath != null) {\n File crcDescriptionFile = new File(filePath);\n controller.openCrcDescriptionFile(crcDescriptionFile);\n\n if(exportBits) {\n ExportBitsText exportBitsText = new ExportBitsText();\n System.out.println(exportBitsText.getText(model.getCrc(), false, Configuration.ConfigurationType.NONE, 0));\n }\n\n if(exportPNGs) {\n List<Tab> tabs = controller.getTabPane().getTabs();\n\n for(Tab tab : tabs) {\n ConfiguratorTab configuratorTab = (ConfiguratorTab) tab;\n controller.getTabPane().getSelectionModel().select(configuratorTab);\n configuratorTab.update();\n\n String pngFileName = new String(crcDescriptionFile.getName().replace(\".json\", \"\") + \"_\" + configuratorTab.getText().toLowerCase().replace(' ', '_') + \".png\");\n\n File pngFile = new File(pngFileName);\n\n Canvas canvas = configuratorTab.getCanvas();\n try {\n WritableImage writableImage = new WritableImage((int) canvas.getWidth(), (int) canvas.getHeight());\n canvas.snapshot(null, writableImage);\n RenderedImage renderedImage = SwingFXUtils.fromFXImage(writableImage, null);\n ImageIO.write(renderedImage, \"png\", pngFile);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }\n }\n\n if(exportBits || exportPNGs) {\n System.exit(0);\n }\n }\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n Parent root = FXMLLoader.load(getClass().getResource(\"Scene.fxml\"));\n primaryStage.setTitle(\"Project 3\");\n primaryStage.setScene(new Scene(root, 600, 600));\n primaryStage.show();\n }", "@Override\n public void start(Stage primaryStage) throws Exception {\n window = primaryStage;\n Parent root = FXMLLoader.load(getClass().getResource(\"UserInterface.fxml\"));\n primaryStage.setTitle(\"Calculator\");\n primaryStage.setOnCloseRequest(e -> Main.closeMe());\n primaryStage.setResizable(false);\n\n primaryStage.setScene(new Scene(root, 600, 300));\n primaryStage.show();\n }", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\t\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception {\n Parent root = FXMLLoader.load(getClass().getResource(\"sample.fxml\"));\n addExitOnEsc(primaryStage);\n primaryStage.setTitle(\"Hello World\");\n primaryStage.setScene(new Scene(root, 300, 275));\n primaryStage.show();\n\n }", "@Override\n public void start(Stage primaryStage) throws Exception {\n Parent root = FXMLLoader.load(getClass().getResource(\"fxml_files/home.fxml\"));\n primaryStage.setScene(new Scene(root, 1000, 700));\n primaryStage.show();\n }", "void start(Stage primaryStage);", "public static void main(String[] args) {\n // This is how a javafx class is run.\n // This will cause the start method to run.\n // You don't need to change main.\n launch(args);\n }", "@Override\r\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\t\r\n\t}", "public void setMainApp(FXApplication fxapp) {\n app = fxapp;\n }", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"app_layout.fxml\"));\n\t\tVBox rootNode = loader.load();\n\n\t\tScene scene = new Scene(rootNode);\n \n Pane menuPane= (Pane) rootNode.getChildren().get(0);\n\t\tmenuPane.getChildren().add(createMenubar());\n\n\t\tprimaryStage.setScene(scene);\n\t\tprimaryStage.setTitle(\"Temperature Convertor\");\n\t\t//primaryStage.setResizable(false); to make sure application is not resizable\n\t\tprimaryStage.show();\n\t}", "@Override\n public void start(Stage primaryStage) throws IOException {\n Main.primaryStage = primaryStage;\n Main.primaryStage.setTitle(\"American Travel Bucketlist\");\n\n //Call the extension of the FXMLLoader for the MainView.\n showMainView();\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n\n Music.playBackGroundMusic();\n\n try {\n SpellingListData.getInstance();\n _revisionData.loadFailed();\n _overallStats.loadStats();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n _primaryStage = primaryStage;\n\n Parent root = FXMLLoader.load(getClass().getResource(\"MainMenuV2.fxml\"));\n primaryStage.setTitle(\"VOXSPELL\");\n primaryStage.setScene(new Scene(root, 1200, 800));\n primaryStage.setResizable(false);\n primaryStage.show();\n\n\n }", "public SMPFXController() {\n\n }", "@Override\n public void start(Stage primaryStage) {\n AnchorPane root = new PowerOffWindow(null);\n \n Scene scene = new Scene(root);\n \n primaryStage.setTitle(\"JSonFX\");\n primaryStage.setResizable(false);\n primaryStage.setScene(scene);\n primaryStage.getIcons().add(new Image(getClass().getResource(\"/res/JsonFX.png\").toString()));\n primaryStage.show();\n }", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\t\tGridPane root = FXMLLoader.load(getClass().getResource(\"Sample.fxml\"));\n\t\t\tScene scene = new Scene(root,400,400);\n\t\t\t\n\t\t\t//scene.getStylesheets().add(getClass().getResource(\"application.css\").toExternalForm());\n\t\t\tscene.getStylesheets().add(getClass().getResource(\"application.css\").toExternalForm());\n\t\t\tprimaryStage.setScene(scene);\n\t\t\tprimaryStage.show();\n\t\t\t\n\t}", "public ButtonSetterFX() {\n }", "public static void main(String[] args)\n {\n EventQueue.invokeLater(() ->\n {\n try\n {\n App app = new App();\n app.frame.setVisible(true);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n });\n }", "@Override\r\n public void start(Stage primaryStage) {\r\n \r\n \r\n // StackPane root = new StackPane(); \r\n Scene scene = new Scene(root, 900, 900); //set up a window with these propotions\r\n \r\n primaryStage.setTitle(\"Keep it Clean simulator\"); //window title\r\n primaryStage.setScene(scene);\r\n primaryStage.show();\r\n \r\n setLayout();\r\n \r\n drawUI.Draw(dataInput, tileMin, tileMax);\r\n }", "@Override\n public void start(Stage primaryStage) {\n\n pStage = primaryStage;\n\n try {\n\n\n Parent root = FXMLLoader.load(getClass().getResource(\"/GUI.fxml\"));\n\n Scene scene = new Scene(root, 600, 400);\n\n primaryStage.setTitle(\"Shopper 5000 Ultimate\");\n\n primaryStage.setResizable(false);\n primaryStage.setScene(scene);\n primaryStage.show();\n\n } catch(Exception e) {\n e.printStackTrace();\n }\n }", "private static void initFX(JFXPanel fxPanel) {\n Scene scene = createScene();\n fxPanel.setScene(scene);\n }", "@Override\n public void run() {\n signalPanel.initFX();\n }", "@Override\r\n\tpublic void start(Stage primaryStage) throws IOException {\n\t Parent root = FXMLLoader.load(getClass().getResource(\"WeatherView.fxml\"));\r\n\t \r\n\t //setting the title of the stage\r\n\t primaryStage.setTitle(\"Weather Forecast\");\r\n\t \r\n\t //Setting the scene in the stage\r\n\t primaryStage.setScene(new Scene(root));\r\n\t \r\n\t //this method shows the stage\r\n\t primaryStage.show();\r\n\t \r\n\t \r\n\t \r\n\t \r\n\t}", "public void initialize(){\n\t\tDrawingBotV3.logger.entering(\"FX Controller\", \"initialize\");\n\n initToolbar();\n initViewport();\n initPlottingControls();\n initProgressBar();\n initDrawingAreaPane();\n initPreProcessingPane();\n\t\tinitConnectionPortPane();\n initPFMControls();\n initPenSettingsPane();\n\n\n viewportStackPane.setOnMousePressed(DrawingBotV3.INSTANCE::mousePressedJavaFX);\n viewportStackPane.setOnMouseDragged(DrawingBotV3.INSTANCE::mouseDraggedJavaFX);\n\n viewportScrollPane.setHvalue(0.5);\n viewportScrollPane.setVvalue(0.5);\n\n initSeparateStages();\n\n DrawingBotV3.INSTANCE.currentFilters.addListener((ListChangeListener<ObservableImageFilter>) c -> DrawingBotV3.INSTANCE.onImageFiltersChanged());\n DrawingBotV3.logger.exiting(\"FX Controller\", \"initialize\");\n }", "@Override\n public void actionPerformed(AnActionEvent e) {\n SwingUtilities.invokeLater(()->{\n JFrame frame = new JFrame(\"JavaFX in Swing\");\n JFXPanel jfxPanel = new JFXPanel();\n frame.setLayout(new BorderLayout());\n frame.add(jfxPanel, BorderLayout.CENTER);\n /*PlatformImpl.startup(()->{\n\n });*/\n Platform.runLater(()->{\n BrowserService browserService = ServiceManager.getService(e.getProject(), BrowserService.class);\n WebView webView = new WebView();//browserService.getWebView();\n Scene scene = new Scene(webView);\n WebEngine webEngine = webView.getEngine();\n //webEngine.load(\"http://172.28.1.2:8087/rxtool/login\");\n webEngine.load(\"http://www.baidu.com\");\n jfxPanel.setScene(scene);\n });\n frame.setSize(1000,800);\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n });\n }", "@Override\n public void start(Stage mainStage) throws Exception {\n this.LBMS = SerializedLibraryBookManagementSystem.loadFromFile();\n this.mainStage = mainStage;\n this.page = new StartPage(this, LBMS);\n this.root = new BorderPane();\n this.clientBar = new ClientBar(this, LBMS);\n this.root.setTop(clientBar.getRoot());\n this.mainStage.setScene(new Scene(root));\n refresh();\n //Scene scene = this.page.getRoot();\n //this.mainStage.setScene( scene );\n //mainStage.show();\n }", "public static void main(String[] args) {\n // Start App\n EventQueue.invokeLater(new Runnable() {\n @Override\n public void run() { new App(); }\n });\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n Parent root = FXMLLoader.load(getClass().getClassLoader().getResource(\"Main.fxml\"));\n primaryStage.setTitle(\"Faulkner Kiosk\");\n primaryStage.setScene(new Scene(root, 600, 400));\n primaryStage.show();\n\n }", "public static void main(String[] args){\n\n EventQueue.invokeLater(() -> {\n GUI gui = new GUI();\n gui.setVisible(true);\n });\n }", "public static void create( Stage primaryStage, Scene scene, BorderPane root) {\n\n final StringProperty statusProperty = new SimpleStringProperty();\n\n MenuBar menuBar = new MenuBar();\n menuBar.prefWidthProperty()\n .bind(primaryStage.widthProperty());\n root.setTop(menuBar);\n\n // File menu, export report and exit application\n Menu fileMenu = new Menu(\"_File\");\n fileMenu.setMnemonicParsing(true);\n menuBar.getMenus().add(fileMenu);\n\n MenuItem exportItem = new MenuItem(\"_Export report\");\n exportItem.setMnemonicParsing(true);\n\n exportItem.setAccelerator(new KeyCodeCombination(KeyCode.E,\n KeyCombination.SHORTCUT_DOWN));\n exportItem.setOnAction(new EventHandler<ActionEvent>() {\n public void handle(ActionEvent event) {\n Stage exportStage = ReportExporter.reportDialogue();\n exportStage.show();\n }\n });\n fileMenu.getItems().add(exportItem);\n\n fileMenu.getItems().add(new SeparatorMenuItem());\n\n MenuItem exitItem = new MenuItem(\"Exit\");\n exitItem.setAccelerator(new KeyCodeCombination(KeyCode.X,\n KeyCombination.SHORTCUT_DOWN));\n exitItem.setOnAction(actionEvent -> {\n statusProperty.set(\"Ctrl-X\");\n Platform.exit();\n });\n\n scene.getAccelerators().put(\n new KeyCodeCombination(KeyCode.E,\n KeyCombination.SHORTCUT_DOWN,\n KeyCombination.SHIFT_DOWN),\n () -> statusProperty.set(\"Ctrl-Shift-E\")\n );\n\n fileMenu.getItems().add(exitItem);\n\n ContextMenu contextFileMenu = new ContextMenu(exitItem);\n\n primaryStage.addEventHandler(MouseEvent.MOUSE_CLICKED, (MouseEvent me) -> {\n if (me.getButton() == MouseButton.SECONDARY) {\n contextFileMenu.show(root, me.getScreenX(), me.getScreenY());\n } else {\n contextFileMenu.hide();\n }\n });\n\n // View menu, Summary Year choice\n Menu viewMenu = new Menu(\"_View\");\n menuBar.getMenus().add(viewMenu);\n\n // Get station data from summary tab\n WeatherDataMap allWeather = SummaryTab.allStations;\n List<Integer> years = allWeather.getYears();\n\n Menu summaryItem = new Menu(\"_Summary Year\");\n summaryItem.setMnemonicParsing(true);\n\n summaryItem.setAccelerator(new KeyCodeCombination(KeyCode.Y,\n KeyCombination.SHORTCUT_DOWN));\n\n viewMenu.getItems().add(summaryItem);\n\n // Create Year selector\n // Submenu for choice of year in summary tab\n final ToggleGroup allYears = new ToggleGroup();\n\n for ( int year : years) {\n RadioMenuItem yearItem = new RadioMenuItem(String.valueOf(year));\n yearItem.setToggleGroup(allYears);\n yearItem.setUserData(year);\n summaryItem.getItems().add(yearItem);\n }\n\n //Processing summary menu item selection\n allYears.selectedToggleProperty().addListener(new ChangeListener<Toggle>() {\n public void changed(ObservableValue<? extends Toggle> ov, Toggle old_toggle, Toggle new_toggle) {\n if (allYears.getSelectedToggle() != null) {\n int year = (int) allYears.getSelectedToggle().getUserData();\n SummaryTab.updateGrid(year);\n }\n }\n });\n\n }", "@Override\n public void start(Stage primaryStage) throws Exception {\n ApplicationContext ctx = SpringApplication.run(MainFx.class);\n\n Font.loadFont(this.getClass().getResource(\"/mw/uifx/fonts/fontawesome-webfont.ttf\").\n toExternalForm(), 12);\n\n\n ctx.getBean(KontekstAplikacji.class).setMainStage(primaryStage);\n FabrykaZasobow pFabrykaZasobow = ctx.getBean(FabrykaZasobow.class);\n pFabrykaZasobow.setKontekstSpringowy(ctx);\n\n KonfiguratorAplikacji pKonf=ctx.getBean(KonfiguratorAplikacji.class);\n System.out.println(\"katAplikacji=====>\"+pKonf.getKatalogAplikacji());\n System.out.println(\"raw=====>\"+pKonf.getPodkatalog().getRaw());\n System.out.println(\"raw=====>\"+pKonf.getGaleria().getCel());\n\n\n Parent root = pFabrykaZasobow.podajObiektParentDlaZasobu(LokalizacjeFXMLEnum.ZASOBY_GLOWNE_WIDOK);\n Scene scene = new Scene(root, 1000, 900);\n pFabrykaZasobow.dodajStyleCSS(scene);\n primaryStage.setTitle(\"4Fotos\");\n primaryStage.setScene(scene);\n\n primaryStage.setAlwaysOnTop(false);\n // primaryStage.toFront();\n primaryStage.show();\n\n }", "@Override\n public void handle(ActionEvent event) {\n System.out.println(\"Hello JavaFX\");\n }", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\tprimaryStage.setTitle(\"The Financial Calculator\");\n\t\t\n\t\t// This creates an instance of the primary layout used for this application.\n\t\tGridPane primaryLayout = new GridPane();\n\t\t\n\t\t// This creates an instance of the primary scene used for this application. \n\t\tScene primaryScene = new Scene(primaryLayout, 600, 600);\n\t\t\n\t\t//The primaryStage will contain the primaryScene.\n\t\tprimaryStage.setScene(primaryScene);\n\t\t\n\t\t//This will show the primaryStage.\n\t\tprimaryStage.show();\n\t}", "public void start(Stage mainStage) throws IOException { \r\n\r\n\t}", "private void setup() {\n this.primaryStage.setTitle(Constants.APP_NAME);\n\n this.root = new VBox();\n root.setAlignment(Pos.TOP_CENTER);\n root.getChildren().addAll(getMenuBar());\n\n Scene scene = new Scene(root);\n this.primaryStage.setScene(scene);\n\n // set the default game level.\n setGameLevel(GameLevel.BEGINNER);\n\n // fix the size of the game window.\n this.primaryStage.setResizable(false);\n this.primaryStage.show();\n }", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\tprimaryStage.setTitle(\"MyMoney Application\");\n\t\t// Set the scene of the application to the new Scene\n\t\tprimaryStage.setScene(createScene());\n\t\tprimaryStage.setResizable(true);\n\t\t// Display the Stage\n\t\tprimaryStage.show();\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception {\n\n try {\n Parent root = FXMLLoader.load(getClass().getResource(\"/view/mainForm.fxml\"));\n Scene sceneOne = new Scene(root);\n primaryStage.setScene(sceneOne);\n primaryStage.show();\n } catch(Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public void start(Stage primaryStage) {\n\n // The Stage is where we place GUI stuff, such as a GridPane (see later).\n // I'll look more at this after Easter, but please read the\n // following comments\n stage = primaryStage;\n\n // In this version of the app we will drive\n // the app using a command line menu.\n // YOU ARE REQUIRED TO IMPLEMENT THIS METHOD\n runMenu();\n\n // This is how we can handle a window close event. I will talk\n // about the strange syntax later (lambdas), but essentially it's a Java 8\n // was of providing a callback function: when someone clicks the\n // close window icon then this bit of code is run, passing in the event\n // object that represents the click event.\n primaryStage.setOnCloseRequest((event) -> {\n // Prevent window from closing. We only want quitting via\n // the command line menu.\n event.consume();\n\n System.out.println(\"Please quit the application via the menu\");\n });\n }", "@Override // Override the start method in the Application class\r\n /**\r\n * Start method for layout building\r\n */\r\n public void start(Stage primaryStage)\r\n {\n Scene scene = new Scene(pane, 370, 200);\r\n primaryStage.setTitle(\"Sales Conversion\"); // Set the stage title\r\n primaryStage.setScene(scene); // Place the scene in the stage\r\n primaryStage.show(); // Display the stage\r\n }", "public void initStage(Stage primaryStage) throws Exception {\n FXMLLoader loader = new FXMLLoader();\n Parent root = loader.load(getClass().getResourceAsStream(ROOT_PATH));\n Scene scene = new Scene(root);\n scene.getStylesheets().add(getClass().getResource(STYLE_PATH).toExternalForm());\n\n //add resize listener to main scene\n ResizeListener resizeListener = new ResizeListener(primaryStage, scene);\n scene.setOnMouseMoved(resizeListener);\n scene.setOnMousePressed(resizeListener);\n scene.setOnMouseDragged(resizeListener);\n\n //add close listener\n Button exit = (Button) scene.lookup(EXIT_SELECTOR);\n exit.setOnAction(new ExitListener(primaryStage));\n\n //add expand listener\n Button expand = (Button) scene.lookup(EXPAND_SELECTOR);\n expand.setOnAction(new ExpandListener(primaryStage));\n\n //add hide listener\n Button hide = (Button) scene.lookup(HIDE_SELECTOR);\n hide.setOnAction(new HideListener(primaryStage));\n\n //add menu listener\n Button menuOpen = (Button) scene.lookup(MENU_OPEN_SELECTOR);\n Button menuClose = (Button) scene.lookup(MENU_CLOSE_SELECTOR);\n NavigatorListener navigatorListener = new NavigatorListener(scene);\n menuOpen.setOnAction(navigatorListener);\n menuClose.setOnAction(navigatorListener);\n\n //add move listener\n Label title = (Label) scene.lookup(TITLE_SELECTOR);\n MoveWindowListener moveWindowListener = new MoveWindowListener(primaryStage);\n title.setOnMousePressed(moveWindowListener);\n title.setOnMouseDragged(moveWindowListener);\n\n //add icon for history button\n Button history = (Button) scene.lookup(HISTORY_SELECTOR);\n Image historyImage = new Image(getClass().getResourceAsStream(HISTORY_ICON_PATH));\n ImageView imageView = new ImageView(historyImage);\n history.setGraphic(imageView);\n\n //add icon for menuOpen button\n Image menuImage = new Image(Launcher.class.getResourceAsStream(MENU_ICON_PATH));\n imageView = new ImageView(menuImage);\n menuOpen.setGraphic(imageView);\n\n //add icon for menuClose button\n imageView = new ImageView(menuImage);\n menuClose.setGraphic(imageView);\n\n //add icon for about button\n ImageView about = (ImageView) scene.lookup(ABOUT_SELECTOR);\n Image aboutImage = new Image(Launcher.class.getResourceAsStream(ABOUT_ICON_PATH));\n about.setImage(aboutImage);\n\n //init menu list of items\n ListView<String> listView = (ListView<String>) scene.lookup(LIST_SELECTOR);\n listView.setItems(MenuAdapter.init());\n\n //add button font resize\n scene.heightProperty().addListener(new ButtonResizeListener(scene));\n\n //add numeric field font resize\n Label numericLabel = (Label) scene.lookup(NUMERIC_FIELD_SELECTOR);\n numericLabel.textProperty().addListener(new NumericResizeListener(scene));\n\n primaryStage.setTitle(TITLE);\n primaryStage.getIcons().add(new Image(getClass().getResourceAsStream(APP_ICON_PATH)));\n primaryStage.setScene(scene);\n primaryStage.initStyle(StageStyle.TRANSPARENT);\n primaryStage.show();\n }", "@Override\n public void start (Stage primaryStage) {\n Group root = new Group();\n Scene scene = new Scene(root, AppConstants.STAGE_WIDTH, AppConstants.STAGE_HEIGHT);\n ModulePopulator = new ModuleCreationHelper(root, scene, primaryStage);\n view = new View();\n scene.setFill(AppConstants.BACKGROUND_COLOR);\n // scene.getStylesheets().add(getClass().getResource(\"application.css\").toExternalForm());\n view.init(root, ModulePopulator);\n ModulePopulator.setView(view);\n ModulePopulator.createMainPageModules();\n view.initRunner(root, ModulePopulator);\n primaryStage.setTitle(\"SLogo!\");\n primaryStage.setScene(scene);\n primaryStage.show();\n\n System.out.println(\"App Has Started!\");\n }", "public static void main(String[] args) {\n configureStyle();\n EventQueue.invokeLater(() -> {\n MainFrame frame = new MainFrame(new Document());\n frame.setVisible(true);\n });\n }", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\t\n\t\tSystem.out.println(\"The game begins now...\");\n\t\tBoardConfig boardConfig = new BoardConfig(new XY(25, 25));\n\n\t\tBoard board = new Board(boardConfig);\n\n\t\tState state = new State(board);\n\n\t\tFxUI fxUI = FxUI.createInstance(boardConfig.getSize());\n\n\t\tfinal Game game = new GameImpl(state);\n\n\t\tgame.setUi(fxUI);\n\n\t\tfxUI.setGameImpl((GameImpl) game);\n\n\t\tprimaryStage.setScene(fxUI);\n\t\tprimaryStage.setTitle(\"Welcome to the virtual world of Squirrels.\");\n\t\tprimaryStage.setAlwaysOnTop(true);\n\t\tfxUI.getWindow().setOnCloseRequest(new EventHandler<WindowEvent>() {\n\t\t\tpublic void handle(WindowEvent evt) {\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\n\t\t});\n\t\tprimaryStage.show();\n\n\t\tstartGame(game);\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception {\n BorderPane root = new BorderPane();\n\n // setup canvas\n canvas = new Canvas(700, 700);\n canvas.setOnMouseClicked(this::handleCanvasClick);\n root.setCenter(canvas);\n\n // setup button bar\n HBox buttonBar = new HBox();\n\n Button pointsButton = new Button(\"Generate points\");\n pointsButton.setOnAction(this::generatePoints);\n\n Button voronoiButton = new Button(\"Generate Voronoi\");\n voronoiButton.setOnAction(this::generateVoronoi);\n\n Button relaxButton = new Button(\"Relax sites\");\n relaxButton.setOnAction(this::relaxSites);\n\n buttonBar.getChildren().addAll(pointsButton, voronoiButton, relaxButton);\n\n root.setBottom(buttonBar);\n\n // show\n Scene scene = new Scene(root);\n primaryStage.setScene(scene);\n primaryStage.show();\n }", "@Override\n public void start(Stage primaryStage) {\n /*\n A JavaFX app defines the user interface container by means of \n a stage and a scene\n \n The JavaFX stage class is the top-level JavaFX container\n \n The JavaFX scene class is the container for all content\n \n */\n Button btn = new Button();\n btn.setText(\"Say 'Hello World'\");\n btn.setOnAction(new EventHandler<ActionEvent>() {\n \n @Override\n public void handle(ActionEvent event) {\n System.out.println(\"Hello World!\");\n }\n });\n /*\n In JavaFX, the content of the scene is represented as a hierarchial\n scene graph of nodes.\n \n In this example, the root node is a StackPane object, which is a \n resizable layout node.\n \n This means that the root node's size tracks the scene's size and \n changes when the stage s resized by the user.\n \n */\n StackPane root = new StackPane();\n root.getChildren().add(btn);\n \n //The root node contains a child node, a button control the text,\n // plus an event handler to print a message when the button is pressed\n \n \n Scene scene = new Scene(root, 300, 250);\n \n // Create a scene for a specific root node with a specific size\n \n primaryStage.setTitle(\"Hello World!\");\n primaryStage.setScene(scene);\n primaryStage.show();\n }", "@Override\n\tpublic void start(Stage primaryStage) {\n\n\t\ttry {\n\t\t\t// Load root layout from fxml file.\n\t\t\tParent root = FXMLLoader.load(getClass().getResource(\"/view/History.fxml\"));\n\t\t\tScene window = new Scene(root);\n\t\t\tprimaryStage.setScene(window);\n\t\t\tprimaryStage.show();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) {\n Factory.createFactory(\"WinF\").createButton().paint();\n\n\n Factory.createFactory(\"OSXF\").createButton().paint();\n\n }", "@Override\n\tpublic void start(Stage arg0) throws Exception \n\t{\t\t\n\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception {\n\n checkDllFiles.check(); // Checking if the DLL files for the gamepad is present. If not then it will add them\n Parent root = FXMLLoader.load(getClass().getClassLoader().getResource(\"sdv/gui/scenes/Login.fxml\")); // Loading the FXML file\n primaryStage.getIcons().add(new Image(\"icon/icon.png\", 200, 200, false, true)); // Adding a application icon\n primaryStage.setTitle(sceneTitle); // Setting the scene name\n primaryStage.setScene(new Scene(root, 700, 400)); // Setting the application size\n primaryStage.show(); // Shows the application window\n }", "public static void main(String[] args) {\r\n\t\tEventQueue.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tLeapFlieUI window = new LeapFlieUI();\r\n\t\t\t\t\twindow.frame.setVisible(true);\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@Override\r\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\tParent root = FXMLLoader.load(getClass().getResource(\"PlayingCards24GUI.fxml\"));\r\n\t\t// Scene object is created and parent object is used as a parameter\r\n\t\tScene scene = new Scene(root);\r\n\t\t// Stage is set\r\n\t\tprimaryStage.setScene(scene);\r\n\t\t// The Stage title is set\r\n\t\tprimaryStage.setTitle(\"Playing Cards 24\");\r\n\t\t// The Stage icon is set to a .png image\r\n\t\tprimaryStage.getIcons().add(new Image(\"24-logo.png\"));\r\n\t\t// The stage is displayed\r\n\t\tprimaryStage.show();\r\n\t}", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\n\t\tprimaryStage.setTitle(\"News from The Guardian\");\n\t\t\n\t\tNewsReader reader = new NewsReader();\n\n\t\tView view = new View(reader);\n\t\t\n\t\tScene scene = new Scene(view.getRoot(), WIDTH, HEIGHT);\n\t\t\n\t\tprimaryStage.setScene(scene);\n\t\ttry{\n\t\t\tscene.getStylesheets().add(News.class.getResource(\"app.css\").toExternalForm());\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"boop\");\n//\t\t\te.printStackTrace();\n\t\t}\n\t\tprimaryStage.setResizable(false);\n\t\tprimaryStage.show();\n\t\t\n\t}", "default void apriStage(String fxml, Object controller) throws IOException {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(fxml));\n loader.setController(controller);\n Parent root = loader.load();\n Stage stage = new Stage();\n stage.getIcons().add(new Image(getClass().getResourceAsStream(\"resources/logo.png\")));\n stage.setTitle(\"C3\");\n stage.setScene(new Scene(root));\n stage.showAndWait();\n }", "@Override\n\tpublic void start( Stage primaryStage ) throws Exception\n\t{\n\t\t// Load the FXML file containing all of the UI elements.\n\t\tParent rootNode = new FXMLLoader( getClass().getResource( \"../../../view/RootLayout.fxml\" ) ).load();\n\n\t\t// Create the stage and set the window title.\n\t\tprimaryStage.setTitle( \"SNMP Link Utilization\" );\n\n\t\t// Set the scene using root, with the specified width and height.\n\t\tprimaryStage.setScene( new Scene( rootNode, 500, 600 ) );\n\n\t\t// Set the icon for a non-Maven build: \"file:resources/images/nic.png\"\n\t\t// Set the icon for a Maven build.\n\t\tprimaryStage.getIcons().add( new Image( \"images/nic.png\" ) );\n\n\t\tprimaryStage.show();\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception{\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/application/views/MainMenu.fxml\")); //open up the menu on start up\n Parent root = loader.load();\n MainMenuController controller = loader.getController();\n NameModelManager model = new NameModelManager(); //construct the list of name models1\n CSSManager cssManager = new CSSManager();\n controller.initialise(model, cssManager);\n primaryStage.setTitle(\"Name Sayer\");\n primaryStage.setScene(new Scene(root, 1200, 700));\n primaryStage.show();\n primaryStage.setResizable(false);\n\n primaryStage.setOnCloseRequest(e ->{ //confirmation box for exiting program\n e.consume();\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Quit?\");\n alert.setHeaderText(\"Are you sure you want to exit?\");\n alert.setContentText(\"Hit OK to quit\");\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK){\n primaryStage.close();\n System.exit(0);\n }\n });\n }", "public static void main(String args[]) {\n java.awt.EventQueue.invokeLater(() -> {\n new Backoffice().setVisible(true);\n });\n }", "@Override\n public void start(Stage primaryStage) throws Exception {\n console(\"start...\");\n\n Parent root = FXMLLoader.load(getClass().getResource(\"AutoGraderApp.fxml\"));\n\n primaryStage.setTitle(appName);\n primaryStage.setScene(new Scene(root, MIN_STAGE_WIDTH, MIN_STAGE_HEIGHT));\n primaryStage.setMinWidth(MIN_STAGE_WIDTH);\n primaryStage.setMinHeight(MIN_STAGE_HEIGHT);\n\n primaryStage.show();\n }", "public static void main(String[] args) {\n EventQueue.invokeLater(() -> {\n gui myGui = new gui();\n myGui.setVisible(true);\n });\n\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n // Loads the Home view\n Parent root = FXMLLoader.load(getClass().getResource(\"fxml/Home.fxml\"));\n\n primaryStage.setTitle(\"To-Do Manager\"); // Sets the title of the window\n\n // Sets the Home view as the first scene\n Scene scene = new Scene(root, 854, 480);\n\n // Sets the window's scene\n primaryStage.setScene(scene);\n\n // Prevents user from resizing window ( because of UI reasons )\n primaryStage.setResizable(false);\n\n // Displays the window\n primaryStage.show();\n }", "public void start(Stage myStage)\r\n\t{\r\n\t\tmyStage.setTitle(\"CheckBox Demo\");\r\n\t\tFlowPane rootNode = new FlowPane(10,10);\r\n\t\tScene myScene = new Scene(rootNode,300,200);\r\n\t\trootNode.setAlignment(Pos.CENTER);\r\n\t\t\r\n\t\tbyMail = new CheckBox(\"Mail\");\r\n\t\tbyEMail = new CheckBox(\"Email\");\r\n\t\tnoThanks = new CheckBox(\"No receipt needed\");\r\n\t\tresponse = new Label(\"\");\r\n\t\tLabel ques = new Label(\"How would you like to receive your receipt?\");\r\n\t\tbyMail.setOnAction(new ReceiptHandler());\r\n\t\tbyEMail.setOnAction(new ReceiptHandler());\r\n\t\tnoThanks.setOnAction(new NoReceiptHandler());\r\n\t\trootNode.getChildren().addAll(ques, byMail,byEMail,noThanks, response);\r\n\t\tmyStage.setScene(myScene);\r\n\t\tmyStage.show();\r\n\t}", "void printWithJavaFX() {\n }", "public void start(Stage myStage) { \n \n // Give the stage a title. \n myStage.setTitle(\"Use a JavaFX label.\"); \n \n // Use a FlowPane for the root node. \n FlowPane rootNode = new FlowPane(); \n \n // Create a scene. \n Scene myScene = new Scene(rootNode, 300, 200); \n \n // Set the scene on the stage. \n myStage.setScene(myScene); \n \n // Create a label. \n Label myLabel = new Label(\"JavaFX is a powerful GUI\"); \n \n // Add the label to the scene graph. \n rootNode.getChildren().add(myLabel); \n \n // Show the stage and its scene. \n myStage.show(); \n }", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/sample.fxml\"));\n Parent root = loader.load();\n primaryStage.setTitle(\"Tower Defence\");\n s = new Scene(root, 600, 480);\n primaryStage.setScene(s);\n primaryStage.show();\n MyController appController = (MyController)loader.getController();\n appController.createArena(); \t\t\n\t}", "@Override\n public void start(final Stage primaryStage) throws Exception {\n Parent root = FXMLLoader.load(getClass().getResource(\"/fxml/mainView.fxml\"));\n primaryStage.setTitle(\"Unicorn RayTracer\");\n Scene scene = new Scene(root);\n primaryStage.setScene(scene);\n primaryStage.setMaxWidth(900);\n primaryStage.setHeight(610);\n primaryStage.show();\n\n MenuItem menuItem = ((MenuBar) scene.lookup(\"#menuBar\")).getMenus().get(0).getItems().get(3);\n menuItem.disableProperty().bind(image.imageProperty().isNull());\n menuItem.setOnAction(a -> IO.saveImage(scene.getWindow(), image.getImage()));\n\n primaryStage.setOnCloseRequest(a -> AController.raytracer.stopRender());\n scene.setOnKeyPressed(a -> {\n if (a.getCode() == KeyCode.ESCAPE) AController.raytracer.stopRender();\n });\n primaryStage.setOnCloseRequest(\n a -> Platform.exit()\n );\n\n }", "public static void main(String[] args) {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tStock window = new Stock();\n\t\t\t\t\tStock.frame.setVisible(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "private void initSwing() {\n this.setPreferredSize(new Dimension(appView.getWidth()-100, appView.getHeight()-100));\n this.setResizable(false);\n\n ImageIcon icon = new ImageIcon(getClass().getResource(\"/uk/ac/soton/resources/images/Applicationicon.png\"));\n this.setIconImage(icon.getImage());\n\n //Create a JFXPanel for the 3D content.\n JFXPanel fxPanel = new JFXPanel();\n this.add(fxPanel);\n this.pack();\n this.setLocationRelativeTo(null);\n this.setVisible(true);\n\n //Runs the method 'initJFX' in a new thread, which then becomes the JFX thread.\n Platform.runLater(() -> initJFX(fxPanel));\n }", "@Override\n public void start(Stage primaryStage) {\n filePathField.setPrefWidth(300);\n // Adds nodes to mainContent container\n mainContent.getChildren().addAll(label, filePathField, openButton);\n // Sets mainContent container alignment to center\n mainContent.setAlignment(Pos.CENTER);\n // Sets spacing of mainContent children\n mainContent.setSpacing(20);\n // Adds nodes to root container\n root.getChildren().addAll(title, mainContent, result);\n // Sets root alignment to center\n root.setAlignment(Pos.CENTER);\n // Sets spacing of root layout\n root.setSpacing(20);\n // Sets event handler for openButton\n openButton.setOnAction(e-> openFileExplorer());\n // Sets scene container to root and window dimensions\n Scene scene = new Scene(root, 600, 400);\n // Sets title of program window\n primaryStage.setTitle(\"Character Limit Counter\");\n // Sets scene of stage\n primaryStage.setScene(scene);\n // Shows stage\n primaryStage.show();\n }", "private void buildUI() {\n\n fxUtils = FXUtils.getShared();\n int rowCount = 0;\n\n\t\toutputTab = new Tab(\"Output\");\n\n\t\toutputPane = new GridPane();\n\t\tfxUtils.applyStyle(outputPane);\n\n\t\topenOutputDataButton = new Button(\"Save Output\");\n\t\tTooltip openOutputDataButtonTip \n = new Tooltip(\"Specify the Output File Name and Location\");\n Tooltip.install(openOutputDataButton, openOutputDataButtonTip);\n openOutputDataButton.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent evt) {\n saveOutputFile();\n\t\t } // end handle method\n\t\t}); // end event handler\n\t\toutputPane.add(openOutputDataButton, 0, rowCount, 1, 1);\n\t\topenOutputDataButton.setMaxWidth(Double.MAX_VALUE);\n\t\tGridPane.setHgrow(openOutputDataButton, Priority.SOMETIMES);\n openOutputDataButton.setDisable (true);\n\n\t\trowCount++;\n\n\t\topenOutputDataLabel = new Label(\"Output Data Destination\");\n\t\tfxUtils.applyHeadingStyle(openOutputDataLabel);\n\t\toutputPane.add(openOutputDataLabel, 0, rowCount, 1, 1);\n\t\topenOutputDataLabel.setMaxWidth(Double.MAX_VALUE);\n\t\tGridPane.setHgrow(openOutputDataLabel, Priority.SOMETIMES);\n\n\t\toutputDictionaryLabel = new Label(\"Data Dictionary Output\");\n\t\tfxUtils.applyHeadingStyle(outputDictionaryLabel);\n\t\toutputPane.add(outputDictionaryLabel, 1, rowCount, 1, 1);\n\t\toutputDictionaryLabel.setMaxWidth(Double.MAX_VALUE);\n\t\tGridPane.setHgrow(outputDictionaryLabel, Priority.SOMETIMES);\n\n\t\trowCount++;\n\n\t\topenOutputDataName = new Label();\n\t\tfxUtils.applyHeadingStyle(openOutputDataName);\n\t\toutputPane.add(openOutputDataName, 0, rowCount, 1, 1);\n\t\topenOutputDataName.setMaxWidth(Double.MAX_VALUE);\n\t\tGridPane.setHgrow(openOutputDataName, Priority.SOMETIMES);\n\n\t\toutputDictionaryCkBox = new CheckBox(\"Save Companion Dictionary?\");\n outputDictionaryCkBox.setSelected (false);\n usingDictionary = false;\n outputDictionaryCkBox.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent evt) {\n usingDictionary = outputDictionaryCkBox.isSelected();\n setDictionaryImplications();\n\t\t } // end handle method\n\t\t}); // end event handler\n\t\toutputPane.add(outputDictionaryCkBox, 1, rowCount, 1, 1);\n\t\toutputDictionaryCkBox.setMaxWidth(Double.MAX_VALUE);\n\t\tGridPane.setHgrow(outputDictionaryCkBox, Priority.SOMETIMES);\n\n\t\toutputPlaceHolder = new Label(\" \");\n\t\toutputPane.add(outputPlaceHolder, 2, rowCount, 1, 1);\n\t\toutputPlaceHolder.setMaxWidth(Double.MAX_VALUE);\n\t\tGridPane.setHgrow(outputPlaceHolder, Priority.SOMETIMES);\n\n\t\trowCount++;\n\n\t\toutputTab.setContent(outputPane);\n\t\toutputTab.setClosable(false);\n }", "void startup();", "void startup();", "public void start (Stage primaryStage) throws Exception{\r\n\t\t\r\n\t\tfrogScenemanager scenemanager = new frogScenemanager(primaryStage);\r\n\t\tscenemanager.startMainMenu();\r\n\t}", "@FXML\r\n void initialize() {\r\n \tApplicationMethods.Years(year);\r\n \tjavafx.scene.image.Image i = new javafx.scene.image.Image(\"file:resources/qublogo.png\");\r\n \tImage.setImage(i);\r\n }", "public interface Ui {\n /**\n * Starts the UI (and the JavaFX application).\n *\n * @param primaryStage Stage created by the JavaFX system when the application first starts up.\n */\n void start(Stage primaryStage);\n\n /**\n * Prints message on the command window.\n *\n * @param message Output message.\n */\n void print(String message);\n}", "public static void main(String[] args) {\n JFrame.setDefaultLookAndFeelDecorated(true);\n SwingUtilities.invokeLater(() -> {\n SubstanceCortex.GlobalScope.setSkin(new ModerateSkin());\n new CheckWatermarks().setVisible(true);\n });\n }", "public static void main(String[] args) {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tprinc frame = new princ();\n\t\t\t\t\tframe.setVisible(true);\n\t\t\t\t\tframe.setTitle(\"Storyteller\");\n\t\t\t\t\t//la ventana no se puede redimensionar\n\t\t\t\t\tframe.setResizable(false);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//falta hacer que la ventana aparezca en el centrode la pantalla\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void launch(String stage) {\n\t\tnew JFXPanel();\n\t\tresult = new FutureTask(new Callable(){\n \n @Override\n public Object call() throws Exception {\n StagedProduction prod=(StagedProduction)Class.forName(stage).getConstructor().newInstance();\n return (prod.produce());\n }\n \n \n });\n Platform.runLater(result);\n\t}", "public static void initialize()\n\t{\n\t\tSfx.initialize();\n\t}", "@Override\r\n public void start(Stage stage) throws Exception\r\n {\r\n Pane root = new Pane();\r\n Scene scene = new Scene(root, 330, 80); // set the size here\r\n stage.setTitle(\"FX FXGUI Template\"); // set the window title here\r\n stage.setScene(scene);\r\n // TODO: Add your FXGUI-building code here\r\n\r\n // 1. Create the model\r\n\r\n sw = new StopWatch();\r\n\r\n // 2. Create the FXGUI components\r\n\r\n Canvas canvas = new Canvas(330, 80);\r\n display = new Label(\"0.000\");\r\n startButton = new Button(\"START\");\r\n lapButton = new Button(\"LAP\");\r\n stopButton = new Button(\"STOP\");\r\n\r\n // 3. Add components to the root\r\n\r\n root.getChildren().addAll(canvas, display, startButton, lapButton, stopButton);\r\n\r\n // 4. Configure the components (colors, fonts, size, location)\r\n\r\n display.setPrefWidth(320);\r\n display.setFont(new Font(\"System\", 30));\r\n display.setStyle(\"-fx-background-color: lightblue; -fx-text-fill: red; -fx-alignment: center;\");\r\n display.relocate(5, 0);\r\n\r\n startButton.relocate(5, 50);\r\n startButton.setPrefWidth(100);\r\n lapButton.relocate(115, 50);\r\n lapButton.setPrefWidth(100);\r\n stopButton.relocate(225,50);\r\n stopButton.setPrefWidth(100);\r\n\r\n // 5. Add Event Handlers and do final setup\r\n\r\n startButton.setOnAction(this::setStartHandler);\r\n lapButton.setOnAction(this::setLapHandler);\r\n stopButton.setOnAction(this::setStopHandler);\r\n\r\n // 6. Show the stage\r\n stage.show();\r\n }", "@FxThread\n private void onBeforeCreateJavaFxContext() {\n pluginSystem.getPlugins().stream()\n .filter(EditorPlugin.class::isInstance)\n .map(EditorPlugin.class::cast)\n .forEach(editorPlugin -> editorPlugin.onBeforeCreateJavaFxContext(pluginSystem));\n }", "@Override\n public void start(Stage window) throws Exception\n {\n Parent home = FXMLLoader.load(getClass().getResource(\"Home.fxml\"));\n home.getStylesheets().add(getClass().getResource(\"Style.css\").toExternalForm());\n \n window.setTitle(\"SSUR\");\n window.setScene(new Scene(home));\n window.getIcons().add(new Image(\"ssur/icons/icon.png\"));\n window.setResizable(false);\n window.show();\n }", "public static void main(String[] args) {\n\n UIController.getInstance().setMain(new SelectionMenuUI());\n UIController.getInstance().startUI();\n\n }", "private static void initFX(final JFXPanel fxPanel) {\n Group group = new Group();\n Scene scene = new Scene(group);\n fxPanel.setScene(scene);\n\n webView = new WebView();\n\n group.getChildren().add(webView);\n webView.setMinSize(300, 300);\n webView.setPrefSize(850, 600);\n webView.setMaxSize(850, 600);\n\n webView.getEngine().setJavaScriptEnabled(true); //allows us to run JS code\n\n //START\n webView.getEngine().setOnAlert(new EventHandler<WebEvent<String>>() {\n @Override\n public void handle(WebEvent<String> event) {\n JOptionPane.showMessageDialog(\n fxPanel,\n event.getData(),\n \"Alert Message\",\n JOptionPane.ERROR_MESSAGE);\n }\n });\n\n webView.getEngine().getLoadWorker().stateProperty().addListener((observable, oldValue, newValue) ->\n {\n JSObject window = (JSObject) webView.getEngine().executeScript(\"window\");\n window.setMember(\"java\", bridge2);\n webView.getEngine().executeScript(\"console.log = function(message)\\n\" +\n \"{\\n\" +\n \" java.log(message);\\n\" +\n \"};\");\n });\n //END\n\n // Obtain the webEngine to navigate\n WebEngine webEngine = webView.getEngine();\n //solves Captcha problem\n //webEngine.setUserAgent(\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36\");\n webEngine.load(\"https://yandex.ru\"); //sets the start page for the application\n }", "@Override\n\tpublic void start(Stage primaryStage) throws IOException\n\t{\n\n\t\tParent root = FXMLLoader.load(getClass().getResource(\"TestDataGeneratorGUI.fxml\"));\n\t\tScene scene = new Scene(root, 1280, 720);\n\t\t\n\t\tprimaryStage.setTitle(\"Test Data Generator & Exporter\");\n\t\tprimaryStage.setScene(scene);\n\t\tprimaryStage.show();\n\t}", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\t\tParent root = FXMLLoader.load(getClass().getResource(\"Application.fxml\"));\n\t\t\tScene scene = new Scene(root);\n\t\t\tscene.getStylesheets().add(getClass().getResource(\"application.css\").toExternalForm());\n\t\t\tImage icon = new Image(getClass().getResourceAsStream(\"/resources/icon.png\"));\n\t\t\tprimaryStage.getIcons().add(icon);\n\t\t\t\n\t\t\tprimaryStage.setTitle(\"Billing Manager\");\n\t\t\tprimaryStage.setMaximized(true);\n\t\t\t//primaryStage.setFullScreen(true);\n\t\t\tprimaryStage.setScene(scene);\n\t\t\tprimaryStage.show();\n\t\t\n\t}", "public static void main(String[] args) {\n GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n GraphicsDevice gd = ge.getDefaultScreenDevice();\n\n //If translucent windows aren't supported, exit.\n if (!gd.isWindowTranslucencySupported(PERPIXEL_TRANSLUCENT)) {\n System.err.println(\"Per-pixel translucency is not supported\");\n System.exit(ERR_STATUS_TRANSPARENCY);\n }\n\n SynthLookAndFeel ginjLookAndFeel = new GinjSynthLookAndFeel();\n try {\n ginjLookAndFeel.load(Ginj.class.getResourceAsStream(LAF_XML), Ginj.class);\n UIManager.setLookAndFeel(ginjLookAndFeel);\n// UIManager.setLookAndFeel(EaSynthLookAndFeel.class.getName());\n// UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n }\n catch (Exception e) {\n System.err.println(\"Error loading Ginj look and feel\");\n e.printStackTrace();\n System.exit(ERR_STATUS_LAF);\n }\n\n Prefs.load();\n\n // Creating a JFileChooser can take time if you have network drives. So start loading one now, in a separate thread...\n // TODO check if this is really effective...\n futureFileChooser = new FutureTask<>(JFileChooser::new);\n ExecutorService executor = Executors.newSingleThreadExecutor();\n executor.execute(futureFileChooser);\n\n javax.swing.SwingUtilities.invokeLater(() -> {\n starWindow = new StarWindow();\n starWindow.setVisible(true);});\n\n }", "@Override\n public void start(Stage stage) throws Exception {\n\n this.stage = stage;\n log.info(\"Inside Start \");\n PropertiesManager pm = new PropertiesManager();\n currentLocale = Locale.getDefault();\n //loads properties\n ConfigBean cb = pm.loadTextProperties(\"src/main/resources\", \"configuration\");\n log.info(\"Loaded Properties \");\n\n //if file was loaded properly, open the main controller\n if (cb != null) {\n FXMLLoader loader = new FXMLLoader();\n loader.setResources(ResourceBundle.getBundle(\"Bundle\", currentLocale));\n URL path2 = Paths.get(\"src/main/resources/fxml/main.fxml\").toUri().toURL();\n loader.setLocation(path2);\n stage.getIcons().add(\n new Image(MainApp.class\n .getResourceAsStream(\"/images/email.png\")));\n\n Scene scene2 = new Scene(loader.load());\n\n stage.setTitle(\"Jag Client\");\n stage.setResizable(false);\n stage.setScene(scene2);\n stage.show();\n } else { \n //if file was not loaded properly and information was incorrect then\n //load config form\n URL path = Paths.get(\"src/main/resources/fxml/config.fxml\").toUri().toURL();\n FXMLLoader fxmlloader = new FXMLLoader();\n fxmlloader.setLocation(path);\n\n fxmlloader.setResources(ResourceBundle.getBundle(\"Bundle\", currentLocale));\n\n Scene scene = new Scene(fxmlloader.load());\n\n stage.setTitle(\"Config\");\n stage.setResizable(false);\n stage.setScene(scene);\n stage.show();\n\n }\n\n }" ]
[ "0.70533836", "0.6907414", "0.6881334", "0.6725185", "0.6590205", "0.6539847", "0.6531958", "0.6504623", "0.6437745", "0.64285713", "0.6395811", "0.6341422", "0.6301711", "0.6258701", "0.6257357", "0.62425315", "0.62001157", "0.61999434", "0.6199202", "0.6194165", "0.6173718", "0.6164321", "0.6162309", "0.61617285", "0.6156385", "0.6152763", "0.6134819", "0.6133891", "0.6116629", "0.6111008", "0.6108626", "0.6097878", "0.6093425", "0.60906047", "0.60881555", "0.6086466", "0.6083838", "0.6071606", "0.6067515", "0.6055114", "0.60168105", "0.60094815", "0.600912", "0.60077465", "0.59948236", "0.5989959", "0.59856474", "0.598526", "0.5972257", "0.5962798", "0.5956875", "0.5953777", "0.5953257", "0.5949235", "0.5945528", "0.5944608", "0.593756", "0.5934753", "0.5925521", "0.5905199", "0.5900648", "0.58963174", "0.5884942", "0.58834726", "0.5880492", "0.588038", "0.58784837", "0.5872505", "0.5871404", "0.5867391", "0.5866743", "0.5865355", "0.5864262", "0.58632624", "0.58596355", "0.585589", "0.58523536", "0.5847487", "0.58257806", "0.5824673", "0.5820526", "0.58188814", "0.5812381", "0.57950586", "0.57950586", "0.5789654", "0.57858974", "0.5784273", "0.57812434", "0.5775253", "0.5775156", "0.57743585", "0.5774245", "0.5772875", "0.5764385", "0.57602024", "0.57518506", "0.5746401", "0.57447886", "0.57394147", "0.57359195" ]
0.0
-1
Starts the seraching part scheduling search of the program and runs the greedy algorithm
public void InitialiseScheduling(StatisticsModel model) { DependencyGraph dg = DependencyGraph.getGraph(); dg.setFilePath(_argumentsParser.getFilePath()); dg.parse(); System.out.println("Calculating schedule, Please wait ..."); // initialise store and thread pool RecursionStore.constructRecursionStoreSingleton(model, _argumentsParser.getProcessorNo(), dg.remainingCosts(), dg.getNodes().size(), _argumentsParser.getMaxThreads()); _pool = Executors.newFixedThreadPool(_argumentsParser.getMaxThreads()); //start greedy search GreedyState greedyState = new GreedyState(dg, this); _pool.execute(greedyState); RecursionStore.setMaxThreads(_maxThreads); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startSearch() {\n if (solving) {\n Alg.Dijkstra();\n }\n pause(); //pause state\n }", "public void pathwayScan() {\n ScanPathwayBasedAssocSwingWorker worker = new ScanPathwayBasedAssocSwingWorker();\n // buildTask = buildTask.create(buildingThread); //the task is not started yet\n buildTask = RP.create(worker); //the task is not started yet\n buildTask.schedule(0); //start the task\n }", "private void runBest() {\n }", "private void runAlgorithm(){\n fitness = new ArrayList<Double>(); \n \n int iter = 0;\n \n // While temperature higher than absolute temperature\n this.temperature = getCurrentTemperature(0);\n while(this.temperature > this.p_absoluteTemperature && iter < 100000){\n //while(!stopCriterionMet()){\n // Select next state\n //for(int i=0;i<20;i++){\n int count = 0;\n boolean selected = false;\n while(!selected){\n Problem.ProblemState next = nextState();\n if(isStateSelected(next)){\n selected = true;\n this.state = next;\n }\n \n count++;\n if(count == 10) break;\n }\n //}\n \n // Sample data\n double fvalue = this.state.getFitnessValue();\n this.fitness.add(new Double(fvalue));\n \n iter = iter + 1;\n \n // Lower temperature\n this.temperature = getCurrentTemperature(iter);\n }\n \n this.n_iter = iter;\n return;\n }", "private void run(){\r\n\t\tArrayList<Integer> parcours = new ArrayList<Integer>();\r\n\t\tArrayList<Integer> sommets = new ArrayList<Integer>();\r\n\t\t\r\n\t\t//initialisation de la liste des sommets\r\n\t\tfor (int i=1; i<super.g.getDim();i++) {\r\n\t\t\tsommets.add(i);\r\n\t\t}\r\n\r\n\t\t//g�n�ration d'un parcours initial\r\n\t\tAlgo2opt algo = new Algo2opt(super.g);\r\n\t\tsuper.parcoursMin = algo.parcoursMin;\r\n\t\tsuper.dist = algo.dist;\r\n\r\n\t\tcheminMin(parcours,sommets,super.g.getDim(), 0);\r\n\t}", "public static void main(String[] args) {\n FirstComeFirstServed FCFS = new FirstComeFirstServed();\n\n ShortestJobFirst SJF = new ShortestJobFirst();\n ShortestRemainingTime SRT = new ShortestRemainingTime();\n RoundRobin RR = new RoundRobin();\n NonpreemptiveHighestPriorityFirst NP_HPF = new NonpreemptiveHighestPriorityFirst();\n PreemptiveHighestPriorityFirst P_HPF = new PreemptiveHighestPriorityFirst();\n NonpreemptiveHighestPriorityFirstAging NP_HPF_AG = new NonpreemptiveHighestPriorityFirstAging();\n PreemptiveHighestPriorityFirstAging P_HPF_AG = new PreemptiveHighestPriorityFirstAging();\n\n\n PriorityQueue<Process>[] priorityQueues = new PriorityQueue[COUNT_ALGORITHM + 1];\n int [] SEEDS = new int[]{1234, 117777,33317,17111, 19191};\n\n for (int j = 0; j < ROUND; j++) {\n System.out.format(\"\\n### Start Running Round %d ###\\n\", j);\n // write your code here\n priorityQueues[0] = ProcessGenerator.generateJobs (SEEDS[j], 20);\n\n // make a copy for each algorithm\n for (int i = 1; i < COUNT_ALGORITHM + 1; i++) {\n priorityQueues[i] = new PriorityQueue<Process>(priorityQueues[0]);\n }\n\n // print the process list in ascending order\n while (!priorityQueues[COUNT_ALGORITHM].isEmpty()) {\n System.out.println(priorityQueues[COUNT_ALGORITHM].poll());\n }\n\n\n // Add different scheduling algorithms here\n System.out.println(\"\\nFisrt come first servered\");\n FCFS.schedule(priorityQueues[0]);\n\n System.out.println(\"\\nShortest Job First\");\n SJF.schedule(priorityQueues[1]);\n\n System.out.println(\"\\nShortest remaining time\");\n SRT.schedule(priorityQueues[2]);\n System.out.println(\"\\nRoundRobin\");\n RR.schedule(priorityQueues[4]);\n\n System.out.println(\"\\nNonpreemptive Highest Priority First\");\n NP_HPF.schedule(priorityQueues[5]);\n\n System.out.println(\"\\nNonpreemptive Highest Priority First (Aging)\");\n NP_HPF_AG.schedule(priorityQueues[6]);\n\n System.out.println(\"\\nPreemptive Highest Priority First\");\n P_HPF.schedule(priorityQueues[7]);\n\n System.out.println(\"\\nPreemptive Highest Priority First (Aging)\");\n P_HPF_AG.schedule(priorityQueues[8]);\n\n\n }\n\n\n System.out.println(\"\\n\");\n System.out.format(\"==================== 5 Round Average Statistics ====================\\n\");\n System.out.format(\"%10s %20s %20s %20s\\n\", \"Algorithm\", \"Turnaround\", \"Waiting\", \"Response\");\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"FCFS\",\n FCFS.getStats().getAvgTurnaroundTime(),\n FCFS.getStats().getAvgWaitingTime(),\n FCFS.getStats().getAvgResponseTime());\n\n\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"SJF\",\n SJF.getStats().getAvgTurnaroundTime(),\n SJF.getStats().getAvgWaitingTime(),\n SJF.getStats().getAvgResponseTime());\n\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"SRT\",\n SRT.getStats().getAvgTurnaroundTime(),\n SRT.getStats().getAvgWaitingTime(),\n SRT.getStats().getAvgResponseTime());\n\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"RR\",\n RR.getStats().getAvgTurnaroundTime(),\n RR.getStats().getAvgWaitingTime(),\n RR.getStats().getAvgResponseTime());\n\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"SJF\",\n SJF.getStats().getAvgTurnaroundTime(),\n SJF.getStats().getAvgWaitingTime(),\n SJF.getStats().getAvgResponseTime());\n\n\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"NP_HPF\",\n NP_HPF.getStats().getAvgTurnaroundTime(),\n NP_HPF.getStats().getAvgWaitingTime(),\n NP_HPF.getStats().getAvgResponseTime());\n\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"P_HPF\",\n P_HPF.getStats().getAvgTurnaroundTime(),\n P_HPF.getStats().getAvgWaitingTime(),\n P_HPF.getStats().getAvgResponseTime());\n\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"NP_HPF_AG\",\n NP_HPF_AG.getStats().getAvgTurnaroundTime(),\n NP_HPF_AG.getStats().getAvgWaitingTime(),\n NP_HPF_AG.getStats().getAvgResponseTime());\n\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"P_HPF_AG\",\n P_HPF_AG.getStats().getAvgTurnaroundTime(),\n P_HPF_AG.getStats().getAvgWaitingTime(),\n P_HPF_AG.getStats().getAvgResponseTime());\n\n }", "public void runSJF() {\n\n //init\n ArrayList<Processus> localProcess = new ArrayList<>(); //Creation of a local list of process\n for (Processus cpy : listOfProcess) { //Copy the list of process in the local list\n localProcess.add(cpy);\n }\n int size = listOfProcess.size(); //variable used to save the initial size of the list of process\n\n Processus executedProc = null; //ExecutedProc is the current process that is being execute\n Processus tmpProc = localProcess.get(0); //The tmpProc is the previous process executed\n\n //Variable we need to calcul\n double occupancyRate = 0;\n double averageWaitingTime = 0;\n double averageReturnTime = 0;\n int currentTime = 0;\n int occupancyTime = 0;\n\n //beginning of the algo\n while (!localProcess.isEmpty()) { //As long as there are processes that are not done yet we keep going on\n\n //Determines the next process that will be executed\n for (Processus proc : localProcess) { //flow all remaining processes\n if (proc.getTime() <= currentTime) { //check if the currentTime of the process is below the currentTime\n if (localProcess.size() == 1) { //if there is only one process left\n executedProc = proc;\n } else if ((proc.getRessource(proc.getCurrentStep()) <= tmpProc.getRessource(tmpProc.getCurrentStep())) || (proc.getTime() < tmpProc.getTime())) {//shortest process selected\n executedProc = proc;\n tmpProc = proc;\n }\n }\n }\n\n //Check if the current process is assigned\n if (executedProc != null) {\n\n //execute the current ressource\n int tmpTime = 0;\n while (executedProc.getRessource(executedProc.getCurrentStep()) > tmpTime) { //As long as there is a resource\n for (Processus proc : localProcess) {\n if (proc.getTime() <= currentTime && !proc.equals(executedProc)) { //checking if there is another process waiting\n proc.setWaitingTime(1);\n }\n }\n currentTime++; //currentTime is updating at each loop\n occupancyTime++; //occupancyTime is updating at each loop\n tmpTime++;\n }\n\n executedProc.setCurrentStep(executedProc.getCurrentStep() + 1); //Update the currentStep to the next one (index of the lists of UC and inOut)\n\n if (executedProc.getCurrentStep() >= executedProc.getlistOfResource().size()) {//if it is the end of the process\n averageReturnTime += executedProc.getExecutedTime(); //update the average return time by adding the time that the process took\n localProcess.remove(executedProc); //remove the process from the list of process that needs to run\n }\n\n if (executedProc.getCurrentStep() <= executedProc.getListOfInOut().size()) { //If there is another inOut, it set the new time\n executedProc.setTime(executedProc.getInOut(executedProc.getCurrentStep() - 1) + currentTime);\n }\n\n executedProc = null;\n } else {\n currentTime++;\n }\n }\n //end of the algo\n\n //Calculation of the variables\n occupancyRate = ((double) occupancyTime / (double) currentTime) * 100;\n for (Processus proc : listOfProcess) {\n averageWaitingTime += proc.getWaitingTime();\n }\n averageWaitingTime = averageWaitingTime / size;\n averageReturnTime = averageReturnTime / size;\n\n //Updating the global variables\n currentAverageReturnTime = averageReturnTime;\n logger.trace(\"Current average return time : \" + currentAverageReturnTime);\n currentAverageWaitingTime = averageWaitingTime;\n logger.trace(\"Current average waiting time : \" + currentAverageWaitingTime);\n currentOccupancyRate = occupancyRate;\n logger.trace(\"Current occupancy rate : \" + currentOccupancyRate);\n currentOccupancyTime = occupancyTime;\n logger.trace(\"Current occupancy time : \" + currentOccupancyTime);\n\n restList(); //reset the list to the origin values so the user can test another algo\n }", "public void runSRJF() {\n //init\n ArrayList<Processus> localProcess = new ArrayList<>(); //Creation of a local list of process\n //localProcess = (ArrayList<Processus>) listOfProcess.clone();\n for (Processus cpy : listOfProcess) { //Copy the list of process in the local list with new instances of process\n Processus tmp = new Processus(cpy.getName(), cpy.getTime(), (HashMap<Integer, Integer>) cpy.getListOfInOut().clone(), (HashMap<Integer, Integer>) cpy.getlistOfResource().clone());\n localProcess.add(tmp);\n }\n int size = listOfProcess.size(); //variable used to save the initial size of the list of process\n\n Processus executedProc = null; //ExecutedProc is the current process that is being execute\n Processus tmpProc = localProcess.get(0); //The tmpProc is the previous process executed\n\n //Variable we need to calcul\n double occupancyRate = 0;\n double averageWaitingTime = 0;\n double averageReturnTime = 0;\n int currentTime = 0;\n int occupancyTime = 0;\n\n //beginning of the algo\n while (!localProcess.isEmpty()) {\n tmpProc = null;\n if (executedProc != null && executedProc.getTime() <= currentTime) {//test if the current executed process is the smallest and is not in in/out operation\n for (Processus proc : localProcess) {//chose the process to execute (the shortest)\n if (proc.getTime() <= currentTime) {\n if (proc.getRessource(proc.getCurrentStep()) < executedProc.getRessource(executedProc.getCurrentStep())) {//shortest process selected\n executedProc = proc;\n }\n }\n }\n } else {//same tests but if there is no current process on the UC\n for (Processus proc : localProcess) {\n if (proc.getTime() <= currentTime) {\n if (localProcess.size() == 1 || tmpProc == null) {//if there is only only one process left in the list\n executedProc = proc;\n tmpProc = proc;\n } else if (proc.getRessource(proc.getCurrentStep()) <= tmpProc.getRessource(tmpProc.getCurrentStep())) {//shortest process selected\n executedProc = proc;\n tmpProc = proc;\n }\n }\n }\n }\n if (executedProc != null) {//if there is a process\n //execution of the process over 1 unity of time and then verifying again it's steel the smallest\n for (Processus proc : localProcess) {\n if (proc.getTime() <= currentTime && !proc.equals(executedProc)) {\n proc.setWaitingTime(1);//set th waiting time of the others process that could be executed\n }\n }\n occupancyTime++;\n currentTime++;\n executedProc.setTime(executedProc.getTime() + 1);\n executedProc.setRessource(executedProc.getCurrentStep(), executedProc.getRessource(executedProc.getCurrentStep()) - 1);\n if (executedProc.getRessource(executedProc.getCurrentStep()) <= 0) {\n if (executedProc.getCurrentStep() < executedProc.getListOfInOut().size()) {\n executedProc.setTime(currentTime + executedProc.getInOut(executedProc.getCurrentStep()));\n executedProc.setCurrentStep(executedProc.getCurrentStep() + 1);\n if (executedProc.getCurrentStep() > executedProc.getlistOfResource().size()) {\n averageReturnTime += executedProc.getExecutedTime(); //update the average return time by adding the time that the process took\n averageWaitingTime += executedProc.getWaitingTime();\n localProcess.remove(executedProc);\n }\n } else {\n averageReturnTime += executedProc.getExecutedTime(); //update the average return time by adding the time that the process took\n averageWaitingTime += executedProc.getWaitingTime();\n localProcess.remove(executedProc);\n }\n executedProc = null;\n }\n } else {\n currentTime++;\n }\n }\n //Calculation of the variables\n occupancyRate = ((double) occupancyTime / (double) currentTime) * 100;\n\n averageWaitingTime = averageWaitingTime / size;\n averageReturnTime = averageReturnTime / size;\n\n //Updating the global variables\n currentAverageReturnTime = averageReturnTime;\n logger.trace(\"Current average return time : \" + currentAverageReturnTime);\n currentAverageWaitingTime = averageWaitingTime;\n logger.trace(\"Current average waiting time : \" + currentAverageWaitingTime);\n currentOccupancyRate = occupancyRate;\n logger.trace(\"Current occupancy rate : \" + currentOccupancyRate);\n currentOccupancyTime = occupancyTime;\n logger.trace(\"Current occupancy time : \" + currentOccupancyTime);\n\n restList(); //reset the list to the origin values so the user can test another algo\n\n }", "public synchronized void runGP() throws RemoteException {\n initRMI();\n initGP();\n\n log.info(\"Starting program dispatcher\");\n new Thread(this).start();\n\n int targetFitness = 0;\n for (ISimulator simulator : simulators)\n targetFitness += simulator.getTerminationFitness();\n\n for (int i = 1; i <= generations; i++) {\n while (programsRemaining > 0)\n try { wait(); } catch (InterruptedException ignored) { }\n\n if (best >= targetFitness) {\n log.info(\"Successful individual found.\");\n break;\n }\n\n resetStatistics();\n leader = frontRunner;\n\n if (i % 5 == 0) {\n log.info(\"Writing checkpoint\");\n writeCheckpoint(String.format(\"gen_%08d\", checkpointFileIndex));\n checkpointFileIndex++;\n }\n\n log.info(\"Creating generation #\" + Integer.toString(i));\n programsRemaining = geneticProgram.getPopulationSize();\n geneticProgram.createNextGeneration();\n log.info(\"Created generation #\" + Integer.toString(i));\n }\n\n cleanup();\n }", "public void runAlgorithm()\n\t{\n\t\tboolean done = false;\n while (!done)\n {\n switch (step)\n {\n case 1:\n step=stepOne(step);\n break;\n case 2:\n step=stepTwo(step);\n break;\n case 3:\n step=stepThree(step);\n break;\n case 4:\n step=stepFour(step);\n break;\n case 5:\n step=stepFive(step);\n break;\n case 6:\n step=stepSix(step);\n break;\n case 7:\n stepSeven(step);\n done = true;\n break;\n }\n }\n\t}", "public synchronized void startSolving()\n/* */ {\n/* 373 */ setKeepSolving(true);\n/* */ \n/* */ \n/* 376 */ if ((!this.solving) && (this.iterationsToGo > 0))\n/* */ {\n/* */ \n/* 379 */ setSolving(true);\n/* 380 */ setKeepSolving(true);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 387 */ fireTabuSearchStarted();\n/* */ \n/* */ \n/* */ \n/* 391 */ TabuSearch This = this;\n/* */ \n/* 393 */ Thread t = new Thread(new Runnable() {\n/* */ private final TabuSearch val$This;\n/* */ \n/* */ public void run() {\n/* 397 */ while ((MultiThreadedTabuSearch.this.keepSolving) && (MultiThreadedTabuSearch.this.iterationsToGo > 0))\n/* */ {\n/* */ \n/* 400 */ synchronized (this.val$This)\n/* */ {\n/* 402 */ MultiThreadedTabuSearch.this.iterationsToGo -= 1;\n/* */ try\n/* */ {\n/* 405 */ MultiThreadedTabuSearch.this.performOneIteration();\n/* */ }\n/* */ catch (NoMovesGeneratedException e)\n/* */ {\n/* 409 */ if (SingleThreadedTabuSearch.err != null)\n/* 410 */ SingleThreadedTabuSearch.err.println(e);\n/* 411 */ MultiThreadedTabuSearch.this.stopSolving();\n/* */ }\n/* */ catch (NoCurrentSolutionException e)\n/* */ {\n/* 415 */ if (SingleThreadedTabuSearch.err != null)\n/* 416 */ SingleThreadedTabuSearch.err.println(e);\n/* 417 */ MultiThreadedTabuSearch.this.stopSolving();\n/* */ }\n/* 419 */ MultiThreadedTabuSearch.this.incrementIterationsCompleted();\n/* 420 */ this.val$This.notifyAll();\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* 425 */ synchronized (this.val$This)\n/* */ {\n/* */ \n/* */ \n/* 429 */ MultiThreadedTabuSearch.this.setSolving(false);\n/* 430 */ MultiThreadedTabuSearch.this.setKeepSolving(false);\n/* */ \n/* */ \n/* 433 */ if (MultiThreadedTabuSearch.this.helpers != null)\n/* 434 */ for (int i = 0; i < MultiThreadedTabuSearch.this.helpers.length; i++)\n/* 435 */ MultiThreadedTabuSearch.this.helpers[i].dispose();\n/* 436 */ MultiThreadedTabuSearch.this.helpers = null;\n/* */ \n/* */ \n/* 439 */ MultiThreadedTabuSearch.this.fireTabuSearchStopped();\n/* 440 */ this.val$This.notifyAll(); } } }, \"MultiThreadedTabuSearch-Master\");\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 448 */ t.setPriority(this.threadPriority);\n/* 449 */ t.start();\n/* */ }\n/* 451 */ notifyAll();\n/* */ }", "public static void main(String[] args){\n\t\t\n\t\tSearchTallestPattern tall = new SearchTallestPattern(args);\n\t\t\n\t\ttall.TryBuildUp();\n\t\ttall.GetTallestPattern();\n\t\ttall.OutputResult();\n\t\t\n\t\t//System.out.printf(\"%n%d\", System.currentTimeMillis() - start);\n\t}", "public void run() {\n\t\tSolver localSolver;\n\t\t\n\t\t// Run forever\n\t\t// This is a daemon thread and should not keep the program from terminating\n\t\twhile (true) {\n\t\t\t\n\t\t\t// Check if paused\n\t\t\t// Wait here if required\n\t\t\tsynchronized(this) {\n\t\t\t\tif (paused) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\twait();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t\tcontinue; // Go back to top of while loop\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\t// Make a copy of the solver to use\n\t\t\t\t\t// Cannot access solver value outside synchronised section\n\t\t\t\t\tlocalSolver = solver;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Run solver\n\t\t\t// Must not use any values which require synchronisation\n\t\t\t//System.out.println(\"Start \"+localSolver.getType());\n\t\t\tRoute[] newRoute = localSolver.run();\n\t\t\t//System.out.println(\"Finish\");\n\t\t\t\n\t\t\t// Get the total cost of all the routes combined\n\t\t\tint newTotalCost = 0;\n\t\t\tfor (Route r : newRoute) newTotalCost += r.getCost();\n\t\t\t\n\t\t\t// Check if new route is better than previous\n\t\t\t// If so then swap it out\n\t\t\tsynchronized(this) {\n\t\t\t\tif (localSolver == solver) {\n\t\t\t\t\tif ((totalCost >= newTotalCost) || (totalCost < 1)) {\n\t\t\t\t\t\troute = newRoute;\n\t\t\t\t\t\ttotalCost = newTotalCost;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tresetRoute();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void runRoundRobin(int quantum) {\n //init\n ArrayList<Processus> localProcess = new ArrayList<>(); //Creation of a local list of process\n for (Processus cpy : listOfProcess) { //Copy the list of process in the local list with new instances of process\n Processus tmp = new Processus(cpy.getName(), cpy.getTime(), (HashMap<Integer, Integer>) cpy.getListOfInOut().clone(), (HashMap<Integer, Integer>) cpy.getlistOfResource().clone());\n localProcess.add(tmp);\n }\n int size = listOfProcess.size(); //variable used to save the initial size of the list of process\n\n Processus executedProc = null; //ExecutedProc is the current process that is being execute\n Processus tmpProc = localProcess.get(0); //The tmpProc is the previous process executed\n\n //Variable we need to calcul\n double occupancyRate = 0;\n double averageWaitingTime = 0;\n double averageReturnTime = 0;\n int currentTime = 0;\n int occupancyTime = 0;\n int counter = 0;\n\n //beginning of the algo\n while (!localProcess.isEmpty()) {\n tmpProc = null;\n for (Processus proc : localProcess) {\n if (proc.getTime() <= currentTime) {\n if (localProcess.size() == 1 || tmpProc == null) {\n executedProc = proc;\n tmpProc = proc;\n } else if (proc.getCurrentOrder() <= tmpProc.getCurrentOrder()) { //selection of the older process (FIFO selection)\n executedProc = proc;\n tmpProc = proc;\n }\n }\n }\n if (executedProc != null) {\n int tmpTime = 0;\n while (tmpTime < quantum && executedProc.getRessource(executedProc.getCurrentStep()) > 0) {\n for (Processus proc : localProcess) {\n if (proc.getTime() <= currentTime && !proc.equals(executedProc)) {//checking if there is another process waiting and set the new waiting time\n proc.setWaitingTime(1);\n }\n }\n\n occupancyTime++;\n currentTime++;\n tmpTime++;\n executedProc.setTime(executedProc.getTime() + 1); //set the new process start time\n executedProc.setRessource(executedProc.getCurrentStep(), executedProc.getRessource(executedProc.getCurrentStep()) - 1);//delete on resource time for the current process on the current step\n }\n //set the availability to the end of the process to the end of the in/out\n if (executedProc.getCurrentStep() < executedProc.getListOfInOut().size() && executedProc.getRessource(executedProc.getCurrentStep()) <= 0) {\n executedProc.setTime(executedProc.getInOut(executedProc.getCurrentStep()) + currentTime);\n executedProc.setCurrentStep(executedProc.getCurrentStep() + 1);\n } else if (executedProc.getCurrentStep() >= executedProc.getListOfInOut().size() && executedProc.getRessource(executedProc.getCurrentStep()) <= 0) {\n averageReturnTime += executedProc.getExecutedTime(); //update the average return time by adding the time that the process took\n averageWaitingTime += executedProc.getWaitingTime();\n localProcess.remove(executedProc);\n }\n if (executedProc.getCurrentStep() >= executedProc.getlistOfResource().size()) {//if it is the end of the process\n averageReturnTime += executedProc.getExecutedTime(); //update the average return time by adding the time that the process took\n averageWaitingTime += executedProc.getWaitingTime();\n localProcess.remove(executedProc);\n }\n //put the process at the end of the list\n executedProc.setCurrentOrder(counter);\n counter++;\n executedProc = null;\n } else {\n currentTime++;\n }\n }\n //end of the algo\n\n //Calculation of the variables\n occupancyRate = ((double) occupancyTime / (double) currentTime) * 100;\n for (Processus proc : listOfProcess) {\n averageWaitingTime += proc.getWaitingTime();\n }\n averageWaitingTime = averageWaitingTime / size;\n averageReturnTime = averageReturnTime / size;\n\n //Updating the global variables\n currentAverageReturnTime = averageReturnTime;\n logger.trace(\"Current average return time : \" + currentAverageReturnTime);\n currentAverageWaitingTime = averageWaitingTime;\n logger.trace(\"Current average waiting time : \" + currentAverageWaitingTime);\n currentOccupancyRate = occupancyRate;\n logger.trace(\"Current occupancy rate : \" + currentOccupancyRate);\n currentOccupancyTime = occupancyTime;\n logger.trace(\"Current occupancy time : \" + currentOccupancyTime);\n\n restList(); //reset the list to the origin values so the user can test another algo\n }", "@Override\n protected void start() throws Exception {\n LogManager.getLogger().log(ALGORITHM, \"STARTING TABU SEARCH...\");\n LogManager.getLogger().log(ALGORITHM, \"MAX ITERATIONS: \" + maxIterations);\n LogManager.getLogger().log(ALGORITHM, \"MAX ITERATIONS WITHOUT IMPROVEMENTS: \" + maxIterationsWithoutImprovement);\n LogManager.getLogger().log(ALGORITHM, \"MIN QUEUE: \" + minQueue);\n LogManager.getLogger().log(ALGORITHM, \"RISING TREND: \" + risingTrend);\n LogManager.getLogger().log(ALGORITHM, \"MAX THREADS: \" + (maxThreads != null ? maxThreads : \"DEFAULT\"));\n LogManager.getLogger().log(ALGORITHM, \"MULTI-STARTS -> # OF GREEDY: \" + greedyMultiStart + \", # OF RANDOM: \" + randomMultiStart);\n\n String iSettings = null;\n if (intensificationLearning) {\n iSettings = \"LEARNING\";\n }\n if (localSearchIntensification) {\n if (iSettings != null) {\n iSettings += \", \";\n } else {\n iSettings = \"\";\n }\n iSettings += \"LOCAL SEARCH\";\n }\n if (pathRelinking) {\n if (iSettings != null) {\n iSettings += \", \";\n } else {\n iSettings = \"\";\n }\n iSettings += \"PATH RELINKING\";\n }\n if (intensification) {\n if (iSettings != null) {\n iSettings += \", \";\n } else {\n iSettings = \"\";\n }\n iSettings += \"INTENSIFICATION\";\n }\n if (iSettings == null) {\n iSettings = \"NONE\";\n }\n LogManager.getLogger().log(ALGORITHM, \"INTENSIFICATION SETTINGS: \" + iSettings);\n\n String dSettings = null;\n if (diversificationLearning) {\n dSettings = \"LEARNING\";\n }\n if (greedyMultiStart + randomMultiStart > 1) {\n if (dSettings != null) {\n dSettings += \", \";\n } else {\n dSettings = \"\";\n }\n dSettings += \"MULTI-STARTS\";\n }\n if (moveDiversification) {\n if (dSettings != null) {\n dSettings += \", \";\n } else {\n dSettings = \"\";\n }\n dSettings += \"MOVE DIVERSIFY\";\n }\n if (diversification) {\n if (dSettings != null) {\n dSettings += \", \";\n } else {\n dSettings = \"\";\n }\n dSettings += \"DIVERSIFICATION\";\n }\n if (dSettings == null) {\n dSettings = \"NONE\";\n }\n LogManager.getLogger().log(ALGORITHM, \"DIVERSIFICATION SETTINGS: \" + dSettings);\n\n LabeledUndirectedGraph<N, E> zero = getZeroGraph(minGraph);\n\n if (!zero.isConnected()) {\n minCost = zero.calculateCost() + 1;\n\n Queue<LabeledUndirectedGraph<N, E>> startsQueue = new LinkedList<>();\n for (int i = 0; i < greedyMultiStart; i++) {\n startsQueue.add(applyMVCA());\n }\n for (int i = 0; i < randomMultiStart; i++) {\n startsQueue.add(new LabeledUndirectedGraph<>(getSpanningTree(graph)));\n }\n int nthreads = Runtime.getRuntime().availableProcessors();\n if (maxThreads != null) {\n if (maxThreads <= 1) {\n nthreads = 1;\n } else {\n nthreads = maxThreads;\n }\n }\n nthreads = Integer.min(nthreads, (greedyMultiStart + randomMultiStart));\n\n LogManager.getLogger().log(ALGORITHM, \"THREADS: \" + nthreads);\n\n //PRINT PROGRESS\n prog = 0;\n tot = startsQueue.size();\n print(Ansi.ansi().cursor().save().erase().eraseLine().a(String.format(\"\\t%.2f%%\", prog)));\n\n if (nthreads == 1) {\n while (!startsQueue.isEmpty()) {\n compute(startsQueue.poll());\n\n //PRINT PROGRESS\n// prog = (tot - startsQueue.size()) * 100 / tot;\n prog = 100;\n print(Ansi.ansi().cursor().load().erase().eraseLine().a(String.format(\"\\t%.2f%%\", prog)));\n }\n } else {\n\n List<Thread> pool = new ArrayList<>();\n for (int i = 0; i < nthreads; i++) {\n Thread th = new Thread(() -> {\n try {\n boolean empty;\n synchronized (lock) {\n empty = startsQueue.isEmpty();\n }\n\n while (!empty) {\n LabeledUndirectedGraph<N, E> g;\n\n synchronized (lock) {\n g = startsQueue.poll();\n }\n compute(g);\n synchronized (lock) {\n empty = startsQueue.isEmpty();\n\n //PRINT PROGRESS\n// prog = (tot - startsQueue.size()) * 100 / tot;\n prog++;\n double _prog = this.prog * 100 / tot;\n print(Ansi.ansi().cursor().load().erase().eraseLine().a(String.format(\"\\t%.2f%%\", _prog)));\n }\n }\n } catch (Exception ex) {\n throw new RuntimeException(ex);\n }\n });\n th.setDaemon(false);\n th.setName(\"TabuSearch_Calc_\" + i);\n th.setPriority(Thread.MAX_PRIORITY);\n th.start();\n pool.add(th);\n }\n for (Thread th : pool) {\n th.join();\n }\n }\n\n println();\n\n minGraphs.forEach(_min -> {\n if (_min.calculateCost() < minGraph.calculateCost()) {\n minGraph = _min;\n }\n });\n\n LogManager.getLogger().log(ALGORITHM, \"END TABU SEARCH.\");\n LogManager.getLogger().log(ALGORITHM, \"BEST AT THIS POINT: \" + minGraph.calculateCost());\n\n if (pathRelinking) {\n LogManager.getLogger().log(ALGORITHM, \"STARTING PATH RELINKING...\");\n\n pathRelinking(pathRelinkingAlt);\n\n println();\n LogManager.getLogger().log(ALGORITHM, \"BEST AT THIS POINT: \" + minGraph.calculateCost());\n }\n } else {\n minGraph = zero;\n }\n\n LogManager.getLogger().log(ALGORITHM, \"END.\");\n }", "static void start() throws IOException\n {\n cms_list = create_cms( num_cms );\n\n\n // 5.do until terminate\n\t\tfor( int iter=0; iter<num_iter; iter++ )\n\t\t{\n\t\t\tstart_t = System.currentTimeMillis();\n\n\t\t\tcms_sol_rdd = spark_selection(); //selction \n\t\t cms_list = new ArrayList( spark_transition_fitness( cms_sol_rdd ));\n\t\t\treduce_t = System.currentTimeMillis();\n\t\t for( int i=0; i<num_cms; i++ )\n if( best_objectvalue > cms_list.get(i)._2() )\n best_objectvalue = cms_list.get(i)._2();\n\n\t\t\tend_t = System.currentTimeMillis();\n\t\t\tprint_best( iter + 1 ); //print\n\t\t}\n }", "public void runExploration() {\n List<Queue<String>> smallSkierQueues = partitionQueue(skierQueue);\n List<Queue<String>> smallLiftQueues = partitionQueue(liftQueue);\n List<Queue<String>> smallhourQueues = partitionQueue(hourQueue);\n\n // run threads here\n long startTime = System.nanoTime();\n for(int i = 0; i < 8; i++) {\n SmallSkierThread runSmallSkier = new SmallSkierThread(smallSkierQueues.get(i));\n SmallLiftThread runSmallLift = new SmallLiftThread(smallLiftQueues.get(i));\n SmallHourThread runSmallHour = new SmallHourThread(smallhourQueues.get(i));\n runSmallSkier.start();\n runSmallHour.start();\n runSmallLift.start();\n }\n // -> Aggregate results here\n // ...\n // ...\n // ...\n // <- End aggregation\n long endTime = System.nanoTime();\n long duration = endTime - startTime;\n System.out.println(\"Concurrent Solution Runtime: \" + duration/1000f + \" microseconds\");\n }", "@Override\n public synchronized void run() {\n while (true) {\n int nodesInQueue = 0;\n //find nodes for jobs to run on\n Iterator<AmuseJob> iterator = queue.iterator();\n while (iterator.hasNext()) {\n AmuseJob job = iterator.next();\n\n if (job.isPending()) {\n //find nodes to run this job on. Always only a single pilot, but may contain multiple nodes per pilot.\n PilotManager target = pilots.getSuitablePilot(job);\n\n //If suitable nodes are found\n if (target != null) {\n job.start(target);\n //remove this job from the queue\n iterator.remove();\n } else {\n nodesInQueue++;\n }\n } else {\n //remove this job from the queue\n iterator.remove();\n }\n }\n\n if (nodesInQueue > 0) {\n logger.info(\"Now \" + nodesInQueue + \" waiting in queue\");\n }\n \n try {\n wait(5000);\n } catch (InterruptedException e) {\n logger.debug(\"Scheduler thread interrupted, time to quit\");\n return;\n }\n \n \n }\n }", "@Override\n\tpublic void run() {\n\t\tif(algoRuning==1){\n\t\t\tspDist.runAlgDist();\n\t\t}else{\n\t\t\tspTime.runAlgTime();\n\t\t}\n\t}", "public void startScheduling() {\n new Thread(new Runnable() {\n public void run() {\n while(true) {\n try {\n Thread.sleep(30000);\n Calendar c = Calendar.getInstance();\n int min = c.get(Calendar.MINUTE);\n if (((min % 10) == 0) || (min == 0)) {\n boolean action = getLightOnWhenMovementDetectedSchedule().getCurrentSchedule();\n if (action) {\n configureSwitchOnWhenMovement(true);\n } else {\n configureSwitchOnWhenMovement(false);\n }\n action = getLightSchedule().getCurrentSchedule();\n if (action) {\n switchOn();\n } else {\n switchOff();\n }\n saveHistoryData();\n }\n Thread.sleep(30000);\n } catch (InterruptedException e) {\n return;\n } catch (RemoteHomeConnectionException e) {\n e.printStackTrace();\n } catch (RemoteHomeManagerException e) {\n e.printStackTrace();\n }\n }\n }\n }).start(); \n }", "public static void main(String[] args) throws FileNotFoundException, IOException {\nfor (double b = 0.5; b < 0.51; b+=0.1) {\n for (double k = 4.40; k < 4.5; k+=0.5) {\n Machine.b = 0.5; //0.2 - ATCnon-delay\n Machine.k = 1.5; //1.4 - ATCnon delay\n int hits = 0;\n engineJob = new cern.jet.random.engine.MersenneTwister(99999);\n noise = new cern.jet.random.Normal(0, 1, engineJob);\n SmallStatistics[] result = new SmallStatistics[5];\n result[0] = new SmallStatistics();\n result[1] = new SmallStatistics();\n for (int ds = 0; ds < 2; ds++) {\n JSPFramework[] jspTesting = new JSPFramework[105];\n for (int i = 0; i < jspTesting.length; i++) {\n jspTesting[i] = new JSPFramework();\n jspTesting[i].getJSPdata(i*2 + 1);\n }\n //DMU - instances (1-80)//la - instances (81-120)\n //mt - instances (121/-123)//orb - instances (124-133)//ta -instances (134-173)\n //////////////////////////////////////////////\n for (int i = 0; i < jspTesting.length; i++) {\n double countEval = 0;\n double tempObj = Double.POSITIVE_INFINITY;\n double globalBest = Double.POSITIVE_INFINITY;\n boolean[] isApplied_Nk = new boolean[2]; //Arrays.fill(isApplied_Nk, Boolean.TRUE);\n int Nk = 0; // index of the Iterative dispatching rule to be used\n jspTesting[i].resetALL();\n boolean firstIteration = true;\n double countLargeStep = 0;\n do{\n countEval++;\n //start evaluate schedule\n jspTesting[i].reset();\n int N = jspTesting[i].getNumberofOperations();\n jspTesting[i].initilizeSchedule();\n int nScheduledOp = 0;\n\n //choose the next machine to be schedule\n while (nScheduledOp<N){\n\n Machine M = jspTesting[i].Machines[jspTesting[i].nextMachine()];\n\n jspTesting[i].setScheduleStrategy(Machine.scheduleStrategy.HYBRID );\n jspTesting[i].setPriorityType(Machine.priorityType.ATC);\n jspTesting[i].setNonDelayFactor(0.3);\n //*\n jspTesting[i].setInitalPriority(M);\n for (Job J:M.getQueue()) {\n double RJ = J.getReadyTime();\n double RO = J.getNumberRemainingOperations();\n double RT = J.getRemainingProcessingTime();\n double PR = J.getCurrentOperationProcessingTime();\n double W = J.getWeight();\n double DD = J.getDuedate();\n double RM = M.getReadyTime();\n double RWT = J.getCurrentOperationWaitingTime();\n double RFT = J.getFinishTime();\n double RNWT = J.getNextOperationWaitingTime();\n int nextMachine = J.getNextMachine();\n\n if (nextMachine==-1){\n RNWT=0;\n } else {\n RNWT = J.getNextOperationWaitingTime();\n if (RNWT == -1){\n RNWT = jspTesting[i].getMachines()[nextMachine].getQueueWorkload()/2.0;\n }\n }\n if (RWT == -1){\n RWT = M.getQueueWorkload()/2.0;\n }\n //J.addPriority((W/PR)*Math.exp(-maxPlus((DD-RM-PR-(RT-PR+J.getRemainingWaitingTime(M)))/(3*M.getQueueWorkload()/M.getNumberofJobInQueue())))); //iATC\n //J.addPriority((PR*PR*0.614577*(-RM-RM/W)-RT*PR*RT/W)\n // -(RT*PR/(W-0.5214191)-RM/W*PR*0.614577+RT*PR/(W-0.5214191)*2*RM/W));\n //J.addPriority(((W/PR)*((W/PR)/(RFT*RFT)))/(max(div((RFT-RT),(RWT/W)),IF(RFT/W-max(RFT-RT,DD),DD,RFT))+DD/RFT+RFT/W-max(RFT-RFT/W,DD))); //best TWT priorityIterative\n if (Nk==0)\n //J.addPriority(min(W/PR-RFT+min(RT,W/RFT),((min(RT,RNWT-RFT)/(RJ-min(RWT,RFT*0.067633785)))/(RJ-min(RWT,RFT*0.067633785))))/RFT);\n J.addPriority(min(W/PR-RFT+min(RT,W/RFT),((div(min(RT,RNWT-RFT),(RJ-min(RWT,RFT*0.067633785))))/(RJ-min(RWT,RFT*0.067633785))))/RFT);\n else\n J.addPriority(min((((W/PR)/RFT)/(2*RNWT+max(RO,RFT)))/(PR+RNWT+max(RO,RFT)),((W/PR)/RFT)/PR)/RFT);\n }\n //jspTesting[i].calculatePriority(M);\n jspTesting[i].sortJobInQueue(M);\n Job J = M.completeJob();\n if (!J.isCompleted()) jspTesting[i].Machines[J.getCurrentMachine()].joinQueue(J);\n nScheduledOp++;\n }\n double currentObj = -100;\n currentObj = jspTesting[i].getTotalWeightedTardiness();\n if (tempObj > currentObj){\n tempObj = currentObj;\n jspTesting[i].recordSchedule();\n Arrays.fill(isApplied_Nk, Boolean.FALSE);\n //System.out.println(\"Improved!!!\");\n }\n else {\n isApplied_Nk[Nk] = true;\n if (!isNextApplied(Nk, isApplied_Nk)) Nk = circleShift(Nk, isApplied_Nk.length);\n else {\n if (globalBest>tempObj) {\n globalBest = tempObj;\n jspTesting[i].storeBestRecordSchedule();\n } jspTesting[i].restoreBestRecordSchedule();\n if (countLargeStep<1) {\n tempObj = Double.POSITIVE_INFINITY;\n Arrays.fill(isApplied_Nk, Boolean.FALSE);\n jspTesting[i].shakeRecordSchedule(noise, engineJob, globalBest);\n countLargeStep++;\n }\n else break;\n }\n }\n firstIteration = false;\n \n } while(true);\n result[ds].add(jspTesting[i].getDevREFTotalWeightedTardiness(globalBest));\n if (jspTesting[i].getDevLBCmax()==0) hits++;\n System.out.println(jspTesting[i].instanceName + \" & \"+ globalBest + \" & \" + countEval);\n }\n }\n //jsp.schedule();\n //*\n System.out.println(\"*************************************************************************\");\n System.out.println(\"[ & \" + formatter.format(result[0].getMin()) + \" & \"\n + formatter.format(result[0].getAverage()) + \" & \" + formatter.format(result[0].getMax()) +\n \" & \" + formatter.format(result[1].getMin()) + \" & \"\n + formatter.format(result[1].getAverage()) + \" & \" + formatter.format(result[1].getMax()) + \"]\");\n //*/\n System.out.print(\"\"+formatter.format(result[0].getAverage()) + \" \");\n }\n System.out.println(\"\");\n}\n }", "public void run(){\t\n\t\tComputingRequest pathCompReq;\n\t\tlong timeIniNanos;\n\t\tlong timeEndNanos;\n\t\tlong timePreNanos=System.nanoTime();\n\t\twhile (running) {\n\t\t\tlog.info(\"Waiting for a new Computing Request to process\");\n\t\t\ttry {\n\t\t\t\tpathCompReq=pathComputingRequestQueue.take();\n\n\t\t\t\tif (analyzeRequestTime){\n\t\t\t\t\tdouble idleTimeV=(System.nanoTime()-timePreNanos)/(double)1000000;\n\t\t\t\t\tif (idleTimeV<20000){\n\t\t\t\t\t\tidleTime.analyze(idleTimeV);\t\n\t\t\t\t\t}\t\n\t\t\t\t}\n\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tlog.warn(\"There is no path to compute\");\n\t\t\t\te.printStackTrace();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttimeIniNanos=System.nanoTime();\n\n\t\t\tif (pathCompReq.getRequestList().size()==1){\n\t\t\t\tlog.info(\"Processing New Path Computing request, id: \"+pathCompReq.getRequestList().get(0).toString());\t\n\t\t\t}\n\t\t\t//FIXME: ESTA PARTE PUEDE FALLAR SI MANDAN OTRA COSA QUE NO SEAN IPV4 o GEN END POINTS\n\t\t\t//POR AHORA PONGO TRY CATH Y MANDO NOPATH\n\t\t\tlong sourceIF=0;\n\t\t\tlong destIF=0;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tP2PEndpoints p2pep=null;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry{\n\t\t\t\t//For the IT case\n\t\t\t\tif (ted.isITtedb()){\n\t\t\t\t\tlog.info(\"Processing New Path Computing request, id: \"+pathCompReq.getRequestList().get(0).toString());\t\t\n\t\t\t\t\tsource =(((GeneralizedEndPoints)pathCompReq.getRequestList().get(0).getEndPoints()).getP2PEndpoints().getSourceEndPoint().getEndPointIPv4TLV().getIPv4address());\n\t\t\t\t\tdest =(((GeneralizedEndPoints)pathCompReq.getRequestList().get(0).getEndPoints()).getP2PEndpoints().getDestinationEndPoint().getEndPointIPv4TLV().getIPv4address());\n\t\t\t\t}else {\n\t\t\t\t\ttry { //EndPointsIPv4\n\t\t\t\t\t\tif (pathCompReq.getRequestList().get(0).getEndPoints() instanceof GeneralizedEndPoints){\n\t\t\t\t\t\t\tsource = ((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).getSourceIP();\n\t\t\t\t\t\t\tdest = ((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).getDestIP();\n\t\t\t\t\t\t\tsourceIF=((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).getSourceIF();\n\t\t\t\t\t\t\tdestIF=((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).getDestIF();\n\t\t\t\t\t\t\tlog.info(\"SubObjeto: EP-Unnumbered Interface: \"+((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).toString());\n\t\t\t\t\t\t\tEndPointsIPv4 ep= new EndPointsIPv4();\n\t\t\t\t\t\t\tep.setDestIP(dest);\n\t\t\t\t\t\t\tep.setSourceIP(source);\n\t\t\t\t\t\t\tpathCompReq.getRequestList().get(0).setEndPoints(ep);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsource = ((EndPointsIPv4)pathCompReq.getRequestList().get(0).getEndPoints()).getSourceIP();\n\t\t\t\t\t\tdest = ((EndPointsIPv4)pathCompReq.getRequestList().get(0).getEndPoints()).getDestIP();\n\t\t\t\t\t\tlog.info(\" XXXX try source: \"+source);\n\t\t\t\t\t\tlog.info(\" XXXX try dest: \"+dest);\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e) { //GeneralizedEndPoints\n\t\t\t\t\t\tif (pathCompReq.getRequestList().get(0).getEndPoints() instanceof GeneralizedEndPoints){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tp2pep = ((GeneralizedEndPoints)pathCompReq.getRequestList().get(0).getEndPoints()).getP2PEndpoints();\t\t\t\n\n\t\t\t\t\t\t\t//P2PEndpoints p2pep = ((GeneralizedEndPoints)pathCompReq.getRequestList().get(0).getEndPoints()).getP2PEndpoints();\t\t\t\n\t\t\t\t\t\t\tlog.info(\"RequestProcessorThread GeneralizedEndPoints -> sourceDataPath:: \"+p2pep.getSourceEndPoint()+\" destDataPath :: \"+p2pep.getDestinationEndPoint());\n\n\t\t\t\t\t\t\tGeneralizedEndPoints ep= new GeneralizedEndPoints();\n\t\t\t\t\t\t\tep.setP2PEndpoints(p2pep); \t\n\t\t\t\t\t\t\tpathCompReq.getRequestList().get(0).setEndPoints(ep);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tsource = p2pep.getSourceEndPoint().getEndPointIPv4TLV().getIPv4address();\n\t\t\t\t\t\t\tdest = p2pep.getDestinationEndPoint().getEndPointIPv4TLV().getIPv4address();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}catch (Exception e){\n\t\t\t\t//If fails, we send NoPath, by now (reasons later...)\n\t\t\t\t//FIXME\n\t\t\t\tlog.info(\"Shouldn't be here except in WLANs\");\n\t\t\t\t//log.info(FuncionesUtiles.exceptionToString(e));\n\t\t\t\t//this.sendNoPath(pathCompReq);\n\t\t\t}\n\t\t\t//In case it is a child PCE with a parent, requestToParent = true\n\t\t\tboolean requestToParent = false;\n\t\t\n\t\t\tif (this.isChildPCE==true){\n\t\t\t\t//Before sending to the parent, check that the source and destinations don't belong to the domain\n\t\t\t\t\n\t\t\t\tif((!(((DomainTEDB)ted).belongsToDomain(source))||(!(((DomainTEDB)ted).belongsToDomain(dest))))){\t\t\t\t\t\n\t\t\t\t\trequestToParent = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t//In case we need to send the request to the parent... this way...\n\t\t\tif (requestToParent == true) {\n\t\t\t\tlog.info(\"Child PCE: Request is going to be fowarded to the Parent PCE\");\n\t\t\t\tPCEPRequest pcreq = new PCEPRequest();\n\t\t\t\tRequest request=pathCompReq.getRequestList().get(0).duplicate();\n\t\t\t\t//FIXME: hay que poner un nuevo requestID, si no... la podemos liar\n\t\t\t\tpcreq.addRequest(request);\n\t\t\t\tPCEPResponse p_rep = cpcerm.newRequest(pcreq);\n\n\n\t\t\t\tif (p_rep==null){\n\t\t\t\t\tlog.warn(\"Parent doesn't answer\");\n\t\t\t\t\tthis.sendNoPath(pathCompReq);\n\t\t\t\t}else {\n\t\t\t\t\tlog.info(\"RESP: \"+p_rep.toString());\n\t\t\t\t}\n\n\t\t\t\tComputingResponse pcepresp = new ComputingResponse();\n\t\t\t\tpcepresp.setResponsetList(p_rep.getResponseList());\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tlog.info(\"Encoding Computing Request\");\n\t\t\t\t\tpcepresp.encode();\n\t\t\t\t} \n\t\t\t\tcatch (PCEPProtocolViolationException e1)\n\t\t\t\t{\n\t\t\t\t\tlog.info(UtilsFunctions.exceptionToString(e1));\n\t\t\t\t}\n\n\n\t\t\t\ttry {\n\t\t\t\t\tlog.info(\"oNE OF THE NODES IS NOT IN THE DOMAIN. Send Request to parent PCE,pcepresp:\"+pcepresp+\",pathCompReq.getOut():\"+pathCompReq.getOut());\n\t\t\t\t\tpathCompReq.getOut().write(p_rep.getBytes());\n\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tlog.warn(\"Parent doesn't answer\");\n\t\t\t\t\tComputingResponse m_resp=new ComputingResponse();\n\t\t\t\t\tResponse response=new Response();\n\t\t\t\t\tRequestParameters rp = new RequestParameters();\n\t\t\t\t\trp.setRequestID(request.getRequestParameters().requestID);\n\t\t\t\t\tresponse.setRequestParameters(rp);\n\t\t\t\t\tNoPath noPath= new NoPath();\n\t\t\t\t\tnoPath.setNatureOfIssue(ObjectParameters.NOPATH_NOPATH_SAT_CONSTRAINTS);\n\t\t\t\t\tNoPathTLV noPathTLV=new NoPathTLV();\n\t\t\t\t\tnoPath.setNoPathTLV(noPathTLV);\t\t\t\t\n\t\t\t\t\tresponse.setNoPath(noPath);\n\t\t\t\t\tm_resp.addResponse(response);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tm_resp.encode();\n\t\t\t\t\t\tpathCompReq.getOut().write(m_resp.getBytes());\n\t\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t\t} catch (IOException e2) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te2.printStackTrace();\n\t\t\t\t\t} catch (PCEPProtocolViolationException e3) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te3.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(\"Send NO PATH\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\tlog.info(\"Response sent!!\");\n\t\t\t\t//\t}\n\t\t\t\t//}\n\t\t\t\tft=null;\n\n\t\t\t} else {\n\t\t\t\tint of=0;\n\t\t\t\tComputingAlgorithmManager algortithmManager=null;\n\t\t\t\tComputingAlgorithmManagerSSON algortithmManagerSSON=null;\n\t\t\t\tif (pathCompReq.getSvec()!=null){\n\t\t\t\t\tlog.info(\"SVEC Request \");\n\t\t\t\t\tObjectiveFunction objectiveFunctionObject=pathCompReq.getSvec().getObjectiveFunction();\n\t\t\t\t\tif (objectiveFunctionObject!=null){\n\t\t\t\t\t\tof=objectiveFunctionObject.getOFcode();\n\t\t\t\t\t\tlog.info(\"ObjectiveFunction code \"+of);\n\t\t\t\t\t\talgortithmManager =svecAlgorithmList.get(new Integer(of));\n\t\t\t\t\t\tif (algortithmManager==null){\n\t\t\t\t\t\t\tif (objectiveFunctionObject.isPbit()==true){\n\t\t\t\t\t\t\t\tlog.warn(\"OF not supported\");\n\t\t\t\t\t\t\t\t//Send error\n\t\t\t\t\t\t\t\tPCEPError msg_error= new PCEPError();\n\t\t\t\t\t\t\t\tErrorConstruct error_c=new ErrorConstruct();\n\t\t\t\t\t\t\t\tPCEPErrorObject error= new PCEPErrorObject();\n\t\t\t\t\t\t\t\terror.setErrorType(ObjectParameters.ERROR_UNSUPPORTEDOBJECT);\n\t\t\t\t\t\t\t\terror.setErrorValue(ObjectParameters.ERROR_UNSUPPORTEDOBJECT_UNSUPPORTED_PARAMETER);\n\t\t\t\t\t\t\t\terror_c.getErrorObjList().add(error);\n\t\t\t\t\t\t\t\tmsg_error.setError(error_c);\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tmsg_error.encode();\n\t\t\t\t\t\t\t\t\tpathCompReq.getOut().write(msg_error.getBytes());\n\t\t\t\t\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\tlog.warn(\"IOException sending error to PCC: \"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t} catch (PCEPProtocolViolationException e) {\n\t\t\t\t\t\t\t\t\tlog.error(\"Malformed ERROR MESSAGE, CHECK PCE CODE:\"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\tbreak;\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tlog.warn(\"USING Default SVEC \");\n\t\t\t\t\t\t\t\tDefaultSVECPathComputing dspc=new DefaultSVECPathComputing(pathCompReq,ted);\n\t\t\t\t\t\t\t\tft=new ComputingTask(dspc);\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tlog.info(\"Custom SVEC OF \"+of);\n\t\t\t\t\t\t\tComputingAlgorithm cpr=algortithmManager.getComputingAlgorithm(pathCompReq, ted);\n\t\t\t\t\t\t\tft=new ComputingTask(cpr);\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tlog.info(\"Default SVEC \");\n\t\t\t\t\t\tDefaultSVECPathComputing dspc=new DefaultSVECPathComputing(pathCompReq,ted);\n\t\t\t\t\t\tft=new ComputingTask(dspc);\t\n\n\t\t\t\t\t}\n\n\n\t\t\t\t}//aqui se acaba el de svec!=null\n\t\t\t\telse {\n\t\t\t\t\tboolean nopath=false;\n\t\t\t\t\tlog.debug(\"Non-svec request\");\n\t\t\t\t\tdouble totalTimeNs=System.nanoTime()-pathCompReq.getTimeStampNs();\n\t\t\t\t\tdouble totalTimeMs=totalTimeNs/1000000L;\n\t\t\t\t\tif (useMaxReqTime==true){\n\t\t\t\t\t\tif (totalTimeMs>pathCompReq.getMaxTimeInPCE()){\n\t\t\t\t\t\t\tlog.info(\"Request execeeded time, sending nopath\");\n\t\t\t\t\t\t\tft=null;\n\t\t\t\t\t\t\tlog.info(\"Mando no path request execeeded time.totalTimeMs \"+totalTimeMs+\"pathCompReq.getMaxTimeInPCE()\");\n\t\t\t\t\t\t\tsendNoPath(pathCompReq);\n\t\t\t\t\t\t\tnopath=true;\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\n\t\t\t\t\tif (nopath==false){\n\t\t\t\t\t\tObjectiveFunction objectiveFunctionObject=pathCompReq.getRequestList().get(0).getObjectiveFunction();\n\t\t\t\t\t\tif (objectiveFunctionObject!=null){ \t\t\t\t\n\t\t\t\t\t\t\tof=objectiveFunctionObject.getOFcode();\n\n\t\t\t\t\t\t\tlog.debug(\"ObjectiveFunction code \"+of);\n\t\t\t\t\t\t\talgortithmManager =singleAlgorithmList.get(new Integer(of));\n\t\t\t\t\t\t\tif (singleAlgorithmListsson != null){\n\t\t\t\t\t\t\t\talgortithmManagerSSON = singleAlgorithmListsson.get(new Integer(of));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (algortithmManager==null && algortithmManagerSSON==null){\n\t\t\t\t\t\t\t\tif (objectiveFunctionObject.isPbit()==true){\n\t\t\t\t\t\t\t\t\tlog.warn(\"OF not supported!!\");\n\t\t\t\t\t\t\t\t\t//Send error\n\t\t\t\t\t\t\t\t\tPCEPError msg_error= new PCEPError();\n\t\t\t\t\t\t\t\t\tErrorConstruct error_c=new ErrorConstruct();\n\t\t\t\t\t\t\t\t\tPCEPErrorObject error= new PCEPErrorObject();\n\t\t\t\t\t\t\t\t\terror.setErrorType(ObjectParameters.ERROR_UNSUPPORTEDOBJECT);\n\t\t\t\t\t\t\t\t\terror.setErrorValue(ObjectParameters.ERROR_UNSUPPORTEDOBJECT_UNSUPPORTED_PARAMETER);\n\t\t\t\t\t\t\t\t\terror_c.getErrorObjList().add(error);\n\t\t\t\t\t\t\t\t\terror_c.getRequestIdList().add(pathCompReq.getRequestList().get(0).getRequestParameters());\n\t\t\t\t\t\t\t\t\tmsg_error.setError(error_c);\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tmsg_error.encode();\n\t\t\t\t\t\t\t\t\t\tpathCompReq.getOut().write(msg_error.getBytes());\n\t\t\t\t\t\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\tlog.warn(\"IOException sending error to PCC: nons\"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t} catch (PCEPProtocolViolationException e) {\n\t\t\t\t\t\t\t\t\t\tlog.error(\"Malformed ERROR MESSAGE, CHECK PCE CODE. nons\"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tnopath=true;\n\t\t\t\t\t\t\t\t\tft=null;\n\t\t\t\t\t\t\t\t\tlog.warn(\"error message informing sent.\"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tlog.info(\"Choosing default algotithm 1\");\n\t\t\t\t\t\t\t\t\tlog.info(\"pathCompReq:: \"+pathCompReq.toString());\n\t\t\t\t\t\t\t\t\t//log.info(\"ted:: \"+ted.printTopology());\n\t\t\t\t\t\t\t\t\tDefaultSinglePathComputing dspc=new DefaultSinglePathComputing(pathCompReq,ted);\n\t\t\t\t\t\t\t\t\tft=new ComputingTask(dspc);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tlog.info(\"Choosing algorithm of OF \"+of);\n\t\t\t\t\t\t\t\tboolean ssonAlgorithm = false;\n\t\t\t\t\t\t\t\tif (singleAlgorithmListsson != null){\n\t\t\t\t\t\t\t\t\tif (singleAlgorithmListsson.size()!=0){\n\t\t\t\t\t\t\t\t\t\tssonAlgorithm = true;\n\t\t\t\t\t\t\t\t\t\t//FIXME: Hay que declarar el parametro \"modulation format\".\n\t\t\t\t\t\t\t\t\t\tint mf=0;\n\t\t\t\t\t\t\t\t\t\tComputingAlgorithm cpr=algortithmManagerSSON.getComputingAlgorithm(pathCompReq, ted, mf);\n\t\t\t\t\t\t\t\t\t\tft=new ComputingTask(cpr);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (!ssonAlgorithm){\n\t\t\t\t\t\t\t\t\tif (isMultilayer==true){\n\t\t\t\t\t\t\t\t\t\tComputingAlgorithm cpr=algortithmManager.getComputingAlgorithm(pathCompReq, ted, opCounter);\n\t\t\t\t\t\t\t\t\t\tft=new ComputingTask(cpr);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tComputingAlgorithm cpr=algortithmManager.getComputingAlgorithm(pathCompReq, ted);\n\t\t\t\t\t\t\t\t\t\tft=new ComputingTask(cpr);\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tlog.info(\"Choosing default algotithm 2\");\n\t\t\t\t\t\t\tDefaultSinglePathComputing dspc=new DefaultSinglePathComputing(pathCompReq,ted);\n\t\t\t\t\t\t\tft=new ComputingTask(dspc);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (ft!=null)\t{\n\t\t\t\t//Here the task will be executed. n\n\t\t\t\tComputingResponse rep;\n\t\t\t\ttry {\n\t\t\t\t\tft.run();\n\t\t\t\t\trep=ft.get(pathCompReq.getMaxTimeInPCE(),TimeUnit.MILLISECONDS);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\tlog.warn(\"Computation failed: \"+e.getMessage()+\" || \"+UtilsFunctions.exceptionToString(e)+\" || \" +\",MAXTIME: \"+pathCompReq.getMaxTimeInPCE());\n\t\t\t\t\trep=null;\n\t\t\t\t}\n\t\t\t\tlog.info(\"ReppPP:::\"+rep);\n\t\t\t\t//FIXME: There's a trap here. We change Response to send an unnumbered interface\n\t\t\t\tif ((sourceIF!=0)&&(destIF!=0))//Esto ocurre en el caso de recibir UnnumberedInterface EndPoints (Caso VNTM)\n\t\t\t\t\ttrappingResponse(rep, sourceIF, destIF);\n\t\t\t\ttry {\n\t\t\t\t\t//FIXME: WE ARE USING THE MAX TIME IN PCE, REGARDLESS THE TIME IN THE PCE\n\t\t\t\t\t//log.error(\"Esperamos \"+pathCompReq.getMaxTimeInPCE());\n\t\t\t\t\t//FIXME: \t\t\t\t\n\t\t\t\t\tif (rep!=null){\n\t\t\t\t\t\t//log.info(\"rep.getPathList().get(0)\"+rep.getResponse(0).getPathList().get(0));\n\t\t\t\t\t\tComputingResponse repRes=ft.executeReservation();\n\t\t\t\t\t\tif (repRes!=null){\n\t\t\t\t\t\t\trep=repRes;\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttimeEndNanos=System.nanoTime();\n\n\t\t\t\t\t\tdouble compTimeMicroSec=(timeEndNanos-timeIniNanos)/(double)1000;\n\t\t\t\t\t\tdouble toTimeMicroSec=(timeEndNanos-pathCompReq.getTimeStampNs())/(double)1000;\n\t\t\t\t\t\tdouble toTimeMiliSec=(timeEndNanos-pathCompReq.getTimeStampNs())/(double)1000000;\n\t\t\t\t\t\t//In some no path cases, we can retry\n\t\t\t\t\t\t//here it is the right place\n\t\t\t\t\t\tboolean retry=false;\n\t\t\t\t\t\tif ((rep.ResponseList.getFirst().getNoPath()!=null)&&(pathCompReq.getRequestList().getFirst().getRequestParameters().isRetry())){\n\t\t\t\t\t\t\tdouble totalTimeMs=(System.nanoTime()-pathCompReq.getTimeStampNs())/1000000L;\n\t\t\t\t\t\t\tif (pathCompReq.getRequestList().getFirst().getRequestParameters().getMaxRequestTimeTLV()!=null){\n\t\t\t\t\t\t\t\tlong maxReqTimeMs=pathCompReq.getRequestList().getFirst().getRequestParameters().getMaxRequestTimeTLV().getMaxRequestTime();\n\t\t\t\t\t\t\t\tif (totalTimeMs<=maxReqTimeMs){\n\t\t\t\t\t\t\t\t\tif (totalTimeMs<60000){//FIXME: LIMITE DE 1 MINUTO, PARA EVITAR ATAQUE MALINTENCIONADO\n\t\t\t\t\t\t\t\t\t\tlog.info(\"Re-queueing comp req\");\n\t\t\t\t\t\t\t\t\t\tpathComputingRequestRetryQueue.add(pathCompReq);\t\n\t\t\t\t\t\t\t\t\t\tretry=true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (retry==false) {\n\t\t\t\t\t\t\tif (pathCompReq.getPccReqId()!=null){\n\t\t\t\t\t\t\t\trep.getResponse(0).setPccIdreq(pathCompReq.getPccReqId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (pathCompReq.getMonitoring()!=null){\n\t\t\t\t\t\t\t\tlog.info(\"Monitoring Info is requested\");\n\t\t\t\t\t\t\t\tMetricPCE metricPCE=new MetricPCE();\n\t\t\t\t\t\t\t\tPceIdIPv4 pceId=new PceIdIPv4();\n\t\t\t\t\t\t\t\tInet4Address pceIPAddress=null;\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tpceIPAddress = (Inet4Address) Inet4Address.getByName(\"0.0.0.0\");\n\t\t\t\t\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tpceId.setPceIPAddress(pceIPAddress);\n\t\t\t\t\t\t\t\tmetricPCE.setPceId(pceId);\n\t\t\t\t\t\t\t\tProcTime procTime=new ProcTime();\n\t\t\t\t\t\t\t\tmetricPCE.setProcTime(procTime);\n\t\t\t\t\t\t\t\t//FIXME: Ahora lo pongo en us para unas pruebas\n\t\t\t\t\t\t\t\t//en la RFC esta en ms\n\t\t\t\t\t\t\t\tprocTime.setCurrentProcessingTime((long)toTimeMiliSec);\n\t\t\t\t\t\t\t\t//procTime.setMaxProcessingTime((long)toTimeMiliSec);\n\t\t\t\t\t\t\t\trep.getResponse(0).getMetricPCEList().add(metricPCE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry { \t\t\n\t\t\t\t\t\t\t\tlog.info(rep.toString());\n\t\t\t\t\t\t\t\trep.encode();\n\t\t\t\t\t\t\t} catch (PCEPProtocolViolationException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\tlog.error(\"PROBLEM ENCONDING RESPONSE, CHECK CODE!!\"+e.getMessage());\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\t\tlog.info(\"Request processeed, about to send response\");\n\t\t\t\t\t\t\t\tpathCompReq.getOut().write(rep.getBytes());\n\t\t\t\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\tlog.warn(\"Could not send the response \"+e.getMessage());\n\t\t\t\t\t\t\t\tif (rep.getResponse(0).getResConf()!=null){\n\t\t\t\t\t\t\t\t\t//FIXME\n\t\t\t\t\t\t\t\t\tlog.warn(\"If your are using WLANs this is not going to work!!\");\n\t\t\t\t\t\t\t\t\tthis.reservationManager.cancelReservation(rep.getResponse(0).getResConf().getReservationID());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//log.info(\"Response sent number \"+rep.getResponseList().getFirst().getRequestParameters().getRequestID()+\",rep.getPathList().get(0)\"+rep.getResponse(0).getPathList().get(0));\n\n\t\t\t\t\t\t\t/*** STRONGEST: Collaborative PCEs ***/\t\n\t\t\t\t\t\t\t//FIXME: pasarlo al reservation manager\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (collaborationPCESessionManager!=null){\n\t\t\t\t\t\t\t\tif (!(rep.getResponseList().isEmpty())){\n\t\t\t\t\t\t\t\t\tif (!(rep.getResponseList().get(0).getNoPath()!=null)){\n\t\t\t\t\t\t\t\t\t\tPCEPNotification m_not = createNotificationMessage(rep,pathCompReq.getRequestList().get(0).getReservation().getTimer());\t\t\t\t\n\n\t\t\t\t\t\t\t\t\t\tcollaborationPCESessionManager.sendNotifyMessage(m_not);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else {\n\t\t\t\t\t\tlog.info(\"COMPUTING TIME execeeded time, sending NOPATH\");\n\t\t\t\t\t\tsendNoPath(pathCompReq);\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (analyzeRequestTime){\n\n\t\t\t\tdouble comp=(System.nanoTime()-timeIniNanos)/(double)1000000;\n\t\t\t\tprocTime.analyze(comp);\n\t\t\t\ttimePreNanos=System.nanoTime();\n\t\t\t\tif (comp>maxProcTime){\n\t\t\t\t\tmaxProcTime=comp;\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t}", "public void run() {\n\t\tcurrentTime = 0;\n\t\twhile (currentTime < timeLimit) {\n\t\t\t// add chosen task(s) to the scheduler\n\t\t\taddTaskToServer();\n\t\t\t// calculate the peak hour in every step and empty queue time\n\t\t\tcalculatePeakHour();\n\t\t\tcalculateEmptyQueueTime();\n\t\t\t// show the evolution of the queues\n\t\t\tframe.displayData(getTasks(), generatedTasks, currentTime);\n\t\t\tcurrentTime++;\n\t\t\ttry {\n\t\t\t\tThread.sleep(simulationSpeed);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// the time is over, stop other threads from running\n\t\tframe.displayData(getTasks(), generatedTasks, currentTime);\n\t\tthis.scheduler.stopServers();\n\t\t// wait one more second before showing statistics\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tframe.dispayStatistics();\n\n\t\twriter.close();\n\t}", "private static void automate() {\n \tLOG.info(\"Begin automation task.\");\n \t\n \tcurrentOpticsXi = clArgs.clusteringOpticsXi;\n \tdouble opticsXiMax = (clArgs.clusteringOpticsXiMaxValue > ELKIClusterer.MAX_OPTICS_XI ? ELKIClusterer.MAX_OPTICS_XI : clArgs.clusteringOpticsXiMaxValue);\n \tcurrentOpticsMinPoints = clArgs.clusteringOpticsMinPts;\n \tint opticsMinPointsMax = clArgs.clusteringOpticsMinPtsMaxValue;\n \t\n \tLOG.info(\"optics-xi-start: {}, optics-xi-min-points-start: {}, optics-xi-step-size: {}, optics-min-points-step-size: {}\",\n \t\t\tnew Object[] { \n \t\t\t\tdf.format(currentOpticsXi), df.format(currentOpticsMinPoints), \n \t\t\t\tdf.format(clArgs.clusteringOpticsXiStepSize), df.format(clArgs.clusteringOpticsMinPtsStepSize)\n \t\t\t});\n \t\n \twhile (currentOpticsXi <= opticsXiMax) {\n \t\twhile (currentOpticsMinPoints <= opticsMinPointsMax) {\n \t\t\t// Run automation for each combination of opticsXi and opticsMinPoints\n \t\t\tLOG.info(\"Run automation with optics-xi: {}, optics-xi-min-points: {}\", \n \t\t\t\t\tdf.format(currentOpticsXi), df.format(currentOpticsMinPoints));\n \t\t\t\n \t\t\ttry {\n\t \t\t\t// Step 1: Clustering\n\t \t\t\tclustering(clArgs.clusteringInFile, clArgs.clusteringOutDir, currentOpticsXi, currentOpticsMinPoints);\n\t \t\t\t\n\t \t\t\t// Step 2: Build shared framework\n\t \t\t\tbuildFramework();\n\t \t\t\t\n\t \t\t\t// Step 3: Build user hierarchical graphs\n\t \t\t\tbuildHierarchicalGraphs();\n\t \t\t\t\n\t \t\t\t// Step 4: Calculate similarity between all users and create evaluation results afterwards\n\t \t\t\tcalculateSimilarity();\n \t\t\t} catch (Exception e) {\n\t\t\t\t\tLOG.error(\"An error occurred during the automation task. Jumping to the next pass.\", e);\n\t\t\t\t} finally {\n\t \t\t\t// Step 5: Clean up for the next run\n\t \t\t\tcleanAutomationResults();\n\t \t\t\t\n\t \t\t\t// Increase the currentOpticsMinPoints for the next run if desired\n\t \t\t\tif (clArgs.clusteringOpticsMinPtsStepSize > 0)\n\t \t\t\t\tcurrentOpticsMinPoints += clArgs.clusteringOpticsMinPtsStepSize;\n\t \t\t\telse\n\t \t\t\t\tbreak;\n\t\t\t\t}\n \t\t}\n \t\t// Reset current values\n \t\tcurrentOpticsMinPoints = clArgs.clusteringOpticsMinPts;\n \t\t\n \t\t// Increase currentOpticsXi for the next run if desired\n \t\tif (clArgs.clusteringOpticsXiStepSize > 0)\n\t\t\t\tcurrentOpticsXi += clArgs.clusteringOpticsXiStepSize;\n\t\t\telse\n\t\t\t\tbreak;\n \t}\n \t\n \tLOG.info(\"End automation task.\");\n }", "private void goSearch() {\n\t\tThread t = new Thread(this);\n\t\tt.start();\n\t}", "public abstract void runAlgorithm();", "public static void main(String[] args)\n {\t\t\n\t\t\tFastTimer timer = new FastTimer();\n\t\t\n\t\t\n\t\t\tGameGrid loaded_grid = new GameGrid(7,7);\n\t\t\t\tboolean isSuccess = loaded_grid.LoadFromFile(\"test.puzzle\");\n\t\t\tif(isSuccess == true){\n\t\t\t\tSystem.out.print(\"Solution initiale\\n\");\n\t\t\t\tloaded_grid.PrintToCmd();\t\t\t\n\t\t\t}\n\t\t\tList<GameMove> found_moves = loaded_grid.GetAvailableMove(); \n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"\\n\\nInitial possible moves\\n\");\n\t\t\tfor(GameMove current_move :found_moves){\n\t\t\t\tcurrent_move.PrintOutCmd();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tList<GameMove> solution_move = new LinkedList();\n\t\t\tloaded_grid.ResetMonitoring();\n\t\t\t\n\t\t\ttimer.StartTime();\n\t\t\t\tboolean result = loaded_grid.FindSolution(solution_move);\n\t\t\ttimer.StopTime();\n\t\t\t\n\t\t\tSystem.out.println(\"\\n**************************\");\n\t\t\tSystem.out.println(\"File name : \" + loaded_grid.loaded_file_name+\"\\n\");\n\t\t\tif(result == false){\n\t\t\t\tSystem.out.println(\"Pas de solution\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"Solution in \" +solution_move.size() +\" moves\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\tTime : \"+timer.LastDelta + \" millsec\");\n\t\t\tSystem.out.println(\"\tNode visited :\"+loaded_grid.node_visited_cpt);\n\t\t\tSystem.out.println(\"\tDept require :\"+loaded_grid.max_dept);\n\t\t\tSystem.out.println(\"\tDept limitation :\"+loaded_grid.dept_limit);\n\t\t\t\n\t\t\tif(solution_move.size() > 0){\n\t\t\t\tSystem.out.println(\"\\nMove from last to first\\n\");\n\t\t\t\tfor(GameMove current_move :solution_move){\n\t\t\t\t\tcurrent_move.PrintOutCmd();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\\n**************************\\n\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.print(\"Final grid\\n\");\n\t\t\tloaded_grid.PrintToCmd();\n }", "@Override\n\tpublic void solve() {\n\t\tlong startTime = System.nanoTime();\n\n\t\twhile(!unvisitedPM.isEmpty()){\n\t\t\tProblemModel current = findCheapestNode();\n\t\n\t\t\tfor(ProblemModel pm : current.getSubNodes()){\n\t\t\n\t\t\t\tif(!visited.contains(pm) && !unvisitedPM.contains(pm)){\n\t\t\t\t\t\n\t\t\t\t\tunvisitedPM.add(pm);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(current.getSideStart().isEmpty()){\n\t\t\t\tSystem.out.print( \"\\n\"+ \"StartSide Runners: \");\n\t\t\t\tfor(Integer r: current.getSideStart()){\n\t\t\t\t\tSystem.out.print( \" \" +r) ;\n\t\t\t\t}\n\t\t\t\tSystem.out.print( \"\\n\" + \"EndSide Runners: \");\n\t\t\t\tfor(Integer r: current.getSideEnd()){\n\t\t\t\t\tSystem.out.print( \" \" + r);\n\t\t\t\t}\n\n\t\t\t\tprintPathTaken(current);\n\t\t\t\tSystem.out.print( \"\\n\" + \"------------done--------------\");\n\t\t\t\tlong endTime = System.nanoTime();\n\t\t\t\tlong duration = ((endTime - startTime)/1000000);\n\t\t\t\tSystem.out.print( \"\\n\" + \"-AS1 Time taken: \" + duration + \"ms\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tvisited.add(current);\n\t\t\n\t\t}\n\t\t\n\n\t}", "@Override\n\t\t\tpublic void run() \n\t\t\t{\n\t\t\t\tif(!(mazeCollection.containsKey(paramArray[0])))\n\t\t\t\t{\n\t\t\t\t\tc.passError(\"Maze doesn't exist\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t//if solution for this maze exists\n\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0])))\n\t\t\t\t{\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t*/\n\t\t\t\t\n\t\t\t\tif(paramArray[1].toString().equals(\"bfs\"))\n\t\t\t\t{\n\t\t\t\t\tMazeAdapter ms=new MazeAdapter(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\n\t\t\t\t\tSearcher<Position> bfs=new BFS<Position>();\n\t\t\t\t\tSolution<Position> sol=bfs.search(ms);\n\t\t\t\t\t\n\t\t\t\t\t//check if solution for the maze already exists, if so, replace it with the new one\n\t\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0]))) {\n\t\t\t\t\t\tmazeSolutions.remove(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if(paramArray[1].toString().equals(\"dfs\"))\n\t\t\t\t{\n\t\t\t\t\tMazeAdapter ms=new MazeAdapter(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\n\t\t\t\t\tSearcher<Position> dfs=new DFS<Position>();\n\t\t\t\t\tSolution<Position> sol=dfs.search(ms);\n\t\t\t\t\t\n\t\t\t\t\t//check if solution for the maze already exists, if so, replace it with the new one\n\t\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0]))) {\n\t\t\t\t\t\tmazeSolutions.remove(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tc.passError(\"Invalid algorithm\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void run() {\n\t\tMap<Integer, Location> possibleStartLocations = possibleStartLocations();\n\n\t\tfor(Entry<Integer, Location> startLocation : possibleStartLocations.entrySet()) {\n\t\t\t// Add startLocation to visited locations\n\t\t\tMap<Integer, Location> visitedLocations = new HashMap<Integer, Location>();\n\t\t\tvisitedLocations.put(startLocation.getKey(), startLocation.getValue());\n\t\t\t\n\t\t\t// Add startLocation to visited order\n\t\t\tList<Location> visitedOrder = new LinkedList<Location>();\n\t\t\tvisitedOrder.add(startLocation.getValue());\n\t\t\t\n\t\t\t// Start the recursion for the following start node\n\t\t\tfindSolution(startLocation, startLocation, visitedLocations, visitedOrder, 0);\n\t\t}\n\t}", "public void run() {\n // solve();\n faster();\n }", "public void arrivesAtTestSTation() throws InterruptedException {\n int max = 5;\n int min = 1;\n int range = max - min + 1;\n\n long time = System.currentTimeMillis();\n long timeTo = System.currentTimeMillis() + 7200;\n while(time <= timeTo){\n Thread.sleep(Times.calculateTimeDistributionForArrivingAtTheCarStation());\n int res = (int) ( Math.random()*range)+min;\n Car c = new Car(res);\n personsInCar += c.getNumberOfPassengers();\n carGenerated++;\n if(carQueue.size() >= Times.carQueueSize) {\n if(Times.enableDebugging)\n System.out.println(\"0. Car queue is to hight and needs to leave: \" + c.getIdentifier().getCarId() );\n carLeftLaneSinceItIsFull++;\n }else {\n c.setArrivesAtTestStation(true);\n c.setStartsWaiting(System.currentTimeMillis());\n c.setCurrentStation(\"Arrives Test Station\");\n synchronized (carQueue){\n carQueue.add(c);}\n // Collections.sort(carQueue);\n if(Times.enableDebugging)\n System.out.println(\"1. Arrives at the Teststation: \" + c.getIdentifier().getCarId() );\n }\n time = System.currentTimeMillis();\n }\n }", "@Override\n List<NodeData> pathFind() throws NoPathException {\n System.out.println(\"Starting Scenic\");\n\n frontier.add(start);\n\n while(!frontier.isEmpty()) {\n StarNode current = frontier.getLast();\n frontier.removeLast(); // pop the priority queue\n if(current.getXCoord() == goal.getXCoord() && current.getYCoord() == goal.getYCoord()) {\n // If we are at the goal, we need to backtrack through the shortest path\n System.out.println(\"At target!\");\n finalList.add(current); // we have to add the goal to the path before we start backtracking\n while(!(current.getXCoord() == start.getXCoord() && current.getYCoord() == start.getYCoord())) {\n finalList.add(current.getPreviousNode());\n current = current.getPreviousNode();\n System.out.println(current.getNodeID());\n }\n return finalList;\n }\n else {\n // we need to get all the neighbor nodes, identify their costs, and put them into the queue\n LinkedList<StarNode> neighbors = current.getNeighbors();\n // we also need to remove the previous node from the list of neighbors because we do not want to backtrack\n neighbors.remove(current.getPreviousNode());\n\n for (StarNode newnode : neighbors) {\n int nodePlace = this.listContainsId(frontier, newnode);\n if(nodePlace > -1) {\n if (frontier.get(nodePlace).getF() > actionCost(newnode) + distanceToGo(newnode, goal)) {\n System.out.println(\"Here\");\n frontier.remove(frontier.get(nodePlace));\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n }\n else {\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n\n // This fixes the problem with infinitely looping elevators (I hope)\n if(current.getNodeType().equals(\"ELEV\") && newnode.getNodeType().equals(\"ELEV\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"ELEV\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n if(current.getNodeType().equals(\"STAI\") && newnode.getNodeType().equals(\"STAI\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"STAI\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n // this is where the node is put in the right place in the queue\n Collections.sort(frontier);\n }\n }\n }\n throw new NoPathException(start.getLongName(), goal.getLongName());\n }", "public static void runGeneration(){\r\n adjust = generationSize*generation;\r\n //Send out the ants to their start points\r\n for (int i = generationSize -1; i>0; i--) {\r\n colony.get(i + adjust).startPositions(sets);\r\n }\r\n //initialises the latch with a counter for each ant in a generation\r\n latch = new CountDownLatch(generationSize);\r\n //move the ants out until they have found a valid solution or seen all nodes\r\n //create a new thread for each ant in the generation\r\n for (int i = 0; i<generationSize;i++) {\r\n Generation temp = new Generation(i);\r\n //starts the new thread\r\n temp.start();\r\n }\r\n try {\r\n //wait until all the ants in a generation have completed their paths\r\n latch.await();\r\n }\r\n catch(Exception e)\r\n {\r\n System.out.println(\"error in latch.await\");\r\n }\r\n\r\n //Create the pheremone trail\r\n for (int i = 0; i<generationSize;i++) {\r\n Ant a = colony.get(i + adjust);\r\n for (Integer k: a.Path) {\r\n pheremones.set(k, pheremones.get(k) + 1);\r\n visited.set(k, visited.get(k) + 1);\r\n }\r\n }\r\n\r\n generation++;\r\n //degrade the pheremone trail\r\n if(generation > 1){\r\n for (int i = 0; i < pheremones.size(); i++){\r\n pheremones.set(i, pheremones.get(i) - degrade);\r\n if (pheremones.get(i) < 0) pheremones.set(i, 0);\r\n }\r\n }\r\n\r\n }", "public void run()\n {\n //while (still executing jobs on grid)\n // attempt to sample data\n while (processingJobs)\n {\n //if (not paused)\n // sample data\n if (!paused)\n {\n //get the storage element object appropriate for this thread\n int ind = nodeChoice.indexOf('e');\n String siteno = nodeChoice.substring(ind+1);\n int siteID = Integer.parseInt(siteno);\n site = _gc.findGridSiteByID(siteID);\n StorageElement se = site.getSE();\n //sample time\n long timeMillis = time.getRunningTimeMillis();\n timeSecs = (int)(timeMillis/1000);\n //sample capacity\n capacity = se.getCapacity();\n float usage = (capacity - se.getAvailableSpace())/100;\n /* if (range values identical for last three readings)\n * remove intermediate statistic\n */\n if (usage==prevUsage&&usage==prevPrevUsage)\n { \n int itemCount = seriesSEUVTime.getItemCount();\n if (itemCount>2)\n seriesSEUVTime.remove(itemCount-1);\n } \n prevPrevUsage = prevUsage;\n prevUsage = usage;\n seriesSEUVTime.add(timeSecs, usage);\n pieDataset.setValue(\"Used Storage (GB)\", new Integer((int)((capacity - se.getAvailableSpace())/100)));\n pieDataset.setValue(\"Free Storage (GB)\", new Integer((int)((se.getAvailableSpace())/100)));\n //if (not saving all graphs)\n // try to refresh statistics\n if(!printingAll)\n this.sendDatatoGUI();\n }\n \n //delay next sample by short time\n try\n {\n if (paused)\n sleep(Integer.MAX_VALUE);\n else\n sleep(samplingDelay);\n }\n catch (InterruptedException e)\n {\n //in here if user is wishing to see chart from this object\n this.sendDatatoGUI();\n } \n }\n \n //out here only when all jobs have finished.\n //thread shall sleep for long time but can be \n //re-awakened if user wants to see statistics \n //from this object when run is complete.\n while (true)\n {\n try\n {\n sleep(Integer.MAX_VALUE);\n }\n catch (InterruptedException e)\n {\n //in here if user is wishing to see chart from this object\n this.sendDatatoGUI();\n }\n }\n }", "private void GreedySearch(){\n\n Queue<Node> expanded = new LinkedList<>();\n ArrayList<Node> fringe = new ArrayList<>();\n ArrayList<Node> fringeTemp = new ArrayList<>();\n\n\n Node current = startNode;\n\n while(expanded.size() < 1000){\n\n if(current.getDigit().getDigitString().equals(goalNode.getDigit().getDigitString())){\n //goal is reached.\n solutionPath(current);\n expanded.add(current);\n printExpanded(expanded);\n System.exit(0);\n }\n\n\n boolean b = cycleCheck(current,expanded);\n\n if(!b) {\n expanded.add(current);\n }\n\n if(!b){\n\n if(current.getDigit().last_changed != 0){\n\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n\n }\n }\n\n if(current.getDigit().last_changed != 1){\n\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n if(current.getDigit().last_changed != 2){\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n }\n\n\n\n for(Node n : fringe){\n heuristicSetter(n);\n\n }\n\n fringeTemp.addAll(fringe);\n //now all the nodes in fringe have the heuristic value.\n //We can get the last added minm\n Node minm;\n if(fringeTemp.size() != 0){\n minm = fringeTemp.get(0);\n }else{\n break;\n }\n for(int i = 1; i<fringeTemp.size(); i++){\n if(fringeTemp.get(i).getHeuristic() <= minm.getHeuristic()){\n minm = fringeTemp.get(i);\n }\n }\n\n //now we have the minm for the next stage.\n current = minm;\n fringeTemp.remove(minm);\n fringe.clear();\n }\n\n //While loop ends\n System.out.println(\"No solution found.\");\n printExpanded(expanded);\n\n\n\n }", "public Schedule heuristicScheduling() \n\t{ \n\t\t// this creates an array, originally empty, of all the tasks scheduled in the heuristic manner\n\t\tScheduledTask[] heuristic = new ScheduledTask[tasks.length];\n\t\n\t\t// this creates an array that holds the duration of tasks on every processor\n\t\tint[] processorDuration = new int[m];\n\t\t\n\t\t// this creates a clone of the tasks array so that it can be messed with\n\t\tint[] junkTasks = tasks.clone();\n\t\t\n\t\t// this is the index of how many tasks have already been scheduled\n\t\tint index = 0;\n\t\t\n\t\twhile (index < tasks.length)\n\t\t{\n\t\t\t// this is the index of the processor with the smallest duration\n\t\t\tint smallestIndex = 0;\n\t\t\t\n\t\t\t// this finds the processor with the smallest duration\n\t\t\tfor (int i = 0; i < m; i++)\n\t\t\t{\n\t\t\t\tif (processorDuration[i] < processorDuration[smallestIndex])\n\t\t\t\t\tsmallestIndex = i;\n\t\t\t}\n\t\t\t\n\t\t\t// this is the id of the task with the largest duration\n\t\t\tint largestIndex = 0;\n\n\t\t\t// this finds the task with the largest duration\n\t\t\tfor (int i = 0; i < junkTasks.length; i++)\n\t\t\t{\n\t\t\t\tif (junkTasks[i] > junkTasks[largestIndex])\n\t\t\t\t\tlargestIndex = i;\n\t\t\t}\n\t\t\t\n\t\t\t// this schedules the task with the largest duration at the processor with the smallest duration\n\t\t\t// and assigns it to heuristic array at the index\n\t\t\theuristic[index] = new ScheduledTask(largestIndex, smallestIndex);\n\t\t\t\n\t\t\t// this increments the duration of the processor to which the task just got assigned\n\t\t\tprocessorDuration[smallestIndex] += tasks[largestIndex];\n\t\t\t\n\t\t\t// this sets the duration of the task that was just scheduled to zero\n\t\t\tjunkTasks[largestIndex] = 0;\n\t\t\t\n\t\t\t// this increments the index since another task just got assigned\n\t\t\tindex++;\n\t\t}\n\t\t\n\t\treturn new Schedule(tasks, m, heuristic);\n\t}", "@Override\n\tpublic void run() {\n\t\tfileName = \"out_\" + Program.getProgram().getFileName() + \"_\";\n\t\tint numAddStop = 0;\n\t\t//fileName = \"out_themida_\";\n\n\t\t//fileState.clearContentFile();\n\t\t//bkFile.clearContentFile();\n\t\toverallStartTime = System.currentTimeMillis();\n\t\tlong overallStartTemp = overallStartTime;\n\t\t// BE-PUM algorithm\n\t\tSystem.out.println(\"Starting On-the-fly Model Generation algorithm.\");\n\t\tprogram.getResultFileTemp().appendInLine('\\n' + program.getFileName() + '\\t');\n\t\t\n\t\t// Set up initial context\n\t\tX86TransitionRule rule = new X86TransitionRule();\n\t\tBPCFG cfg = Program.getProgram().getBPCFG();\n\t\tEnvironment env = new Environment();\n\t\t//env.getMemory().resetImportTable(program);\n\t\tAbsoluteAddress location = Program.getProgram().getEntryPoint();\n\t\tInstruction inst = Program.getProgram().getInstruction(location, env);\n\t\tList<BPPath> pathList = new ArrayList<BPPath>();\n\t\t\n\t\t// Insert start node\n\t\tBPVertex startNode = null;\n\t\tstartNode = new BPVertex(location, inst);\n\t\tstartNode.setType(0);\n\t\tcfg.insertVertex(startNode);\n\n\t\tBPState curState = null;\n\t\tBPPath path = null;\n\t\tcurState = new BPState(env, location, inst);\n\t\tpath = new BPPath(curState, new PathList(), new Formulas());\n\t\tpath.setCurrentState(curState);\n\t\tpathList.add(path);\n\n\t\t/*if (Program.getProgram().getFileName().equals(\"api_test_v2.3_lvl1.exe\") \n\t\t\t\t&& isRestored) {\n\t\t\tSystem.out.println(\"Restore State from File.\");\n\t\t\tFileProcess reFile = new FileProcess(\"data/data/restoreState.txt\");\n\t\t\tpathList = restoreState(reFile);\n\t\t\t// bkFile.clearContentFile();\n\t\t\tSystem.out.println(\"Finished restoring state!\");\n\t\t}*/\n\n\t\t// Update at first -----------------------------\n\t\tTIB.setBeUpdated(true);\n\t\tTIB.updateTIB(curState);\n\t\t// ---------------------------------------------\n\n\t\t// PHONG - 20150801 /////////////////////////////\n\t\t// Packer Detection via Header\n\t\tSystem.out.println(\"================PACKER DETECTION VIA HEADER ======================\");\n\t\tif (OTFModelGeneration.detectPacker)\n\t\t{\n\t\t\tprogram.getDetection().detectViaHeader(program);\n\t\t\tprogram.getDetection().setToLogFirst(program);\n\t\t}\n\t\tSystem.out.println(\"==================================================================\");\n\t\t/////////////////////////////////////////////////\n\t\t\n\t\tsynchronized (OTFThreadManager.getInstance()) {\n\t\t\ttry {\n\t\t\t\tOTFThreadManager.getInstance().check(this, pathList);\n\t\t\t\tOTFThreadManager.getInstance().wait();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// PHONG - 20150724\n\t\tSystem.out.println(\"================PACKER DETECTION VIA OTF======================\");\n\t\tprogram.getDetection().packedByTechniques();\n\t\tprogram.getDetection().packedByTechniquesFrequency();\n\t\tSystem.out.println(\"==============================================================\");\n\t}", "@Override\n public void handleGreedySearchHasCompleted(State greedyState) {\n // set up the results from the greedy search to be used for the optimal search\n List<TaskDependencyNode> freeTasks = DependencyGraph.getGraph().getFreeTasks(null);\n RecursionStore.processPotentialBestState(greedyState);\n RecursionStore.pushStateTreeQueue(new StateTreeBranch(generateInitialState(RecursionStore.getBestStateHeuristic()), freeTasks, 0));\n\n PilotRecursiveWorker pilot = new PilotRecursiveWorker(_argumentsParser.getBoostMultiplier(), this);\n _pool.submit(pilot);\n }", "private void startSearch() {\n for (int i = 0; i < this.threadsSaerch.length; i++) {\n this.threadsSaerch[i] = this.threads.getSearchThread();\n this.threadsSaerch[i].start();\n }\n }", "public void runTournament() {\n\t\t//ArrayList<Gene> tournament = new ArrayList<Gene>();\n\t\tPriorityQueue<Gene> tournament = new PriorityQueue<Gene>(Collections.reverseOrder());\n\t\tint numContenders = (int)(FRAC_IN_TOURNAMENT * geneNumber);\n\t\tSet<Integer> chosenOnes = new HashSet<Integer>();\n\t\t\n\t\twhile(chosenOnes.size() < numContenders) {\n\t\t\tint randIndex = (int) (Math.random() * geneNumber);\n\t\t\tchosenOnes.add(randIndex);\n\t\t}\n\t\tfor(int i : chosenOnes){\n\t\t\ttournament.add(genepool.get(i));\n\t\t}\n\t\t//int firstIndex = getMax(tournament, -1);\n\t\t//int secondIndex = getMax(tournament, firstIndex);\n\t\t//Gene parent1 = tournament.get(firstIndex);\n\t\t//Gene parent2 = tournament.get(secondIndex);\n\t\tGene parent1 = tournament.poll();\n\t\tGene parent2 = tournament.poll();\n\t\t// Create a new gene from the 2 fittest genes\n\t\tGene newGene = parent1.waCrossover(parent2);\n\t\t\n\t\t// Calculate fitness for the new gene\n\t\tPlayerSkeleton.runGames(numGames, newGene);\n\t\toffspringPool.add(newGene);\n\t}", "public void Execute()\n\t{\n\t\tString decryptedText=\"\";\n\t\tString key = KeyGenerator.GenerateKey();\n\t\tPlayfairCypher cypher=new PlayfairCypher(key);\n\t\tint temp = 11;\n\t\t\n\t\t//this.digraph=cypher.getDigraph();\n\t\t\n\t\n\t\tdecryptedText=cypher.Decrypt(txt);\n\t\tdouble score=Score(decryptedText);\n\n\t\t//PlayfairCypher aux;\n\t\tThread t1;\n\t\tThread t2;\n\t\tfor (; temp >0 ; temp--) \n\t\t{\n\t\t\tSystem.out.println(\"TEMP \"+temp);\n\t\t\t//Runnable r = new AneallingRunnable(key,score,temp,keyT1,scoreT1,txt);\n\t\t\tRunnable r = new AneallingRunnable(key,score,temp,txt,1);\n\t\t\tRunnable r2 = new AneallingRunnable(key,score,temp,txt,2);\n\t\t\tt1 = new Thread(r);\n\t\t\tt2=new Thread(r2);\n\t\t\tt1.start();\n\t\t\tt2.start();\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tt1.join();\n\t\t\t\tt2.join();\n\t\t\t}catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t\tif(SharedDataBetweenThreads.scoreT1>SharedDataBetweenThreads.scoreT2)\n\t\t\t\t{\n\t\t\t\t\tscore=SharedDataBetweenThreads.scoreT1;\n\t\t\t\t\tkey=SharedDataBetweenThreads.keyT1;\n\t\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tscore=SharedDataBetweenThreads.scoreT2;\n\t\t\t\tkey=SharedDataBetweenThreads.keyT2;\n\t\t\t}\n\t\t\tSystem.out.println(\"TEMP: \"+temp+\" Score: \"+score+\"\\n\");\n\t\t\tSharedDataBetweenThreads.scoreT1=0;\n\t\t\tSharedDataBetweenThreads.scoreT2=0;\n\t\t\t\n\t\t\tif(score>180) temp=-1;\n\n\t\t}\n\t\t\n\t\tcypher=new PlayfairCypher(key);\n\t\tSystem.out.println(cypher.toString());\n\t\tSystem.out.println(cypher.Decrypt(txt));\n\t\t\n\t\tlong stopTime = System.currentTimeMillis();\n\t long elapsedTime = stopTime - startTime;\n\t System.out.println(\"\\nTime taken: \"+elapsedTime/10);\n\t}", "public abstract void startPeriodicallScan();", "private void timeSearch(ServerAccess sa, List<String> sports) {\r\n Collections.shuffle(sports);\r\n \r\n final long starttime = 1399986000; //13-5-2014 15:00:00\r\n final long endtime = 1431522000; //13-5-2015 15:00:00\r\n final long hourdif = 3600;\r\n final long daydif = 86400;\r\n final long weekdif = 7*daydif;\r\n \r\n final List<String> sports1 = new ArrayList<>();\r\n for (int i = 0; i < (int) Math.floor(sports.size() / 2); i++) {\r\n sports1.add(sports.get(i));\r\n }\r\n \r\n //Collections.reverse(sports1);\r\n firstSearch.add(false);\r\n final Runnable r1 = () -> timeSearchSports(1, sports1, sa, getAuth());\r\n \r\n \r\n final List<String> sports2 = new ArrayList<>();\r\n for (int i = (int) Math.floor(sports.size() / 2); i < sports.size(); i++) {\r\n sports2.add(sports.get(i));\r\n }\r\n //Collections.reverse(sports2);\r\n firstSearch.add(false);\r\n final Runnable r2 = () -> timeSearchSports(2, sports2, sa, getAuth2());\r\n \r\n final Thread t1 = new Thread(r1);\r\n final Thread t2 = new Thread(r2);\r\n t1.start();\r\n t2.start();\r\n \r\n try {\r\n t1.join();\r\n } catch (InterruptedException ex) {\r\n }\r\n try {\r\n t2.join();\r\n } catch (InterruptedException ex) {\r\n }\r\n \r\n storeRest();\r\n DBStore.getInstance().setDone();\r\n }", "public void alternateFunction()\n\t{\n\t\tstart();\n\t\trunAlgorithm();\n\t}", "public static void main(String[] args){\n\t\tint c;\t//is the number of processes\n\t\tint h;\t//length of array\n int burstTime;\n String name;\n int waitTime;\n int quantumTime;\n waitTime = quantumTime = 0;\n @SuppressWarnings(\"resource\")\n Scanner in = new Scanner(System.in);\n System.out.println(\"Please choose process(1:RR,2:FCFS,3:SJF,4:Exit):\");\n c = in.nextInt();\n System.out.println(\"Please enter the number of process:\");\n h = in.nextInt();\n process[] p = new process[h];\n RR[] r = new RR[h];\n for(int i = 0; i<h;i++)\n {\n \tSystem.out.print(\"please input process name: \");\n \tname = in.next();\n \t System.out.println(\"\");\n \t System.out.print(\"Please input burst Time: \");\n \t burstTime = in.nextInt(); \n \t System.out.println(\"\");\n \t p[i] = new process(name,burstTime,waitTime);\n \t r[i] = new RR(name,burstTime,waitTime,quantumTime);\n }\n if (c==1) \n {\n \tSystem.out.println(\"Please input a quantum: \");\n\t\t\tint quantum; \t//q is the quantum\n\t\t\tquantum = in.nextInt();\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i<h;i++)\n\t\t\t{\n\t\t\t\tsum = sum + r[i].burstTime;\n\t\t\t}\n\t\t\tint s =0;\n\t\t\twhile(sum != 0 ){\n\t\t\t\tfor(int i = 0;i<h;i++)\n\t\t\t\t{\n\t\t\t\t\tif ((r[i].burstTime < quantum) &&(r[i].burstTime != 0))\n\t\t\t\t\t{\n\t\t\t\t\t\tr[i].waitTime = s;\n\t\t\t\t\t\ts += r[i].burstTime;\n\t\t\t\t\t\tr[i].quantumTime += 1;\n\t\t\t\t\t\tr[i].burstTime = 0;\n\t\t\t\t\t\tSystem.out.println(r[i].name+\"is finished.\");\n\t\t\t\t\t}\n\t\t\t\t\telse if((r[i].burstTime != 0))\n\t\t\t\t\t{\n\t\t\t\t\t\tr[i].burstTime = r[i].burstTime - quantum;\n\t\t\t\t\t\tr[i].waitTime = s;\n\t\t\t\t\t\ts += quantum ;\n\t\t\t\t\t\tr[i].quantumTime += 1;\n\t\t\t\t\t}\n\t\t\t\t\tr[i].display();\n\t\t\t\t}\n\t\t\t\tsum=0;\n\t\t\t\tfor (int i = 0; i<h;i++)\n\t\t\t\t{\n\t\t\t\t\tsum = sum + r[i].burstTime;\n\t\t\t\t}\n\t\t\t}\n\t\t\tint wt = 0;\n\t\t\twhile (sum == 0){\n\t\t\t\tfor(int i = 0;i<h;i++)\n\t\t\t\t{\n\t\t\t\t\tr[i].waitTime = r[i].waitTime - (r[i].quantumTime - 1)*quantum;\n\t\t\t\t\tr[i].display();\n\t\t\t\t\twt += r[i].waitTime;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint awt;\n\t\t\tawt = wt/h;\n\t\t\tSystem.out.println(\"the average Time is : \"+awt);\n }\n if (c==2) //calculate FCFS\n {\n \tfor(int i=0;i<h;i++)\n \t{\n \t\tp[i].display();\n \t}\n \tSystem.out.println(\"After:\");\n\t\t\tint u = 0;\n\t\t\tfor(int i=0;i<h;i++)\n\t\t\t{\n\t\t\t\tif(i==0)\n\t\t\t\t{\n\t\t\t\t\tp[i].waitTime = u;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tp[i].waitTime = p[i].waitTime+p[i].burstTime;\n\t\t\t\t}\n\t\t\t\tp[i].display();\n\t\t\t}\n }\n averagewaitTime(p, h);\n\t\t\tif(c==3) //calculate SJF\n\t\t\t{\n\t\t\t\tfor(int i=0;i<h;i++)\n\t\t\t\t{\n\t\t\t\t\tp[i].display();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"After:\");\n\t\t\t\tArrays.sort(p);\n\t\t\t\tfor(int i=0;i<h;i++)\n\t\t\t\t{\n\t\t\t\t\tp[i].display();\n\t\t\t }\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tfor(int i=0;i<h;i++)\n\t\t\t\t{\n\t\t\t\t\tif (i == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tp[i].waitTime = 0;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tp[i].waitTime = p[i-1].burstTime + p[i-1].waitTime;\n\t\t\t\t\t}\n\t\t\t\t\tp[i].display(); \n\t\t\t\t}\n\t\t\t\taveragewaitTime(p,h);\n\t\t\t}\n\t}", "public static void liveDemo() {\n Scanner in = new Scanner( System.in );\n float srcTank1, srcTank2, destTank;\n int alternetPaths;\n Graph mnfld = new Graph();\n boolean runSearch = true;\n\n //might need to limit query results, too large maybe?\n //newnodes = JDBC.graphInformation(); //returns arraylist of nodes\n //mnfld.setPipes(newnodes); //set nodes to the manifold\n //JDBC.insertConnections(mnfld);\n\n//\t\t /*\n//\t\t\tfor (int i = 0; i < newnodes.length(); i++) { //length might be wrong\n//\t\t\t\t//need to look for way to add edges by looking for neighbor nodes i think\n//\t\t\t\t//loop through nodes and create Edges\n//\t\t\t\t//might need new query\n//\t\t\t\tnewedges.addEdge(node1,node2,cost);\n//\t\t\t}\n//\n//\t\t\tmnfld.setConnections(newedges);\n//\n//\t\t\tup to this point, graph should be global to Dijkstra and unused.\n//\t\t\tloop until user leaves page\n//\t\t\tget input from user for tanks to transfer\n//\t\t\tfind shortest path between both tanks\n//\t\t\tend loop\n//\t\t\tthis will change depending how html works so not spending any time now on it\n//\t\t*/\n //shortestPath.runTest();\n\n shortestPath.loadGraph( mnfld );\n while (runSearch) {\n // Gets user input\n System.out.print( \"First Source Tank: \" );\n srcTank1 = in.nextFloat();\n System.out.print( \"Second Source Tank: \" );\n srcTank2 = in.nextFloat();\n System.out.print( \"Destination Tank: \" );\n destTank = in.nextFloat();\n System.out.print( \"Desired Number of Alternate Paths: \" );\n alternetPaths = in.nextInt();\n\n // Prints outputs\n Dijkstra.resetCosts( mnfld );\n System.out.println( \"True shortest with alt paths\" );\n Dijkstra.findAltPaths( mnfld, alternetPaths, srcTank1, destTank );\n mnfld.restoreDroppedConnections();\n\n Dijkstra.resetCosts( mnfld );\n System.out.println( \"Lineup Considering used connections\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( srcTank1 ), true );\n mnfld.getPipe( destTank ).printLine();\n mnfld.restoreDroppedConnections();\n\n Dijkstra.resetCosts( mnfld );\n System.out.println( \"Lineup Considering only open connections\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( srcTank1 ), false );\n mnfld.getPipe( destTank ).printLine();\n mnfld.restoreDroppedConnections();\n\n Dijkstra.resetCosts( mnfld );\n System.out.println( \"Merge Lineup\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( srcTank1 ) );\n System.out.println( \"\\t Original Lineup: \" );\n mnfld.getPipe( destTank ).printLine();\n System.out.println( \"\\t Merged Lineup: \" );\n Dijkstra.mergePaths( mnfld, srcTank2, mnfld.getPipe( destTank ).getPath(), mnfld.getPipe( destTank ) );\n System.out.print( \"\\nRun another search [1:Yes, 0:No] :: \" );\n if (in.nextInt() == 0) runSearch = false;\n else System.out.println( \"\\n\\n\\n\" );\n }\n\n\n }", "public void run()\n/* */ {\n/* 534 */ while (!this.dispose)\n/* */ {\n/* */ \n/* 537 */ if (!this.workToDo)\n/* */ {\n/* 539 */ synchronized (this) {\n/* 540 */ try { wait();\n/* */ } catch (InterruptedException e) {\n/* 542 */ e.printStackTrace(SingleThreadedTabuSearch.err); } } } else { synchronized (this) { this.bestMove = SingleThreadedTabuSearch.getBestMove(this.soln, this.moves, this.objectiveFunction, this.tabuList, this.aspirationCriteria, this.maximizing, this.chooseFirstImprovingMove, this.tabuSearch);this.workToDo = false;notifyAll();\n/* */ }\n/* */ }\n/* */ }\n/* */ }", "public void startRide() {\n\t\tthis.findNearestDriver();\n\t\tint i = 0;\n\t\tthis.currentDriver = this.drivers.get(i);\n\t\twhile(currentDriver.getStatus() != Status.AVAILABLE) {\n\t\t\ti++;\n\t\t\tthis.currentDriver = this.drivers.get(i);\n\t\t}\n\t\tdouble fair = this.getFair(this.currentDriver.getDistanceFromPassenger());\n\t\tif(this.validateFair(fair)) {\n\t\t\tthis.currentDriver.setStatus(Status.ENROUTE);\n\t\t\tthis.currentDriver.setStatus(Status.ARRIVED);\n\t\t\tthis.startTransit();\n\t\t}\n\t}", "public void doRRScheduling(boolean detailedMode)\n {\n //Do RR if there's processes\n if(!rrQueue.isEmpty())\n {\n //The CPU time units\n int cpuCurrentTotalTimeUnits = 0;\n \n //The service time for a process\n int serviceTime = 0;\n \n //Track the total idle time\n int idleTotalTime = 0;\n \n //A boolean to know when to get the new process waiting in the queue\n boolean getANewProcessFromReadyQueue = true;\n \n //A boolean to keep track of processes processing\n // boolean stillProcessing = true;\n \n //Done queue\n ArrayList<SimProcess> doneQueue = new ArrayList<SimProcess>();\n \n //Temporary queue to add back.\n Queue<SimProcess> tempQueue = new LinkedList<SimProcess>();\n \n \n //A reference to manipulate processes\n SimProcess processCurrentlyProcessing = null;\n \n //A reference to check for\n \n while(true)\n {\n //Check if there's no current process running\n if(processCurrentlyProcessing == null)\n {\n if(tempQueue.isEmpty())\n {\n //Then check if there are more processes waiting to be ran\n if(!rrQueue.isEmpty())\n {\n //Get the next process in the ready queue if it has \"arrived\" yet\n if(cpuCurrentTotalTimeUnits >= (rrQueue.peek()).getArrivalTime())\n {\n //Get the next process in the ready queue\n processCurrentlyProcessing = rrQueue.remove();\n \n //Getting the next process takes time, so add up the idle time according to the process switch time\n idleTotalTime += processSwitchTime;\n \n //Also, increment the cpu current total time units by the switch\n cpuCurrentTotalTimeUnits += processSwitchTime;\n \n //Track it's waiting time\n processCurrentlyProcessing.setWaitingTime(cpuCurrentTotalTimeUnits-processCurrentlyProcessing.getArrivalTime());\n serviceTime = processCurrentlyProcessing.getCpuBurstTime();\n } \n }\n \n //No more processes to run, exit out\n else\n {\n break;\n }\n }\n //When tempQueue is not empty\n else\n {\n //Get the next process in the temporary queue\n processCurrentlyProcessing = tempQueue.remove();\n \n //Getting the next process takes time, so add up the idle time according to the process switch time\n idleTotalTime += processSwitchTime;\n \n //Also, increment the cpu current total time units by the switch\n cpuCurrentTotalTimeUnits += processSwitchTime;\n \n //Track it's waiting time\n processCurrentlyProcessing.setWaitingTime(cpuCurrentTotalTimeUnits-processCurrentlyProcessing.getArrivalTime());\n serviceTime = processCurrentlyProcessing.getCpuBurstTime(); \n } \n }\n \n \n //A process is now currently running\n if(processCurrentlyProcessing != null)\n {\n //Only allows process to run for a certain time quantum\n int count = 0;\n while(count < quantum && serviceTime > 0) \n {\n //Process currently running\n cpuCurrentTotalTimeUnits++;\n serviceTime--;\n count++;\n \n if(!rrQueue.isEmpty())\n {\n //Set the next process in the ready queue if it has \"arrived\" into the temp queue\n if(cpuCurrentTotalTimeUnits >= (rrQueue.peek()).getArrivalTime())\n {\n tempQueue.add(rrQueue.remove()); \n }\n } \n }\n \n //Service time of the current process is up\n if(serviceTime == 0)\n {\n //Process is done send it to the done queue and have the reference set to null\n //Also, track the turnaround time\n processCurrentlyProcessing.setTurnaroundTime(cpuCurrentTotalTimeUnits-processCurrentlyProcessing.getArrivalTime());\n doneQueue.add(processCurrentlyProcessing);\n processCurrentlyProcessing = null; \n }\n //Service time is not up but quantum time is up.\n else\n { \n //Process is not done yet, so add it back to RR queue\n processCurrentlyProcessing.setCpuBurstTime(serviceTime); \n tempQueue.add(processCurrentlyProcessing);\n processCurrentlyProcessing = null; \n }\n \n }\n //No process is currently running, CPU is idle for this current time unit\n else\n {\n cpuCurrentTotalTimeUnits++;\n idleTotalTime++;\n } \n }\n \n //Print it out\n System.out.println(\"\\nRound Robin: \\n\");\n System.out.println(\"Total Time required is \" + cpuCurrentTotalTimeUnits + \" time units\");\n System.out.println(\"Idle Total Time: \"+idleTotalTime);\n //System.out.println(\"Cpu Current Total Time: \"+cpuCurrentTotalTimeUnits);\n //System.out.println(\"Division\"+(float)(idleTotalTime/cpuCurrentTotalTimeUnits));\n System.out.println(\"CPU Utilization is \" + String.format(\"%.2f\", 100*(1.0f-(((float)idleTotalTime)/cpuCurrentTotalTimeUnits))) +\"%\\n\");\n\n if(detailedMode)\n {\n //Sort the done queue by Process Number\n Collections.sort(doneQueue, new Comparator<SimProcess>()\n {\n public int compare(SimProcess p1, SimProcess p2)\n {\n return (p1.getProcessNumber() - p2.getProcessNumber());\n }\n });\n \n //Print out with details for each process\n for(SimProcess p: doneQueue)\n {\n System.out.println(\"Process \" + p.getProcessNumber() + \": \\nArrival Time: \" + p.getArrivalTime() + \"\\nService Time: \" + p.getCpuBurstTime() + \" units \\nTurnaround Time: \" + p.getTurnaroundTime() + \" units \\nFinished Time: \" + (p.getArrivalTime() + p.getTurnaroundTime() + \" units \\n\"));\n }\n } \n }\n }", "public void FCFS() {\n\t\tSystem.out.println(\"Please enter the number of the process: \");\n\t\tScanner keyboard=new Scanner(System.in);\n\t\tint a=keyboard.nextInt();\n\t\tset_process_number(a);\n\t\t\n\t\t//using the command line, makes the user define the number of burst cycles for this process\n\t\t//dont forget to correct these loops\n\t\tSystem.out.println(\"Please enter the number of burst cycles of this process: \");\n\t\tint b= keyboard.nextInt();\n\t\tboolean r1=true;\n\t\twhile(r1=true){\n\t\t\tif( 2>b || b>20){\n\t\t\t\tSystem.out.println(\"Invalid value, please try again\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tset_process_burst_number(b);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//using the command line, makes the user define the maximum burst time for a process in one cycle\n\t\tSystem.out.println(\"Please enter the max length of burst cycles: \");\n\t\tint c= keyboard.nextInt();\n\t\tboolean r2=true;\n\t\twhile(r2=true){\n\t\t\tif(2>c || c>1000){\n\t\t\t\tSystem.out.println(\"Invalid value, please try again\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tset_process_burst_number(c);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//using the command line, makes the user define the amount of time needed for the process to finish\n\t\tSystem.out.println(\"Please enter the time needed to finish this process: \");\n\t\tint d= keyboard.nextInt();\n\t\tset_time_needed(d);\n\t\t\n\t\tSystem.out.println(\"Implemented process \"\n\t\t\t\t + get_process_number() + \" with \"+ \n\t\t\t\t\t\t\tget_process_burst_number() + \" burst cycles, with \" + \n\t\t\t\t\t\t\tget_process_max_burst()+ \" as maximum burst per cycle \"+ \", and it needs \"+ \n\t\t\t\t\t\t\tget_time_needed()+ \" to finish.\\n\");\n\t\t\n\t}", "public void run() {\n if(_dest!=null) {\n approachDest();\n return;\n }\n if(Rand.d100(_frequency)) {\n MSpace m = in.b.getEnvironment().getMSpace();\n if(!m.isOccupied()) {\n Logger.global.severe(in.b+\" has come unstuck\");\n return;\n }\n MSpace[] sur = m.surrounding();\n int i = Rand.om.nextInt(sur.length);\n for(int j=0;j<sur.length;j++) {\n if(sur[i]!=null&&sur[i].isWalkable()&&accept(sur[i])) {\n in.b.getEnvironment().face(sur[i]);\n MSpace sp = in.b.getEnvironment().getMSpace().move(in.b.getEnvironment().getFacing());\n if(sp!=null&&(in.b.isBlind()||!sp.isOccupied())) {\n _move.setBot(in.b);\n _move.perform();\n }\n break;\n }\n if(++i==sur.length) {\n i = 0;\n }\n }\n }\n else if(_dest==null&&Rand.d100(_travel)) {\n _dest = findNewSpace();\n //System.err.println(in.b+\" DEST: \"+_dest);\n }\n }", "public void runAStar() \n\t{\n\t\tLinkedList<GameState> que = new LinkedList<GameState>();//new liked list to hold all the legal moves\n\t\topen.add(startS);//add the start node to the open queue so the while loop can start\n\t\tcountOpen++;\n\t\tint c = 0;\n\t\t//while the open que is not empty and it has not reached its max then run the algorithm\n\t\t//this also prevents the code from running forever if the goal state is not reachable\n\t\twhile(countOpen<1000 && !open.isEmpty())//&& c<6) \n\t\t{\n\t\t\tGameState curr = open.peek();//set the curr node to what we think is the games tate with the loewst F(n)\n\t\t\t//GameState temp = open.remove();\n\t\t\tfor(GameState v : open)//this goes through all the gamestates in the open lists \n\t\t\t{\n\t\t\t\tif(v.getPriority()<curr.getPriority()) //this checks to see if there are any other gamestates in the open list with a lower f(n)\n\t\t\t\t{\n\t\t\t\t\tcurr = v;//if there is set curr to that gamestate\n\t\t\t//\t\tSystem.out.println(\"this is the small curr node:\");\n\t\t\t//\t\tcurr.printGameState();\n\t\t\t\t}\n\t\t\t}\n\t\t\topen.remove(curr);////set the current node to the beingin of open and remove curr node from open\n\t\t\t//System.out.println(\"this is the curr node:\");\n\t\t\t//curr.printGameState();\n\t\t\tcountOpen--;\n\t\t\tclosed.add(curr);//add curr node to the closed list\n\t\t\tcountClosed++;\n\t\t\tif(isGoalState(curr, goalS)) //check to see if the current games state is the goal\n\t\t\t{\n\t\t\t\tprintAns(closed);//print the order of how it got to the goal state\n\t\t\t\tbreak;//get out of the loop\n\t\t\t}\n\t\t\telse //if curr is not the goal state\n\t\t\t{\n\t\t\t\tque = successor(curr);//find all of the legal moves from the current game state\n\t\t\t\t//System.out.println(\"This is the curr\");\n\t\t\t\t//printClosed(que);\n\t\t\t\t//printOpen(open);\n\t\t\t\t//System.out.println(\"This is the closed\");\n\t\t\t\t//printClosed(closed);\n\t\t\t\t//open.\n\t\t\t\tboolean bk = false;//this is a booklean to determine if we need to break out of the loop\n\t\t\t\tfor(GameState i: que) //go through all of the legal moves\n\t\t\t\t{\n\t\t\t\t\tif(isGoalState(i, goalS)) //if any of the legal moves is the goal state then\n\t\t\t\t\t{\n\t\t\t\t\t\tclosed.add(i);//add the legal move to the closed\n\t\t\t\t\t\tcountClosed++;\n\t\t\t\t\t\tprintAns(closed);//print the order of how it got to the goal state\n\t\t\t\t\t\tbk = true;//set the need to break to true\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (bk) {break;}//break out of the loop\n\t\t\t\t//this is where we check to see if any of the legal moves are already in closed\n\t\t\t\tfor(GameState i: closed) //loop through the closed \n\t\t\t\t{\n\t\t\t\t\tfor(GameState z: que) //loop thorugh the legal moves\n\t\t\t\t\t{\n\t\t\t\t\t\tif(same(i, z)) //if the two are the same then\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tz.setVisited(true);//set visited to true so we dont accidentally add it to the open list\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(GameState i: que) ///lets loop though the legal moves again\n\t\t\t\t{\n\t\t\t\t\tif(i.getVisited()!=true )//&& !same(i, z))if the gamestate not in closed\n\t\t\t\t\t{\n\t\t\t\t\t\topen.add(i);//add the game state to the open queue\n\t\t\t\t\t\tcountOpen++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tc++;\n\t\t\t}\n\t\t}\n\t}", "public static void main(String... args)\n {\n String path = Configuration.instance.dataDirectory + Configuration.instance.fileSeparator;\n String suffix = \"_default.xml\";\n String algorithm = \"\";\n boolean paramSeach = false;\n int maxGens = 10000;\n\n readItems();\n\n // Parsing CLI\n for (int i = 0; i < args.length; i++)\n {\n if (args[i].equals(\"-algorithm\"))\n {\n i++;\n algorithm = args[i];\n }\n\n if (args[i].equals(\"-configuration\"))\n {\n i++;\n if (args[i].equals(\"best\"))\n suffix = \"_best.xml\";\n }\n\n if (args[i].equals(\"-search_best_configuration\"))\n paramSeach = true;\n }\n\n if (paramSeach) suffix = \"_best.xml\";\n double[] hyperparameters = loadConfig(path + algorithm + suffix);\n System.out.println(\"Chosen algorithm: \" + algorithm);\n\n double time = System.currentTimeMillis();\n // Running correct algorithm according to CLI\n switch (algorithm)\n {\n case \"ga\":\n if (paramSeach)\n new GARecommender().recommend();\n else\n new Population(maxGens, hyperparameters).run();\n break;\n case \"sa\":\n case \"best-algorithm\":\n if (paramSeach)\n new SARecommender().recommend();\n else\n new Annealing(hyperparameters).run();\n break;\n case \"aco\":\n if (paramSeach)\n new ACORecommender().recommend();\n else\n new AntColony(maxGens, hyperparameters).run();\n break;\n case \"pso\":\n if (paramSeach)\n new PSORecommender().recommend();\n else\n new Swarm(maxGens * 10, hyperparameters).run(); // 10x max gens because PSO is does less per gen and is much faster\n break;\n default:\n System.out.println(\"Could not find algorithm with name \" + algorithm + \". Options are: ga, sa, aco, pso\");\n break;\n }\n System.out.println(\"Finished in: \" + ((System.currentTimeMillis() - time) / 1000) + \"s\");\n }", "@Override\n\tpublic void search() {\n\t\tpq = new IndexMinPQ<>(graph.getNumberOfStations());\n\t\tpq.insert(startIndex, distTo[startIndex]);\n\t\twhile (!pq.isEmpty()) {\n\t\t\tint v = pq.delMin();\n\t\t\tnodesVisited.add(graph.getStation(v));\n\t\t\tnodesVisitedAmount++;\n\t\t\tfor (Integer vertex : graph.getAdjacentVertices(v)) {\t\n\t\t\t\trelax(graph.getConnection(v, vertex));\n\t\t\t}\n\t\t}\n\t\tpathWeight = distTo[endIndex];\n\t\tpathTo(endIndex);\n\t}", "public List<Graph> search() {\n\n long start = System.currentTimeMillis();\n TetradLogger.getInstance().log(\"info\", \"Starting ION Search.\");\n logGraphs(\"\\nInitial Pags: \", this.input);\n TetradLogger.getInstance().log(\"info\", \"Transfering local information.\");\n long steps = System.currentTimeMillis();\n\n /*\n * Step 1 - Create the empty graph\n */\n List<Node> varNodes = new ArrayList<>();\n for (String varName : variables) {\n varNodes.add(new GraphNode(varName));\n }\n Graph graph = new EdgeListGraph(varNodes);\n\n /*\n * Step 2 - Transfer local information from the PAGs (adjacencies\n * and edge orientations)\n */\n // transfers edges from each graph and finds definite noncolliders\n transferLocal(graph);\n // adds edges for variables never jointly measured\n for (NodePair pair : nonIntersection(graph)) {\n graph.addEdge(new Edge(pair.getFirst(), pair.getSecond(), Endpoint.CIRCLE, Endpoint.CIRCLE));\n }\n TetradLogger.getInstance().log(\"info\", \"Steps 1-2: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n System.out.println(\"step2\");\n System.out.println(graph);\n\n /*\n * Step 3\n *\n * Branch and prune step that blocks problematic undirectedPaths, possibly d-connecting undirectedPaths\n */\n steps = System.currentTimeMillis();\n Queue<Graph> searchPags = new LinkedList<>();\n // place graph constructed in step 2 into the queue\n searchPags.offer(graph);\n // get d-separations and d-connections\n List<Set<IonIndependenceFacts>> sepAndAssoc = findSepAndAssoc(graph);\n this.separations = sepAndAssoc.get(0);\n this.associations = sepAndAssoc.get(1);\n Map<Collection<Node>, List<PossibleDConnectingPath>> paths;\n// Queue<Graph> step3PagsSet = new LinkedList<Graph>();\n HashSet<Graph> step3PagsSet = new HashSet<>();\n Set<Graph> reject = new HashSet<>();\n // if no d-separations, nothing left to search\n if (separations.isEmpty()) {\n // makes orientations preventing definite noncolliders from becoming colliders\n // do final orientations\n// doFinalOrientation(graph);\n step3PagsSet.add(graph);\n }\n // sets length to iterate once if search over path lengths not enabled, otherwise set to 2\n int numNodes = graph.getNumNodes();\n int pl = numNodes - 1;\n if (pathLengthSearch) {\n pl = 2;\n }\n // iterates over path length, then adjacencies\n for (int l = pl; l < numNodes; l++) {\n if (pathLengthSearch) {\n TetradLogger.getInstance().log(\"info\", \"Braching over path lengths: \" + l + \" of \" + (numNodes - 1));\n }\n int seps = separations.size();\n int currentSep = 1;\n int numAdjacencies = separations.size();\n for (IonIndependenceFacts fact : separations) {\n if (adjacencySearch) {\n TetradLogger.getInstance().log(\"info\", \"Braching over path nonadjacencies: \" + currentSep + \" of \" + numAdjacencies);\n }\n seps--;\n // uses two queues to keep up with which PAGs are being iterated and which have been\n // accepted to be iterated over in the next iteration of the above for loop\n searchPags.addAll(step3PagsSet);\n recGraphs.add(searchPags.size());\n step3PagsSet.clear();\n while (!searchPags.isEmpty()) {\n System.out.println(\"ION Step 3 size: \" + searchPags.size());\n double currentUsage = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n if (currentUsage > maxMemory) maxMemory = currentUsage;\n // deques first PAG from searchPags\n Graph pag = searchPags.poll();\n // Part 3.a - finds possibly d-connecting undirectedPaths between each pair of nodes\n // known to be d-separated\n List<PossibleDConnectingPath> dConnections = new ArrayList<>();\n // checks to see if looping over adjacencies\n if (adjacencySearch) {\n for (Collection<Node> conditions : fact.getZ()) {\n // checks to see if looping over path lengths\n if (pathLengthSearch) {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPathsOfLength\n (pag, fact.getX(), fact.getY(), conditions, l));\n } else {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPaths\n (pag, fact.getX(), fact.getY(), conditions));\n }\n }\n } else {\n for (IonIndependenceFacts allfact : separations) {\n for (Collection<Node> conditions : allfact.getZ()) {\n // checks to see if looping over path lengths\n if (pathLengthSearch) {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPathsOfLength\n (pag, allfact.getX(), allfact.getY(), conditions, l));\n } else {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPaths\n (pag, allfact.getX(), allfact.getY(), conditions));\n }\n }\n }\n }\n // accept PAG go to next PAG if no possibly d-connecting undirectedPaths\n if (dConnections.isEmpty()) {\n// doFinalOrientation(pag);\n// Graph p = screenForKnowledge(pag);\n// if (p != null) step3PagsSet.add(p);\n step3PagsSet.add(pag);\n continue;\n }\n // maps conditioning sets to list of possibly d-connecting undirectedPaths\n paths = new HashMap<>();\n for (PossibleDConnectingPath path : dConnections) {\n List<PossibleDConnectingPath> p = paths.get(path.getConditions());\n if (p == null) {\n p = new LinkedList<>();\n }\n p.add(path);\n paths.put(path.getConditions(), p);\n }\n // Part 3.b - finds minimal graphical changes to block possibly d-connecting undirectedPaths\n List<Set<GraphChange>> possibleChanges = new ArrayList<>();\n for (Set<GraphChange> changes : findChanges(paths)) {\n Set<GraphChange> newChanges = new HashSet<>();\n for (GraphChange gc : changes) {\n boolean okay = true;\n for (Triple collider : gc.getColliders()) {\n\n if (pag.isUnderlineTriple(collider.getX(), collider.getY(), collider.getZ())) {\n okay = false;\n break;\n }\n\n }\n if (!okay) {\n continue;\n }\n for (Triple collider : gc.getNoncolliders()) {\n if (pag.isDefCollider(collider.getX(), collider.getY(), collider.getZ())) {\n okay = false;\n break;\n }\n }\n if (okay) {\n newChanges.add(gc);\n }\n }\n if (!newChanges.isEmpty()) {\n possibleChanges.add(newChanges);\n } else {\n possibleChanges.clear();\n break;\n }\n }\n float starthitset = System.currentTimeMillis();\n Collection<GraphChange> hittingSets = IonHittingSet.findHittingSet(possibleChanges);\n recHitTimes.add((System.currentTimeMillis() - starthitset) / 1000.);\n // Part 3.c - checks the newly constructed graphs from 3.b and rejects those that\n // cycles or produce independencies known not to occur from the input PAGs or\n // include undirectedPaths from definite nonancestors\n for (GraphChange gc : hittingSets) {\n boolean badhittingset = false;\n for (Edge edge : gc.getRemoves()) {\n Node node1 = edge.getNode1();\n Node node2 = edge.getNode2();\n Set<Triple> triples = new HashSet<>();\n triples.addAll(gc.getColliders());\n triples.addAll(gc.getNoncolliders());\n if (triples.size() != (gc.getColliders().size() + gc.getNoncolliders().size())) {\n badhittingset = true;\n break;\n }\n for (Triple triple : triples) {\n if (node1.equals(triple.getY())) {\n if (node2.equals(triple.getX()) ||\n node2.equals(triple.getZ())) {\n badhittingset = true;\n break;\n }\n }\n if (node2.equals(triple.getY())) {\n if (node1.equals(triple.getX()) ||\n node1.equals(triple.getZ())) {\n badhittingset = true;\n break;\n }\n }\n }\n if (badhittingset) {\n break;\n }\n for (NodePair pair : gc.getOrients()) {\n if ((node1.equals(pair.getFirst()) && node2.equals(pair.getSecond())) ||\n (node2.equals(pair.getFirst()) && node1.equals(pair.getSecond()))) {\n badhittingset = true;\n break;\n }\n }\n if (badhittingset) {\n break;\n }\n }\n if (!badhittingset) {\n for (NodePair pair : gc.getOrients()) {\n for (Triple triple : gc.getNoncolliders()) {\n if (pair.getSecond().equals(triple.getY())) {\n if (pair.getFirst().equals(triple.getX()) &&\n pag.getEndpoint(triple.getZ(), triple.getY()).equals(Endpoint.ARROW)) {\n badhittingset = true;\n break;\n\n }\n if (pair.getFirst().equals(triple.getZ()) &&\n pag.getEndpoint(triple.getX(), triple.getY()).equals(Endpoint.ARROW)) {\n badhittingset = true;\n break;\n }\n }\n if (badhittingset) {\n break;\n }\n }\n if (badhittingset) {\n break;\n }\n }\n }\n if (badhittingset) {\n continue;\n }\n Graph changed = gc.applyTo(pag);\n // if graph change has already been rejected move on to next graph\n if (reject.contains(changed)) {\n continue;\n }\n // if graph change has already been accepted move on to next graph\n if (step3PagsSet.contains(changed)) {\n continue;\n }\n // reject if null, predicts false independencies or has cycle\n if (predictsFalseIndependence(associations, changed)\n || changed.existsDirectedCycle()) {\n reject.add(changed);\n }\n // makes orientations preventing definite noncolliders from becoming colliders\n // do final orientations\n// doFinalOrientation(changed);\n // now add graph to queue\n\n// Graph p = screenForKnowledge(changed);\n// if (p != null) step3PagsSet.add(p);\n step3PagsSet.add(changed);\n }\n }\n // exits loop if not looping over adjacencies\n if (!adjacencySearch) {\n break;\n }\n }\n }\n TetradLogger.getInstance().log(\"info\", \"Step 3: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n Queue<Graph> step3Pags = new LinkedList<>(step3PagsSet);\n\n /*\n * Step 4\n *\n * Finds redundant undirectedPaths and uses this information to expand the list\n * of possible graphs\n */\n steps = System.currentTimeMillis();\n Map<Edge, Boolean> necEdges;\n Set<Graph> outputPags = new HashSet<>();\n\n while (!step3Pags.isEmpty()) {\n Graph pag = step3Pags.poll();\n necEdges = new HashMap<>();\n // Step 4.a - if x and y are known to be unconditionally associated and there is\n // exactly one trek between them, mark each edge on that trek as necessary and\n // make the tiples on the trek definite noncolliders\n // initially mark each edge as not necessary\n for (Edge edge : pag.getEdges()) {\n necEdges.put(edge, false);\n }\n // look for unconditional associations\n for (IonIndependenceFacts fact : associations) {\n for (List<Node> nodes : fact.getZ()) {\n if (nodes.isEmpty()) {\n List<List<Node>> treks = treks(pag, fact.x, fact.y);\n if (treks.size() == 1) {\n List<Node> trek = treks.get(0);\n List<Triple> triples = new ArrayList<>();\n for (int i = 1; i < trek.size(); i++) {\n // marks each edge in trek as necessary\n necEdges.put(pag.getEdge(trek.get(i - 1), trek.get(i)), true);\n if (i == 1) {\n continue;\n }\n // makes each triple a noncollider\n pag.addUnderlineTriple(trek.get(i - 2), trek.get(i - 1), trek.get(i));\n }\n }\n // stop looping once the empty set is found\n break;\n }\n }\n }\n // Part 4.b - branches by generating graphs for every combination of removing\n // redundant undirectedPaths\n boolean elimTreks;\n // checks to see if removing redundant undirectedPaths eliminates every trek between\n // two variables known to be nconditionally assoicated\n List<Graph> possRemovePags = possRemove(pag, necEdges);\n double currentUsage = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n if (currentUsage > maxMemory) maxMemory = currentUsage;\n for (Graph newPag : possRemovePags) {\n elimTreks = false;\n // looks for unconditional associations\n for (IonIndependenceFacts fact : associations) {\n for (List<Node> nodes : fact.getZ()) {\n if (nodes.isEmpty()) {\n if (treks(newPag, fact.x, fact.y).isEmpty()) {\n elimTreks = true;\n }\n // stop looping once the empty set is found\n break;\n }\n }\n }\n // add new PAG to output unless a necessary trek has been eliminated\n if (!elimTreks) {\n outputPags.add(newPag);\n }\n }\n }\n outputPags = removeMoreSpecific(outputPags);\n// outputPags = applyKnowledge(outputPags);\n\n TetradLogger.getInstance().log(\"info\", \"Step 4: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n\n /*\n * Step 5\n *\n * Generate the Markov equivalence classes for graphs and accept only\n * those that do not predict false d-separations\n */\n steps = System.currentTimeMillis();\n Set<Graph> outputSet = new HashSet<>();\n for (Graph pag : outputPags) {\n Set<Triple> unshieldedPossibleColliders = new HashSet<>();\n for (Triple triple : getPossibleTriples(pag)) {\n if (!pag.isAdjacentTo(triple.getX(), triple.getZ())) {\n unshieldedPossibleColliders.add(triple);\n }\n }\n\n PowerSet<Triple> pset = new PowerSet<>(unshieldedPossibleColliders);\n for (Set<Triple> set : pset) {\n Graph newGraph = new EdgeListGraph(pag);\n for (Triple triple : set) {\n newGraph.setEndpoint(triple.getX(), triple.getY(), Endpoint.ARROW);\n newGraph.setEndpoint(triple.getZ(), triple.getY(), Endpoint.ARROW);\n }\n doFinalOrientation(newGraph);\n }\n for (Graph outputPag : finalResult) {\n if (!predictsFalseIndependence(associations, outputPag)) {\n Set<Triple> underlineTriples = new HashSet<>(outputPag.getUnderLines());\n for (Triple triple : underlineTriples) {\n outputPag.removeUnderlineTriple(triple.getX(), triple.getY(), triple.getZ());\n }\n outputSet.add(outputPag);\n }\n }\n }\n\n// outputSet = applyKnowledge(outputSet);\n outputSet = checkPaths(outputSet);\n\n output.addAll(outputSet);\n TetradLogger.getInstance().log(\"info\", \"Step 5: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n runtime = ((System.currentTimeMillis() - start) / 1000.);\n logGraphs(\"\\nReturning output (\" + output.size() + \" Graphs):\", output);\n double currentUsage = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n if (currentUsage > maxMemory) maxMemory = currentUsage;\n return output;\n }", "public void solve() {\n// BruteForceSolver bfs = new BruteForceSolver(pointList);\n// bfs.solve(); // prints the best polygon, its area, and time needed\n// System.out.println(\"-------------\");\n\n// StarshapedSolver ss = new StarshapedSolver(pointList);\n// foundPolygons = ss.solve();\n// System.out.println(\"-------------\");\n\n// RandomAddPointHeuristic ra = new RandomAddPointHeuristic(pointList);\n// foundPolygons = ra.solve(750);\n// System.out.println(\"-------------\");\n\n// GreedyAddPointHeuristic ga = new GreedyAddPointHeuristic(pointList,false);\n// foundPolygons = ga.solve(750);\n// System.out.println(\"-------------\");\n\n// long time = 4000;\n// GreedyAddPointHeuristic gaInit = new GreedyAddPointHeuristic(pointList,false);\n// Polygon2D initSolution = gaInit.solve(time*1/4).get(0);\n// System.out.println(initSolution.area);\n// System.out.println(initSolution);\n//\n// SimulatedAnnealing sa = new SimulatedAnnealing(pointList,initSolution,3);\n// foundPolygons.addAll(sa.solve(time-gaInit.timeInit,2,0.005,0.95));\n// System.out.println(sa.maxPolygon);\n// System.out.println(\"-------------\");\n\n// foundPolygons.addAll(findMultiplePolygonsStarshaped(8,0.6));\n\n }", "public void initialSearch() {\n Kinematics k = getTrustedRobotKinematics();\n //logger.info(\"Kinematics position is \" + k.getPosition());\n\n // Set the default planner.\n setPlanner(PlannerType.TRAPEZOIDAL);\n\n // For gateway no zones were defined yet.\n m_robot.setCheckZones(false);\n\n // Do a preliminary trajectory in a lawnmower pattern.\n Point startPoint = k.getPosition();\n runTrajectory(startPoint, m_lawnmowerTrajectory);\n m_initialSearchDone = true;\n }", "private static void run() throws InterruptedException {\r\n\t\tif (runAllAlgorithms) {\r\n\t\t\trunAll();\r\n\t\t}\r\n\t\telse {\r\n\t\t\trunIndividual(algorithmCode, algorithmParameters);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tScheduling_algo SA = new Scheduling_algo();\n\t\tSA.input();\n\t\tSA.FCFS();\n\t\tSA.SJF();\n\t\tSA.roundRobin();\n\t\tSA.priority();\n\t}", "public void startSimulation() {\n\t\t// process the inputs\n\t\ttry {\n\t\t\tthis.numberOfServers = Integer.parseInt(frame.getNumberOfQueues());\n\t\t\tthis.minProcessingTime = Integer.parseInt(frame.getMinServiceTime());\n\t\t\tthis.maxProcessingTime = Integer.parseInt(frame.getMaxServiceTime());\n\t\t\tthis.numberOfClients = Integer.parseInt(frame.getNumberOfClients());\n\t\t\tthis.timeLimit = Integer.parseInt(frame.getSimulationInterval());\n\t\t\tthis.selectionPolicy = frame.getSelectionPolicy();\n\t\t\tthis.minArrivingTime = Integer.parseInt(frame.getMinArrivingTime());\n\t\t\tthis.maxArrivingTime = Integer.parseInt(frame.getMaxArrivingTime());\n\t\t\tthis.maxTasksPerServer = Integer.parseInt(frame.getTasksPerServer());\n\t\t\tthis.simulationSpeed = Integer.parseInt(frame.getSimulationSpeed());\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tgenerateNRandomTasks();\n\t\tscheduler = new Scheduler(this.numberOfServers, this.maxTasksPerServer, this);\n\t\tscheduler.changeStrategy(this.selectionPolicy);\n\t\tscheduler.setMaxTasksPerServer(this.maxTasksPerServer);\n\t\t// initialise emptyQueueTime\n\t\temptyQueueTime = new int[this.numberOfServers];\n\t\tfor (int i = 0; i < this.numberOfServers; i++)\n\t\t\tthis.emptyQueueTime[i] = 0;\n\n\t\tThread th = new Thread(this);\n\t\tth.start();\n\t}", "public void run() {\n\n try {\n startup();\n } catch (UnknownHostException e) {\n e.printStackTrace();\n currentPosition = destination;\n }\n\n while (currentPosition.longitude != destination.longitude && currentPosition.latitude != destination.latitude) {\n try {\n while ((routePositions.size() - 1) > nextRoutePositionIndex && currentPosition.getLongitude() != this.routePositions.get(nextRoutePositionIndex).getLongitude() && currentPosition.getLatitude() != this.routePositions.get(nextRoutePositionIndex).getLatitude()) {\n Thread.sleep(TIMEOUT);\n\n //diceBraking();\n properBraking();\n accelerate();\n calculateDirection(currentPosition, this.routePositions.get(nextRoutePositionIndex));\n currentPosition = drive(\n currentPosition.getLatitude(), currentPosition.getLongitude(),\n this.routePositions.get(nextRoutePositionIndex).getLatitude(), this.routePositions.get(nextRoutePositionIndex).getLongitude()\n );\n\n\n publishPosition();\n if (currentPosition.latitude == currentPosition.latitude && currentPosition.longitude == destination.longitude) {\n break;\n }\n System.out.println(\"id: \" + id + \" Pos: \" + currentPosition.latitude + \"|\" + currentPosition.longitude);\n }\n if (nextRoutePositionIndex < routePositions.size()) {\n nextRoutePositionIndex++;\n } else {\n break;\n }\n } catch (InterruptedException | MalformedURLException exc) {\n exc.printStackTrace();\n }\n\n }\n\n for (int i = 0; i < 100; i++) {\n System.out.println(\"FINISHED \" + id);\n }\n\n try {\n publishFinished();\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n }", "public synchronized void startWatching(){\n\t\twhile(true) {\n\t\t\tif(Clock.moviesLeft >0) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep((long)(Math.random() * 1000));\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tsynchronized(Driver.canWatchLock) {\n\t\t\t\t\t//if the session is over\n\t\t\t\t\tif(canWatch()){\n\t\n\t\t\t\t\t\t//TODO: What happens when the theater is open or has seats\n\t\t\t\t\t\t// waiting for signal from the clock thread\n\t\t\t\t\t\tDriver.currentVisitors++;\n\t\t\t\t\t\t//Clock.movieScreening();\n\t\t\t\t\t\tSystem.out.println( name + \" Im going into the theater my ticket is \" + Driver.currentVisitors);\n\t\n\t\t\t\t\t}else { // we cannot watch yet \n\t\t\t\t\t\t\n\t\t\t\t\t\t//System.out.println(name + \", Leaving the room and waiting in the lobby\");\n\t\t\t\t\t\tDriver.waitingQ++;\n\t\t\t\t\t\tSystem.out.println(\"WAITING Q Before the can watch lock: \"+ Driver.waitingQ);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tDriver.canWatchLock.wait();\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(name + \", Am off the waiting queue\");\n\t\t\t\t\t\t//end of waiting \n\t\t\t\t\t}//end of else\n\t\t\t\t}//end of the synchronized scope\n\t\t\t\t\n\t\t\t\tif(Driver.currentVisitors == 8 ) {\n\t\t\t\t\tSystem.out.println(\"IM GONNA TRY TO START THE MOVIE\");\n\t\t\t\t\tsynchronized(Driver.startTheMovie) {\n\t\t\t\t\t\tDriver.startTheMovie.notify();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsynchronized(Driver.inTheaterLock) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tDriver.inTheaterLock.wait();\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}\n\t\t\t\tsynchronized(Driver.canWatchLock) {\n\t\t\t\t\tDriver.canWatchLock.notify();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tDriver.currentVisitors = 0;\n\t\t\t\tDriver.waitingQ--;\n\t\t\t}\n\t\t}\n\t\t\t\n\t}", "public static void main(String[] args) {\n\n int n = in.nextInt();\n int q = in.nextInt();\n int[] arr = new int[n];\n\n for (int i = 0; i < n; i++) {\n arr[i] = in.nextInt();\n }\n DiskSchedulerInfo dsi = new DiskSchedulerInfo(arr, q, 200);\n ISchedule[] scs = new ISchedule[]{\n new FCFS(dsi),\n new SSTF(dsi),\n new SCAN(dsi),\n new C_SCAN(dsi),\n new LOOK(dsi),\n new C_LOOK(dsi),\n new Optimized(dsi)\n };\n for (ISchedule sc : scs) {\n System.out.println(\"---------------------------\");\n System.out.println(sc.getClass().getName());\n System.out.println(\"---------------------------\");\n\n sc.simulate();\n Movement.printMovements(dsi.headStart, sc.getMovements());\n System.out.print(\"Order of processing: \");\n for (int v : sc.getOrderOfProcessing()) {\n System.out.print(v + \" \");\n }\n System.out.println();\n System.out.println(\"Total Movement is: \" + Movement.getTotalMovements(sc.getMovements()));\n }\n }", "public List<Vertex> runTabuSearch() {\r\n\t\tBestPath = convertPath(ClothestPath.findCycle(this.vertexGraph, this.edgeGraph, this.isOriented));\r\n\t\tLastPath = new ArrayList<Vertex>(BestPath);\r\n\t\tint BestEval = fit(BestPath);\r\n\t\thistoBestPath.add(new ArrayList<Vertex>(BestPath));\r\n\r\n\t\tint iteration_actuel = 0;\r\n\t\twhile (iteration_actuel < this.numberIteration) {\r\n\t\t\tLastPath = newPath();\r\n\t\t\t\r\n\t\t\tif(LastPath.isEmpty()) {\r\n\t\t\t\titerationReal = iteration_actuel;\r\n\t\t\t\treturn BestPath;\r\n\t\t\t}\r\n\r\n\t\t\tif (fit(LastPath) < BestEval) {\r\n\t\t\t\tBestPath = new ArrayList<Vertex>(LastPath);\r\n\t\t\t\tBestEval = fit(LastPath);\r\n\t\t\t\thistoBestPath.add(new ArrayList<Vertex>(BestPath));\r\n\t\t\t}\r\n\r\n\t\t\titeration_actuel++;\r\n\t\t}\r\n\r\n\t\titerationReal = iteration_actuel;\r\n\t\treturn BestPath;\r\n\t}", "public void run() {\n\t\tString result;\n\t\tthis.running = true;\n\t\tdouble position[] = new double[3];\n\t\tdouble measures[] = new double[360];\n\n\t\twhile (running) {\n\t\t\ttry {\n\t\t\t\tPipedInputStream pipeIn = new PipedInputStream();\n\t\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(pipeIn));\n\t\t\t\tPrintWriter output = new PrintWriter(new PipedOutputStream(pipeIn), true);\n\t\t\t\trobot.setOutput(output);\n\n\t\t\t\t//ases where a variable value is never used after its assignment, i.e.:\n\t\t\t\tSystem.out.println(\"intelligence running\");\n\n\t\t\t\trobot.sendCommand(\"R1.GETPOS\");\n\t\t\t\tresult = input.readLine();\n\t\t\t\tparsePosition(result, position);\n\t\t\t\trecords.clear();\n\t\t\t\trobot.sendCommand(\"L1.SCAN\");\n\t\t\t\tresult = input.readLine();\n\t\t\t\tif (result.substring(0, 4).equalsIgnoreCase(\"SCAN\")) {\n\t\t\t\t\tparseMeasures(result, measures);\n\t\t\t\t}\n\t\t\t\trobot.sendCommand(\"S1.SCAN\");\n\t\t\t\tresult = input.readLine();\n\t\t\t\tif (result.substring(0, 4).equalsIgnoreCase(\"SCAN\")) {\n\t\t\t\t\tparseMeasures(result, measures);\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tif (result.substring(0, 4).equalsIgnoreCase(\"SCAN\")) {\n\t\t\t\t\t\t//addCommandToRobot(result,measures);\n\t\t\t\t\t\t//parseMeasures(result, measures);\n\t\t\t\t\t\tif (!addCommand()) //If it doesn't add any command go forward\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\trobot.sendCommand(\"P1.MOVEFW 15\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.err.println(\"E! :(\");\n\t\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t\t}\n\t\t\t\tmap.drawLaserScan(position, measures);\n\n\t\t\t\tpipeIn.close();\n\t\t\t\tinput.close();\n\t\t\t\toutput.close();\n\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tSystem.err.println(\"IOE! :(\");\n\t\t\t\tSystem.err.println(\"execution stopped\");\n\t\t\t\trunning = false;\n\t\t\t}\n\t\t}\n\t}", "public void initAlgorithm() {\n executor.scheduleAtFixedRate(scheduledThoughtsProducer::periodicalThoughtsCheck, 1, 5,TimeUnit.MINUTES);\n// executor.scheduleAtFixedRate(scheduledThoughtsProducer::periodicalThoughtsCheck, 2, 10,TimeUnit.SECONDS);\n\n // every day perform random thought dice roll\n // also roll for random time: 10am - 9pm\n Cron4j.scheduler.schedule(Cron4j.EVERY_DAY_AT_10_AM, () -> {\n int produceThoughtDice = (int) (Math.random() * 3); // 66% yes, 33% no\n if (produceThoughtDice < 2) {\n int timeShift = (int) (Math.random() * 12); // 0-11\n executor.schedule(scheduledThoughtsProducer::periodicalThoughtProduceSuitable, timeShift, TimeUnit.HOURS);\n } else {\n System.out.println(\"Thought not produced today because of the dice: \" + produceThoughtDice);\n }\n });\n// Cron4j.scheduler.schedule(Cron4j.EVERY_MINUTE, () -> {\n// executor.schedule(scheduledThoughtsProducer::periodicalThoughtProduceSuitable, 0, TimeUnit.SECONDS);\n// });\n\n // every week perform a statistical overview\n // should be not very long and with a lot of variations\n Cron4j.scheduler.schedule(Cron4j.EVERY_WEEK_SUNDAY_18_PM, () -> {\n// Cron4j.scheduler.schedule(Cron4j.EVERY_MINUTE, () -> {\n executor.schedule(scheduledThoughtsProducer::periodicalWeeklyThoughts, 0, TimeUnit.SECONDS);\n });\n\n // start the scheduler\n Cron4j.scheduler.start();\n }", "private static void runNeedleSimulation() {\n\t\tint iterations = numbersOfIterations(new Scanner(System.in));\n\t\tint hits = needleSimulation(iterations);\n\t\tdouble pi = piCalculation(iterations, hits);\n\t\tSystem.out.println(pi);\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\t\n\t\t\tgenerateVisitors();\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tgenerateOutVisitors();\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tinit(Hx.Manhattan, CostMode.Def);\n\t\tMaze smallMaze = new Maze(\"mazes/tinySearch.txt\");\n\t\tAgent astarAg = new Agent(smallMaze);\n\t\tRecorder rd = new Recorder();\n\t\tSearch.AstarMulOptimal(astarAg, smallMaze, rd);\n\t\t//System.out.println(rd.getExpandNodes());\n\t}", "public SolutionSet execute() throws JMetalException, ClassNotFoundException, IOException {\n initialization();\n createInitialSwarm() ;\n evaluateSwarm();\n initializeLeaders() ;\n initializeParticlesMemory() ;\n updateLeadersDensityEstimator() ;\n\n while (!stoppingCondition()) {\n computeSpeed(iterations_, maxIterations_);\n computeNewPositions();\n perturbation();\n evaluateSwarm();\n updateLeaders() ;\n updateParticleMemory() ;\n updateLeadersDensityEstimator() ;\n iterations_++ ;\n }\n\n tearDown() ;\n return paretoFrontApproximation() ;\n }", "public void run() {\n\t\tprocesses.forEach( p -> pQueue.add(p));\n\t\t\n\t\twhile(!pQueue.isEmpty() || currentP != null) {\n\t\t\t\n\t\t\t/*My first options. Works fine but can be improved.*/\n\t\t\t/*while(!pQueue.isEmpty() && (currentP == null)) {\t\t\t\t\t\n\t\t\t\tif(counter >= pQueue.peek().getArrivalTime()) {\t\t\t\t\t\n\t\t\t\t\tcurrentP = pQueue.poll();\n\t\t\t\t\tcurrentBurst = currentP.getBurstTime();\n\t\t\t\t}\t\n\t\t\t\tbreak;\n\t\t\t}*/\n\t\t\t\n\t\t\t/*Improved code from above. If there is no current process running, and \n\t\t\t * the first in queue has hit counter time, then poll it from queue. \n\t\t\t * */\t\t\t\n\t\t\tif(currentP == null && counter >= pQueue.peek().getArrivalTime()) {\n\t\t\t\tcurrentP = pQueue.poll();\n\t\t\t\tcurrentBurst = currentP.getBurstTime();\n\t\t\t}\n\t\t\t\n\t\t\t/*If there was no process ready in queue, nor a process already running, \n\t\t\t * increment the counter and loop again.*/\n\t\t\tif(currentP == null) {\n\t\t\t\tcounter++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t/*If there is a process running: Add one to counter and decrease the \n\t\t\t * burst time. \n\t\t\t * If burst time reached 0, the process terminated. Set timers, release\n\t\t\t * current process and reset current process burst time counter. */\n\t\t\telse if(currentP != null) {\n\t\t\t\tcounter++;\n\t\t\t\tcurrentBurst--;\n\t\t\t\n\t\t\t\tif(currentBurst <= 0) {\n\t\t\t\t\t//Helper method to encapsulate arithmetic. \n\t\t\t\t\tthis.setTimers(currentP);\n\t\t\t\t\tcurrentP = null;\n\t\t\t\t\tcurrentBurst=0;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\t\t\t\n\t\t}\n\t\tprintGanttChart();\n\t\tprintTable();\n\t}", "public void run() {\n\n RuleThread currntThrd;\n\t\tRuleQueue ruleQueue;\n \tRuleThread tempThrd;\n\t //\tRuleThread t;\n\t\tRuleQueue currRuleQueue;\n\n\t\tint ruleOperatingMode =0;\n\t\tint\ttempThrdPriority =0;\n\t\twhile(true){\n //if(ruleSchedulerDebug)\n\t\t\t // System.out.println(\"Looping in rulescheduler\");\n\n // When there is no rule at imm rule queue and process deferred rule\n\t\t\t// flag is false, then go sleep.\n\n if( deferredFlag == false && temporalRuleQueue.getHead() == null && immRuleQueue.getHead() == null){\n if(ruleSchedulerDebug) {\n\t\t\t\t\tSystem.out.println(\"There is no rule in any of these rule queues.\");\n System.out.println(\"Scheduler sleep\");\n }\n synchronized (this){\n\t\t\t\t\ttry{\n\t\t\t\t\t\twait();\n\t\t\t\t\t}\n\t\t\t\t\tcatch(InterruptedException ie) {\n\t\t\t\t\t\tif(ruleSchedulerDebug)\n\t\t\t\t\t\t\tSystem.out.println(\"InterruptedException caught\");\n\t\t\t\t\t\tie.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(ruleSchedulerDebug)\n\t\t\t\t\tSystem.out.println(\"Scheduler awake\");\n }\n\n // Execute the rules in temporal rule queue\n if(temporalRuleQueue.getHead() != null){\n processTemporalRule() ;\n\n }\n\n // Finish executing all the deferred rules\n\n\t\t\tif( deferredFlag == true && immRuleQueue.getHead() == null){\n\n \t\t\t// transaction complete\n\t \t\t// reset the deferredFlag to be false when all the deferred rules are already executed\n\n\t\t\t\tdeferredFlag = false \t;\n\t\t\t\tif(deffRuleQueueOne.getHead() == null){\n\t\t\t\t\tif(ruleSchedulerDebug)\n\t\t\t\t\t\tSystem.out.println(\"All rules in rule queues are already executed.\");\n\t\t\t\t}\n\t\t\t}\n\n\n\n // Start executing a deferred rule.\n else if ( deferredFlag == true && immRuleQueue.getHead() != null){\n processRuleQueue(deffRuleQueueOne);\n\n\t\t\t}\n\n //****************************************************************\n\t\t\t// When there is a rule at imm rule queue and process deferred rule\n\t\t\t// \tflag is false, then trigger a rule.\n\n else if( immRuleQueue.getHead() != null && deferredFlag == false){\n processRuleQueue(immRuleQueue);\n }\n\t\t}\n\t}", "@Override\n\tpublic void run() {\n\t\tString algorithem = \"LRU\";\n\t\tInteger capacity = 5;\n\t\t// TODO Auto-generated method stub\n\t\twhile (true) {\n\n\t\t\twrite(\"Please enter your command\");\n\t\t\tString input = this.m_Scanner.nextLine();\n\t\t\tif (input.equalsIgnoreCase(\"stop\")) {\n\t\t\t\twrite(\"Thank you\");\n\t\t\t\tpcs.firePropertyChange(\"statechange\", this.state, StateEnum.STOP);\n\t\t\t\tthis.state = StateEnum.STOP;\n\t\t\t\tbreak;\n\t\t\t} else if (input.contains(\"Cache_unit_config\")) {\n\t\t\t\twhile (true) {\n\t\t\t\t\tString[] splited = input.split(\"\\\\s+\");\n\t\t\t\t\tif (splited.length != 3) {\n\t\t\t\t\t\twrite(\"Worng params, Please enter your command\");\n\t\t\t\t\t\tinput = this.m_Scanner.nextLine();\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tboolean found = false;\n\t\t\t\t\tfor (String algo : this.m_AlgoNames) {\n\t\t\t\t\t\tif (splited[1].contains(algo)) {\n\t\t\t\t\t\t\tpcs.firePropertyChange(\"algochange\", algorithem, algo);\n\t\t\t\t\t\t\talgorithem = algo;\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (found == false) {\n\t\t\t\t\t\twrite(\"Unknown alogrithem, Please enter your command\");\n\t\t\t\t\t\tinput = this.m_Scanner.nextLine();\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tInteger cap = Integer.parseInt(splited[2]);\n\t\t\t\t\t\tpcs.firePropertyChange(\"capcitychange\", capacity, cap);\n\t\t\t\t\t\tcapacity = cap;\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\twrite(\"Capcity is alogrithem, Please enter your command\");\n\t\t\t\t\t\tinput = this.m_Scanner.nextLine();\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else if (input.equalsIgnoreCase(\"start\")) {\n\t\t\t\tpcs.firePropertyChange(\"statechange\", this.state, StateEnum.START);\n\t\t\t\tthis.state = StateEnum.START;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void run() { // Custom run function for the main thread\n\t\twhile (true) { // Infinite loop \n\t\t\t\n\t\t\tassignLane(); // It keeps assigning lanes to parties if lanes are available \n\t\t\t\n\t\t\ttry {\n\t\t\t\tsleep(250);\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}", "public void iterate()\n\t{\n\t\tfor (int p = 0; p < parasites.length; p++)\n\t\t\tpFitnesses[p][1] = 0;\n\t\t\n\t\ttry\n\t\t{\t// calculate fitnesses against other population\n\t\t\texecutor.invokeAll(tasks);\n\t\t\t// calculate fitness against hall of fame individuals\n\t\t\texecutor.invokeAll(hofTasks);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Something bad happened...\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\n\t\tArrays.sort(hFitnesses,new ArrayComparator(1,false));\n\t\tArrays.sort(pFitnesses,new ArrayComparator(1,false));\n\t\t\n\t\tint bestIndex = (int)pFitnesses[0][0];\n\t\tint size = parHOF.length;\n\t\t\n\t\tparHOF[generations%size]=new NeuralPlayer(-1,\"HOF P\",(BasicNetwork)parasites[(int)bestIndex].net.clone());\n\t\tbestIndex = (int)hFitnesses[0][0];\n\t\thostHOF[generations%size]=new NeuralPlayer(1,\"HOF H\",(BasicNetwork)hosts[(int)bestIndex].net.clone());\n\t\t\n\t\tint matePopIndex = (int)(matingPer*popSize)+1;\n\t\tRandom indexG = new Random();\n\t\t// allow top percentage to breed and replace bottom 2*percentage\n\t\t// leave everyone else alone\n\t\tfor (int i = 0; i < popSize*2*matingPer; i++)\n\t\t{\n\t\t\tint pInd1 = indexG.nextInt(matePopIndex);\n\t\t\tint pInd2 = indexG.nextInt(matePopIndex);\n\t\t\tNeuralPlayer p1 = hosts[(int)hFitnesses[pInd1][0]];\n\t\t\tNeuralPlayer p2 = hosts[(int)hFitnesses[pInd2][0]];\n\t\t\tNeuralPlayer child = hosts[(int)hFitnesses[popSize - 1 - i][0]];\n\t\t\tmate(p1, p2,child);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < popSize*2*matingPer; i++)\n\t\t{\n\t\t\tint pInd1 = indexG.nextInt(matePopIndex);\n\t\t\tint pInd2 = indexG.nextInt(matePopIndex);\n\t\t\tNeuralPlayer p1 = parasites[(int)pFitnesses[pInd1][0]];\n\t\t\tNeuralPlayer p2 = parasites[(int)pFitnesses[pInd2][0]];\n\t\t\tNeuralPlayer child = parasites[(int)pFitnesses[popSize - 1 - i][0]];\n\t\t\tmate(p1, p2,child);\n\t\t}\n\t\t// mutate everyone except top percentage (matingPer)\n\t\tfor (int i = 0; i < popSize*3*matingPer; i++)\n\t\t{\n\t\t\tmutate(parasites[(int)pFitnesses[popSize - 1 - i][0]]);\n\t\t\tmutate(hosts[(int)hFitnesses[popSize - 1 - i][0]]);\n\t\t}\n\t\t\n\t\tgenerations+=1;\n\t\t// every now and then reseed the population with a good individual\n\t\tif (generations%50 == 0)\n\t\t{\n\t\t\thosts[indexG.nextInt(hosts.length)].net = (BasicNetwork)allTimeBestHost.net.clone();\n\t\t\tparasites[indexG.nextInt(parasites.length)].net = (BasicNetwork)allTimeBestPara.net.clone();\n\t\t}\n\t\t\t\n\t}", "@Override\n protected void search() {\n \n obtainProblem();\n if (prioritizedHeroes.length > maxCreatures){\n frame.recieveProgressString(\"Too many prioritized creatures\");\n return;\n }\n bestComboPermu();\n if (searching){\n frame.recieveDone();\n searching = false;\n }\n }", "public void runGeneticAlgo() {\n\t\tint offspringLimit = (int)(OFFSPRING_POOL_LIMIT * geneNumber);\n\t\tint factor = (int) Math.pow(10, String.valueOf(offspringLimit).length() - 1);\n\t\twhile(offspringPool.size() < offspringLimit) {\n\t\t\trunTournament();\n\t\t\tif(offspringPool.size() % factor == 0) {\n\t\t\t\tSystem.out.println(\"Finished \" + offspringPool.size() + \" tournaments\");\n\t\t\t}\n\t\t}\n\t\tsortPool();\n\t\tArrayList<Gene> newGenepool = new ArrayList<Gene>(genepool.subList(0, geneNumber - offspringLimit));\n\t\tnewGenepool.addAll(offspringPool);\n\t\tgenepool = newGenepool;\n\t\toffspringPool = new ArrayList<Gene>();\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\tExecutor executor = new Executor(this.env);\n\n\t\t\t// control loop\n\t\t\t//String dataFileName = monitorLog.monitor();\n\t\t\t//AnalysisStatus analysisStatus = analyser.analyse(dataFileName, args);\n\t\t\t// AdaptationPlan adaptationPlan =\n\t\t\t// planner.selectPlan(analysisStatus);\n\t\t\t//executor.execute(adaptationPlan);\n\t\t\t//System.out.println(this.getClass()+\" **************** CHANGE **************\"+System.nanoTime());\n\t\t\texecutor.executeFake(this.env);\n\t\t\t//executeFake();\n\t\t}", "public void runFIFO() {\n\n //init\n ArrayList<Processus> localProcess = new ArrayList<>(); //Creation of a local list of process\n for (Processus cpy : listOfProcess) { //Copy the list of process in the local list\n localProcess.add(cpy);\n }\n int size = listOfProcess.size(); //variable used to save the initial size of the list of process\n\n Processus executedProc = null; //ExecutedProc is the current process that is being execute\n Processus tmpProc = localProcess.get(0); //The tmpProc is the previous process executed\n\n //Variable we need to calcul\n double occupancyRate = 0;\n double averageWaitingTime = 0;\n double averageReturnTime = 0;\n int currentTime = 0;\n int occupancyTime = 0;\n int counter = 1;\n\n //beginning of the algo\n while (!localProcess.isEmpty()) { //As long as there are processes that are not done yet we keep going on\n\n //Determines the next process that will be executed\n for (Processus proc : localProcess) { //flow all remaining processes\n if (proc.getTime() <= currentTime) { //check if the currentTime of the process is below the currentTime\n if (localProcess.size() == 1) { //if there is only one process left\n executedProc = proc;\n } else if (proc.getCurrentOrder() <= tmpProc.getCurrentOrder()) { //selection of the older process (FIFO selection)\n executedProc = proc;\n tmpProc = proc;\n }\n }\n }\n\n //Check if the current process is assigned\n if (executedProc != null) {\n\n //execute the current ressource\n int tmpTime = 0;\n while (executedProc.getRessource(executedProc.getCurrentStep()) > tmpTime) { //As long as there is a resource\n for (Processus proc : localProcess) {\n if (proc.getTime() <= currentTime && !proc.equals(executedProc)) { //checking if there is another process waiting and set the new waiting time\n proc.setWaitingTime(1);\n }\n }\n currentTime++; //currentTime is updating at each loop\n occupancyTime++; //occupancyTime is updating at each loop\n tmpTime++;\n }\n\n executedProc.setCurrentStep(executedProc.getCurrentStep() + 1); //Update the currentStep to the next one (index of the lists of UC and inOut)\n\n if (executedProc.getCurrentStep() >= executedProc.getlistOfResource().size()) {//if it is the end of the process\n averageReturnTime += executedProc.getExecutedTime(); //update the average return time by adding the time that the process took\n localProcess.remove(executedProc); //remove the process from the list of process that needs to run\n }\n\n if (executedProc.getCurrentStep() <= executedProc.getListOfInOut().size()) { //If there is another inOut, it set the new time\n executedProc.setTime(executedProc.getInOut(executedProc.getCurrentStep() - 1) + currentTime);\n }\n\n //put the process at the end of the list (fifo order)\n executedProc.setCurrentOrder(counter);\n counter++;\n executedProc = null;\n } else {\n currentTime++;\n }\n }\n //end of the algo\n\n //Calculation of the variables\n occupancyRate = ((double) occupancyTime / (double) currentTime) * 100;\n for (Processus proc : listOfProcess) {\n averageWaitingTime += proc.getWaitingTime();\n }\n averageWaitingTime = averageWaitingTime / size;\n averageReturnTime = averageReturnTime / size;\n\n //Updating the global variables\n currentAverageReturnTime = averageReturnTime;\n logger.trace(\"Current average return time : \" + currentAverageReturnTime);\n currentAverageWaitingTime = averageWaitingTime;\n logger.trace(\"Current average waiting time : \" + currentAverageWaitingTime);\n currentOccupancyRate = occupancyRate;\n logger.trace(\"Current occupancy rate : \" + currentOccupancyRate);\n currentOccupancyTime = occupancyTime;\n logger.trace(\"Current occupancy time : \" + currentOccupancyTime);\n\n restList(); //reset the list to the origin values so the user can test another algo\n }", "public void run(){\n\t\twhile(partie.getnbTour() < partie.getnbTourMax()) {\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Partie \"+ partie + \" en cours. Etat nombre de tours : \"+ partie.getnbTour() + \"/\" + partie.getnbTourMax());\n\t\t\ttry{\n\t\t\t\tString gagnant = partie.tourSuivant();\n\t\t\t\tif(!gagnant.isEmpty()) {\n\t\t\t\t\tlancerFinDePartie(gagnant);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tfor(JoueurInterface j : partie.getJoueurs())\n\t\t\t\t\tj.setPartie(partie);\n\t\t\t}catch(Exception e){\n\t\t\t\tSystem.out.println(\"/!\\\\PartieRunner : \" + e);\n\t\t\t}\n\t\t}\n\t\tif(partie.getnbTour() >= partie.getnbTourMax())\n\t\t\tlancerFinDePartie(\"\");\n\t\tSystem.out.println(\"Fin de partie\" + partie);\n\t}", "public static void main(String[] args){\n Executor game = new Executor();\n\n System.out.println();\n System.out.println();\n game.introduction();\n\n while (! game.gameOver){\n game.day();\n\n if (! game.gameOver){\n wait(2000);\n game.endOfDay();\n }\n\n }\n\n }", "public void run() {\n int stime;\n int dest;\n Ship sh;\n\n while (enjoy) {\n try {\n // Wait and arrive to the port\n stime = (int) (700*Math.random());\n sleep(stime);\n\n // Choose the destination\n dest = (int) (((double) Assignment2.DESTINATIONS)*Math.random());\n System.out.println(\"Passenger \" + id + \" wants to go to \" + Assignment2.destName[dest]);\n\n // come to the harbour and board a ship to my destination\n // (might wait if there is no such ship ready)\n sh = sp.wait4Ship(dest);\n\n // Should be executed after the ship is on the dock and taking passengers\n System.out.println(\"Passenger \" + id + \" has boarded ship \" + sh.id + \", destination: \"+Assignment2.destName[dest]);\n\n // wait for launch\n sh.wait4launch();\n\n // Enjoy the ride\n // Should be executed after the ship has launched.\n System.out.println(\"Passenger \"+id+\" enjoying the ride to \"+Assignment2.destName[dest]+ \": Yeahhh!\");\n\n // wait for arriving\n sh.wait4arriving();\n\n // Should be executed after the ship has landed\n System.out.println(\"Passenger \" + id + \" leaving the ship \" + sh.id + \" which has \" + sh.numSeats + \" seats\");\n\n // Leave the ship\n sh.leave();\n } catch (InterruptedException e) {\n enjoy = false; // have been interrupted, probably by the main program, terminate\n }\n }\n System.out.println(\"Passenger \"+id+\" has finished its rides.\");\n }", "public void startMatch() throws InterruptedException {\r\n\t\t//Get Active Pokemon\r\n\t\tfor (Pokemon selectedPokemon : yourPokemon) {\r\n\t\t\tif (selectedPokemon != null) {\r\n\t\t\t\tuser = selectedPokemon;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (Pokemon selectedPokemon : foesPokemon) {\r\n\t\t\tif (selectedPokemon != null) {\r\n\t\t\t\tfoe = selectedPokemon;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcalculateActivePokemon();\r\n\r\n\t\t//Start game loop\r\n\t\twhile (pokemonActiveUser > 0 && pokemonActiveFoe > 0) {\r\n\t\t\t\r\n\t\t\t//Is the user's Pokemon knocked out?\r\n\t\t\tif (user.isKnockedOut()) {\r\n\t\t\t\tmoveEffectsUser = new ArrayList<Move_Recurring>();\r\n\t\t\t\tuser = yourPokemon[6 - pokemonActiveUser];\r\n\t\t\t\tSystem.out.println(\"Go \" + user.getName() + \"!\");\r\n\t\t\t\tuser.resetStats();\r\n\t\t\t\t\r\n\t\t\t\tfor (int i = 0; i < moveEffectsFoe.size(); i++) {\r\n\t\t\t\t\tif (moveEffectsFoe.get(i) instanceof LeechSeed) {\r\n\t\t\t\t\t\tmoveEffectsFoe.remove(i);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Is the foe Pokemon knocked out?\r\n\t\t\tif (foe.isKnockedOut()) {\r\n\t\t\t\tmoveEffectsFoe = new ArrayList<Move_Recurring>();\r\n\t\t\t\tfoe = foesPokemon[6 - pokemonActiveFoe];\r\n\t\t\t\tSystem.out.println(\"Go \" + foe.getName() + \"!\");\r\n\t\t\t\tfoe.resetStats();\r\n\t\t\t\t\r\n\t\t\t\tfor (int i = 0; i < moveEffectsUser.size(); i++) {\r\n\t\t\t\t\tif (moveEffectsUser.get(i) instanceof LeechSeed) {\r\n\t\t\t\t\t\tmoveEffectsUser.remove(i);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\t\r\n\t\t\t//Input selected move for the user's Pokemon to preform\r\n\t\t\tselectedMoveUser = null;\r\n\t\t\twhile (selectedMoveUser == null) {\r\n\t\t\t\t\r\n\t\t\t\t//Display Foe\r\n\t\t\t\tSystem.out.println(\"FOE Pokemon\");\r\n\t\t\t\tfoe.displayPokemon();\r\n\t\t\t\tSystem.out.println(\"\");\r\n\r\n\t\t\t\t//Display User Pokemon\r\n\t\t\t\tSystem.out.println(\"YOUR Pokemon\");\r\n\t\t\t\tuser.displayPokemon();\r\n\t\t\t\t\r\n\t\t\t\t//Display active Pokemon's moves\r\n\t\t\t\tSystem.out.println(user.getMoveList());\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.print(\"Select Move: \");\r\n\t\t\t\tString input = scanner.next().trim().toUpperCase();\r\n\t\t\t\t\r\n\t\t\t\tif (input.equals(\"1\") || input.equals(\"2\") || input.equals(\"3\") || input.equals(\"4\")) {\r\n\t\t\t\t\tselectedMoveUser = user.getMove(Integer.parseInt(input) - 1);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfor (int i = 0; i < user.getNumberOfMoves(); i++) {\r\n\t\t\t\t\t\tif (user.getMove(i).toString().trim().toUpperCase() == input) {\r\n\t\t\t\t\t\t\tselectedMoveUser = user.getMove(i);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Uses lazy evaluation\r\n\t\t\t\tif (selectedMoveUser != null && selectedMoveUser.getPP() < 1) {\r\n\t\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\t\tSystem.out.println(\"That move is out of PP!\");\r\n\t\t\t\t\tselectedMoveUser = null;\r\n\t\t\t\t\tTimeUnit.MILLISECONDS.sleep(WAIT_TIME);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (selectedMoveUser == null) {\r\n\t\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\t\tSystem.out.println(\"Please enter valid input\");\r\n\t\t\t\t\tTimeUnit.MILLISECONDS.sleep(WAIT_TIME);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//Is someone using Mirror Move?\r\n\t\t\tif (selectedMoveUser instanceof MirrorMove) {\r\n\t\t\t\tif (selectedMoveFoe == null) {\r\n\t\t\t\t\tSystem.out.println(user.getName() + \" failed to use \" + selectedMoveUser.getName());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tselectedMoveUser = selectedMoveFoe;\r\n\t\t\t\t\tSystem.out.println(user.getName() + \" copied \" + foe.getName() + \"'s last move!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (selectedMoveFoe instanceof MirrorMove) {\r\n\t\t\t\tif (usersLastMove == null) {\r\n\t\t\t\t\tSystem.out.println(foe.getName() + \" failed to use \" + selectedMoveFoe.getName());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tselectedMoveFoe = usersLastMove;\r\n\t\t\t\t\tSystem.out.println(foe.getName() + \" copied \" + user.getName() + \"'s last move!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\t//Select move for foe Pokemon\r\n\t\t\tRandom generator = new Random();\r\n\t\t\tselectedMoveFoe = foe.getMove(generator.nextInt(foe.getNumberOfMoves()));\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\t//Who goes first?\r\n\t\t\tif (selectedMoveUser.isFast() && !(selectedMoveFoe.isFast())) {\r\n\t\t\t\tuserGoesFirst = true;\r\n\t\t\t} else if (selectedMoveFoe.isFast() && !(selectedMoveUser.isFast())) {\r\n\t\t\t\tuserGoesFirst = false;\r\n\t\t\t} else {\r\n\t\t\t\tuserGoesFirst = user.getSpeed() >= foe.getSpeed();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//Run Turn\r\n\t\t\tif (userGoesFirst) {\r\n\t\t\t\tSystem.out.println(\"Your Pokemon \" + user.getName() + \" started it's turn\");\r\n\t\t\t\tselectedMoveUser.doMove(user, foe);\r\n\t\t\t\tTimeUnit.MILLISECONDS.sleep(WAIT_TIME);\r\n\t\t\t\tSystem.out.println(\"The foe's Pokemon \" + foe.getName() + \" started it's turn\");\r\n\t\t\t\tselectedMoveFoe.doMove(foe, user);\r\n\t\t\t\tTimeUnit.MILLISECONDS.sleep(WAIT_TIME);\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"The foe's Pokemon \" + foe.getName() + \" started it's turn\");\r\n\t\t\t\tselectedMoveFoe.doMove(foe, user);\r\n\t\t\t\tTimeUnit.MILLISECONDS.sleep(WAIT_TIME);\r\n\t\t\t\tSystem.out.println(\"Your Pokemon \" + user.getName() + \" started it's turn\");\r\n\t\t\t\tselectedMoveUser.doMove(user, foe);\r\n\t\t\t\tTimeUnit.MILLISECONDS.sleep(WAIT_TIME);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Is there any moves that have lasting effects?\r\n\t\t\tif (selectedMoveUser instanceof Move_Recurring) {\r\n\t\t\t\tmoveEffectsUser.add((Move_Recurring) selectedMoveUser.clone());\r\n\t\t\t}\r\n\t\t\tif (selectedMoveFoe instanceof Move_Recurring) {\r\n\t\t\t\tmoveEffectsFoe.add((Move_Recurring) selectedMoveFoe.clone());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor (Move_Recurring effect: moveEffectsUser) {\r\n\t\t\t\teffect.periodicEffect(user, foe);\r\n\t\t\t}\r\n\t\t\tfor (Move_Recurring effect: moveEffectsFoe) {\r\n\t\t\t\teffect.periodicEffect(foe, user);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tuser.getStatus().endOfTurn(user);\r\n\t\t\tfoe.getStatus().endOfTurn(foe);\r\n\t\t\t\r\n\t\t\t//Distribute experience\r\n\t\t\tif (foe.isKnockedOut() && user.isKnockedOut() == false) {\r\n\t\t\t\tSystem.out.println(\"Foe's Pokemon \" + foe.getName() + \" was knocked out!\");\r\n\t\t\t\tuser = user.addExperience((int) (foe.getBaseExperienceYield() * 1.5 * foe.getLevel()));\r\n\t\t\t} else if (user.isKnockedOut() && foe.isKnockedOut() == false) {\r\n\t\t\t\tSystem.out.println(\"Your Pokemon \" + user.getName() + \" was knocked out!\");\r\n\t\t\t\t foe = foe.addExperience((int) (user.getBaseExperienceYield() * 1.5 * user.getLevel()));\r\n\t\t\t}\r\n\t\t\tcalculateActivePokemon();\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\tSystem.out.println(\"----\");\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\t\t\r\n\t\t//Output results\r\n\t\tif (pokemonActiveFoe < 1) {\r\n\t\t\t//Game won!\r\n\r\n\t\t\tSystem.out.println(\"YOU WIN!\");\r\n\t\t} else if (pokemonActiveUser < 1) {\r\n\t\t\t//Game lost\r\n\t\t\tSystem.out.println(\"All your Pokemon were knocked out...\");\r\n\t\t\tSystem.out.println(\"You Lose\");\r\n\t\t}\r\n\t}", "void run() throws Exception {\n // you can alter this method if you need to do so\n IntegerScanner sc = new IntegerScanner(System.in);\n PrintWriter pr = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\n int TC = sc.nextInt(); // there will be several test cases\n while (TC-- > 0) {\n V = sc.nextInt();\n\n // clear the graph and read in a new graph as Adjacency List\n AdjList = new Vector < Vector < IntegerPair > >();\n for (int i = 0; i < V; i++) {\n AdjList.add(new Vector < IntegerPair >());\n\n int k = sc.nextInt();\n while (k-- > 0) {\n int j = sc.nextInt(), w = sc.nextInt();\n AdjList.get(i).add(new IntegerPair(j, w)); // edge (road) weight (in minutes) is stored here\n }\n }\n\n PreProcess(); // optional\n\n Q = sc.nextInt();\n while (Q-- > 0)\n pr.println(Query(sc.nextInt(), sc.nextInt(), sc.nextInt()));\n\n if (TC > 0)\n pr.println();\n }\n\n pr.close();\n }", "public void run() {\n int stime;\n int dest;\n\n while (enjoy) {\n try {\n // Wait until there an empty arriving dock, then arrive\n dest = sp.wait4arriving(this);\n \n System.out.println(\"ship \" + id + \" arriving on dock \" + dest);\n \n // Tell the passengers that we have arrived\n \n // Wait until all passengers leave\n \n System.out.println(\"ship \" + id + \" boarding to \"+Assignment2.destName[dest]+\" now! With \" + numSeats + \" seats\");\n \n // the passengers can start to board now\n \n // Wait until full of passengers\n \n // 4, 3, 2, 1, Start!\n System.out.println(\"ship \" + id + \" Departs towards \"+Assignment2.destName[dest]+\"!\");\n\n // tell the passengers we have launched, so they can enjoy now ;-)\n \n // Sail in water\n stime = 500+(int) (1500*Math.random());\n sleep(stime);\n } catch (InterruptedException e) {\n enjoy = false; // have been interrupted, probably by the main program, terminate\n }\n }\n System.out.println(\"ship \"+id+\" has finished its rides.\");\n }", "public static void main(String[] args)\n\t{\tint generation = 0;\n\t\tint sum = 0;\n\t\tExecutor exec=new Executor();\n\t\t\n\t\tGeneticController pacman = new GeneticController();\n\t\tController<EnumMap<GHOST,MOVE>> ghosts = new Legacy();\n\n\n\t\tLispStatements ls = new LispStatements();\n\t\tArrayList<String> functionSet = new ArrayList<>();\n\t\tfunctionSet.add(\"2ifblue\");\n\t\tfunctionSet.add(\"4ifle\");\n\t\tfunctionSet.add(\"2ifindanger\");\n\t\tfunctionSet.add(\"2ifpowerpillscleared\");\n\t\tfunctionSet.add(\"2istopowersafe\");\n\t\tArrayList<String> terminalSet = new ArrayList<>();\n\t\tterminalSet.add(\"distToPill\");\n\t\tterminalSet.add(\"distToPower\");\n\t\tterminalSet.add(\"distGhost\");\n\t\tterminalSet.add(\"distTo2ndGhost\");\n\t\tterminalSet.add(\"distTo3rdGhost\");\n\t\tterminalSet.add(\"distToEdibleGhost\");\n\t\tterminalSet.add(\"distToNonEdibleGhost\");\n\t\tterminalSet.add(\"moveToFood\");\n\t\tterminalSet.add(\"moveToPower\");\n\t\tterminalSet.add(\"moveToEdibleGhost\");\n\t\tterminalSet.add(\"moveFromNonEdibleGhost\");\n\t\tterminalSet.add(\"moveFromPower\");\n\t\tterminalSet.add(\"runaway\");\n\t\ttry {\n\t\t\tls.setFunctionalSet(functionSet);\n\t\t}catch (Exception ignored){\n\n\t\t}\n\t\tls.setTerminalSet(terminalSet);\n\t\ttry {\n\t\t\tGenetic.Executor.setUp(pacman, ls, 8);\n\t\t}catch (Exception ignored){\n\n\t\t}\n\n\t\tdouble average = 0;\n\n\t\twhile (generation < 51) {\n\t\t\twhile (Generation.isGenFinished()) {\n\n\t\t\t\t\tfor(int i = 0; i < 10; i++) {\n\t\t\t\t\t\tint delay = 0;\n\t\t\t\t\t\tboolean visual = false;\n\t\t\t\t\t\tsum += exec.runGame(pacman, ghosts, visual, delay);\n\t\t\t\t\t}\n\n\t\t\t\t\tGeneration.setFitness(50000 - (sum/10));\n\t\t\t\t\tSystem.out.println(sum/10);\n\n\n\t\t\t\t\tsum = 0;\n\n\t\t\t\tGeneration.pointerUpdate();\n\t\t\t}\n\t\t\tSystem.out.println(\"Generation \" + generation);\n\t\t\tGenetic.Executor.newGen();\n\t\t\tSystem.out.println(Generation.getBestRating());\n\t\t\tgeneration ++;\n\t\t}\n\n\t\tSystem.out.println(Generation.getBestTree());\n\t\tSystem.out.println(Generation.getBestRating());\n\n\n\n/*\n\t\tboolean visual=false;\n\t\tString fileName=\"results/replay10.txt\";\n\n\t\tint bestScore = 0;\n\t\tint result = 0;\n\t\tint average = 0;\n\t\tfor(int i = 0; i < 1000 ; i++) {\n\t\t\tresult = exec.runGameTimedRecorded(pacman, ghosts, visual, fileName, bestScore);\n\t\t\taverage +=result;\n\t\t\tif(result > bestScore){\n\t\t\t\tbestScore = result;\n\t\t\t}\n\t\t\tSystem.out.println(result);\n\t\t}\n\t\tvisual = true;\n\t\tSystem.out.println(average/1000.0);\n\t\texec.replayGame(fileName,visual);\n\t\t*/\n\n\n\t}", "public void cycle() {\r\n processTask(); // tune relative frequency?\r\n processConcept(); // use this order to check the new result\r\n }", "public void run() {\n\t\tboolean flag = true;\n\t\t\n\t\t//Testing if all the threads are initialized with some random value.\n\t\twhile(flag) {\n\t\t\tflag = false;\n\t\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t\tif(GlobalInfo.inputs[i]==-1)\n\t\t\t\t\tflag = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint[] snapshot = new int[10];\n\t\tint[] sortedSnapshot;\n\t\t\t\t\n\t\t\n\t\twhile(true) {\n\t\t\t\n\t\t\t//Checking if queue is empty or not\n\t\t\tif(GlobalInfo.pipeLine.peek() != null)\n\t\t\t{\n\t\t\t\tsnapshot = GlobalInfo.pipeLine.poll();\n\t\t\t\t\n\t\t\t\t//printing snapshot\n\t\t\t\tSystem.out.format(\"The snapshot is: \");\n\t\t\t\tfor (int i = 0; i < snapshot.length; i++) {\n\t\t\t\t\tSystem.out.format(\"%d,\", snapshot[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\tsortedSnapshot = Arrays.copyOf(snapshot, snapshot.length);\n\t\t\t\t\n\t\t\t\tSortHelper.sortForkAndJoin(sortedSnapshot);\n\t\t\t\t\n\t\t\t\t//printing sorted snapshot\n\t\t\t\tSystem.out.format(\"The sorted snapshot is: \");\n\t\t\t\tfor (int i = 0; i < sortedSnapshot.length; i++) {\n\t\t\t\t\tSystem.out.format(\"%d,\", sortedSnapshot[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\tGlobalInfo.completeThreads=0;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// Performing fusion of data and validating results\n\t\t\t\tfuseAdd1 adder = new fuseAdd1(sortedSnapshot);\n\t\t\t\tThread adderThread = new Thread(adder);\n\t\t\t\tadderThread.start();\n\t\t\t\t\n\t\t\t\tfuseMultiply1 multiplier = new fuseMultiply1(sortedSnapshot);\n\t\t\t\tThread multiplierThread = new Thread(multiplier);\n\t\t\t\tmultiplierThread.start();\n\t\t\t\t\n\t\t\t\tfuseAverage1 averager = new fuseAverage1(sortedSnapshot);\n\t\t\t\tThread averagerThread = new Thread(averager);\n\t\t\t\taveragerThread.start();\n\t\t\t\t\n\t\t\t\twhile(GlobalInfo.completeThreads < 3){\n\t\t\t\t\t//wait for all three fusions to take place.\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\twhile(!gpt.done);\r\n\t\t\t\t\t\t\t\tx.task().post(new Runnable(){\r\n\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\tif(change_tempo){\r\n\t\t\t\t\t\t\t\t\t\t\tPatternMaker.changeSpeed(pattern, ratio);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tgotoPractice(pattern);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}", "@Override\n public void runMovingTest() {\n long now;\n int count, search;\n elapsedTime.clear();\n expandedCells.clear();\n GraphPath<Integer,DefaultWeightedEdge> agentPath=null;\n GraphPath<Integer,DefaultWeightedEdge> targetPath=null;\n //Integer agentNode, targetNode;\n List<Integer> pathToFollow = null;\n for(Point[] p : points){\n pathfinder = new LazyMovingTargetAdaptiveAStarShortestPath<Integer, DefaultWeightedEdge>(map);\n count=0;\n search=0;\n agentNode = p[0].toNode();\n targetNode = p[1].toNode();\n LinkedList<Integer> movingExpCell = new LinkedList<>();\n LinkedList<Long> movingElapsTime = new LinkedList<>();\n targetThread r = new targetThread();\n evadeThread = new Thread(r);\n evadeThread.start();\n while(!agentNode.equals(targetNode)){\n if(pathToFollow==null || !agentPath.getEndVertex().equals(targetNode)) {\n agentPath = pathfinder.getShortestPath(agentNode, targetNode, new OctileDistance());\n if(pathfinder.getElapsedTime() > Long.valueOf(1900))\n continue;\n movingElapsTime.add(pathfinder.getElapsedTime());\n movingExpCell.add(pathfinder.getNumberOfExpandedNodes());\n search++;\n }\n Integer targetNext = null;\n Integer agentNext = null;\n if(count%2==0) {\n /*targetPath = new Trailmax<Integer,DefaultWeightedEdge>(map).getShortestPath(agentNode,targetNode,null);\n pathToFollow = Graphs.getPathVertexList(targetPath);\n if (!pathToFollow.isEmpty()) targetNext = pathToFollow.remove(0);\n if (targetNext.equals(targetNode) && !pathToFollow.isEmpty()) targetNext = pathToFollow.remove(0);\n targetNode = targetNext;*/\n synchronized(moveTarget) {\n moveTarget = new Boolean(true);\n }\n\n try {\n Thread.sleep(12);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n pathToFollow=Graphs.getPathVertexList(agentPath);\n if(!pathToFollow.isEmpty()){\n int i = pathToFollow.lastIndexOf(agentNode);\n agentNext=pathToFollow.remove(i+1);\n }\n agentNode = agentNext;\n count++;\n //System.out.println(agentNode+\",\"+targetNode);\n\n }\n\n r.terminate();\n try {\n evadeThread.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n pathToFollow=null;\n movingElapsedTime.put(p, movingElapsTime);\n movingExpandedCells.put(p, movingExpCell);\n movesMap.put(p, count);\n searchesMap.put(p, search);\n if(verbose) {\n Long totElaps = Long.valueOf(0);\n Integer totExp = 0;\n for (Long l : movingElapsTime) totElaps += l;\n for (Integer i : movingExpCell) totExp += i;\n System.out.println(\"total elapsed: \" + totElaps + \" total expanded \" + totExp);\n }\n }\n }", "public void run() {\r\n setStartTime();\r\n ///if ( this instanceof AlgorithmHistoryInterface ) {\r\n /// constructLog();\r\n ///}\r\n\r\n runAlgorithm();\r\n\r\n // write out anything that the algorithm put into the (history) logging string(s)\r\n writeLog();\r\n\r\n computeElapsedTime();\r\n\r\n if (Preferences.debugLevel(Preferences.DEBUG_ALGORITHM)) {\r\n logElapsedTime();\r\n }\r\n\r\n notifyListeners(this);\r\n\r\n /// finalize();\r\n }", "@Override\n public void run() {\n\n\n\n System.out.println(\"run scheduled jobs.\");\n\n\n checkBlackOutPeriod();\n\n\n\n checkOfficeActionPeriod1();\n\n checkAcceptedFilings();\n\n checkNOAPeriod();\n checkFilingExtensions();\n\n\n\n }", "private void run() {\n log.log(Level.INFO, \"Starting multiple evaluation of {0} tasks\", tasks.size());\n boolean done = tasks.isEmpty();\n while (!done) {\n boolean hasFreeTasks = true;\n while (hasCapacity() && hasFreeTasks) {\n File task = getFreeTask();\n if (task == null) {\n hasFreeTasks = false;\n } else {\n EvaluatorHandle handle = new EvaluatorHandle();\n if (handle.createEvaluator(task, log, isResume)) {\n log.fine(\"Created new evaluation handler\");\n evaluations.add(handle);\n }\n }\n }\n\n log.log(Level.INFO, \"Tasks in progress: {0}, Unfinished tasks: {1}\", new Object[]{evaluations.size(), tasks.size()});\n try {\n Thread.sleep(5000);\n } catch (InterruptedException ex) {\n //Bla bla\n }\n checkRunningEvaluations();\n done = tasks.isEmpty();\n }\n\n }", "@Override\n protected void run() {\n for (long number : numbers){\n addTask(new FindFactorsTask(new FindFactorsTask.SearchOptions(number)));\n }\n executeTasks();\n\n //Find common factors\n final Set<Long> set = new HashSet<>(((FindFactorsTask) getTasks().get(0)).getFactors());\n for (int i = 1; i < getTasks().size(); ++i){\n set.retainAll(((FindFactorsTask) getTasks().get(i)).getFactors());\n }\n\n //Find largest factor\n gcf = Collections.max(set);\n }", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tThread.sleep(750);\n\t\t} catch (InterruptedException ex) {\n\t\t\treturn;\n\t\t}\n\t\tinitializeLabels();\n\t\tint iteration = 0;\n\t\twhile (iteration++ < maxIterations && !Thread.interrupted()) {\n\t\t\tappData.showCurrentIteration(iteration);\n\t\t\tassignLabels();\n\t\t\tif(iteration % updateInterval == 0){\n\t\t\t\tappData.updateChart(iteration);\n\t\t\t\tif (!isContinuous) {\n\t\t\t\t\tappData.enableRun();\n\t\t\t\t\ttocontinue.set(false);\n\t\t\t\t\twhile (!tocontinue()) { //wait until play is clicked\n\t\t\t\t\t\tif (Thread.interrupted()) {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tappData.disableRun();\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tThread.sleep(750);\n\t\t\t} catch (InterruptedException ex) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tif(iteration-1 == maxIterations){\n\t\t\tappData.completeAlgorithm(); //algorithm exhausted all iterations\n\t\t\tappData.updateChart(maxIterations);\n\t\t}else{\n\t\t\tappData.autocompleteAlgorithm(); //algorithm terminated by itself\n\t\t\tappData.updateChart(iteration);\n\t\t}\n\t}", "public static void main(String[] args) throws FileNotFoundException, IOException {\r\n\r\n //Creating an instance object of the class PathBetweenNodes\r\n PathBetweenNodes x = new PathBetweenNodes();\r\n x.graph = new PathBetweenNodes();\r\n x.readMaze(); // reading the maze from the file\r\n LinkedList<String> visited = new LinkedList<String>(); // creating an array called visited to store visited nodes\r\n System.out.println(\"Enter the source node:\");//asking user to enter the start node\r\n Scanner sc = new Scanner(System.in); // Scanner to input the start node into the system\r\n START = sc.next();\r\n System.out.println(\"Enter the destination node:\");// asking user to input the destination node\r\n END = sc.next(); //scan the destination node into the system\r\n mode(option);\r\n startTimer = System.nanoTime();\r\n visited.add(START);// adding the start node to array visited\r\n new PathBetweenNodes().breadthFirst(x.graph, visited); // implementing the breath first search for graph x and array visited\r\n sc.close(); // scanner must be closed\r\n if (x.graph.flag) {\r\n System.out.println(\"There is existing path between \" + START + \" and \" + END + \" as above.\");\r\n }\r\n if (!x.graph.flag) {\r\n System.out.println(\"No path was found between \" + START + \" and \" + END + \".\");\r\n }\r\n endTimer = System.nanoTime();\r\n long TimeElapsed = endTimer - startTimer;\r\n System.out.println(\"Time taken to solve the maze = \" + TimeElapsed + \" Nano seconds.\");\r\n }", "public static void main(java.lang.String[] args) {\r\n\t\tdouble TotalWaitTimeHistogram = 0;\r\n\t\tint k = 0;\r\n\t\twhile (k < 20) {\r\n\t\t\t// make a new experiment\r\n\t\t\t// Use as experiment name a OS filename compatible string!!\r\n\t\t\t// Otherwise your simulation will crash!!\r\n\t\t\r\n\t\t\tExperiment experiment = new Experiment(\"Vancarrier Model\");\r\n\r\n\t\t\t// make a new model\r\n\t\t\t// null as first parameter because it is the main model and has no\r\n\t\t\t// mastermodel\r\n\t\t\tVancarrierModel vc_1st_p_Model = new VancarrierModel(null, \"Vancarrier Model\", true, false);\r\n\r\n\t\t\t// connect Experiment and Model\r\n\t\t\tvc_1st_p_Model.connectToExperiment(experiment);\r\n\r\n\t\t\t// set trace\r\n\t\t\texperiment.tracePeriod(new TimeInstant(0), new TimeInstant(100));\r\n\r\n\t\t\t// now set the time this simulation should stop at\r\n\t\t\t// let him work 1500 Minutes\r\n\t\t\t//experiment.stop(new TimeInstant(1500));\r\n\t\t\texperiment.stop(new TimeInstant(1500));\r\n\t\t\texperiment.setShowProgressBar(false);\r\n\r\n\t\t\t// start the Experiment with start time 0.0\r\n\t\t\texperiment.start();\r\n\r\n\t\t\t// --> now the simulation is running until it reaches its ending\r\n\t\t\t// criteria\r\n\t\t\t// ...\r\n\t\t\t// ...\r\n\t\t\t// <-- after reaching ending criteria, the main thread returns here\r\n\r\n\t\t\t// print the report about the already existing reporters into the\r\n\t\t\t// report file\r\n\t\t\texperiment.report();\r\n\r\n\t\t\t// stop all threads still alive and close all output files\r\n\t\t\texperiment.finish();\r\n\r\n\t\t\tTotalWaitTimeHistogram += vc_1st_p_Model.waitTimeHistogram.getMean();\r\n\r\n\t\t\tk++;\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Truck Wait Times Mean of \" + k + \" iterations: \" + (TotalWaitTimeHistogram / k));\r\n\t}", "@Override\n public void run() {\n while (running) {\n synchronized (this) {\n while (pendingPrograms.isEmpty())\n try { wait(); } catch (InterruptedException ignored) { }\n }\n IndexedProgram entry = getNextProgram();\n sendForEvaluation(entry.index, entry.program);\n }\n }", "public void run() {\n\t\tRandom r = new Random();\n\n\t\twhile(true)\n\t\t{\n\t\t\tint zufallzeit= r.nextInt(10);\n\t\t\ttry\n\t\t\t{\n\t\t\t\tThread.sleep(zufallzeit*1000L);\n\t\t\t}catch(InterruptedException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tparkhaus.einfahren();\n\n\t\t\tint parkzeit= r.nextInt(10);\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tThread.sleep(parkzeit*1000L);\n\t\t\t}catch(InterruptedException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tparkhaus.ausfahren();\n\t\t}\n\n\t}" ]
[ "0.6934275", "0.6712353", "0.66178197", "0.6345083", "0.63307995", "0.6255263", "0.62450826", "0.6202732", "0.61789024", "0.60804904", "0.60699886", "0.6038906", "0.6030994", "0.60247195", "0.5991792", "0.59772485", "0.5942371", "0.5924824", "0.5921419", "0.5881335", "0.5859949", "0.58557284", "0.58436453", "0.58078057", "0.58053607", "0.5790326", "0.5770773", "0.57608193", "0.57425445", "0.5735554", "0.57330894", "0.57308996", "0.57254344", "0.5700672", "0.56788063", "0.5675387", "0.56648344", "0.56645525", "0.5664548", "0.5641381", "0.56284577", "0.56279796", "0.5619418", "0.5591428", "0.5587362", "0.5582313", "0.5574792", "0.5572303", "0.55437595", "0.5538038", "0.5533119", "0.553084", "0.55294937", "0.5526519", "0.5522114", "0.5514477", "0.55121714", "0.5511124", "0.5505592", "0.5500675", "0.54921895", "0.5480699", "0.54794747", "0.54703355", "0.5447468", "0.5446299", "0.54417926", "0.54411507", "0.54385126", "0.5427427", "0.54243", "0.54108405", "0.5409067", "0.5403678", "0.53998166", "0.5391742", "0.5387848", "0.5385836", "0.5377327", "0.53766644", "0.537256", "0.5367724", "0.53648627", "0.5362663", "0.5353486", "0.535306", "0.53520614", "0.534829", "0.5344837", "0.53409296", "0.53401726", "0.5333064", "0.53324777", "0.5331436", "0.5320041", "0.53176755", "0.5315304", "0.5314426", "0.5311668", "0.5310886" ]
0.6088261
9
method used to generate the entry nodes inside the search
private static State generateInitialState(double initialHeuristic) { ArrayList<List<Job>> jobList = new ArrayList<>(RecursionStore.getNumberOfProcessors()); for (int i = 0; i < RecursionStore.getNumberOfProcessors(); i++) { jobList.add(new ArrayList<>()); } int[] procDur = new int[RecursionStore.getNumberOfProcessors()]; java.util.Arrays.fill(procDur, 0); return new State(jobList, procDur, initialHeuristic, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getEntryNode();", "public void create(Set<Entry<Integer,String>> entries) {\n\t\t//System.out.printf(\"entriesSize %d pageSize %d and entries %s\\n\",entries.size(), pageSize, entries);\n\t\tassert(entries.size() > this.pageSize);\n\t\t\n\t\tMap<Integer,String> entries_map = new TreeMap<Integer, String>();\n\t\tIterator<Entry<Integer, String>> my_itr = entries.iterator();\n\t\tEntry<Integer, String> entry;\n\t\twhile(my_itr.hasNext())\n\t\t{\n\t\t\tentry = my_itr.next();\n\t\t\tentries_map.put(entry.getKey(), entry.getValue());\n\t\t}\n\t\t\n\t\tentries.clear();\n\t\tentries = entries_map.entrySet();\n\t\t//System.out.printf(\"Entries after sorting %s\\n\", entries);\n\t\t// Create an new root (old data will be discarded)\n\t\tthis.root = new IsamIndexNode(pageSize);\n\t\t\n // Calculating height of the tree\n\t\tInteger height_counter = 0;\n\t\tInteger num_pages_needed = (entries.size() - 1)/ this.pageSize / 3;\n\t\t\n\t\twhile(num_pages_needed != 0)\n\t\t{\n\t\t\theight_counter++;\n \tnum_pages_needed = num_pages_needed / 3; /* 3 is the fan out */\n\t\t}\n // At this moment we have calculated the height as per the defination provided in section 10.3 of Textbook\n\t\t// Creating the indexes.\n\n\t\theight = height_counter + 1;\n // Create the data nodes\n\t\tList<IsamDataNode> dataNodes = new ArrayList<IsamDataNode>();\n\t\t\n\t\t//Iterator<Entry<Integer, String>> \n\t\tmy_itr = entries.iterator();\n\t\t//Entry<Integer, String> entry;\n\t\tIsamDataNode new_node = new IsamDataNode(pageSize);\n\t\t\n\t\tInteger i = 0;\n\t\twhile(my_itr.hasNext())\n\t\t{\n\t\t\tentry = my_itr.next();\n\t\t\tnew_node.insert(entry.getKey(), entry.getValue());\n\t\t\t++i;\n\t\t\tif(i%pageSize == 0 && i != 0)\n\t\t\t{\n\t\t\t\tdataNodes.add(new_node);\n\t\t\t\tnew_node = new IsamDataNode(pageSize);\n\t\t\t}\n\t\t}\n\t\tif(i%pageSize != 0 || i == 0)\n\t\t{\n\t\t\tdataNodes.add(new_node);\n\t\t}\n\t\t\n\t\t// At this point dataNodes contains the list of DataNodes\n\t\t\n\t\t/*\n * Helper function to print all dataNodes we have created\n\t\ti = 0;\n\t\tfor(IsamDataNode data_node : dataNodes)\n\t\t{\n\t\t\tSystem.out.printf(\"<Node id=%d num_keys=%d>\",i, data_node.num_records);\n\t\t\tfor(Integer key : data_node.keys)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d = %s \",key, data_node.search(key));\n\t\t\t}\n\t\t\tSystem.out.printf(\"</Node>\");\n\t\t\t++i;\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t\t*/\n\t\t\n /* Make the first level index nodes of type IsamIndexNode which point to IsamDataNode */\n Iterator<IsamDataNode> data_nodes_itr = dataNodes.iterator();\n\t\tList<IsamIndexNode> upper_level_nodes = new ArrayList<IsamIndexNode>();\n IsamDataNode dataElement;\n IsamIndexNode index_node;\n while(data_nodes_itr.hasNext())\n {\n // Take pageSize + 1 data nodes and index them using one IndexNode \n i = 0;\n index_node = new IsamIndexNode(pageSize);\n while(data_nodes_itr.hasNext() && i != pageSize+1)\n {\n dataElement = data_nodes_itr.next();\n index_node.children[i] = dataElement;\n if(i != 0)\n {\n index_node.keys[i-1] = dataElement.keys[0];\n }\n ++i;\n }\n upper_level_nodes.add(index_node);\n }\n /* Make the rest of the Index tree */\n List<IsamIndexNode> lower_level_nodes = upper_level_nodes;\n\t\tIsamIndexNode element;\n\t\tInteger current_height = 0;\n\t\t\n while(height != current_height)//change\n\t\t{// At each height level\n\t\t\tcurrent_height++;\n\t\t\tupper_level_nodes = new ArrayList<IsamIndexNode>();\n\t\t\tIterator<IsamIndexNode> lower_itr = lower_level_nodes.iterator();\n\t\t\twhile(lower_itr.hasNext()) // get all Index Nodes\n\t\t\t{\n i = 0;\n\t\t\t\tindex_node = new IsamIndexNode(pageSize);\n\t\t\t\twhile(lower_itr.hasNext() && i != pageSize+1) // Get Elements inside an Index Node\n\t\t\t\t{\n\t\t\t\t\telement = lower_itr.next();\n\t\t\t\t\tindex_node.children[i] = element;\n\t\t\t\t\tif(i != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tindex_node.keys[i-1] = element.get_child_key_for_parent();\n\t\t\t\t\t}\n\t\t\t\t\t++i;\n\t\t\t\t}\n\t\t\t\tupper_level_nodes.add(index_node);\n\t\t\t}\n\t\t\tlower_level_nodes.clear();\n\t\t\tlower_level_nodes = upper_level_nodes;\n\t\t}\n\t\t\n\t\t// At this point we should have only one root node.\n\t\t//System.out.printf(\"Root node size %d \\n\",upper_level_nodes.size());\n\t\tif(upper_level_nodes.size() != 1)\n\t\t{\n\t\t\tSystem.out.printf(\"I have erred!!\\n\");\n\t\t}\n\t\troot = (IsamIndexNode) upper_level_nodes.get(0);\n\t}", "public static void build ()\r\n {\r\n lgt.insert(1);\r\n lgt.insert(2);\r\n lgt.insert(5);\r\n \r\n lgt.findRoot();\r\n lgt.insert(3);\r\n \r\n lgt.findRoot();\r\n lgt.insert(4);\r\n \r\n lgt.insert(6);\r\n lgt.findParent();\r\n lgt.insert(7);\r\n \r\n }", "public Stack<Entry> readNodeEntries() {\n FileLocation thisNode = null;\n Stack<Entry> nodeEntries = new Stack<Entry>();\n try {\n int port = FileApp.getMyPort();\n thisNode = new FileLocation(port);\n } catch (UnknownHostException ex) {\n System.err.println(\"Mapper.read node entries uknown host exception\");\n }\n Stack<Integer> nodeHashes = FileApp.getHashes();\n while (!nodeHashes.empty()) {\n nodeEntries.push(new Entry(nodeHashes.pop(), thisNode));\n }//while (!nodeHashes.empty()\n printAct(\">scanned my node's files\");\n return nodeEntries;\n }", "public void buildTaxonomyTree(String name){\n IndexHits<Node> foundNodes = findTaxNodeByName(name);\n Node firstNode = null;\n if (foundNodes.size() < 1){\n System.out.println(\"name '\" + name + \"' not found. quitting.\");\n return;\n } else if (foundNodes.size() > 1) {\n System.out.println(\"more than one node found for name '\" + name + \"'not sure how to deal with this. quitting\");\n } else {\n for (Node n : foundNodes)\n firstNode = n;\n }\n TraversalDescription CHILDOF_TRAVERSAL = Traversal.description()\n \t\t .relationships( RelTypes.TAXCHILDOF,Direction.INCOMING );\n \t\tSystem.out.println(firstNode.getProperty(\"name\"));\n \t\tJadeNode root = new JadeNode();\n \t\troot.setName(((String) firstNode.getProperty(\"name\")).replace(\" \", \"_\"));\n \t\tHashMap<Node,JadeNode> nodes = new HashMap<Node,JadeNode>();\n \t\tnodes.put(firstNode, root);\n \t\tint count =0;\n \t\tfor(Relationship friendrel : CHILDOF_TRAVERSAL.traverse(firstNode).relationships()){\n \t\t\tcount += 1;\n \t\t\tif (nodes.containsKey(friendrel.getStartNode())==false){\n \t\t\t\tJadeNode node = new JadeNode();\n \t\t\t\tnode.setName(((String) friendrel.getStartNode().getProperty(\"name\")).replace(\" \", \"_\").replace(\",\", \"_\").replace(\")\", \"_\").replace(\"(\", \"_\").replace(\":\", \"_\"));\n \t\t\t\tnodes.put(friendrel.getStartNode(), node);\n \t\t\t}\n \t\t\tif(nodes.containsKey(friendrel.getEndNode())==false){\n \t\t\t\tJadeNode node = new JadeNode();\n \t\t\t\tnode.setName(((String)friendrel.getEndNode().getProperty(\"name\")).replace(\" \", \"_\").replace(\",\", \"_\").replace(\")\", \"_\").replace(\"(\", \"_\").replace(\":\", \"_\"));\n \t\t\t\tnodes.put(friendrel.getEndNode(),node);\n \t\t\t}\n \t\t\tnodes.get(friendrel.getEndNode()).addChild(nodes.get(friendrel.getStartNode()));\n \t\t\tif (count % 100000 == 0)\n \t\t\t\tSystem.out.println(count);\n \t\t}\n \t\tJadeTree tree = new JadeTree(root);\n \t\tPrintWriter outFile;\n \t\ttry {\n \t\t\toutFile = new PrintWriter(new FileWriter(\"taxtree.tre\"));\n \t\t\toutFile.write(tree.getRoot().getNewick(false));\n \t\t\toutFile.write(\";\\n\");\n \t\t\toutFile.close();\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}", "protected void addingNode( SearchNode n ) { }", "void buildTree(){\n while(second.hasNext()){\n String s = second.next();\n String[] arr = s.split(SPLIT);\n //descending sort according to num\n Arrays.sort(arr, (String s1, String s2)->{\n int a = this.keyToNum.getOrDefault(s1, 0);\n int b = this.keyToNum.getOrDefault(s2, 0);\n if (a <= b)\n return 1;\n else\n return -1;\n });\n\n //current node\n TreeNode curr = root;\n for (String item: arr){\n if (!keyToNum.containsKey(item))\n continue;\n if(!curr.containChild(item)){\n TreeNode node = curr.addChild(item);\n //change the current node\n curr = node;\n //add new node in table\n TableEntry e = table.get(keyToIdx.get(item));\n e.addNode(node);\n }else{\n curr = curr.getChild(item);\n curr.setNum(curr.getNum()+1);\n }\n }\n }\n /*\n this.root.print();\n for(TableEntry e: table){\n Iterator<TreeNode> it = e.getIterator();\n while(it.hasNext()){\n System.out.print(it.next().getItem()+\" \");\n }\n System.out.println();\n }\n */\n }", "public void createWhereUsedNode() {\n whereUsedProvider = new FieldWhereUsedInCdsElementInfoProvider(destinationProvider.getDestinationId(),\n baseEntityName, baseFieldName, false, SearchAndAnalysisPlugin.getDefault()\n .getPreferenceStore()\n .getBoolean(FieldAnalysisView.SEARCH_DB_VIEWS_WHERE_USED_PREF_KEY));\n whereUsedNode = new FieldHierarchyViewerNode(new LazyLoadingFolderNode(baseFieldName, whereUsedProvider, null,\n null));\n }", "private void getEntries() {\r\n\r\n\t\tif(displayEntries.size() > 0){\r\n\t\t\tfor (int i = 0; i<displayEntries.size(); i++){\r\n\t\t\t\tNameSurferEntry entries = displayEntries.get(i);\r\n\t\t\t\tdrawRankGraph(entries,i);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void iterate() {\n\t\t// iterator\n\t\tQueue<NDLMapEntryNode<T>> nodes = new LinkedList<NDLMapEntryNode<T>>();\n\t\tnodes.add(rootNode);\n\t\twhile(!nodes.isEmpty()) {\n\t\t\t// iterate BFSwise\n\t\t\tNDLMapEntryNode<T> node = nodes.poll();\n\t\t\tif(node.end) {\n\t\t\t\t// end of entry, call processor\n\t\t\t\tif(keyProcessor != null) {\n\t\t\t\t\tkeyProcessor.process(node.data);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(node.keys != null) {\n\t\t\t\t// if available\n\t\t\t\tnodes.addAll(node.keys.values()); // next nodes to traverse\n\t\t\t}\n\t\t}\n\t}", "public ResultMap<BaseNode> findNodes(ObjectNode query, String searchTerm, ObjectNode traverse, Pagination pagination);", "public static void main(String[] args) {\n\t\ttry {\n//\t\t\tExtractorXML xml = new ExtractorXML(\"./TLf6PpaaExclBrkdnD-sqlMap.xml\", \"utf-8\");\n\t\t\tExtractorXML xml = new ExtractorXML(\"D:/tmp/test.xml\",\"utf-8\");\n\n\n\t\t\tTObj nd = xml.doAnalyze();\n\n\t\t\txml.dump(\"c:\\\\a.out\");\n/*\t\t\tfor ( int i = 0; ; i ++) {\n\t\t\tif (xml.getAttributeValue(\"/sqlMap/insert[\" + i +\"]\", \"id\") == null)\n\t\t\t\tbreak;\n\t\t\tSystem.out.println(xml.getAttributeValue(\"/sqlMap/insert[\" + i +\"]\", \"id\"));\n\t\t\t}*/\n\n\t\t//System.out.println(\"!!\" + rootnode.getNodeValue(\"/navigation/action[\" + 3 +\"]\"));\n\n\t\t\tSystem.out.println(\"root=\"+xml.getRootName());\n//\t\tArrayList arr = node_list.get(3).sublist;\n\n/*\t\tfor(int i = 0; i < arr.size() ; i ++){\n\n\t\t\tnode_data ndd = (node_data)arr.get(i);\n\t\t\tif(ndd.nodename.equals(\"command\") ){\n\t\t\t\t//System.out.println(ndd.tlocation.getStartLine() + \" :: \" + ndd.nodename + \" :: \" + ndd.tlocation.getEndLine());\n\t\t\t\tfor(int j =0; j < ndd.sublist.size() ; j ++){\n\t\t\t\t\tSystem.out.println(ndd.sublist.get(j).nodename);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n*/\n\t\t/*\tfor(int j =0 ; j < node_list.size(); j ++){\n\n\t\t\tnode_data nd = (node_data)node_list.get(j);\n\t\t\tSystem.out.println(nd.keylist.get(0).value + \" TLOCATION start :: \" + nd.tlocation.getStartLine() + \" TLOCATION end :: \" + nd.tlocation.getEndLine());\n\t\t}\n\t\tSystem.out.println(rootnode.sublist.get(0).tlocation.getStartLine() + \" \"+ rootnode.sublist.get(0).tlocation.getEndLine());\n\t\t */\n\t\t\t// xml.log.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\t// TODO: handle exception\n\t\t}\n\t}", "void makeTree()\n \t{\n \t\t\t \n \t\tobj.insert(5,\"spandu\");\n \tobj.insert(4,\"anshu\");\n \tobj.insert(3,\"anu\");\n \tobj.insert(6,\"himani\");\n \t\t\n \t}", "entities.Torrent.NodeSearchResult getResults(int index);", "private Node getEntryNode(IStatementContainer nd) {\n Node entry = entryNodeCache.get(nd);\n if (entry == null) {\n entry =\n new Node(\n \"Entry\", new SourceLocation(\"\", nd.getLoc().getStart(), nd.getLoc().getStart())) {\n @Override\n public <Q, A> A accept(Visitor<Q, A> v, Q q) {\n return null;\n }\n };\n entryNodeCache.put(nd, entry);\n Label lbl = trapwriter.localID(entry);\n trapwriter.addTuple(\n \"entry_cfg_node\", lbl, nd instanceof Program ? toplevelLabel : trapwriter.localID(nd));\n locationManager.emitNodeLocation(entry, lbl);\n }\n return entry;\n }", "private void fillTreeView() {\n SimpleDateFormat format = new SimpleDateFormat(\"dd-MM-yyyy\");\n Start.setText(format.format(start));\n End.setText(format.format(end));\n if (makeCalendarByDays()) {\n TreeItem<String> rootItem = new TreeItem<>(\"Root\",null);\n rootItem.setExpanded(true);\n for (Date date: calendarByDays.keySet()) {\n TreeItem<String> day = new TreeItem<>(format.format(date));\n for (Date dateTime : calendar.keySet()) {\n if (date.getTime() <= dateTime.getTime()\n && dateTime.getTime() < (date.getTime() + 3600000 * 24)) {\n for (String task : calendar.get(dateTime)) {\n String taskToPut = task.substring(0, task.indexOf(\", a\"));\n TreeItem<String> taskItem = new TreeItem<>(taskToPut);\n day.getChildren().add(taskItem);\n }\n }\n }\n if (day.getChildren().size() != 0)\n rootItem.getChildren().add(day);\n }\n calendarTreeView.setRoot(rootItem);\n calendarTreeView.setShowRoot(false);\n calendarTreeView.refresh();\n }\n }", "public void printTreeNodes(){\n logger.trace(\"Name: \"+this.getName());\n for(int i=0;i<this.getChildCount();i++){\n SearchBaseNode node = (SearchBaseNode) this.getChildAt(i);\n node.printTreeNodes();\n }\n }", "public ResultMap<BaseNode> findNodes(ObjectNode query, String searchTerm, ObjectNode traverse);", "private ArchiveEntriesTree buildArchiveEntriesTree() {\n ArchiveEntriesTree tree = new ArchiveEntriesTree();\n String repoKey = getRepoKey();\n ArchiveInputStream archiveInputStream = null;\n try {\n ArchiveEntry archiveEntry;\n // create repo path\n RepoPath repositoryPath = InternalRepoPathFactory.create(repoKey, getPath());\n archiveInputStream = getRepoService().archiveInputStream(repositoryPath);\n while ((archiveEntry = archiveInputStream.getNextEntry()) != null) {\n tree.insert(InfoFactoryHolder.get().createArchiveEntry(archiveEntry), repoKey, getPath());\n }\n } catch (IOException e) {\n log.error(\"Failed to get zip Input Stream: \" + e.getMessage());\n } finally {\n if (archiveInputStream != null) {\n IOUtils.closeQuietly(archiveInputStream);\n }\n return tree;\n }\n }", "protected void generateEntries() {\n Iterator<Label> entryLabelsIterator = entryLabels.iterator();\n for (KtWhenEntry entry : expression.getEntries()) {\n v.visitLabel(entryLabelsIterator.next());\n\n FrameMap.Mark mark = codegen.myFrameMap.mark();\n codegen.gen(entry.getExpression(), resultType);\n mark.dropTo();\n\n if (!entry.isElse()) {\n v.goTo(endLabel);\n }\n }\n }", "public Section generate(Entry... entries);", "protected abstract List<Entry> buildFeedEntries(\n\t\t\tMap<String, Object> model, HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows Exception;", "public static void main(String[] args) {\n\n\n\t\tArrayList<Node> N = new ArrayList<Node>();\n\t\t\n\t\t/*\n\t\t * ##### Encoding Model 2 ###### \n\t\t */\n\t\t\n\t\t\n\t\t/*\n\t\t * Encoding the privilege nodes\n\t\t */\n\t\tfor(int i=1; i<7; i++)\n\t\t{\n\t\t\tN.add(new Node(\"p\"+i, 1));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Encoding the exploit nodes\t\t \n\t\t */\n\t\tfor(int i=1; i<8; i++)\n\t\t{\n\t\t\tN.add(new Node(\"e\"+i, 2));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Encoding the child nodes\n\t\t */\n\t\tfor(int i=1; i<12; i++)\n\t\t{\n\t\t\tN.add(new Node(\"c\"+i, 0));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Assigning the children and parent(s) for each node according to model 2\n\t\t */\n\t\t\n\t\tArrayList<Node> nil = new ArrayList<Node>();\n\t\t\n\t\tN.get(0).setParents(nil);\n\t\tN.get(0).addChild(N.get(6));\n\t\t\n\t\tN.get(6).addParent(N.get(0));\n\t\tN.get(6).addChild(N.get(1));\n\t\tN.get(6).addChild(N.get(13));\n\t\tN.get(6).addChild(N.get(14));\n\t\t\n\t\tN.get(1).addParent(N.get(6));\n\t\tN.get(1).addChild(N.get(7));\n\t\tN.get(1).addChild(N.get(8));\n\t\t\n\t\tN.get(7).addParent(N.get(1));\n\t\tN.get(7).addChild(N.get(15));\n\t\tN.get(7).addChild(N.get(2));\n\t\t\n\t\tN.get(2).addParent(N.get(7));\n\t\tN.get(2).addChild(N.get(10));\t\t\n\t\t\n\t\tN.get(8).addParent(N.get(1));\n\t\tN.get(8).addChild(N.get(16));\n\t\tN.get(8).addChild(N.get(3));\n\t\t\n\t\tN.get(3).addParent(N.get(8));\n\t\tN.get(3).addChild(N.get(9));\n\t\t\n\t\tN.get(10).addParent(N.get(2));\n\t\tN.get(10).addChild(N.get(5));\n\t\tN.get(10).addChild(N.get(19));\n\t\tN.get(10).addChild(N.get(20));\n\t\t\n\t\tN.get(9).addParent(N.get(3));\n\t\tN.get(9).addChild(N.get(4));\n\t\tN.get(9).addChild(N.get(17));\n\t\tN.get(9).addChild(N.get(18));\n\t\t\n\t\tN.get(4).addParent(N.get(9));\n\t\tN.get(4).addChild(N.get(12));\n\t\t\n\t\tN.get(5).addParent(N.get(10));\n\t\tN.get(5).addChild(N.get(11));\n\t\t\n\t\tN.get(12).addParent(N.get(4));\n\t\tN.get(12).addChild(N.get(22));\n\t\tN.get(12).addChild(N.get(23));\n\t\t\n\t\tN.get(11).addParent(N.get(5));\n\t\tN.get(11).addChild(N.get(21));\n\t\tN.get(11).addChild(N.get(23));\n\t\t\n\t\tN.get(13).addParent(N.get(6));\n\t\tN.get(14).addParent(N.get(6));\n\t\tN.get(15).addParent(N.get(7));\n\t\tN.get(16).addParent(N.get(8));\n\t\tN.get(17).addParent(N.get(9));\n\t\tN.get(18).addParent(N.get(9));\n\t\tN.get(19).addParent(N.get(10));\n\t\tN.get(20).addParent(N.get(10));\n\t\tN.get(21).addParent(N.get(11));\n\t\tN.get(22).addParent(N.get(12));\n\t\tN.get(23).addParent(N.get(11));\n\t\tN.get(23).addParent(N.get(12));\n\t\t\n\t\t\n\t\t/*\n\t\t * Encoding the C,I,A values for each node\n\t\t */\n\t\t\n\t\tN.get(0).setImpacts(4, 4, 4);\n\t\tN.get(1).setImpacts(1, 2, 3);\n\t\tN.get(2).setImpacts(2, 2, 1);\n\t\tN.get(3).setImpacts(1, 2, 1);\n\t\tN.get(4).setImpacts(1, 1, 1);\n\t\tN.get(5).setImpacts(3, 2, 3);\n\t\tN.get(13).setImpacts(3,3,3);\n\t\tN.get(14).setImpacts(3,3,3);\n\t\tN.get(15).setImpacts(3,3,3);\n\t\tN.get(16).setImpacts(3,3,3);\n\t\tN.get(17).setImpacts(3,3,3);\n\t\tN.get(18).setImpacts(3,3,3);\n\t\tN.get(19).setImpacts(3,3,3);\n\t\tN.get(20).setImpacts(3,3,3);\n\t\tN.get(21).setImpacts(3,3,3);\n\t\tN.get(22).setImpacts(3,3,3);\n\t\tN.get(23).setImpacts(2,2,1);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/*\n\t\t * This block helps see the setup of the whole tree. \n\t\t * Comment out if not required to see the parent children relationship of each node.\n\t\t */\n\t\t\n\t\tfor(int i=0; i<24; i++)\n\t\t{\n\t\t\tSystem.out.println(\"\\n\\n\" + N.get(i).getName() + \" < C=\" + N.get(i).getImpactC() + \", I=\" + N.get(i).getImpactI() + \", A=\" + N.get(i).getImpactA() + \" >\" );\n\t\t\tSystem.out.println(\"Parents: \");\n\t\t\tfor(int j=0; j<N.get(i).getParents().size(); j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(N.get(i).getParents().get(j).getName() + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\\nChildren: \");\n\t\t\tfor(int k=0; k<N.get(i).getChildren().size(); k++)\n\t\t\t{\n\t\t\t\tSystem.out.print(N.get(i).getChildren().get(k).getName() + \" \");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * Calling the method which will perform the C,I,A impact analysis \n\t\t */\n\t\t\n\t\t//Node n = new Node(); //Commented out as extended Main to Node and declared impactAnalysis() as static \n\t\t\n\t\tImpactAnalyzer ia = new ImpactAnalyzer();\n\t\tia.analyze(2, 2, 1, N);\n\t\t\n\t\t\n\t\t\n\t}", "private Element generateCriteriaElementForExcerpt(XmlProcessor hqmfXmlProcessor, NodeList entryChildNodes) {\n\t\tElement criteriaElement = null;\n\t\tfor (int i = 0; i < entryChildNodes.getLength(); i++) {\n\t\t\tNode childNode = entryChildNodes.item(i);\n\t\t\tString childNodeName = childNode.getNodeName();\n\t\t\tif (childNodeName.contains(\"Criteria\")) {\n\t\t\t\tcriteriaElement = hqmfXmlProcessor.getOriginalDoc().createElement(childNodeName);\n\t\t\t\tcriteriaElement.setAttribute(CLASS_CODE,\n\t\t\t\t\t\tchildNode.getAttributes().getNamedItem(CLASS_CODE).getNodeValue());\n\t\t\t\tcriteriaElement.setAttribute(MOOD_CODE,\n\t\t\t\t\t\tchildNode.getAttributes().getNamedItem(MOOD_CODE).getNodeValue());\n\t\t\t\tNodeList criteriaChildNodes = childNode.getChildNodes();\n\t\t\t\tfor (int j = 0; j < criteriaChildNodes.getLength(); j++) {\n\t\t\t\t\tNode criteriaChildNode = criteriaChildNodes.item(j);\n\t\t\t\t\tif (ID.equalsIgnoreCase(criteriaChildNode.getNodeName())) {\n\t\t\t\t\t\tElement idElement = hqmfXmlProcessor.getOriginalDoc().createElement(ID);\n\t\t\t\t\t\tidElement.setAttribute(ROOT,\n\t\t\t\t\t\t\t\tcriteriaChildNode.getAttributes().getNamedItem(ROOT).getNodeValue());\n\t\t\t\t\t\tidElement.setAttribute(EXTENSION,\n\t\t\t\t\t\t\t\tcriteriaChildNode.getAttributes().getNamedItem(EXTENSION).getNodeValue());\n\t\t\t\t\t\tcriteriaElement.appendChild(idElement);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn criteriaElement;\n\t}", "private void populateOutputsInTree() {\n\t\tfor (ServiceNode s: serviceMap.values()) {\n\t\t\tfor (String outputVal : s.getOutputs())\n\t\t\t\ttaxonomyMap.get(outputVal).services.add(s);\n\t\t}\n\n\t\t// Now add the outputs of the input node\n\t\tfor (String outputVal : inputNode.getOutputs())\n\t\t\ttaxonomyMap.get(outputVal).services.add(inputNode);\n\t}", "private void createNodes( DefaultMutableTreeNode top ) {\n DefaultMutableTreeNode leaf = null;\n \n leaf = new DefaultMutableTreeNode( new treeInfo(\"Insert Transaction\") );\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Item\") );\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Report\") );\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Employee\") );\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Suplier\"));\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Salesman\"));\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Customer\"));\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Commisioner\"));\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Edit Transaction\"));\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Producer\"));\n top.add(leaf);\n }", "java.util.List<entities.Torrent.NodeSearchResult>\n getResultsList();", "private void buildFunctionList(DefaultMutableTreeNode root){\n MBTNode\n calculatedMembersNode\n , rowsNode\n , columnsNode\n , pagesNode\n , fromNode\n , whereNode;\n\n calculatedMembersNode = new MBTWithMembersNode(\"WITH\");\n /**\n * Changed second parameter from 'true' to 'false' to allow empty results on axis.\n * By Prakash. 8 June 2007. \n */\n rowsNode = new DefaultMBTAxisNode(\"ROWS\", false);\n columnsNode = new DefaultMBTAxisNode(\"COLUMNS\", false);\n pagesNode = new DefaultMBTAxisNode(\"PAGES\", false);\n /*\n *\tEnd of the modification.\n */\n fromNode = new MBTFromNode(cubeName);\n whereNode =new MBTWhereNode(\"WHERE\");\n\n ((MBTNode) (root).getUserObject()).addChild(calculatedMembersNode);\n ((MBTNode) (root).getUserObject()).addChild(columnsNode);\n ((MBTNode) (root).getUserObject()).addChild(rowsNode);\n ((MBTNode) (root).getUserObject()).addChild(pagesNode);\n ((MBTNode) (root).getUserObject()).addChild(fromNode);\n ((MBTNode) (root).getUserObject()).addChild(whereNode);\n\n root.add(new DefaultMutableTreeNode(calculatedMembersNode));\n root.add(new DefaultMutableTreeNode(columnsNode));\n root.add(new DefaultMutableTreeNode(rowsNode));\n root.add(new DefaultMutableTreeNode(pagesNode));\n root.add(new DefaultMutableTreeNode(fromNode));\n root.add(new DefaultMutableTreeNode(whereNode));\n\n }", "@Override\n\tpublic HashMap<Position, Node> generate(){\n\t\tNode tempNode;\n\t\tPosition tempPosition;\n\t\tif(map != null && map.isEmpty()){\n\t\t\tfor(int y=0; y<numNodesY; y++){\n\t\t\t\tfor(int x=0; x<numNodesX; x++){\n\t\t\t\t\ttempPosition = new Position(x*nodeDistance, \n\t\t\t\t\t\t\ty*nodeDistance);\n\t\t\t\t\ttempNode = new Node(field, tempPosition,\n\t\t\t\t\t\t\tnodeSignalStrength,\n\t\t\t\t\t\t\tagentLife,\n\t\t\t\t\t\t\trequestLife);\n\t\t\t\t\tmap.put(tempPosition, tempNode);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn new HashMap<Position, Node>(map);\n\t}", "private void addGeneSetInfo(DefaultMutableTreeNode root) {\n Object[][] results = new Object[this.resultMatrix.A.length][this.resultMatrix.A[0].length+1];\r\n for (int i=0; i<results.length; i++){\r\n \tfor (int j=1; j<results[0].length; j++){\r\n \t\tresults[i][j]= resultMatrix.A[i][j-1];\r\n \t}\r\n }\r\n\r\n for (int i=0; i<results.length; i++){\r\n \tresults[i][0] = geneListNames[i];\r\n }\r\n String[] columns = {\"Gene List\",\"Gene Count\", \"F-value\", \"p-value (permutation)\", \"p-value (approximate)\"};\r\n \r\n IViewer tabViewer = new GLOBALANCResultTable(results,columns);\r\n \troot.add(new DefaultMutableTreeNode(new LeafInfo(\"Results Table\", tabViewer, new Integer(0))));\r\n\t\t\r\n\t}", "private void populateTaxonomyTree() {\n\t\tfor (Node s: serviceMap.values()) {\n\t\t\taddServiceToTaxonomyTree(s);\n\t\t}\n\t}", "public Set<DirectoryEntry> buildDirectory() {\r\n\t\tfinal Set<DirectoryEntry> result = new TreeSet<DirectoryEntry>();\r\n\t\tadvanceObjectsCollection();\r\n\r\n\t\twhile (this.in.readToTag()) {\r\n\t\t\tif (this.in.is(PersistReader.TAG_OBJECTS, false)) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tfinal String type = this.in.getTag().getName();\r\n\t\t\tfinal String name = this.in.getTag().getAttributeValue(\"name\");\r\n\t\t\tfinal String description = this.in.getTag().getAttributeValue(\r\n\t\t\t\t\t\"description\");\r\n\r\n\t\t\tfinal DirectoryEntry entry = new DirectoryEntry(type, name,\r\n\t\t\t\t\tdescription);\r\n\t\t\tresult.add(entry);\r\n\r\n\t\t\tskipObject();\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "public ResultMap<BaseNode> listChildren(Pagination pagination);", "private void startNonleafNode(ArrayList<String> out, CldrNode node, int level)\n throws IOException {\n String objName = node.getNodeKeyName();\n // Some node should be skipped as indicated by objName being null.\n if (objName == null) {\n return;\n }\n\n // first level need no key, it is the container.\n // if (level == 0) {\n // out.add(\"{\");\n // return;\n // }\n\n Map<String, String> attrAsValueMap = node.getAttrAsValueMap();\n out.add(indent(level) + \"\\\"\" + objName + \"\\\": {\");\n for (String key : attrAsValueMap.keySet()) {\n String value = escapeValue(attrAsValueMap.get(key));\n // attribute is prefixed with \"@\" when being used as key.\n out.add(indent(level + 1) + \"\\\"@\" + key + \"\\\": \\\"\" + value + \"\\\"\");\n }\n }", "Label getLabelRootRecherche();", "private void getNodeOperation(OperationResponse response, ObjectIdData requestData) {\n\t\t\n//\t\tString gehtNichtMeldung = \"{\\\"message\\\":\\\"MaPL currently is missing appropriate APIs to filter nodes intelligently.\\\"}\";\n//\t\tResponseUtil.addSuccess(response, requestData, String.valueOf(200), ResponseUtil.toPayload(gehtNichtMeldung));\n\t\t\n\t\t\n\t\trestWrapper = MapsHelpers.initRestWrapperAndLogin(getContext());\n\t\tint httpStatusCode = 200;\n\t\tLogger.severe(\"Object ID : \" + requestData.getObjectId());\n\t\tLogger.severe(\"Dynamic props : \" + requestData.getDynamicProperties().toString());\n\t\tLogger.severe(\"User def props: \" + requestData.getUserDefinedProperties().toString());\n\t\t\n\t\tif ( restWrapper != null ) {\n\t\t\tJSONArray allNodes = new JSONArray();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tString additionalInfo = \"?withAdditionalInfo=true\";\n\t\t\t\t\n\t\t\t\tString treeId = requestData.getObjectId();\n\t\t\t\t\n\t\t\t\tLogger.severe(\"Find all nodes for tree ID \" + treeId );\n\t\t\t\t\n//\t\t\t\tResponseUtil.addSuccess(response, requestData, String.valueOf(httpStatusCode), ResponseUtil.toPayload(allNodes.toString(4)));\n//\t\t\t\treturn;\n\t\t\t\t\n\t\t\t\tString restPath = \"/node/root/\" + treeId + additionalInfo;\n\t\t\t\t\n\t\t\t\tObject result = restWrapper.httpGetRequest(restPath, new HashMap<String, String>());\n\t\t\t\t\n\t\t\t\tallNodes.put(result);\n\t\t\t\n\t\t\t\tgetChildren(allNodes, treeId, (JSONObject)result, 0);\n\t\t\t\tLogger.severe(\"Found nodes: \" + allNodes.length() );\n\t\t\t\t\n\t\t\t\thttpStatusCode = restWrapper.getHttpClient().getLastStatus();\n\t\t\t\t\n\t\t\t\tResponseUtil.addSuccess(response, requestData, String.valueOf(httpStatusCode), ResponseUtil.toPayload(allNodes.toString(4)));\n\t\t\t\t\n\t\t\t} catch (JSONException e) {\n\t\t\t\tLogger.log(Level.SEVERE, \"An error\", e);\n\t\t\t\tthrow new ConnectorException(e);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} else {\n\t\t\tresponse.addResult(requestData, OperationStatus.FAILURE, null, \"Authentication failed\", null);\n\t\t}\n\t\t\n\t}", "private HashMap<String,String> createQueryMap() {\n\t\t\n\t\tHashMap<String, String> map = new HashMap<String, String>();\n\t\t\n\t\t// Only include Pages with the CenterNet Event template\n\t\tmap.put(\"type\",\"cq:Page\");\n\t\tmap.put(\"path\", Constants.EVENTS);\n\t\tmap.put(\"property\",\"jcr:content/cq:template\");\n\t map.put(\"property.value\", Constants.EVENT_TEMPLATE);\n\n\t if (tags != null) {\n\t \tmap = addTagFilter(map);\n\t }\n\n\t // Only include Events whose start time is in the future\n\t map.put(\"relativedaterange.property\", PN_QUERY_START_TIME);\n\t map.put(\"relativedaterange.lowerBound\", \"-0d\");\n\t \n\t // Include all hits\n\t //map.put(\"p.limit\", maxNum.toString());\n\t map.put(\"p.limit\", maxNum);\n\t map.put(\"p.guessTotal\", \"true\");\n\t \n\t // Order by Start Time\n\t map.put(\"orderby\", PN_QUERY_START_TIME);\n\t map.put(\"orderby.sort\", \"asc\");\n\t \n\t\treturn map;\n\t\t\n\t}", "@Override\n protected Node createNodeForKey(Object key) {\n \n if (key instanceof SleuthkitVisitableItem) {\n return ((SleuthkitVisitableItem) key).accept(new CreateSleuthkitNodeVisitor());\n } else if (key instanceof AutopsyVisitableItem) {\n return ((AutopsyVisitableItem) key).accept(new RootContentChildren.CreateAutopsyNodeVisitor());\n }\n else {\n logger.log(Level.SEVERE, \"Unknown key type \", key.getClass().getName());\n return null;\n }\n }", "private void createLookup() {\r\n\t\tcreateLooupMap(lookupMap, objectdef, objectdef.getName());\r\n\t\tcreateChildIndex(childIndex, objectdef, objectdef.getName());\r\n\r\n\t}", "public void printNodes(){\n for(int i =0; i<n;i++)\n System.out.print(key[i]+\" \");\n System.out.println(isLeaf);\n if (!isLeaf){\n for(int i =0; i<=n;i++){\n c[i].printNodes();\n }\n }\n }", "private void readEntries(ArrayList<TextFinder> lst, NodeList nodes)\n throws VDDException {\n for (int k = 0; k < nodes.getLength(); k++) {\n Node node = nodes.item(k);\n if (node.getNodeType() != Node.ELEMENT_NODE) {\n continue;\n }\n if (!node.getNodeName().toLowerCase().equals(\"regex\")) {\n throw new VDDException(\"Unknown assert page entry type '\" +\n node.getNodeName() + \"'\");\n }\n\n lst.add(new TextFinder(node.getTextContent()));\n }\n }", "public static BlogDAO generateInitialEntries(BlogDAO blogDAO) {\n Entry entry1 = new Entry(\n \"First Entry\",\n \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Dolor purus non enim praesent elementum facilisis. Erat velit scelerisque in dictum non consectetur. Ultrices neque ornare aenean euismod. Lectus arcu bibendum at varius vel pharetra vel. Eu volutpat odio facilisis mauris sit amet. Leo urna molestie at elementum eu facilisis sed odio morbi. Bibendum arcu vitae elementum curabitur vitae nunc. Ut tristique et egestas quis ipsum suspendisse ultrices gravida dictum. Viverra accumsan in nisl nisi scelerisque eu ultrices vitae. Turpis cursus in hac habitasse. In aliquam sem fringilla ut. Morbi tristique senectus et netus et malesuada fames ac.\\n\" +\n \"\\n\" +\n \"Amet luctus venenatis lectus magna fringilla urna porttitor rhoncus. Id aliquet risus feugiat in ante metus dictum. Bibendum neque egestas congue quisque egestas diam in arcu cursus. Nulla facilisi nullam vehicula ipsum a arcu cursus vitae. Turpis egestas pretium aenean pharetra magna ac placerat. Non quam lacus suspendisse faucibus interdum posuere. Sem integer vitae justo eget magna fermentum. Nec sagittis aliquam malesuada bibendum arcu vitae elementum curabitur. Varius duis at consectetur lorem donec. Platea dictumst quisque sagittis purus. Ut lectus arcu bibendum at varius vel pharetra. Ullamcorper dignissim cras tincidunt lobortis feugiat vivamus at. Nunc id cursus metus aliquam eleifend mi in nulla. Diam volutpat commodo sed egestas egestas fringilla phasellus faucibus. Rutrum quisque non tellus orci. Ipsum dolor sit amet consectetur adipiscing. Ullamcorper dignissim cras tincidunt lobortis. Amet nisl suscipit adipiscing bibendum est ultricies integer quis auctor. Dolor purus non enim praesent elementum facilisis leo vel fringilla.\"\n );\n entry1.addTag(\"Tag 4\");\n blogDAO.addEntry(entry1);\n\n // entry with multiple tags\n Entry entry2 = new Entry(\n \"Second Entry\",\n \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hendrerit gravida rutrum quisque non tellus orci ac auctor augue. Vestibulum lectus mauris ultrices eros in. Accumsan sit amet nulla facilisi. Congue nisi vitae suscipit tellus mauris a. Proin nibh nisl condimentum id venenatis a condimentum vitae. Dui id ornare arcu odio ut sem nulla. Nisl purus in mollis nunc. Gravida in fermentum et sollicitudin ac orci phasellus. Sit amet nulla facilisi morbi tempus iaculis urna. Ullamcorper eget nulla facilisi etiam dignissim diam quis enim. Ac feugiat sed lectus vestibulum mattis ullamcorper. Aliquet eget sit amet tellus cras adipiscing enim eu. Nibh tortor id aliquet lectus proin nibh nisl.\\n\" +\n \"\\n\" +\n \"Proin nibh nisl condimentum id venenatis a condimentum vitae. Eu facilisis sed odio morbi quis commodo odio. Amet purus gravida quis blandit turpis. Cras fermentum odio eu feugiat pretium nibh ipsum consequat. Nulla malesuada pellentesque elit eget gravida cum sociis. Maecenas ultricies mi eget mauris pharetra et ultrices neque. Sed vulputate mi sit amet mauris commodo quis. Dignissim convallis aenean et tortor at risus viverra. Diam maecenas ultricies mi eget mauris pharetra. Pellentesque id nibh tortor id aliquet. Volutpat est velit egestas dui id ornare arcu odio. Et malesuada fames ac turpis egestas sed tempus urna.\\n\" +\n \"\\n\" +\n \"Id diam vel quam elementum pulvinar etiam non. Porta non pulvinar neque laoreet. Vitae turpis massa sed elementum tempus. Tempus quam pellentesque nec nam aliquam sem et tortor. Pellentesque nec nam aliquam sem et tortor consequat. Ullamcorper velit sed ullamcorper morbi tincidunt ornare massa eget egestas. Eu sem integer vitae justo. Nunc mattis enim ut tellus elementum. Quis viverra nibh cras pulvinar mattis nunc sed blandit. Condimentum mattis pellentesque id nibh.\"\n );\n entry2.addTag(\"Tag 3\");\n entry2.addTag(\"Tag 2\");\n entry2.addTag(\"Tag 1\");\n blogDAO.addEntry(entry2);\n\n // entry with no tags\n Entry entry3 = new Entry(\n \"Third Entry\",\n \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Scelerisque eu ultrices vitae auctor eu augue ut lectus arcu. Lectus magna fringilla urna porttitor rhoncus. Senectus et netus et malesuada fames ac. Egestas maecenas pharetra convallis posuere morbi leo. Tincidunt eget nullam non nisi est sit amet facilisis. Parturient montes nascetur ridiculus mus mauris. Scelerisque fermentum dui faucibus in ornare quam viverra orci sagittis. Nunc id cursus metus aliquam eleifend mi in nulla posuere. Velit dignissim sodales ut eu sem integer vitae. Scelerisque purus semper eget duis. Proin nibh nisl condimentum id venenatis a. Blandit turpis cursus in hac habitasse.\\n\" +\n \"\\n\" +\n \"Ac ut consequat semper viverra nam libero justo. Blandit aliquam etiam erat velit scelerisque in dictum non consectetur. Quam nulla porttitor massa id. Non enim praesent elementum facilisis leo vel fringilla est ullamcorper. Mauris rhoncus aenean vel elit scelerisque mauris. In fermentum et sollicitudin ac orci phasellus egestas tellus rutrum. Diam in arcu cursus euismod quis. Ridiculus mus mauris vitae ultricies leo integer malesuada. Diam quam nulla porttitor massa id neque aliquam vestibulum. In massa tempor nec feugiat nisl pretium fusce id velit. Nunc sed id semper risus in hendrerit gravida rutrum. Porttitor lacus luctus accumsan tortor posuere. Et pharetra pharetra massa massa ultricies mi quis hendrerit dolor. Enim tortor at auctor urna nunc id cursus. Metus aliquam eleifend mi in nulla. Massa vitae tortor condimentum lacinia quis vel. Scelerisque eu ultrices vitae auctor eu augue. Sollicitudin aliquam ultrices sagittis orci a scelerisque purus.\"\n );\n blogDAO.addEntry(entry3);\n\n return blogDAO;\n }", "private static void buildDetailedNode(Document document, NodeList childList, Node newHead) {\n Element detNode = document.createElement(\"offer\");\n for (int i = 0; i < childList.getLength(); i++) {\n Node current = childList.item(i);\n for (int j = 0; j < TableEntry.ENTRY_SIZE; j++) {\n if (current.getNodeName().equals(TableEntry.tags[j])) {\n Element element = document.createElement(current.getNodeName());\n element.setTextContent(current.getTextContent());\n detNode.appendChild(element);\n }\n }\n }\n newHead.appendChild(detNode);\n }", "public Entry output();", "private void createDOMTree(){\n\t\tElement rootEle = dom.createElement(\"Personnel\");\n\t\tdom.appendChild(rootEle);\n\n\t\t//No enhanced for\n\t\tIterator it = user.iterator();\n\t\twhile(it.hasNext()) {\n\t\t\tUserInformation b = (UserInformation)it.next();\n\t\t\t//For each Book object create element and attach it to root\n\t\t\tElement bookEle = createUserElement(b);\n\t\t\trootEle.appendChild(bookEle);\n\t\t}\n\t}", "Set<Node<K, V>> entrySet();", "public static void buildStage2 ()\r\n {\r\n \r\n lgt.findParent(); //4\r\n lgt.findChild(0); //6\r\n lgt.insert(12);\r\n lgt.findParent();\r\n lgt.insert(13);\r\n lgt.findParent();\r\n lgt.insert(14);\r\n \r\n lgt.findRoot();\r\n lgt.findChild(0);//2\r\n lgt.findChild(0);//5\r\n lgt.insert(8);\r\n lgt.findParent();\r\n lgt.insert(9);\r\n lgt.findParent();\r\n lgt.insert(10);\r\n lgt.findParent();\r\n lgt.insert(11);\r\n \r\n }", "@Override\r\n\t\tpublic Void doInBackground() {\r\n\t\t\tSet<MethodNode> entryNodes = model.getSubtrees(entryNodeId);\r\n\t\t\ttreePanel.generateTree(entryNodes);\r\n\t\t\treturn null;\r\n\t\t}", "private void addNodes() {\n\t\t\n\t\t// first line of controls\n\t\tHBox hbox1 = new HBox(10);\n\t\thbox1.setAlignment(Pos.CENTER_RIGHT);\n\t\t\n\t\tresetButton = new Button (\"Reset\");\n\t\t\n\t\thbox1.getChildren().add(resetButton);\n\t\t\n\t\t// second line of controls\n\t\tHBox hbox2 = new HBox(30);\n\t\t\n\t\tLabel filterBy = new Label(\"Filter by:\");\n\t\t\n\t\trbCourse.setUserData(\"Course\");\n\t\trbCourse.setToggleGroup(toggleGroup);\n\t\t\n\t\trbAuthor.setUserData(\"Author\");\n\t\trbAuthor.setToggleGroup(toggleGroup);\n\t\t\n\t\trbNone.setUserData(\"None\");\n\t\trbNone.setToggleGroup(toggleGroup);\n\t\trbNone.setSelected(true);\n\t\t\n\t\thbox2.getChildren().addAll(filterBy, rbCourse, rbAuthor, rbNone);\n\t\t\n\t\t// third line of controls\n\t\thbox3.getChildren().addAll(CourseSelectionBox.instance(), applyButton);\n\t\thbox3.setDisable(true);\n\t\t\n\t\t// fourth line of controls\n\t\tHBox hbox4 = new HBox(30);\n\t\t\n\t\tquizIDField.setPromptText(\"Enter quiz ID\");\n\t\t\n\t\thbox4.getChildren().addAll(quizIDField, searchButton);\n\t\t\n\t\t// add all nodes\n\t\tthis.getChildren().addAll(hbox1, hbox2, hbox3, hbox4);\n\t\t\n\t}", "public void createTree() {\n\t\taddNodeToParent(nodeMap);\n\t}", "@Override\n public void printTree() {\n System.out.println(\"node with char: \" + this.getChar() + \" and key: \" + this.getKey());\n int i = 0;\n for(IABTNode node : this.sons) {\n if(!node.isNull()) {\n System.out.print(\"Son \" + i + \" :\");\n node.printTree();\n }\n i++;\n }\n }", "public void queryForRoutingManager() {\n PreparedStatement stmt = null;\n\n try {\n //This statement will fetch all tables available in database.\n ResultSet rs = conn.getMetaData().getTables(null, null, null, null);\n while (rs.next()) {\n\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n Document doc = builder.newDocument();\n\n String ld = rs.getString(\"TABLE_NAME\");\n\n if (!(ld.equals(\"PurgeTable\")||ld.equals(\"UserToCertMap\"))) {\n\n String intValue = ld.replaceAll(\"[^0-9]\", \"\");\n int v = Integer.parseInt(intValue);\n Element root = doc.createElement(\"CheckingRootNodeForIndex\");\n doc.appendChild(root);\n\n root.setAttribute(\"LayerID\", intValue);\n int i = 1;\n stmt = conn.prepareStatement(\"select Key from \" + ld + \" where copyNum = ? \");\n stmt.setInt(1, 0);\n ResultSet rs2 = stmt.executeQuery();\n while (rs2.next()) {\n Element row1 = doc.createElement(\"DATA\");\n root.appendChild(row1);\n row1.setAttribute(\"INDEX\", \"[\" + i + \"]\");\n\n Element nodeID = doc.createElement(\"KEY\");\n nodeID.appendChild(doc.createTextNode(rs2.getString(\"key\")));\n row1.appendChild(nodeID);\n\n Element nodePub = doc.createElement(\"NEXTHOP\");\n nodePub.appendChild(doc.createTextNode(\"\"));\n row1.appendChild(nodePub);\n i += 1;\n }\n rs2.close();\n\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource domSource = new DOMSource(doc);\n\n StreamResult streamResult = new StreamResult(new File(ld + \"_RootNodeCheck\" + \".xml\"));\n transformer.transform(domSource, streamResult);\n File f = new File(ld + \"_RootNodeCheck\" + \".xml\");\n IMbuffer.addToIMOutputBuffer(f);\n\n\n } else {\n\n // System.out.println(\"No valid table exists\");\n }\n\n }\n rs.close();\n } catch (TransformerException | SQLException e) {\n e.printStackTrace();\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n }\n }", "public HashMap<String, String> getNextNode() throws XMLStreamException,\n\t\t\tIOException {\n\t\tboolean add_elements = false;\n\t\tString node_name = new String();\n\t\tHashMap<String, String> document = new HashMap<String, String>();\n\t\t// StringWriter tag_content = new StringWriter();\n\n\t\t// Loop over the document\n\t\twhile (xmlEventReader.hasNext()) {\n\t\t\txmlEvent = xmlEventReader.nextEvent();// get the next event\n\n\t\t\t// Start element\n\t\t\tif (xmlEvent.isStartElement()) {\n\t\t\t\tnode_name = xmlEvent.asStartElement().getName().getLocalPart();\n\t\t\t\tif (!node_name.equalsIgnoreCase(root_node)\n\t\t\t\t\t\t&& !formatter_nodes.contains(\"|\" + node_name + \"|\")) {\n\t\t\t\t\t// not 'dblp' and is a document type tag\n\t\t\t\t\tif (document_types.contains(\"|\" + node_name + \"|\")) {\n\t\t\t\t\t\tadd_elements = true;\n\t\t\t\t\t\tdocument.put(\"type\", node_name);\n\t\t\t\t\t\t// Read the attributes to the document\n\t\t\t\t\t\tgetAttributes(\n\t\t\t\t\t\t\t\txmlEvent.asStartElement().getAttributes(),\n\t\t\t\t\t\t\t\tdocument);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// xmlWriter = xmlOutputFactory\n\t\t\t\t\t\t// .createXMLEventWriter(tag_content);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (add_elements && xmlEvent.isEndElement()) {\n\t\t\t\tnode_name = xmlEvent.asEndElement().getName().getLocalPart();\n\t\t\t\tif (!formatter_nodes.contains(\"|\" + node_name + \"|\")) {\n\t\t\t\t\t// Close the XML writer\n\t\t\t\t\t// xmlWriter.close();\n\t\t\t\t\t// add the node content to the document\n\t\t\t\t\t// String tag_value = tag_content.toString();\n\t\t\t\t\t// if (tag_value != null)\n\t\t\t\t\t// addNode(node_name, tag_value.trim(), document);\n\t\t\t\t\t// // Refresh the tag content value\n\t\t\t\t\t// tag_content = new StringWriter();\n\t\t\t\t\t// Stop adding elements\n\t\t\t\t\tif (document_types.contains(\"|\" + node_name + \"|\")) {\n\t\t\t\t\t\tadd_elements = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (xmlEvent.isCharacters()) {\n\t\t\t\t// Add the characters to the XMLWriter stream\n\t\t\t\tString value = xmlEvent.asCharacters().getData().trim();\n\t\t\t\tif (!value.isEmpty())\n\t\t\t\t\taddNode(node_name, value, document);\n\n\t\t\t}\n\n\t\t}\n\t\treturn document;\n\n\t}", "public void constructJSONGraph(String name){\n \t IndexHits<Node> foundNodes = findTaxNodeByName(name);\n Node firstNode = null;\n if (foundNodes.size() < 1){\n System.out.println(\"name '\" + name + \"' not found. quitting.\");\n return;\n } else if (foundNodes.size() > 1) {\n System.out.println(\"more than one node found for name '\" + name + \"'not sure how to deal with this. quitting\");\n } else {\n for (Node n : foundNodes)\n firstNode = n;\n }\n \t\tSystem.out.println(firstNode.getProperty(\"name\"));\n \t\tTraversalDescription CHILDOF_TRAVERSAL = Traversal.description()\n \t\t .relationships( RelTypes.TAXCHILDOF,Direction.INCOMING );\n \t\tHashMap<Node,Integer> nodenumbers = new HashMap<Node,Integer>();\n \t\tHashMap<Integer,Node> numbernodes = new HashMap<Integer,Node>();\n \t\tint count = 0;\n \t\tfor(Node friendnode: CHILDOF_TRAVERSAL.traverse(firstNode).nodes()){\n \t\t\tif (friendnode.hasRelationship(Direction.INCOMING)){\n \t\t\t\tnodenumbers.put(friendnode, count);\n \t\t\t\tnumbernodes.put(count,friendnode);\n \t\t\t\tcount += 1;\n \t\t\t}\n \t\t}\n \t\tPrintWriter outFile;\n \t\ttry {\n \t\t\toutFile = new PrintWriter(new FileWriter(\"graph_data.js\"));\n \t\t\toutFile.write(\"{\\\"nodes\\\":[\");\n \t\t\tfor(int i=0; i<count;i++){\n \t\t\t\tNode tnode = numbernodes.get(i);\n \t\t\t\toutFile.write(\"{\\\"name\\\":\\\"\"+tnode.getProperty(\"name\")+\"\");\n \t\t\t\toutFile.write(\"\\\",\\\"group\\\":\"+nodenumbers.get(tnode)+\"\");\n \t\t\t\toutFile.write(\"},\");\n \t\t\t}\n \t\t\toutFile.write(\"],\\\"links\\\":[\");\n \t\t\tfor(Node tnode: nodenumbers.keySet()){\n \t\t\t\tfor(Relationship trel : tnode.getRelationships(Direction.OUTGOING)){\n \t\t\t\t\toutFile.write(\"{\\\"source\\\":\"+nodenumbers.get(trel.getStartNode())+\"\");\n \t\t\t\t\toutFile.write(\",\\\"target\\\":\"+nodenumbers.get(trel.getEndNode())+\"\");\n \t\t\t\t\toutFile.write(\",\\\"value\\\":\"+1+\"\");\n \t\t\t\t\toutFile.write(\"},\");\n \t\t\t\t}\n \t\t\t}\n \t\t\toutFile.write(\"]\");\n \t\t\toutFile.write(\"}\\n\");\n \t\t\toutFile.close();\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}", "private static void searchchildren(String keyword, Individual root, ListView<Individual> list) {\n\t\tif(root.getName().toLowerCase().contains(keyword.toLowerCase())){\n\t\t\t//System.out.println(root.getInfo());\n\t\t\tlist.getItems().add(root);\n\t\t\thits++;\n\t\t}\n\t\tif(root.getChildren()!=null){\n\t\t\tList<Individual> children = root.getChildren();\n\t\t\tfor(Individual e: children){\n\t\t\t\tsearchchildren(keyword, e, list);\n\t\t\t}\n\t\t}\n\t}", "private static void createIndex() {\n XML_Shell workFile = new XML_Shell();\n String messageFromServer = ClientService.getLastMessageFromServer();\n\n try {\n XML_Manager.stringToDom(messageFromServer, workFile);\n } catch (SAXException | ParserConfigurationException | IOException | TransformerException e) {\n e.printStackTrace();\n }\n\n }", "@RequestMapping(\"/search\")\n public ModelAndView showResult(@RequestParam( value = \"search_name\") String search_name, Model model){\n Collection<Node> nodes= nodeService.findNodesByNameLike(search_name);\n //Collection<Node> nodelist = nodeService.findByName(search_name);\n if (!nodes.isEmpty()){\n model.addAttribute(\"name\",search_name);\n model.addAttribute(\"infolist\",nodes);\n if(nodes.size() == 1) {\n Node node = nodes.iterator().next();\n model.addAttribute(\"node\",node );\n model.addAttribute(\"id\",node.getId());\n return new ModelAndView(\"show_result\", \"model\", model);\n }\n else{\n model.addAttribute(\"nodelist\", nodes);\n return new ModelAndView(\"index2\",\"model\",model);\n }\n }\n else{\n return new ModelAndView(\"error\",\"model\",model);\n }\n\n }", "protected DefaultMutableTreeNode createResultTree(Cluster result_cluster, GeneralInfo info) {\r\n DefaultMutableTreeNode root = new DefaultMutableTreeNode(\"GLOBANC\");\r\n addResultNodes(root, result_cluster, info);\r\n return root;\r\n }", "private void searchFunction() {\n\t\t\r\n\t}", "private void createQueryEntryServer(final int q, final SeqIter res,\r\n final int k) throws IOException {\r\n \r\n xml.openElement(token(\"topic\"), token(\"topic-id\"), token(tid.get(q)),\r\n token(\"total_time_ms\"), token(qtimes[q])\r\n );\r\n \r\n Item a;\r\n int r = 1;\r\n while(res != null && (a = res.next()) != null && r <= k) {\r\n final byte[] s = a.str();\r\n final int i = indexOf(s, ';');\r\n xml.openElement(token(\"result\"));\r\n xml.openElement(token(\"file\"));\r\n xml.text(substring(s, 0, i));\r\n xml.closeElement();\r\n xml.openElement(token(\"path\"));\r\n xml.text(substring(s, i + 1));\r\n xml.closeElement();\r\n xml.openElement(token(\"rank\"));\r\n xml.text(token(r++));\r\n xml.closeElement();\r\n xml.openElement(token(\"rsv\"));\r\n xml.text(token(a.score));\r\n xml.closeElement();\r\n xml.closeElement();\r\n }\r\n xml.closeElement();\r\n }", "protected void makeTheTree(){\n\n structure.getRootNode().branchList.add(structure.getNode11());\n structure.getRootNode().branchList.add(structure.getNode12());\n structure.getRootNode().branchList.add(structure.getNode13());\n\n structure.getNode11().branchList.add(structure.getNode111());\n structure.getNode11().branchList.add(structure.getNode112());\n structure.getNode11().branchList.add(structure.getNode113());\n\n structure.getNode13().branchList.add(structure.getNode131());\n\n structure.getNode112().branchList.add(structure.getNode1121());\n\n }", "public List<Entry<K,V>> entryList() {\n\t\tList<Entry<K, V>> \t\t\tl = new LinkedList<Entry<K,V> >();\n\t\tLinkedList<BSTNode<K,V>> myQueue = new LinkedList<BSTNode<K,V>>();\n\t\tBSTNode<K,V> temp = null;\n\t\tmyQueue.addLast(root);\n\t\t\n\t\twhile (!myQueue.isEmpty()) {\n\t\t\ttemp = myQueue.remove();\n\t\t\tl.add(new Entry<K,V>(temp.key, temp.value));\n\t\t\t\n\t\t\tif (temp.left != null) {\n\t\t\t\tmyQueue.add(temp.left);\n\t\t\t}\n\t\t\tif (temp.right != null) {\n\t\t\t\tmyQueue.add(temp.right);\n\t\t\t}\n\t\t}\n\treturn l;\n\t}", "private Node[] createNodes(String[] parts) {\n Node[] partsAsNodes = new Node[parts.length];\n for (int i = 0; i < parts.length; i++) {\n String[] ngramEntryComponents = parts[i].split(\"/\");\n //example [employer, NN, nsubj, 1]\n if (ngramEntryComponents.length != 4) {\n return null;\n }\n ngramEntryComponents[0] = removeWeirdCharacters(ngramEntryComponents[0]);\n if (ngramEntryComponents[0].equals(\"\"))\n return null;\n ngramEntryComponents[1] = removeWeirdCharacters(ngramEntryComponents[1]);\n if (ngramEntryComponents[1].equals(\"\"))\n return null;\n partsAsNodes[i] = new Node(ngramEntryComponents);\n }\n return partsAsNodes;\n }", "private static Node createNode(Element elt, CityMap map) throws XMLException {\n\t\tint id = Integer.parseInt(elt.getAttribute(\"id\"));\n\t\tint x = (int) (Integer.parseInt(elt.getAttribute(\"x\")) * 1.2);\n\t\tint y = (int) (Integer.parseInt(elt.getAttribute(\"y\")) * 1.2);\n\t\tNode n = new Node(id, x, y);\n\t\tNodeList sectionList = elt.getElementsByTagName(\"LeTronconSortant\");\n\t\tfor (int i = 0; i < sectionList.getLength(); i++) {\n\t\t\tn.addOutgoing(createSection((Element) sectionList.item(i), id));\n\t\t\tmap.addSection(createSection((Element) sectionList.item(i), id));\n\t\t}\n\t\treturn n;\n\t}", "private void generateQuery() {\n\t\tString edgeType = \"\";\n\n\t\tif (isUnionTraversal || isTraversal || isWhereTraversal) {\n\t\t\tString previousNode = prevsNode;\n\t\t\tif (isUnionTraversal) {\n\t\t\t\tpreviousNode = unionMap.get(unionKey);\n\t\t\t\tisUnionTraversal = false;\n\t\t\t}\n\n\t\t\tEdgeRuleQuery edgeRuleQuery = new EdgeRuleQuery.Builder(previousNode, currentNode).build();\n\t\t\tEdgeRule edgeRule = null;\n\n\t\t\ttry {\n\t\t\t\tedgeRule = edgeRules.getRule(edgeRuleQuery);\n\t\t\t} catch (EdgeRuleNotFoundException | AmbiguousRuleChoiceException e) {\n\t\t\t}\n\n\t\t\tif (edgeRule == null) {\n\t\t\t\tedgeType = \"EdgeType.COUSIN\";\n\t\t\t} else if (\"none\".equalsIgnoreCase(edgeRule.getContains())){\n\t\t\t\tedgeType = \"EdgeType.COUSIN\";\n\t\t\t}else {\n\t\t\t\tedgeType = \"EdgeType.TREE\";\n\t\t\t}\n\n\t\t\tquery += \".createEdgeTraversal(\" + edgeType + \", '\" + previousNode + \"','\" + currentNode + \"')\";\n\n\t\t}\n\n\t\telse\n\t\t\tquery += \".getVerticesByProperty('aai-node-type', '\" + currentNode + \"')\";\n\t}", "private static void loopNodes(NodeList childNodes) throws JSONException {\n for (int i = 0; i < childNodes.getLength(); ++i) {\n HashMap<String, String> tempHashMap = new HashMap<>();\n Node node = childNodes.item(i);\n String nodeName = node.getNodeName();\n if (!\"#text\".equals(nodeName)) {\n\n Attr attr = (Attr) node.getAttributes().getNamedItem(\"displayname\");\n String attribute = null;\n if (attr != null) {\n attribute = attr.getValue();\n }\n\n if (attribute != null) {\n tempHashMap.put(node.getNodeName(), attribute);\n elementStack.push(tempHashMap);\n } else {\n tempHashMap.put(node.getNodeName(), null);\n elementStack.push(tempHashMap);\n }\n\n if (node.hasChildNodes()) {\n loopNodes(node.getChildNodes());\n } else {\n addPathToCategories();\n }\n\n if (elementStack.size() > 0) {\n elementStack.pop();\n }\n\n }\n }\n\n }", "private void createLeafNodePanel() {\n\t\tLeafNode<ListFilter> leaf = (LeafNode<ListFilter>) getHierarchy();\n\t\tfinal ListFilter item = leaf.getItem();\n\t\tfinal String token = HistoryUtils.UTILS.serializeListFilter(item);\n\t\tcreateAnchor(getHierarchy().getName(), token, new ClickHandler() {\n\t\t\tfinal HyperlinkImpl impl = GWT.create(HyperlinkImpl.class);\n\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tif (impl.handleAsClick(Event.as(event.getNativeEvent()))) {\n\t\t\t\t\tHistoryManager.HISTORY.setListFilter(item, token);\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t}\n\t\t\t}\n\t\t}, null);\n\n\t\tString detailTooltip =\n\t\t\tI18n.getHierarchyTreeConstants().detailListFilterTooltip();\n\t\tcreateImage(HierarchyResources.INSTANCE.detail(), new ClickHandler() {\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tListFilterDialog.DIALOG.showDialog(item);\n\t\t\t}\n\t\t}, detailTooltip);\n\t}", "private void createDOMTree(){\n\t\t\tElement rootEle = dom.createElement(\"html\");\r\n\t\t\tdom.appendChild(rootEle);\r\n\t\t\t\r\n\t\t\t//\t\t\tcreates <head> and <title> tag\r\n\t\t\tElement headEle = dom.createElement(\"head\");\r\n\t\t\tElement titleEle = dom.createElement(\"title\");\r\n\t\t\t\r\n\t\t\t//\t\t\tset value to <title> tag\r\n\t\t\tText kuerzelText = dom.createTextNode(\"Auswertung\");\r\n\t\t\ttitleEle.appendChild(kuerzelText);\r\n\t\t\theadEle.appendChild(titleEle);\r\n\t\t\t\r\n\t\t\tElement linkEle = dom.createElement(\"link\");\r\n\t\t\tlinkEle.setAttribute(\"rel\", \"stylesheet\");\r\n\t\t\tlinkEle.setAttribute(\"type\", \"text/css\");\r\n\t\t\tlinkEle.setAttribute(\"href\", \"./format.css\");\r\n\t\t\theadEle.appendChild(linkEle);\r\n\t\t\t\r\n\t\t\trootEle.appendChild(headEle);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tElement bodyEle = dom.createElement(\"body\");\r\n\t\t\tElement divEle = dom.createElement(\"div\");\r\n\t\t\tdivEle.setAttribute(\"id\", \"cont\");\r\n\t\t\t\r\n\t\t\tVector<String> tmp = myData.get(0);\r\n\t\t\tElement h2Ele = dom.createElement(\"h2\");\r\n\t\t\tString h1Str = \"\";\r\n\t\t\tfor(Iterator i = tmp.iterator(); i.hasNext(); )\r\n\t\t\t{\r\n\t\t\t\th1Str = h1Str + (String)i.next() + \" \";\r\n\t\t\t}\r\n\t\t\tText aText = dom.createTextNode(h1Str);\r\n\t\t\th2Ele.appendChild(aText);\r\n\t\t\tdivEle.appendChild(h2Ele);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tElement tableEle = dom.createElement(\"table\");\r\n//\t\t\ttableEle.setAttribute(\"border\", \"1\");\r\n\t\t\t\r\n\t\t\ttmp = myData.get(0);\r\n\t\t\tElement trHeadEle = createTrHeadElement(tmp);\r\n\t\t\ttableEle.appendChild(trHeadEle);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tIterator it = myData.iterator();\r\n\t\t\twhile(it.hasNext()) {\r\n\t\t\t\ttmp = (Vector<String>)it.next();\r\n\t\t\t\tElement trEle = createTrElement(tmp);\r\n\t\t\t\ttableEle.appendChild(trEle);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdivEle.appendChild(tableEle);\r\n\t\t\tbodyEle.appendChild(divEle);\r\n\t\t\trootEle.appendChild(bodyEle);\r\n\t\t\t\r\n\t\t}", "private void createRestaurantTrees() {\r\n while (!restaurantArray.isEmpty()) {\r\n Restaurant element = restaurantArray.dequeue();\r\n ratingTree.add(element);\r\n deliveryTree.add(element);\r\n }\r\n }", "public XMLEntry(Recordable parent) {\r\n this.parent = parent;\r\n this.atributes = new HashMap<String, String>();\r\n this.children = new ArrayList<XMLEntry>();\r\n}", "private DefaultMutableTreeNode buildTaxonNode() {\n LoggerFactory.LogInfo(\"buildTaxaNode\");\n SortableTreeNode taxonomyNode = new SortableTreeNode(\"TAXONOMY\");\n TaxaLookup.getInstance().populate(\"taxons.bin\");\n for (TaxonEntity taxa : TaxaLookup.getInstance().getList()) {\n addFirstTaxa(taxonomyNode, taxa);\n }\n\n TaxaLookup.getInstance().populate(\"echinodermata.bin\");\n SortableTreeNode animaliaNode = null;\n animaliaNode = findChild(taxonomyNode, \"Animalia(Animals)\");\n for (TaxonEntity taxa : TaxaLookup.getInstance().getList()) {\n addTaxa(animaliaNode, taxa);\n }\n\n TaxaLookup.getInstance().populate(\"decapoda.bin\");\n if (animaliaNode == null) {\n animaliaNode = taxonomyNode;\n }\n for (TaxonEntity taxa : TaxaLookup.getInstance().getList()) {\n addTaxa(animaliaNode, taxa);\n }\n\n TaxaLookup.getInstance().populate(\"test.bin\");\n for (TaxonEntity taxa : TaxaLookup.getInstance().getList()) {\n addTaxa(animaliaNode, taxa);\n }\n\n\n //TaxaLookup.getInstance().writeToXML();\n return taxonomyNode;\n }", "private void getTiles() {\n for (int i=0; i<rows.size(); i++) {\n LinearLayout row = rows.get(i);\n int count = row.getChildCount();\n for (int j=0; j<count; j++) {\n LinearLayout tile = (LinearLayout) row.getChildAt(j);\n TextView textView = (TextView) tile.getChildAt(1);\n String text = (String) textView.getText();\n String id = \"tile\" + text.replaceAll(\"\\\\s+\",\"\");\n tiles.put(id, tile);\n }\n }\n }", "private void returnGroupedChildItems() {\n\n runOnUiThread(new Runnable() {\n public void run() {\n try {\n childContent = new HashMap<String, List<ViewEntry>>();\n List<ViewEntry> jan = new ArrayList<ViewEntry>();\n List<ViewEntry> feb = new ArrayList<ViewEntry>();\n List<ViewEntry> mar = new ArrayList<ViewEntry>();\n List<ViewEntry> apr = new ArrayList<ViewEntry>();\n List<ViewEntry> may = new ArrayList<ViewEntry>();\n List<ViewEntry> jun = new ArrayList<ViewEntry>();\n List<ViewEntry> jul = new ArrayList<ViewEntry>();\n List<ViewEntry> aug = new ArrayList<ViewEntry>();\n List<ViewEntry> sep = new ArrayList<ViewEntry>();\n List<ViewEntry> oct = new ArrayList<ViewEntry>();\n List<ViewEntry> nov = new ArrayList<ViewEntry>();\n List<ViewEntry> dec = new ArrayList<ViewEntry>();\n\n sortViewEntries();//calls function to sort entries into ascending order\n for (int i = 0; i < viewEntries.size(); i++) {\n String check = viewEntries.get(i).getEDByName(\"DateBeginShow\").getText().substring(0, 3);\n switch (check) {\n case \"Jan\":\n jan.add(viewEntries.get(i));\n break;\n case \"Feb\":\n feb.add(viewEntries.get(i));\n break;\n case \"Mar\":\n mar.add(viewEntries.get(i));\n break;\n case \"Apr\":\n apr.add(viewEntries.get(i));\n break;\n case \"May\":\n may.add(viewEntries.get(i));\n break;\n case \"Jun\":\n jun.add(viewEntries.get(i));\n break;\n case \"Jul\":\n jul.add(viewEntries.get(i));\n break;\n case \"Aug\":\n aug.add(viewEntries.get(i));\n break;\n case \"Sep\":\n sep.add(viewEntries.get(i));\n break;\n case \"Oct\":\n oct.add(viewEntries.get(i));\n break;\n case \"Nov\":\n nov.add(viewEntries.get(i));\n break;\n case \"Dec\":\n dec.add(viewEntries.get(i));\n break;\n }\n }\n\n //adds all entries into their respective parents(months)\n for (int i = 0; i < ParentList.size(); i++) {\n String check = ParentList.get(i).substring(0, 3);\n switch (check) {\n case \"Jan\":\n childContent.put(ParentList.get(i), jan);\n break;\n case \"Feb\":\n childContent.put(ParentList.get(i), feb);\n break;\n case \"Mar\":\n childContent.put(ParentList.get(i), mar);\n break;\n case \"Apr\":\n childContent.put(ParentList.get(i), apr);\n break;\n case \"May\":\n childContent.put(ParentList.get(i), may);\n break;\n case \"Jun\":\n childContent.put(ParentList.get(i), jun);\n break;\n case \"Jul\":\n childContent.put(ParentList.get(i), jul);\n break;\n case \"Aug\":\n childContent.put(ParentList.get(i), aug);\n break;\n case \"Sep\":\n childContent.put(ParentList.get(i), sep);\n break;\n case \"Oct\":\n childContent.put(ParentList.get(i), oct);\n break;\n case \"Nov\":\n childContent.put(ParentList.get(i), nov);\n break;\n case \"Dec\":\n childContent.put(ParentList.get(i), dec);\n break;\n }\n }\n } catch (final Exception ex) {\n Log.i(\"PopulateYears\", \"Exception in thread\");\n }\n }\n });\n\n }", "public List<Entry<K,V> > entryList (int which) {\n\t\tList<Entry<K,V> > l = new LinkedList<Entry<K,V> >();\n\t\t\n\t\tif (which == 1) {\n\t\t\tpreOrder(root, l);\n\t\t}\n\t\t\n\t\tif (which == 2) {\n\t\t\tpostOrder(root, l);\n\t\t}\n\t\t\n\t\tif (which == 3) {\n\t\t\tinOrder(root, l);\n\t\t}\n\t\t\n\t\treturn l;\n\t}", "public void readXML(String xml){\n\t\tint maxId = 0;\n\t\ttry {\n \tFile xmlFile = new File(xml); \n \tDocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance(); \n \tDocumentBuilder documentBuilder = documentFactory.newDocumentBuilder(); \n \tDocument doc = documentBuilder.parse(xmlFile); \n \tdoc.getDocumentElement().normalize();\n \tNodeList nodeList = doc.getElementsByTagName(\"node\");\n \tHashMap<Integer,Artifact> artifactTable = new HashMap<Integer, Artifact>();\n \tHashMap<Integer,Element> nodeTable = new HashMap<Integer, Element>();\n \n \tfor (int i = 0; i < nodeList.getLength(); i++) { \n \t\tNode xmlItem = nodeList.item(i);\n \t\tif (xmlItem.getNodeType() == Node.ELEMENT_NODE) { \n \t\t\tElement node = (Element) xmlItem;\n \t\t\tArtifact newNode = new Artifact(Rel.getContext());\n \t\t\tRel.addView(newNode,100,100);\n \t\t\tnewNode.setId(Integer.parseInt(node.getElementsByTagName(\"id\").item(0).getTextContent()));\n \t\t\tnewNode.setPrevWidth(100);\n \t\t\tnewNode.setPrevHeight(100);\n \t\t\tnewNode.setTag(\"node\");\n \t\t\tnewNode.setText(node.getElementsByTagName(\"label\").item(0).getTextContent());\n \t\t\tnewNode.setType(node.getElementsByTagName(\"type\").item(0).getTextContent());\n \t\t\tnewNode.setInformation(node.getElementsByTagName(\"information\").item(0).getTextContent());\n \t\t\tnewNode.setPosition(node.getElementsByTagName(\"position\").item(0).getTextContent());\n \t\t\tnewNode.setAge(Long.parseLong(node.getElementsByTagName(\"age\").item(0).getTextContent()));\n \t\t\tnewNode.setBackgroundResource(Utility.getDrawableType(newNode));\n \t\t\tif(\"\".compareTo((String) newNode.getText()) != 0){\n \t\t\t\tnewNode.matchWithText();\n \t\t\t}\n \t\t\tartifactTable.put(newNode.getId(), newNode);\n \t\t\tnodeTable.put(newNode.getId(), node);\n \t\t\tif(Integer.parseInt(node.getElementsByTagName(\"id\").item(0).getTextContent())>maxId){\n \t\t\t\tmaxId = Integer.parseInt(node.getElementsByTagName(\"id\").item(0).getTextContent());\n \t\t\t}\n \t\t} \n \t\t\n \t}\n \t\n \t//once we created all the artifacts now we can set the fathers and sons for every node with the artifact and xmlnode tables we have filled while reading\n \tIterator it = artifactTable.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry pairs = (Map.Entry)it.next();\n NodeList sonsList = nodeTable.get(pairs.getKey()).getElementsByTagName(\"son\");\n if(sonsList != null){\n\t for (int j = 0; j < sonsList.getLength(); j++) {\n\t \tartifactTable.get(pairs.getKey()).addSon(artifactTable.get(Integer.parseInt(sonsList.item(j).getTextContent())));\n\t }\n }\n \n NodeList fathersList = nodeTable.get(pairs.getKey()).getElementsByTagName(\"father\");\n if(fathersList != null){\n\t for (int j = 0; j < fathersList.getLength(); j++) {\n\t \tartifactTable.get(pairs.getKey()).addFather(artifactTable.get(Integer.parseInt(fathersList.item(j).getTextContent())));\n\t }\n }\n \n }\n \n \n }catch(Exception e){\n \tLog.v(\"error reading xml\",e.toString());\n }\n\t\tGlobal.ID = maxId+1;\n\t}", "public ResultMap<BaseNode> listChildren();", "void printNode() {\n\t\tint j;\n\t\tSystem.out.print(\"[\");\n\t\tfor (j = 0; j <= lastindex; j++) {\n\n\t\t\tif (j == 0)\n\t\t\t\tSystem.out.print (\" * \");\n\t\t\telse\n\t\t\t\tSystem.out.print(keys[j] + \" * \");\n\n\t\t\tif (j == lastindex)\n\t\t\t\tSystem.out.print (\"]\");\n\t\t}\n\t}", "KDNode(Datum[] datalist) throws Exception{\r\n\r\n\t\t\t/*\r\n\t\t\t * This method takes in an array of Datum and returns \r\n\t\t\t * the calling KDNode object as the root of a sub-tree containing \r\n\t\t\t * the above fields.\r\n\t\t\t */\r\n\r\n\t\t\t// ADD YOUR CODE BELOW HERE\t\t\t\r\n\t\t\t\r\n\t\t\tif(datalist.length == 1) {\r\n\t\t\t\t\r\n\t\t\t\tleaf = true;\r\n\t\t\t\tleafDatum = datalist[0];\r\n\t\t\t\tlowChild = null;\r\n\t\t\t\thighChild = null;\r\n\t\t\t\tnumLeaves ++;\r\n\t\t\t\t\r\n\t\t\t\treturn;\r\n\t\t\t\r\n\t\t\t}else {\r\n\t\r\n\t\t\t\tint dim = 0;\r\n\t\t\t\tint range = 0;\r\n\t\t\t\tint max = 0;\r\n\t\t\t\tint min = 0;\r\n\t\t\t\tint Max = 0;\r\n\t\t\t\tint Min = 0;\r\n\t\t\t\tfor(int i = 0; i < k; i++) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tmax = datalist[0].x[i];\r\n\t\t\t\t\tmin = datalist[0].x[i];\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int j = 0; j < datalist.length; j++) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(datalist[j].x[i] >= max) {\r\n\t\t\t\t\t\t\tmax = datalist[j].x[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(datalist[j].x[i] <= min) {\r\n\t\t\t\t\t\t\tmin = datalist[j].x[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(max - min >= range) {\r\n\t\t\t\t\t\trange = max - min;\r\n\t\t\t\t\t\tMax = max;\r\n\t\t\t\t\t\tMin = min;\r\n\t\t\t\t\t\tdim = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(range == 0) {\r\n\t\t\t\t\tleaf = true;\r\n\t\t\t\t\tleafDatum = datalist[0];\r\n\t\t\t\t\tlowChild = null;\r\n\t\t\t\t\thighChild = null;\r\n\t\t\t\t\t\r\n\t\t\t\t\tnumLeaves ++;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\t//if greatest range is zero, all points are duplicates\r\n\t\t\t\t\r\n\t\t\t\tsplitDim = dim;\r\n\t\t\t\tsplitValue = (double)(Max + Min) / 2.0;\t//get the split dim and value\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tArrayList<Datum> lList = new ArrayList<Datum>();\r\n\t\t\t\tint numL = 0;\r\n\t\t\t\tArrayList<Datum> hList = new ArrayList<Datum>();\r\n\t\t\t\tint numH = 0;\r\n\t\t\t\r\n\t\t\t\tfor(int i = 0; i < datalist.length; i ++) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(datalist[i].x[splitDim] <= splitValue) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tlList.add(datalist[i]);\r\n\t\t\t\t\t\t\tnumL ++;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\thList.add(datalist[i]);\r\n\t\t\t\t\t\tnumH ++;\r\n\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t//get the children list without duplicate but with null in the back\r\n\t\t\t\t\t//Don't check duplicates in children Nodes!!!\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tlowChild = new KDNode( lList.toArray(new Datum[numL]) );\r\n\t\t\t\thighChild = new KDNode( hList.toArray(new Datum[numH]) );\t//create the children nodes\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// ADD YOUR CODE ABOVE HERE\r\n\r\n\t\t}", "private List<String> createRootList(CachedUrl cu, Matcher mat) {\n String test_tar_name;\n String tar_begin = mat.group(1) + mat.group(2);\n List<String> rootList = new ArrayList<String>();\n // we know this one exists!\n rootList.add(tar_begin + \"A.tar\");\n for(char alphabet = 'B'; alphabet <= 'Z';alphabet++) {\n test_tar_name = tar_begin + String.valueOf(alphabet) + \".tar\";\n CachedUrl testCu = cu.getArchivalUnit().makeCachedUrl(test_tar_name);\n if ((testCu == null) || (!testCu.hasContent())){\n break;\n } else {\n rootList.add(test_tar_name);\n }\n }\n log.debug3(\"ROOT templates for inner iterator is: \" + rootList.toString());\n return rootList;\n }", "private static HashSet<String> addElement(Map m, String key,int count) {\n\t\tIterator it = m.entrySet().iterator();\n\t\tHashSet<String> allParents=new HashSet<String>();\n\t\tHashSet<String> newNodeHS=new HashSet<String>();\n\t\tHashSet<String> receive=new HashSet<String>();\n\t\tString parent=\"\";\n\t\tif(readNodes.get(key)==null)\n\t\t{\n\t\t\tif(!(key.equals(root)))\n\t\t\t{\n\t\t\tallParents=(HashSet)m.get(key);\n\t\t\tIterator iter = allParents.iterator();\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tparent=(String)iter.next();\n\t\t\t\tcount++;\n\t\t\t\treceive=addElement(m,parent,count);\n\t\t\t\tString str=key+\"-\"+parent;\n\t\t\t\tIterator toRecieve = receive.iterator();\n\t\t\t\twhile(toRecieve.hasNext())\n\t\t\t\t{\n\t\t\t\t\tnewNodeHS.add((String)toRecieve.next());\n\t\t\t\t}\n\t\t\t\tnewNodeHS.add(str);\n\t\t\t\tcount--;\n\t\t\t}\n\t\t\t\tif(count==0)\n\t\t\t\t{\n\t\t\t\t\tIterator<HashSet> iternew = totalDAG.iterator();\n\t\t\t\t\tHashSet<HashSet> inProgressDAG=new HashSet<HashSet>(totalDAG); \n\t\t\t\t\twhile (iternew.hasNext()) {\n\t\t\t\t\t HashSet<String> tillCreatedDAG=iternew.next();\n\t\t\t\t\t HashSet<String> union=new HashSet<String>(newNodeHS);\n\t\t\t\t\t union.addAll(tillCreatedDAG);\n\t\t\t\t\t inProgressDAG.add(union);\n\t\t\t\t\t}\n\t\t\t\t\ttotalDAG.clear();\n\t\t\t\t\ttotalDAG=inProgressDAG;\n\t\t\t\t\ttotalDAG.add(newNodeHS);\n\t\t\t\t\treadNodes.put(key, newNodeHS);\n\t\t\t\t\tSystem.out.println(\"Size: \" +totalDAG.size()+\" Nodes: \"+(++totalCount));\n\t\t\t\t\treturn newNodeHS;\n\t\t\t\t}\n\t\t\t\tcount--;\n\t\t\t\treturn newNodeHS;\t\n\t\t\t\t}\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tString str=root;\n\t\t\t\t\tnewNodeHS.add(str);\n\t\t\t\t\tcount--;\n\t\t\t\t\treturn newNodeHS;\n\t\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn (HashSet)readNodes.get(key);\n\t\t}\n\t}", "static <K extends Comparable<? super K>, V> Iterator<Map.Entry<K, V>> create(\n @Nullable Node<K, V> root) {\n if (root == null) {\n return Collections.emptyIterator();\n } else {\n return new EntryInOrderIterator<>(\n root, null, /* pLowInclusive= */ false, null, /* pHighInclusive= */ false);\n }\n }", "private void initData() {\r\n allElements = new Vector<PageElement>();\r\n\r\n String className = Utility.getDisplayName(queryResult.getOutputEntity());\r\n List<AttributeInterface> attributes = Utility.getAttributeList(queryResult);\r\n int attributeSize = attributes.size();\r\n //int attributeLimitInDescStr = (attributeSize < 10) ? attributeSize : 10;\r\n\r\n Map<String, List<IRecord>> allRecords = queryResult.getRecords();\r\n serviceURLComboContents.add(\" All service URLs \");\r\n for (String url : allRecords.keySet()) {\r\n\r\n List<IRecord> recordList = allRecords.get(url);\r\n \r\n StringBuilder urlNameSize = new StringBuilder( url );\r\n urlNameSize = new StringBuilder( urlNameSize.substring(urlNameSize.indexOf(\"//\")+2));\r\n urlNameSize = new StringBuilder(urlNameSize.substring(0,urlNameSize.indexOf(\"/\")));\r\n urlNameSize.append(\" ( \" + recordList.size() + \" )\");\r\n serviceURLComboContents.add(urlNameSize.toString());\r\n Vector<PageElement> elements = new Vector<PageElement>();\r\n for (IRecord record : recordList) {\r\n StringBuffer descBuffer = new StringBuffer();\r\n for (int i = 0; i < attributeSize; i++) {\r\n Object value = record.getValueForAttribute(attributes.get(i));\r\n if (value != null) {\r\n if (i != 0) {\r\n descBuffer.append(',');\r\n }\r\n descBuffer.append(value);\r\n }\r\n }\r\n String description = descBuffer.toString();\r\n // if (description.length() > 150) {\r\n // //150 is allowable chars at 1024 resolution\r\n // description = description.substring(0, 150);\r\n // //To avoid clipping of attribute value in-between\r\n // int index = description.lastIndexOf(\",\");\r\n // description = description.substring(0, index);\r\n // }\r\n PageElement element = new PageElementImpl();\r\n element.setDisplayName(className + \"_\" + record.getRecordId().getId());\r\n element.setDescription(description);\r\n\r\n DataRow dataRow = new DataRow(record, queryResult.getOutputEntity());\r\n dataRow.setParent(parentDataRow);\r\n dataRow.setAssociation(queryAssociation);\r\n\r\n Vector recordListUserObject = new Vector();\r\n recordListUserObject.add(dataRow);\r\n recordListUserObject.add(record);\r\n\r\n element.setUserObject(recordListUserObject);\r\n\r\n allElements.add(element);\r\n elements.add(element);\r\n }\r\n URLSToResultRowMap.put(urlNameSize.toString(), elements);\r\n }\r\n }", "public Vector<Node> GetAdditionalSubNodes();", "protected void startNode(String nodeName, Map.Entry<String, ZipEntry> entry) throws SAXException {\r\n setNodeAttributes(entry);\r\n super.contentHandler.startElement(URI, nodeName, PREFIX + ':' + nodeName, attributes);\r\n }", "public static void main(String[] args) {\n TwoThreeTree tree = new TwoThreeTree();\n Scanner input = new Scanner(System.in);\n int numOfLines = input.nextInt();\n \n for (int i = 0; i < numOfLines + 1; i++) {\n String query = input.nextLine();\n String[] data = query.split(\" \");\n \n if (data[0].equals(\"1\")) {\n tree.insert(data[1], Integer.parseInt(data[2]), tree.root, tree.height);\n }\n else if (data[0].equals(\"2\")) {\n System.out.println(search(data[1], tree.root, tree.height));\n }\n }\n }", "public AddAndSearchWord() {\n root = new TrieNode();\n }", "@Override\r\n\tpublic void buildTree() {\r\n\t\t\r\n\t\t// root level \r\n\t\trootNode = new TreeNode<String>(\"\");\r\n\t\t\r\n\t\t//first level\r\n\t\tinsert(\".\", \"e\");\r\n\t\tinsert(\"-\", \"t\");\r\n\t\t\r\n\t\t//second level\r\n\t\t\r\n\t\tinsert(\". .\", \"i\");\r\n\t\tinsert(\".-\", \"a\");\r\n\t\tinsert(\"-.\", \"n\"); \r\n\t\tinsert(\"--\", \"m\");\r\n\t\t\r\n\t\t//third level\r\n\t\tinsert(\"...\", \"s\");\r\n\t\tinsert(\"..-\", \"u\");\r\n\t\tinsert(\".-.\", \"r\");\r\n\t\tinsert(\".--\", \"w\");\r\n\t\tinsert(\"-..\", \"d\");\r\n\t\tinsert(\"-.-\", \"k\");\r\n\t\tinsert(\"--.\", \"g\");\r\n\t\tinsert(\"---\", \"o\");\r\n\t\t\r\n\t\t//fourth level\r\n\t\tinsert(\"....\", \"h\");\r\n\t\tinsert(\"...-\", \"v\");\r\n\t\tinsert(\"..-.\", \"f\");\r\n\t\tinsert(\".-..\", \"l\");\r\n\t\tinsert(\".--.\", \"p\");\r\n\t\tinsert(\".---\", \"j\");\r\n\t\tinsert(\"-...\", \"b\");\r\n\t\tinsert(\"-..-\", \"x\");\r\n\t\tinsert(\"-.-.\", \"c\");\r\n\t\tinsert(\"-.--\", \"y\");\r\n\t\tinsert(\"--..\", \"z\");\r\n\t\tinsert(\"--.-\", \"q\");\r\n\t\t\r\n\t}", "private static void buildDoublesNode(Document document, NodeList childList, Node newHead) {\n Element doublNode = document.createElement(\"item\");\n Element doublID = document.createElement(\"id\");\n Element doublParent = document.createElement(\"parent\");\n doublNode.appendChild(doublID);\n doublNode.appendChild(doublParent);\n for (int i = 0; i < childList.getLength(); i++) {\n if (childList.item(i).getNodeName().equals(\"id\"))\n doublID.setTextContent(childList.item(i).getTextContent());\n if (childList.item(i).getNodeName().equals(\"parent\")) {\n NodeList parentItemList = childList.item(i).getChildNodes();\n for (int j = 0; j < parentItemList.getLength(); j++) {\n if (parentItemList.item(j).getNodeName().equals(\"item\")) {\n Element innerParentItem = document.createElement(\"item\");\n innerParentItem.setTextContent(parentItemList.item(j).getTextContent());\n doublParent.appendChild(innerParentItem);\n }\n }\n }\n }\n newHead.appendChild(doublNode);\n }", "public String getAllChildNodestoDisplay(ArrayList singlechilmos, String resIdTOCheck, String currentresourceidtree, Hashtable childmos, Hashtable availhealth, int level, HttpServletRequest request, HashMap extDeviceMap, HashMap site24x7List)\n/* */ {\n/* 1158 */ boolean isIt360 = com.adventnet.appmanager.util.Constants.isIt360;\n/* 1159 */ boolean forInventory = false;\n/* 1160 */ String trdisplay = \"none\";\n/* 1161 */ String plusstyle = \"inline\";\n/* 1162 */ String minusstyle = \"none\";\n/* 1163 */ String haidTopLevel = \"\";\n/* 1164 */ if (request.getAttribute(\"forInventory\") != null)\n/* */ {\n/* 1166 */ if (\"true\".equals((String)request.getAttribute(\"forInventory\")))\n/* */ {\n/* 1168 */ haidTopLevel = request.getParameter(\"haid\");\n/* 1169 */ forInventory = true;\n/* 1170 */ trdisplay = \"table-row;\";\n/* 1171 */ plusstyle = \"none\";\n/* 1172 */ minusstyle = \"inline\";\n/* */ }\n/* */ \n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* 1179 */ haidTopLevel = resIdTOCheck;\n/* */ }\n/* */ \n/* 1182 */ ArrayList listtoreturn = new ArrayList();\n/* 1183 */ StringBuffer toreturn = new StringBuffer();\n/* 1184 */ Hashtable availabilitykeys = (Hashtable)availhealth.get(\"avail\");\n/* 1185 */ Hashtable healthkeys = (Hashtable)availhealth.get(\"health\");\n/* 1186 */ Properties alert = (Properties)availhealth.get(\"alert\");\n/* */ \n/* 1188 */ for (int j = 0; j < singlechilmos.size(); j++)\n/* */ {\n/* 1190 */ ArrayList singlerow = (ArrayList)singlechilmos.get(j);\n/* 1191 */ String childresid = (String)singlerow.get(0);\n/* 1192 */ String childresname = (String)singlerow.get(1);\n/* 1193 */ childresname = com.adventnet.appmanager.util.ExtProdUtil.decodeString(childresname);\n/* 1194 */ String childtype = ((String)singlerow.get(2) + \"\").trim();\n/* 1195 */ String imagepath = ((String)singlerow.get(3) + \"\").trim();\n/* 1196 */ String shortname = ((String)singlerow.get(4) + \"\").trim();\n/* 1197 */ String unmanagestatus = (String)singlerow.get(5);\n/* 1198 */ String actionstatus = (String)singlerow.get(6);\n/* 1199 */ String linkclass = \"monitorgp-links\";\n/* 1200 */ String titleforres = childresname;\n/* 1201 */ String titilechildresname = childresname;\n/* 1202 */ String childimg = \"/images/trcont.png\";\n/* 1203 */ String flag = \"enable\";\n/* 1204 */ String dcstarted = (String)singlerow.get(8);\n/* 1205 */ String configMonitor = \"\";\n/* 1206 */ String configmsg = FormatUtil.getString(\"am.webclient.vcenter.esx.notconfigured.text\");\n/* 1207 */ if ((\"VMWare ESX/ESXi\".equals(childtype)) && (!\"2\".equals(dcstarted)))\n/* */ {\n/* 1209 */ configMonitor = \"&nbsp;&nbsp;<img src='/images/icon_ack.gif' align='absmiddle' style='width=16px;heigth:16px' border='0' title='\" + configmsg + \"' />\";\n/* */ }\n/* 1211 */ if (singlerow.get(7) != null)\n/* */ {\n/* 1213 */ flag = (String)singlerow.get(7);\n/* */ }\n/* 1215 */ String haiGroupType = \"0\";\n/* 1216 */ if (\"HAI\".equals(childtype))\n/* */ {\n/* 1218 */ haiGroupType = (String)singlerow.get(9);\n/* */ }\n/* 1220 */ childimg = \"/images/trend.png\";\n/* 1221 */ String actionmsg = FormatUtil.getString(\"Actions Enabled\");\n/* 1222 */ String actionimg = \"<img src=\\\"/images/alarm-icon.png\\\" border=\\\"0\\\" title=\\\"\" + actionmsg + \"\\\" />\";\n/* 1223 */ if ((actionstatus == null) || (actionstatus.equalsIgnoreCase(\"null\")) || (actionstatus.equals(\"1\")))\n/* */ {\n/* 1225 */ actionimg = \"<img src=\\\"/images/alarm-icon.png\\\" border=\\\"0\\\" title=\\\"\" + actionmsg + \"\\\" />\";\n/* */ }\n/* 1227 */ else if (actionstatus.equals(\"0\"))\n/* */ {\n/* 1229 */ actionmsg = FormatUtil.getString(\"Actions Disabled\");\n/* 1230 */ actionimg = \"<img src=\\\"/images/icon_actions_disabled.gif\\\" border=\\\"0\\\" title=\\\"\" + actionmsg + \"\\\" />\";\n/* */ }\n/* */ \n/* 1233 */ if ((unmanagestatus != null) && (!unmanagestatus.trim().equalsIgnoreCase(\"null\")))\n/* */ {\n/* 1235 */ linkclass = \"disabledtext\";\n/* 1236 */ titleforres = titleforres + \"-UnManaged\";\n/* */ }\n/* 1238 */ String availkey = childresid + \"#\" + availabilitykeys.get(childtype) + \"#\" + \"MESSAGE\";\n/* 1239 */ String availmouseover = \"\";\n/* 1240 */ if (alert.getProperty(availkey) != null)\n/* */ {\n/* 1242 */ availmouseover = \"onmouseover=\\\"ddrivetip(this,event,'\" + alert.getProperty(availkey).replace(\"\\\"\", \"&quot;\") + \"<br><span style=color: #000000;font-weight:bold;>\" + FormatUtil.getString(\"am.webclient.tooltip.text\") + \"</span>',null,true,'#000000')\\\" onmouseout=\\\"hideddrivetip()\\\" \";\n/* */ }\n/* 1244 */ String healthkey = childresid + \"#\" + healthkeys.get(childtype) + \"#\" + \"MESSAGE\";\n/* 1245 */ String healthmouseover = \"\";\n/* 1246 */ if (alert.getProperty(healthkey) != null)\n/* */ {\n/* 1248 */ healthmouseover = \"onmouseover=\\\"ddrivetip(this,event,'\" + alert.getProperty(healthkey).replace(\"\\\"\", \"&quot;\") + \"<br><span style=color: #000000;font-weight:bold;>\" + FormatUtil.getString(\"am.webclient.tooltip.text\") + \"</span>',null,true,'#000000')\\\" onmouseout=\\\"hideddrivetip()\\\" \";\n/* */ }\n/* */ \n/* 1251 */ String tempbgcolor = \"class=\\\"whitegrayrightalign\\\"\";\n/* 1252 */ int spacing = 0;\n/* 1253 */ if (level >= 1)\n/* */ {\n/* 1255 */ spacing = 40 * level;\n/* */ }\n/* 1257 */ if (childtype.equals(\"HAI\"))\n/* */ {\n/* 1259 */ ArrayList singlechilmos1 = (ArrayList)childmos.get(childresid + \"\");\n/* 1260 */ String tempresourceidtree = currentresourceidtree + \"|\" + childresid;\n/* 1261 */ String availimage = getSeverityImageForAvailability(alert.getProperty(childresid + \"#\" + availabilitykeys.get(childtype)));\n/* */ \n/* 1263 */ String availlink = \"<a href=\\\"javascript:void(0);\\\" \" + availmouseover + \" onClick=\\\"fnOpenNewWindow('/jsp/RCA.jsp?resourceid=\" + childresid + \"&attributeid=\" + availabilitykeys.get(childtype) + \"')\\\"> \" + availimage + \"</a>\";\n/* 1264 */ String healthimage = getSeverityImageForHealth(alert.getProperty(childresid + \"#\" + healthkeys.get(childtype)));\n/* 1265 */ String healthlink = \"<a href=\\\"javascript:void(0);\\\" \" + healthmouseover + \" onClick=\\\"fnOpenNewWindow('/jsp/RCA.jsp?resourceid=\" + childresid + \"&attributeid=\" + healthkeys.get(childtype) + \"')\\\"> \" + healthimage + \"</a>\";\n/* 1266 */ String editlink = \"<a href=\\\"/showapplication.do?method=editApplication&fromwhere=allmonitorgroups&haid=\" + childresid + \"\\\" class=\\\"staticlinks\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.maintenance.edit\") + \"\\\"><img align=\\\"center\\\" src=\\\"/images/icon_edit.gif\\\" border=\\\"0\\\" /></a>\";\n/* 1267 */ String imglink = \"<img src=\\\"\" + childimg + \"\\\" align=\\\"center\\\" align=\\\"left\\\" border=\\\"0\\\" height=\\\"24\\\" width=\\\"24\\\">\";\n/* 1268 */ String checkbox = \"<input type=\\\"checkbox\\\" name=\\\"select\\\" id=\\\"\" + tempresourceidtree + \"\\\" value=\\\"\" + childresid + \"\\\" onclick=\\\"selectAllChildCKbs('\" + tempresourceidtree + \"',this,this.form),deselectParentCKbs('\" + tempresourceidtree + \"',this,this.form)\\\" >\";\n/* 1269 */ String thresholdurl = \"/showActionProfiles.do?method=getHAProfiles&haid=\" + childresid;\n/* 1270 */ String configalertslink = \" <a title='\" + FormatUtil.getString(\"am.webclient.common.util.ALERTCONFIG_TEXT\") + \"' href=\\\"\" + thresholdurl + \"\\\" ><img src=\\\"images/icon_associateaction.gif\\\" align=\\\"center\\\" border=\\\"0\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.common.util.ALERTCONFIG_TEXT\") + \"\\\" /></a>\";\n/* 1271 */ String associatelink = \"<a href=\\\"/showresource.do?method=getMonitorForm&type=All&fromwhere=monitorgroupview&haid=\" + childresid + \"\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.monitorgroupdetails.associatemonitors.text\") + \"\\\" ><img align=\\\"center\\\" src=\\\"images/icon_assoicatemonitors.gif\\\" border=\\\"0\\\" /></a>\";\n/* 1272 */ String removefromgroup = \"<a class='staticlinks' href=\\\"javascript: removeMonitorFromGroup ('\" + resIdTOCheck + \"','\" + childresid + \"','\" + haidTopLevel + \"');\\\" title='\" + FormatUtil.getString(\"am.webclient.monitorgroupdetails.remove.text\") + \"'><img width='13' align=\\\"center\\\" height='14' border='0' src='/images/icon_removefromgroup.gif'/></a>&nbsp;&nbsp;\";\n/* 1273 */ String configcustomfields = \"<a href=\\\"javascript:void(0)\\\" onclick=\\\"fnOpenNewWindow('/jsp/MyField_Alarms.jsp?resourceid=\" + childresid + \"&mgview=true')\\\" title='\" + FormatUtil.getString(\"am.myfield.assign.text\") + \"'><img align=\\\"center\\\" src=\\\"/images/icon_assigncustomfields.gif\\\" border=\\\"0\\\" /></a>\";\n/* */ \n/* 1275 */ if (!forInventory)\n/* */ {\n/* 1277 */ removefromgroup = \"\";\n/* */ }\n/* */ \n/* 1280 */ String actions = \"&nbsp;&nbsp;\" + configalertslink + \"&nbsp;&nbsp;\" + removefromgroup + \"&nbsp;&nbsp;\";\n/* */ \n/* 1282 */ if ((haiGroupType == null) || ((haiGroupType != null) && (!\"1009\".equals(haiGroupType)) && (!\"1010\".equals(haiGroupType)) && (!\"1012\".equals(haiGroupType))))\n/* */ {\n/* 1284 */ actions = editlink + actions;\n/* */ }\n/* 1286 */ if ((haiGroupType == null) || ((haiGroupType != null) && (!\"1009\".equals(haiGroupType)) && (!\"1010\".equals(haiGroupType)) && (!\"3\".equals(haiGroupType)) && (!\"1012\".equals(haiGroupType))))\n/* */ {\n/* 1288 */ actions = actions + associatelink;\n/* */ }\n/* 1290 */ actions = actions + \"&nbsp;&nbsp;&nbsp;&nbsp;\" + configcustomfields;\n/* 1291 */ String arrowimg = \"\";\n/* 1292 */ if (request.isUserInRole(\"ENTERPRISEADMIN\"))\n/* */ {\n/* 1294 */ actions = \"\";\n/* 1295 */ arrowimg = \"<img align=\\\"center\\\" hspace=\\\"3\\\" border=\\\"0\\\" src=\\\"/images/icon_arrow_childattribute_grey.gif\\\"/>\";\n/* 1296 */ checkbox = \"\";\n/* 1297 */ childresname = childresname + \"_\" + com.adventnet.appmanager.server.framework.comm.CommDBUtil.getManagedServerNameWithPort(childresid);\n/* */ }\n/* 1299 */ if (isIt360)\n/* */ {\n/* 1301 */ actionimg = \"\";\n/* 1302 */ actions = \"\";\n/* 1303 */ arrowimg = \"<img align=\\\"center\\\" hspace=\\\"3\\\" border=\\\"0\\\" src=\\\"/images/icon_arrow_childattribute_grey.gif\\\"/>\";\n/* 1304 */ checkbox = \"\";\n/* */ }\n/* */ \n/* 1307 */ if (!request.isUserInRole(\"ADMIN\"))\n/* */ {\n/* 1309 */ actions = \"\";\n/* */ }\n/* 1311 */ if (request.isUserInRole(\"OPERATOR\"))\n/* */ {\n/* 1313 */ checkbox = \"\";\n/* */ }\n/* */ \n/* 1316 */ String resourcelink = \"\";\n/* */ \n/* 1318 */ if ((flag != null) && (flag.equals(\"enable\")))\n/* */ {\n/* 1320 */ resourcelink = \"<a href=\\\"javascript:void(0);\\\" onclick=\\\"toggleChildMos('#monitor\" + tempresourceidtree + \"'),toggleTreeImage('\" + tempresourceidtree + \"');\\\"><div id=\\\"monitorShow\" + tempresourceidtree + \"\\\" style=\\\"display:\" + plusstyle + \";\\\"><img src=\\\"/images/icon_plus.gif\\\" border=\\\"0\\\" hspace=\\\"5\\\"></div><div id=\\\"monitorHide\" + tempresourceidtree + \"\\\" style=\\\"display:\" + minusstyle + \";\\\"><img src=\\\"/images/icon_minus.gif\\\" border=\\\"0\\\" hspace=\\\"5\\\"></div> </a>\" + checkbox + \"<a href=\\\"/showapplication.do?haid=\" + childresid + \"&method=showApplication\\\" class=\\\"\" + linkclass + \"\\\">\" + getTrimmedText(titilechildresname, 45) + \"</a> \";\n/* */ }\n/* */ else\n/* */ {\n/* 1324 */ resourcelink = \"<a href=\\\"javascript:void(0);\\\" onclick=\\\"toggleChildMos('#monitor\" + tempresourceidtree + \"'),toggleTreeImage('\" + tempresourceidtree + \"');\\\"><div id=\\\"monitorShow\" + tempresourceidtree + \"\\\" style=\\\"display:\" + plusstyle + \";\\\"><img src=\\\"/images/icon_plus.gif\\\" border=\\\"0\\\" hspace=\\\"5\\\"></div><div id=\\\"monitorHide\" + tempresourceidtree + \"\\\" style=\\\"display:\" + minusstyle + \";\\\"><img src=\\\"/images/icon_minus.gif\\\" border=\\\"0\\\" hspace=\\\"5\\\"></div> </a>\" + checkbox + \"\" + getTrimmedText(titilechildresname, 45);\n/* */ }\n/* */ \n/* 1327 */ toreturn.append(\"<tr \" + tempbgcolor + \" id=\\\"#monitor\" + currentresourceidtree + \"\\\" style=\\\"display:\" + trdisplay + \";\\\" width='100%'>\");\n/* 1328 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"3%\\\" >&nbsp;</td> \");\n/* 1329 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"47%\\\" style=\\\"padding-left: \" + spacing + \"px !important;\\\" title=\" + childresname + \">\" + arrowimg + resourcelink + \"</td>\");\n/* 1330 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"15%\\\" align=\\\"left\\\">\" + \"<table><tr class='whitegrayrightalign'><td><div id='mgaction'>\" + actions + \"</div></td></tr></table></td>\");\n/* 1331 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"8%\\\" align=\\\"center\\\">\" + availlink + \"</td>\");\n/* 1332 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"7%\\\" align=\\\"center\\\">\" + healthlink + \"</td>\");\n/* 1333 */ if (!isIt360)\n/* */ {\n/* 1335 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"7%\\\" align=\\\"left\\\">\" + actionimg + \"</td>\");\n/* */ }\n/* */ else\n/* */ {\n/* 1339 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"7%\\\" align=\\\"left\\\">&nbsp;</td>\");\n/* */ }\n/* */ \n/* 1342 */ toreturn.append(\"</tr>\");\n/* 1343 */ if (childmos.get(childresid + \"\") != null)\n/* */ {\n/* 1345 */ String toappend = getAllChildNodestoDisplay(singlechilmos1, childresid + \"\", tempresourceidtree, childmos, availhealth, level + 1, request, extDeviceMap, site24x7List);\n/* 1346 */ toreturn.append(toappend);\n/* */ }\n/* */ else\n/* */ {\n/* 1350 */ String assocMessage = \"<td \" + tempbgcolor + \" colspan=\\\"2\\\"><span class=\\\"bodytext\\\" style=\\\"padding-left: \" + (spacing + 10) + \"px !important;\\\"> &nbsp;&nbsp;&nbsp;&nbsp;\" + FormatUtil.getString(\"am.webclient.monitorgroupdetails.nomonitormessage.text\") + \"</span><span class=\\\"bodytext\\\">\";\n/* 1351 */ if ((!request.isUserInRole(\"ENTERPRISEADMIN\")) && (!request.isUserInRole(\"DEMO\")) && (!request.isUserInRole(\"OPERATOR\")))\n/* */ {\n/* */ \n/* 1354 */ assocMessage = assocMessage + FormatUtil.getString(\"am.webclient.monitorgroupdetails.click.text\") + \" <a href=\\\"/showresource.do?method=getMonitorForm&type=All&haid=\" + childresid + \"&fromwhere=monitorgroupview\\\" class=\\\"staticlinks\\\" >\" + FormatUtil.getString(\"am.webclient.monitorgroupdetails.linktoadd.text\") + \"</span></td>\";\n/* */ }\n/* */ \n/* */ \n/* 1358 */ if ((haiGroupType == null) || ((haiGroupType != null) && (!\"1009\".equals(haiGroupType)) && (!\"1010\".equals(haiGroupType)) && (!\"3\".equals(haiGroupType)) && (!\"1012\".equals(haiGroupType))))\n/* */ {\n/* 1360 */ toreturn.append(\"<tr \" + tempbgcolor + \" id=\\\"#monitor\" + tempresourceidtree + \"\\\" style=\\\"display: \" + trdisplay + \";\\\" width='100%'>\");\n/* 1361 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"3%\\\" >&nbsp;</td> \");\n/* 1362 */ toreturn.append(assocMessage);\n/* 1363 */ toreturn.append(\"<td \" + tempbgcolor + \" >&nbsp;</td> \");\n/* 1364 */ toreturn.append(\"<td \" + tempbgcolor + \" >&nbsp;</td> \");\n/* 1365 */ toreturn.append(\"<td \" + tempbgcolor + \" >&nbsp;</td> \");\n/* 1366 */ toreturn.append(\"</tr>\");\n/* */ }\n/* */ }\n/* */ }\n/* */ else\n/* */ {\n/* 1372 */ String resourcelink = null;\n/* 1373 */ boolean hideEditLink = false;\n/* 1374 */ if ((extDeviceMap != null) && (extDeviceMap.get(childresid) != null))\n/* */ {\n/* 1376 */ String link1 = (String)extDeviceMap.get(childresid);\n/* 1377 */ hideEditLink = true;\n/* 1378 */ if (isIt360)\n/* */ {\n/* 1380 */ resourcelink = \"<a href=\" + link1 + \" class=\\\"\" + linkclass + \"\\\" title=\\\"\" + titleforres + \"\\\">\" + getTrimmedText(childresname, 45) + \"</a>\";\n/* */ }\n/* */ else\n/* */ {\n/* 1384 */ resourcelink = \"<a href=\\\"javascript:MM_openBrWindow('\" + link1 + \"','ExternalDevice','width=950,height=600,top=50,left=75,scrollbars=yes,resizable=yes')\\\" class=\\\"\" + linkclass + \"\\\" title=\\\"\" + titleforres + \"\\\">\" + getTrimmedText(childresname, 45) + \"</a>\";\n/* */ }\n/* 1386 */ } else if ((site24x7List != null) && (site24x7List.containsKey(childresid)))\n/* */ {\n/* 1388 */ hideEditLink = true;\n/* 1389 */ String link2 = URLEncoder.encode((String)site24x7List.get(childresid));\n/* 1390 */ resourcelink = \"<a href=\\\"javascript:MM_openBrWindow('\" + link2 + \"','Site24x7','width=950,height=600,top=50,left=75,scrollbars=yes,resizable=yes')\\\" class=\\\"\" + linkclass + \"\\\" title=\\\"\" + titleforres + \"\\\">\" + getTrimmedText(childresname, 45) + \"</a>\";\n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* 1395 */ resourcelink = \"<a href=\\\"/showresource.do?resourceid=\" + childresid + \"&method=showResourceForResourceID&haid=\" + resIdTOCheck + \"\\\" class=\\\"\" + linkclass + \"\\\" title=\\\"\" + titleforres + \"\\\">\" + getTrimmedText(childresname, 45) + \"</a>\";\n/* */ }\n/* */ \n/* 1398 */ String imglink = \"<img src=\\\"\" + childimg + \"\\\" align=\\\"left\\\" border=\\\"0\\\" height=\\\"24\\\" width=\\\"24\\\" />\";\n/* 1399 */ String checkbox = \"<input type=\\\"checkbox\\\" name=\\\"select\\\" id=\\\"\" + currentresourceidtree + \"|\" + childresid + \"\\\" value=\\\"\" + childresid + \"\\\" onclick=\\\"deselectParentCKbs('\" + currentresourceidtree + \"|\" + childresid + \"',this,this.form);\\\" >\";\n/* 1400 */ String key = childresid + \"#\" + availabilitykeys.get(childtype) + \"#\" + \"MESSAGE\";\n/* 1401 */ String availimage = getSeverityImageForAvailability(alert.getProperty(childresid + \"#\" + availabilitykeys.get(childtype)));\n/* 1402 */ String healthimage = getSeverityImageForHealth(alert.getProperty(childresid + \"#\" + healthkeys.get(childtype)));\n/* 1403 */ String availlink = \"<a href=\\\"javascript:void(0);\\\" \" + availmouseover + \"onClick=\\\"fnOpenNewWindow('/jsp/RCA.jsp?resourceid=\" + childresid + \"&attributeid=\" + availabilitykeys.get(childtype) + \"')\\\"> \" + availimage + \"</a>\";\n/* 1404 */ String healthlink = \"<a href=\\\"javascript:void(0);\\\" \" + healthmouseover + \" onClick=\\\"fnOpenNewWindow('/jsp/RCA.jsp?resourceid=\" + childresid + \"&attributeid=\" + healthkeys.get(childtype) + \"')\\\"> \" + healthimage + \"</a>\";\n/* 1405 */ String editlink = \"<a href=\\\"/showresource.do?haid=\" + resIdTOCheck + \"&resourceid=\" + childresid + \"&resourcename=\" + childresname + \"&type=\" + childtype + \"&method=showdetails&editPage=true&moname=\" + childresname + \"\\\" class=\\\"staticlinks\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.maintenance.edit\") + \"\\\"><img align=\\\"center\\\" src=\\\"/images/icon_edit.gif\\\" border=\\\"0\\\" /></a>\";\n/* 1406 */ String thresholdurl = \"/showActionProfiles.do?method=getResourceProfiles&admin=true&all=true&resourceid=\" + childresid;\n/* 1407 */ String configalertslink = \" <a href=\\\"\" + thresholdurl + \"\\\" title='\" + FormatUtil.getString(\"am.webclient.common.util.ALERTCONFIG_TEXT\") + \"'><img src=\\\"images/icon_associateaction.gif\\\" align=\\\"center\\\" border=\\\"0\\\" /></a>\";\n/* 1408 */ String img2 = \"<img src=\\\"/images/trvline.png\\\" align=\\\"absmiddle\\\" border=\\\"0\\\" height=\\\"15\\\" width=\\\"15\\\"/>\";\n/* 1409 */ String removefromgroup = \"<a class='staticlinks' href=\\\"javascript: removeMonitorFromGroup ('\" + resIdTOCheck + \"','\" + childresid + \"','\" + haidTopLevel + \"');\\\" title='\" + FormatUtil.getString(\"am.webclient.monitorgroupdetails.remove.text\") + \"'><img width='13' align=\\\"center\\\" height='14' border='0' src='/images/icon_removefromgroup.gif'/></a>\";\n/* 1410 */ String configcustomfields = \"<a href=\\\"javascript:void(0)\\\" onclick=\\\"fnOpenNewWindow('/jsp/MyField_Alarms.jsp?resourceid=\" + childresid + \"&mgview=true')\\\" title='\" + FormatUtil.getString(\"am.myfield.assign.text\") + \"'><img align=\\\"center\\\" src=\\\"/images/icon_assigncustomfields.gif\\\" border=\\\"0\\\" /></a>\";\n/* */ \n/* 1412 */ if (hideEditLink)\n/* */ {\n/* 1414 */ editlink = \"&nbsp;&nbsp;&nbsp;\";\n/* */ }\n/* 1416 */ if (!forInventory)\n/* */ {\n/* 1418 */ removefromgroup = \"\";\n/* */ }\n/* 1420 */ String actions = \"&nbsp;&nbsp;\" + configalertslink + \"&nbsp;&nbsp;\" + removefromgroup + \"&nbsp;&nbsp;\";\n/* 1421 */ if (!com.adventnet.appmanager.util.Constants.sqlManager) {\n/* 1422 */ actions = actions + configcustomfields;\n/* */ }\n/* 1424 */ if ((haiGroupType == null) || ((haiGroupType != null) && (!\"1009\".equals(haiGroupType)) && (!\"1010\".equals(haiGroupType)) && (!\"1012\".equals(haiGroupType))))\n/* */ {\n/* 1426 */ actions = editlink + actions;\n/* */ }\n/* 1428 */ String managedLink = \"\";\n/* 1429 */ if ((request.isUserInRole(\"ENTERPRISEADMIN\")) && (!com.adventnet.appmanager.util.Constants.isIt360))\n/* */ {\n/* 1431 */ checkbox = \"<img hspace=\\\"3\\\" border=\\\"0\\\" src=\\\"/images/icon_arrow_childattribute_grey.gif\\\"/>\";\n/* 1432 */ actions = \"\";\n/* 1433 */ if (Integer.parseInt(childresid) >= com.adventnet.appmanager.server.framework.comm.Constants.RANGE) {\n/* 1434 */ managedLink = \"&nbsp; <a target=\\\"mas_window\\\" href=\\\"/showresource.do?resourceid=\" + childresid + \"&type=\" + childtype + \"&moname=\" + URLEncoder.encode(childresname) + \"&resourcename=\" + URLEncoder.encode(childresname) + \"&method=showdetails&aam_jump=true&useHTTP=\" + (!isIt360) + \"\\\"><img border=\\\"0\\\" title=\\\"View Monitor details in Managed Server console\\\" src=\\\"/images/jump.gif\\\"/></a>\";\n/* */ }\n/* */ }\n/* 1437 */ if ((isIt360) || (request.isUserInRole(\"OPERATOR\")))\n/* */ {\n/* 1439 */ checkbox = \"\";\n/* */ }\n/* */ \n/* 1442 */ if (!request.isUserInRole(\"ADMIN\"))\n/* */ {\n/* 1444 */ actions = \"\";\n/* */ }\n/* 1446 */ toreturn.append(\"<tr \" + tempbgcolor + \" id=\\\"#monitor\" + currentresourceidtree + \"\\\" style=\\\"display: \" + trdisplay + \";\\\" width='100%'>\");\n/* 1447 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"3%\\\" >&nbsp;</td> \");\n/* 1448 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"47%\\\" nowrap=\\\"false\\\" style=\\\"padding-left: \" + spacing + \"px !important;\\\" >\" + checkbox + \"&nbsp;<img align='absmiddle' border=\\\"0\\\" title='\" + shortname + \"' src=\\\"\" + imagepath + \"\\\"/>&nbsp;\" + resourcelink + managedLink + configMonitor + \"</td>\");\n/* 1449 */ if (isIt360)\n/* */ {\n/* 1451 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"15%\\\" align=\\\"left\\\">&nbsp;</td>\");\n/* */ }\n/* */ else\n/* */ {\n/* 1455 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"15%\\\" align=\\\"left\\\">\" + \"<table><tr class='whitegrayrightalign'><td><div id='mgaction'>\" + actions + \"</div></td></tr></table></td>\");\n/* */ }\n/* 1457 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"8%\\\" align=\\\"center\\\">\" + availlink + \"</td>\");\n/* 1458 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"7%\\\" align=\\\"center\\\">\" + healthlink + \"</td>\");\n/* 1459 */ if (!isIt360)\n/* */ {\n/* 1461 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"7%\\\" align=\\\"left\\\">\" + actionimg + \"</td>\");\n/* */ }\n/* */ else\n/* */ {\n/* 1465 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"7%\\\" align=\\\"left\\\">&nbsp;</td>\");\n/* */ }\n/* 1467 */ toreturn.append(\"</tr>\");\n/* */ }\n/* */ }\n/* 1470 */ return toreturn.toString();\n/* */ }", "static <K extends Comparable<? super K>, V> Iterator<Map.Entry<K, V>> create(\n @Nullable Node<K, V> root) {\n if (root == null) {\n return Collections.emptyIterator();\n } else {\n return new DescendingEntryInOrderIterator<>(\n root, null, /* pLowInclusive= */ false, null, /* pHighInclusive= */ false);\n }\n }", "private void buildObject(Element current) {\n\t\tList<Element> children = current.getChildren();\n\t\tIterator<Element> iterator = children.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tElement child = iterator.next();\n\t\t\tString category = child.getAttributeValue(\"description\");\n\t\t\tString reference = child.getAttributeValue(\"reference\");\n\n\t\t\tEplusObject ob = new EplusObject(category, reference);\n\t\t\tprocessFields(child, ob);\n\t\t\tobjects.add(ob);\n\t\t}\n\t}", "void Create(){\n map = new TreeMap<>();\r\n\r\n // Now we split the words up using punction and spaces\r\n String wordArray[] = wordSource.split(\"[{ \\n\\r.,]}}?\");\r\n\r\n // Now we loop through the array\r\n for (String wordArray1 : wordArray) {\r\n String key = wordArray1.toLowerCase();\r\n // If this word is not present in the map then add it\r\n // and set the word count to 1\r\n if (key.length() > 0){\r\n if (!map.containsKey(map)){\r\n map.put(key, 1);\r\n }\r\n else {\r\n int wordCount = map.get(key);\r\n wordCount++;\r\n map.put(key, wordCount);\r\n }\r\n }\r\n } // end of for loop\r\n \r\n // Get all entries into a set\r\n // I think that before this we just have key-value pairs\r\n entrySet = map.entrySet();\r\n \r\n }", "private void addRefParamNodes() {\n // add entry and exit cfgNode\n for (Procedure proc : refProcSet) {\n Set<AnalysisTarget> refParamList = refParamMap.get(proc);\n CFGraph cfg = cfgMap.get(proc);\n DFANode node = cfg.getEntry();\n // entry cfgNode\n Set<DFANode> entryList = new HashSet<DFANode>();\n for (AnalysisTarget refParam : refParamList) {\n DFANode entryNode = new DFANode();\n entryNode.putData(\"cfg_node\", node);\n entryNode.putData(\"psg_type\", \"entry\");\n entryNode.putData(\"param\", refParam);\n entryList.add(entryNode);\n accessIdxMap.put(\"entry_\" + proc.getSymbolName() + \"_\" + refParamIdxMap.get(refParam).intValue(), entryNode);\n }\n node.putData(\"psg_entry_ref\", entryList);\n // exit cfgNode\n List<DFANode> exitNodeList = cfg.getExitNodes();\n int idx = 0;\n for (DFANode dfaNode : exitNodeList) {\n Set<DFANode> exitList = new HashSet<DFANode>();\n for (AnalysisTarget refParam : refParamList) {\n DFANode exitNode = new DFANode();\n exitNode.putData(\"cfg_node\", dfaNode);\n exitNode.putData(\"psg_type\", \"exit\");\n exitNode.putData(\"param\", refParam);\n exitList.add(exitNode);\n accessIdxMap.put(\"exit_\" + proc.getSymbolName() + idx + \"_\" + refParamIdxMap.get(refParam).intValue(), exitNode);\n }\n dfaNode.putData(\"psg_exit_ref\", exitList);\n idx++;\n }\n }\n\n // add call and return cfgNode (must check all the procs)\n for (Procedure proc : procList) {\n CFGraph cfg = cfgMap.get(proc);\n Iterator<DFANode> cfgIter = cfg.iterator();\n while (cfgIter.hasNext()) {\n DFANode node = cfgIter.next();\n Traversable currentIR = (Traversable) CFGraph.getIR(node);\n if (currentIR == null) {\n continue;\n }\n List<FunctionCall> fcList = IRTools.getFunctionCalls(currentIR);\n if (fcList == null || fcList.size() == 0) {\n continue;\n }\n Set<DFANode> callList = new HashSet<DFANode>();\n Set<DFANode> returnList = new HashSet<DFANode>();\n for (FunctionCall fc : fcList) {\n Procedure callee = fc.getProcedure();\n if (callee == null) {\n continue;\n }\n if (refProcSet.contains(callee) == false) {\n continue;\n }\n Set<AnalysisTarget> argSet = refParamMap.get(callee);\n for (AnalysisTarget arg : argSet) {\n // call\n DFANode callNode = new DFANode();\n callNode.putData(\"cfg_node\", node);\n callNode.putData(\"proc\", callee);\n callNode.putData(\"psg_type\", \"call\");\n // handle the case of ConditionalExpression\n Expression argCallee = fc.getArgument(refParamIdxMap.get(arg).intValue());\n List<Expression> argsList = new ArrayList<Expression>();\n if (argCallee instanceof ConditionalExpression) {\n \targsList = ChainTools.getRefIDExpressionListInConditionalExpressionArg((ConditionalExpression)argCallee, proc);\n } else {\n \targsList.add(argCallee);\n }\n \tcallNode.putData(\"arg\", argsList);\n callNode.putData(\"arg_idx\", refParamIdxMap.get(arg));\n callList.add(callNode);\n DFANode entryNode = accessIdxMap.get(\"entry_\" + callee.getSymbolName() + \"_\" + refParamIdxMap.get(arg).intValue());\n if (entryNode == null) {\n throw new RuntimeException(\"No Entry Node found: \" + \"entry_\" + callee.getSymbolName() + \"_\" + refParamIdxMap.get(arg).intValue());\n }\n callNode.addSucc(entryNode);\n entryNode.addPred(callNode);\n // return\n DFANode returnNode = new DFANode();\n returnNode.putData(\"cfg_node\", node);\n returnNode.putData(\"proc\", callee);\n returnNode.putData(\"psg_type\", \"return\");\n returnNode.putData(\"arg\", argsList);\n returnNode.putData(\"arg_idx\", refParamIdxMap.get(arg));\n returnList.add(returnNode);\n CFGraph cfgCallee = cfgMap.get(callee);\n List<DFANode> calleeExitList = cfgCallee.getExitNodes();\n for (int idx = 0; idx < calleeExitList.size(); idx++) {\n DFANode exitNode = accessIdxMap.get(\"exit_\" + callee.getSymbolName() + idx + \"_\" + refParamIdxMap.get(arg).intValue());\n if (exitNode == null) {\n throw new RuntimeException(\"No Exit Node found: \" + \"exit_\" + callee.getSymbolName() + \"_\" + refParamIdxMap.get(arg).intValue());\n }\n returnNode.addPred(exitNode);\n exitNode.addSucc(returnNode);\n }\n }\n }\n if (callList.size() > 0) {\n node.putData(\"psg_call_ref\", callList);\n }\n if (returnList.size() > 0) {\n node.putData(\"psg_return_ref\", returnList);\n }\n }\n }\n }", "public String getAllChildNodestoDisplay(ArrayList singlechilmos, String resIdTOCheck, String currentresourceidtree, Hashtable childmos, Hashtable availhealth, int level, HttpServletRequest request, HashMap extDeviceMap, HashMap site24x7List)\n/* */ {\n/* 1149 */ boolean isIt360 = com.adventnet.appmanager.util.Constants.isIt360;\n/* 1150 */ boolean forInventory = false;\n/* 1151 */ String trdisplay = \"none\";\n/* 1152 */ String plusstyle = \"inline\";\n/* 1153 */ String minusstyle = \"none\";\n/* 1154 */ String haidTopLevel = \"\";\n/* 1155 */ if (request.getAttribute(\"forInventory\") != null)\n/* */ {\n/* 1157 */ if (\"true\".equals((String)request.getAttribute(\"forInventory\")))\n/* */ {\n/* 1159 */ haidTopLevel = request.getParameter(\"haid\");\n/* 1160 */ forInventory = true;\n/* 1161 */ trdisplay = \"table-row;\";\n/* 1162 */ plusstyle = \"none\";\n/* 1163 */ minusstyle = \"inline\";\n/* */ }\n/* */ \n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* 1170 */ haidTopLevel = resIdTOCheck;\n/* */ }\n/* */ \n/* 1173 */ ArrayList listtoreturn = new ArrayList();\n/* 1174 */ StringBuffer toreturn = new StringBuffer();\n/* 1175 */ Hashtable availabilitykeys = (Hashtable)availhealth.get(\"avail\");\n/* 1176 */ Hashtable healthkeys = (Hashtable)availhealth.get(\"health\");\n/* 1177 */ Properties alert = (Properties)availhealth.get(\"alert\");\n/* */ \n/* 1179 */ for (int j = 0; j < singlechilmos.size(); j++)\n/* */ {\n/* 1181 */ ArrayList singlerow = (ArrayList)singlechilmos.get(j);\n/* 1182 */ String childresid = (String)singlerow.get(0);\n/* 1183 */ String childresname = (String)singlerow.get(1);\n/* 1184 */ childresname = com.adventnet.appmanager.util.ExtProdUtil.decodeString(childresname);\n/* 1185 */ String childtype = ((String)singlerow.get(2) + \"\").trim();\n/* 1186 */ String imagepath = ((String)singlerow.get(3) + \"\").trim();\n/* 1187 */ String shortname = ((String)singlerow.get(4) + \"\").trim();\n/* 1188 */ String unmanagestatus = (String)singlerow.get(5);\n/* 1189 */ String actionstatus = (String)singlerow.get(6);\n/* 1190 */ String linkclass = \"monitorgp-links\";\n/* 1191 */ String titleforres = childresname;\n/* 1192 */ String titilechildresname = childresname;\n/* 1193 */ String childimg = \"/images/trcont.png\";\n/* 1194 */ String flag = \"enable\";\n/* 1195 */ String dcstarted = (String)singlerow.get(8);\n/* 1196 */ String configMonitor = \"\";\n/* 1197 */ String configmsg = FormatUtil.getString(\"am.webclient.vcenter.esx.notconfigured.text\");\n/* 1198 */ if ((\"VMWare ESX/ESXi\".equals(childtype)) && (!\"2\".equals(dcstarted)))\n/* */ {\n/* 1200 */ configMonitor = \"&nbsp;&nbsp;<img src='/images/icon_ack.gif' align='absmiddle' style='width=16px;heigth:16px' border='0' title='\" + configmsg + \"' />\";\n/* */ }\n/* 1202 */ if (singlerow.get(7) != null)\n/* */ {\n/* 1204 */ flag = (String)singlerow.get(7);\n/* */ }\n/* 1206 */ String haiGroupType = \"0\";\n/* 1207 */ if (\"HAI\".equals(childtype))\n/* */ {\n/* 1209 */ haiGroupType = (String)singlerow.get(9);\n/* */ }\n/* 1211 */ childimg = \"/images/trend.png\";\n/* 1212 */ String actionmsg = FormatUtil.getString(\"Actions Enabled\");\n/* 1213 */ String actionimg = \"<img src=\\\"/images/alarm-icon.png\\\" border=\\\"0\\\" title=\\\"\" + actionmsg + \"\\\" />\";\n/* 1214 */ if ((actionstatus == null) || (actionstatus.equalsIgnoreCase(\"null\")) || (actionstatus.equals(\"1\")))\n/* */ {\n/* 1216 */ actionimg = \"<img src=\\\"/images/alarm-icon.png\\\" border=\\\"0\\\" title=\\\"\" + actionmsg + \"\\\" />\";\n/* */ }\n/* 1218 */ else if (actionstatus.equals(\"0\"))\n/* */ {\n/* 1220 */ actionmsg = FormatUtil.getString(\"Actions Disabled\");\n/* 1221 */ actionimg = \"<img src=\\\"/images/icon_actions_disabled.gif\\\" border=\\\"0\\\" title=\\\"\" + actionmsg + \"\\\" />\";\n/* */ }\n/* */ \n/* 1224 */ if ((unmanagestatus != null) && (!unmanagestatus.trim().equalsIgnoreCase(\"null\")))\n/* */ {\n/* 1226 */ linkclass = \"disabledtext\";\n/* 1227 */ titleforres = titleforres + \"-UnManaged\";\n/* */ }\n/* 1229 */ String availkey = childresid + \"#\" + availabilitykeys.get(childtype) + \"#\" + \"MESSAGE\";\n/* 1230 */ String availmouseover = \"\";\n/* 1231 */ if (alert.getProperty(availkey) != null)\n/* */ {\n/* 1233 */ availmouseover = \"onmouseover=\\\"ddrivetip(this,event,'\" + alert.getProperty(availkey).replace(\"\\\"\", \"&quot;\") + \"<br><span style=color: #000000;font-weight:bold;>\" + FormatUtil.getString(\"am.webclient.tooltip.text\") + \"</span>',null,true,'#000000')\\\" onmouseout=\\\"hideddrivetip()\\\" \";\n/* */ }\n/* 1235 */ String healthkey = childresid + \"#\" + healthkeys.get(childtype) + \"#\" + \"MESSAGE\";\n/* 1236 */ String healthmouseover = \"\";\n/* 1237 */ if (alert.getProperty(healthkey) != null)\n/* */ {\n/* 1239 */ healthmouseover = \"onmouseover=\\\"ddrivetip(this,event,'\" + alert.getProperty(healthkey).replace(\"\\\"\", \"&quot;\") + \"<br><span style=color: #000000;font-weight:bold;>\" + FormatUtil.getString(\"am.webclient.tooltip.text\") + \"</span>',null,true,'#000000')\\\" onmouseout=\\\"hideddrivetip()\\\" \";\n/* */ }\n/* */ \n/* 1242 */ String tempbgcolor = \"class=\\\"whitegrayrightalign\\\"\";\n/* 1243 */ int spacing = 0;\n/* 1244 */ if (level >= 1)\n/* */ {\n/* 1246 */ spacing = 40 * level;\n/* */ }\n/* 1248 */ if (childtype.equals(\"HAI\"))\n/* */ {\n/* 1250 */ ArrayList singlechilmos1 = (ArrayList)childmos.get(childresid + \"\");\n/* 1251 */ String tempresourceidtree = currentresourceidtree + \"|\" + childresid;\n/* 1252 */ String availimage = getSeverityImageForAvailability(alert.getProperty(childresid + \"#\" + availabilitykeys.get(childtype)));\n/* */ \n/* 1254 */ String availlink = \"<a href=\\\"javascript:void(0);\\\" \" + availmouseover + \" onClick=\\\"fnOpenNewWindow('/jsp/RCA.jsp?resourceid=\" + childresid + \"&attributeid=\" + availabilitykeys.get(childtype) + \"')\\\"> \" + availimage + \"</a>\";\n/* 1255 */ String healthimage = getSeverityImageForHealth(alert.getProperty(childresid + \"#\" + healthkeys.get(childtype)));\n/* 1256 */ String healthlink = \"<a href=\\\"javascript:void(0);\\\" \" + healthmouseover + \" onClick=\\\"fnOpenNewWindow('/jsp/RCA.jsp?resourceid=\" + childresid + \"&attributeid=\" + healthkeys.get(childtype) + \"')\\\"> \" + healthimage + \"</a>\";\n/* 1257 */ String editlink = \"<a href=\\\"/showapplication.do?method=editApplication&fromwhere=allmonitorgroups&haid=\" + childresid + \"\\\" class=\\\"staticlinks\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.maintenance.edit\") + \"\\\"><img align=\\\"center\\\" src=\\\"/images/icon_edit.gif\\\" border=\\\"0\\\" /></a>\";\n/* 1258 */ String imglink = \"<img src=\\\"\" + childimg + \"\\\" align=\\\"center\\\" align=\\\"left\\\" border=\\\"0\\\" height=\\\"24\\\" width=\\\"24\\\">\";\n/* 1259 */ String checkbox = \"<input type=\\\"checkbox\\\" name=\\\"select\\\" id=\\\"\" + tempresourceidtree + \"\\\" value=\\\"\" + childresid + \"\\\" onclick=\\\"selectAllChildCKbs('\" + tempresourceidtree + \"',this,this.form),deselectParentCKbs('\" + tempresourceidtree + \"',this,this.form)\\\" >\";\n/* 1260 */ String thresholdurl = \"/showActionProfiles.do?method=getHAProfiles&haid=\" + childresid;\n/* 1261 */ String configalertslink = \" <a title='\" + FormatUtil.getString(\"am.webclient.common.util.ALERTCONFIG_TEXT\") + \"' href=\\\"\" + thresholdurl + \"\\\" ><img src=\\\"images/icon_associateaction.gif\\\" align=\\\"center\\\" border=\\\"0\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.common.util.ALERTCONFIG_TEXT\") + \"\\\" /></a>\";\n/* 1262 */ String associatelink = \"<a href=\\\"/showresource.do?method=getMonitorForm&type=All&fromwhere=monitorgroupview&haid=\" + childresid + \"\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.monitorgroupdetails.associatemonitors.text\") + \"\\\" ><img align=\\\"center\\\" src=\\\"images/icon_assoicatemonitors.gif\\\" border=\\\"0\\\" /></a>\";\n/* 1263 */ String removefromgroup = \"<a class='staticlinks' href=\\\"javascript: removeMonitorFromGroup ('\" + resIdTOCheck + \"','\" + childresid + \"','\" + haidTopLevel + \"');\\\" title='\" + FormatUtil.getString(\"am.webclient.monitorgroupdetails.remove.text\") + \"'><img width='13' align=\\\"center\\\" height='14' border='0' src='/images/icon_removefromgroup.gif'/></a>&nbsp;&nbsp;\";\n/* 1264 */ String configcustomfields = \"<a href=\\\"javascript:void(0)\\\" onclick=\\\"fnOpenNewWindow('/jsp/MyField_Alarms.jsp?resourceid=\" + childresid + \"&mgview=true')\\\" title='\" + FormatUtil.getString(\"am.myfield.assign.text\") + \"'><img align=\\\"center\\\" src=\\\"/images/icon_assigncustomfields.gif\\\" border=\\\"0\\\" /></a>\";\n/* */ \n/* 1266 */ if (!forInventory)\n/* */ {\n/* 1268 */ removefromgroup = \"\";\n/* */ }\n/* */ \n/* 1271 */ String actions = \"&nbsp;&nbsp;\" + configalertslink + \"&nbsp;&nbsp;\" + removefromgroup + \"&nbsp;&nbsp;\";\n/* */ \n/* 1273 */ if ((haiGroupType == null) || ((haiGroupType != null) && (!\"1009\".equals(haiGroupType)) && (!\"1010\".equals(haiGroupType)) && (!\"1012\".equals(haiGroupType))))\n/* */ {\n/* 1275 */ actions = editlink + actions;\n/* */ }\n/* 1277 */ if ((haiGroupType == null) || ((haiGroupType != null) && (!\"1009\".equals(haiGroupType)) && (!\"1010\".equals(haiGroupType)) && (!\"3\".equals(haiGroupType)) && (!\"1012\".equals(haiGroupType))))\n/* */ {\n/* 1279 */ actions = actions + associatelink;\n/* */ }\n/* 1281 */ actions = actions + \"&nbsp;&nbsp;&nbsp;&nbsp;\" + configcustomfields;\n/* 1282 */ String arrowimg = \"\";\n/* 1283 */ if (request.isUserInRole(\"ENTERPRISEADMIN\"))\n/* */ {\n/* 1285 */ actions = \"\";\n/* 1286 */ arrowimg = \"<img align=\\\"center\\\" hspace=\\\"3\\\" border=\\\"0\\\" src=\\\"/images/icon_arrow_childattribute_grey.gif\\\"/>\";\n/* 1287 */ checkbox = \"\";\n/* 1288 */ childresname = childresname + \"_\" + com.adventnet.appmanager.server.framework.comm.CommDBUtil.getManagedServerNameWithPort(childresid);\n/* */ }\n/* 1290 */ if (isIt360)\n/* */ {\n/* 1292 */ actionimg = \"\";\n/* 1293 */ actions = \"\";\n/* 1294 */ arrowimg = \"<img align=\\\"center\\\" hspace=\\\"3\\\" border=\\\"0\\\" src=\\\"/images/icon_arrow_childattribute_grey.gif\\\"/>\";\n/* 1295 */ checkbox = \"\";\n/* */ }\n/* */ \n/* 1298 */ if (!request.isUserInRole(\"ADMIN\"))\n/* */ {\n/* 1300 */ actions = \"\";\n/* */ }\n/* 1302 */ if (request.isUserInRole(\"OPERATOR\"))\n/* */ {\n/* 1304 */ checkbox = \"\";\n/* */ }\n/* */ \n/* 1307 */ String resourcelink = \"\";\n/* */ \n/* 1309 */ if ((flag != null) && (flag.equals(\"enable\")))\n/* */ {\n/* 1311 */ resourcelink = \"<a href=\\\"javascript:void(0);\\\" onclick=\\\"toggleChildMos('#monitor\" + tempresourceidtree + \"'),toggleTreeImage('\" + tempresourceidtree + \"');\\\"><div id=\\\"monitorShow\" + tempresourceidtree + \"\\\" style=\\\"display:\" + plusstyle + \";\\\"><img src=\\\"/images/icon_plus.gif\\\" border=\\\"0\\\" hspace=\\\"5\\\"></div><div id=\\\"monitorHide\" + tempresourceidtree + \"\\\" style=\\\"display:\" + minusstyle + \";\\\"><img src=\\\"/images/icon_minus.gif\\\" border=\\\"0\\\" hspace=\\\"5\\\"></div> </a>\" + checkbox + \"<a href=\\\"/showapplication.do?haid=\" + childresid + \"&method=showApplication\\\" class=\\\"\" + linkclass + \"\\\">\" + getTrimmedText(titilechildresname, 45) + \"</a> \";\n/* */ }\n/* */ else\n/* */ {\n/* 1315 */ resourcelink = \"<a href=\\\"javascript:void(0);\\\" onclick=\\\"toggleChildMos('#monitor\" + tempresourceidtree + \"'),toggleTreeImage('\" + tempresourceidtree + \"');\\\"><div id=\\\"monitorShow\" + tempresourceidtree + \"\\\" style=\\\"display:\" + plusstyle + \";\\\"><img src=\\\"/images/icon_plus.gif\\\" border=\\\"0\\\" hspace=\\\"5\\\"></div><div id=\\\"monitorHide\" + tempresourceidtree + \"\\\" style=\\\"display:\" + minusstyle + \";\\\"><img src=\\\"/images/icon_minus.gif\\\" border=\\\"0\\\" hspace=\\\"5\\\"></div> </a>\" + checkbox + \"\" + getTrimmedText(titilechildresname, 45);\n/* */ }\n/* */ \n/* 1318 */ toreturn.append(\"<tr \" + tempbgcolor + \" id=\\\"#monitor\" + currentresourceidtree + \"\\\" style=\\\"display:\" + trdisplay + \";\\\" width='100%'>\");\n/* 1319 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"3%\\\" >&nbsp;</td> \");\n/* 1320 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"47%\\\" style=\\\"padding-left: \" + spacing + \"px !important;\\\" title=\" + childresname + \">\" + arrowimg + resourcelink + \"</td>\");\n/* 1321 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"15%\\\" align=\\\"left\\\">\" + \"<table><tr class='whitegrayrightalign'><td><div id='mgaction'>\" + actions + \"</div></td></tr></table></td>\");\n/* 1322 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"8%\\\" align=\\\"center\\\">\" + availlink + \"</td>\");\n/* 1323 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"7%\\\" align=\\\"center\\\">\" + healthlink + \"</td>\");\n/* 1324 */ if (!isIt360)\n/* */ {\n/* 1326 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"7%\\\" align=\\\"left\\\">\" + actionimg + \"</td>\");\n/* */ }\n/* */ else\n/* */ {\n/* 1330 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"7%\\\" align=\\\"left\\\">&nbsp;</td>\");\n/* */ }\n/* */ \n/* 1333 */ toreturn.append(\"</tr>\");\n/* 1334 */ if (childmos.get(childresid + \"\") != null)\n/* */ {\n/* 1336 */ String toappend = getAllChildNodestoDisplay(singlechilmos1, childresid + \"\", tempresourceidtree, childmos, availhealth, level + 1, request, extDeviceMap, site24x7List);\n/* 1337 */ toreturn.append(toappend);\n/* */ }\n/* */ else\n/* */ {\n/* 1341 */ String assocMessage = \"<td \" + tempbgcolor + \" colspan=\\\"2\\\"><span class=\\\"bodytext\\\" style=\\\"padding-left: \" + (spacing + 10) + \"px !important;\\\"> &nbsp;&nbsp;&nbsp;&nbsp;\" + FormatUtil.getString(\"am.webclient.monitorgroupdetails.nomonitormessage.text\") + \"</span><span class=\\\"bodytext\\\">\";\n/* 1342 */ if ((!request.isUserInRole(\"ENTERPRISEADMIN\")) && (!request.isUserInRole(\"DEMO\")) && (!request.isUserInRole(\"OPERATOR\")))\n/* */ {\n/* */ \n/* 1345 */ assocMessage = assocMessage + FormatUtil.getString(\"am.webclient.monitorgroupdetails.click.text\") + \" <a href=\\\"/showresource.do?method=getMonitorForm&type=All&haid=\" + childresid + \"&fromwhere=monitorgroupview\\\" class=\\\"staticlinks\\\" >\" + FormatUtil.getString(\"am.webclient.monitorgroupdetails.linktoadd.text\") + \"</span></td>\";\n/* */ }\n/* */ \n/* */ \n/* 1349 */ if ((haiGroupType == null) || ((haiGroupType != null) && (!\"1009\".equals(haiGroupType)) && (!\"1010\".equals(haiGroupType)) && (!\"3\".equals(haiGroupType)) && (!\"1012\".equals(haiGroupType))))\n/* */ {\n/* 1351 */ toreturn.append(\"<tr \" + tempbgcolor + \" id=\\\"#monitor\" + tempresourceidtree + \"\\\" style=\\\"display: \" + trdisplay + \";\\\" width='100%'>\");\n/* 1352 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"3%\\\" >&nbsp;</td> \");\n/* 1353 */ toreturn.append(assocMessage);\n/* 1354 */ toreturn.append(\"<td \" + tempbgcolor + \" >&nbsp;</td> \");\n/* 1355 */ toreturn.append(\"<td \" + tempbgcolor + \" >&nbsp;</td> \");\n/* 1356 */ toreturn.append(\"<td \" + tempbgcolor + \" >&nbsp;</td> \");\n/* 1357 */ toreturn.append(\"</tr>\");\n/* */ }\n/* */ }\n/* */ }\n/* */ else\n/* */ {\n/* 1363 */ String resourcelink = null;\n/* 1364 */ boolean hideEditLink = false;\n/* 1365 */ if ((extDeviceMap != null) && (extDeviceMap.get(childresid) != null))\n/* */ {\n/* 1367 */ String link1 = (String)extDeviceMap.get(childresid);\n/* 1368 */ hideEditLink = true;\n/* 1369 */ if (isIt360)\n/* */ {\n/* 1371 */ resourcelink = \"<a href=\" + link1 + \" class=\\\"\" + linkclass + \"\\\" title=\\\"\" + titleforres + \"\\\">\" + getTrimmedText(childresname, 45) + \"</a>\";\n/* */ }\n/* */ else\n/* */ {\n/* 1375 */ resourcelink = \"<a href=\\\"javascript:MM_openBrWindow('\" + link1 + \"','ExternalDevice','width=950,height=600,top=50,left=75,scrollbars=yes,resizable=yes')\\\" class=\\\"\" + linkclass + \"\\\" title=\\\"\" + titleforres + \"\\\">\" + getTrimmedText(childresname, 45) + \"</a>\";\n/* */ }\n/* 1377 */ } else if ((site24x7List != null) && (site24x7List.containsKey(childresid)))\n/* */ {\n/* 1379 */ hideEditLink = true;\n/* 1380 */ String link2 = URLEncoder.encode((String)site24x7List.get(childresid));\n/* 1381 */ resourcelink = \"<a href=\\\"javascript:MM_openBrWindow('\" + link2 + \"','Site24x7','width=950,height=600,top=50,left=75,scrollbars=yes,resizable=yes')\\\" class=\\\"\" + linkclass + \"\\\" title=\\\"\" + titleforres + \"\\\">\" + getTrimmedText(childresname, 45) + \"</a>\";\n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* 1386 */ resourcelink = \"<a href=\\\"/showresource.do?resourceid=\" + childresid + \"&method=showResourceForResourceID&haid=\" + resIdTOCheck + \"\\\" class=\\\"\" + linkclass + \"\\\" title=\\\"\" + titleforres + \"\\\">\" + getTrimmedText(childresname, 45) + \"</a>\";\n/* */ }\n/* */ \n/* 1389 */ String imglink = \"<img src=\\\"\" + childimg + \"\\\" align=\\\"left\\\" border=\\\"0\\\" height=\\\"24\\\" width=\\\"24\\\" />\";\n/* 1390 */ String checkbox = \"<input type=\\\"checkbox\\\" name=\\\"select\\\" id=\\\"\" + currentresourceidtree + \"|\" + childresid + \"\\\" value=\\\"\" + childresid + \"\\\" onclick=\\\"deselectParentCKbs('\" + currentresourceidtree + \"|\" + childresid + \"',this,this.form);\\\" >\";\n/* 1391 */ String key = childresid + \"#\" + availabilitykeys.get(childtype) + \"#\" + \"MESSAGE\";\n/* 1392 */ String availimage = getSeverityImageForAvailability(alert.getProperty(childresid + \"#\" + availabilitykeys.get(childtype)));\n/* 1393 */ String healthimage = getSeverityImageForHealth(alert.getProperty(childresid + \"#\" + healthkeys.get(childtype)));\n/* 1394 */ String availlink = \"<a href=\\\"javascript:void(0);\\\" \" + availmouseover + \"onClick=\\\"fnOpenNewWindow('/jsp/RCA.jsp?resourceid=\" + childresid + \"&attributeid=\" + availabilitykeys.get(childtype) + \"')\\\"> \" + availimage + \"</a>\";\n/* 1395 */ String healthlink = \"<a href=\\\"javascript:void(0);\\\" \" + healthmouseover + \" onClick=\\\"fnOpenNewWindow('/jsp/RCA.jsp?resourceid=\" + childresid + \"&attributeid=\" + healthkeys.get(childtype) + \"')\\\"> \" + healthimage + \"</a>\";\n/* 1396 */ String editlink = \"<a href=\\\"/showresource.do?haid=\" + resIdTOCheck + \"&resourceid=\" + childresid + \"&resourcename=\" + childresname + \"&type=\" + childtype + \"&method=showdetails&editPage=true&moname=\" + childresname + \"\\\" class=\\\"staticlinks\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.maintenance.edit\") + \"\\\"><img align=\\\"center\\\" src=\\\"/images/icon_edit.gif\\\" border=\\\"0\\\" /></a>\";\n/* 1397 */ String thresholdurl = \"/showActionProfiles.do?method=getResourceProfiles&admin=true&all=true&resourceid=\" + childresid;\n/* 1398 */ String configalertslink = \" <a href=\\\"\" + thresholdurl + \"\\\" title='\" + FormatUtil.getString(\"am.webclient.common.util.ALERTCONFIG_TEXT\") + \"'><img src=\\\"images/icon_associateaction.gif\\\" align=\\\"center\\\" border=\\\"0\\\" /></a>\";\n/* 1399 */ String img2 = \"<img src=\\\"/images/trvline.png\\\" align=\\\"absmiddle\\\" border=\\\"0\\\" height=\\\"15\\\" width=\\\"15\\\"/>\";\n/* 1400 */ String removefromgroup = \"<a class='staticlinks' href=\\\"javascript: removeMonitorFromGroup ('\" + resIdTOCheck + \"','\" + childresid + \"','\" + haidTopLevel + \"');\\\" title='\" + FormatUtil.getString(\"am.webclient.monitorgroupdetails.remove.text\") + \"'><img width='13' align=\\\"center\\\" height='14' border='0' src='/images/icon_removefromgroup.gif'/></a>\";\n/* 1401 */ String configcustomfields = \"<a href=\\\"javascript:void(0)\\\" onclick=\\\"fnOpenNewWindow('/jsp/MyField_Alarms.jsp?resourceid=\" + childresid + \"&mgview=true')\\\" title='\" + FormatUtil.getString(\"am.myfield.assign.text\") + \"'><img align=\\\"center\\\" src=\\\"/images/icon_assigncustomfields.gif\\\" border=\\\"0\\\" /></a>\";\n/* */ \n/* 1403 */ if (hideEditLink)\n/* */ {\n/* 1405 */ editlink = \"&nbsp;&nbsp;&nbsp;\";\n/* */ }\n/* 1407 */ if (!forInventory)\n/* */ {\n/* 1409 */ removefromgroup = \"\";\n/* */ }\n/* 1411 */ String actions = \"&nbsp;&nbsp;\" + configalertslink + \"&nbsp;&nbsp;\" + removefromgroup + \"&nbsp;&nbsp;\";\n/* 1412 */ if (!com.adventnet.appmanager.util.Constants.sqlManager) {\n/* 1413 */ actions = actions + configcustomfields;\n/* */ }\n/* 1415 */ if ((haiGroupType == null) || ((haiGroupType != null) && (!\"1009\".equals(haiGroupType)) && (!\"1010\".equals(haiGroupType)) && (!\"1012\".equals(haiGroupType))))\n/* */ {\n/* 1417 */ actions = editlink + actions;\n/* */ }\n/* 1419 */ String managedLink = \"\";\n/* 1420 */ if ((request.isUserInRole(\"ENTERPRISEADMIN\")) && (!com.adventnet.appmanager.util.Constants.isIt360))\n/* */ {\n/* 1422 */ checkbox = \"<img hspace=\\\"3\\\" border=\\\"0\\\" src=\\\"/images/icon_arrow_childattribute_grey.gif\\\"/>\";\n/* 1423 */ actions = \"\";\n/* 1424 */ if (Integer.parseInt(childresid) >= com.adventnet.appmanager.server.framework.comm.Constants.RANGE) {\n/* 1425 */ managedLink = \"&nbsp; <a target=\\\"mas_window\\\" href=\\\"/showresource.do?resourceid=\" + childresid + \"&type=\" + childtype + \"&moname=\" + URLEncoder.encode(childresname) + \"&resourcename=\" + URLEncoder.encode(childresname) + \"&method=showdetails&aam_jump=true&useHTTP=\" + (!isIt360) + \"\\\"><img border=\\\"0\\\" title=\\\"View Monitor details in Managed Server console\\\" src=\\\"/images/jump.gif\\\"/></a>\";\n/* */ }\n/* */ }\n/* 1428 */ if ((isIt360) || (request.isUserInRole(\"OPERATOR\")))\n/* */ {\n/* 1430 */ checkbox = \"\";\n/* */ }\n/* */ \n/* 1433 */ if (!request.isUserInRole(\"ADMIN\"))\n/* */ {\n/* 1435 */ actions = \"\";\n/* */ }\n/* 1437 */ toreturn.append(\"<tr \" + tempbgcolor + \" id=\\\"#monitor\" + currentresourceidtree + \"\\\" style=\\\"display: \" + trdisplay + \";\\\" width='100%'>\");\n/* 1438 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"3%\\\" >&nbsp;</td> \");\n/* 1439 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"47%\\\" nowrap=\\\"false\\\" style=\\\"padding-left: \" + spacing + \"px !important;\\\" >\" + checkbox + \"&nbsp;<img align='absmiddle' border=\\\"0\\\" title='\" + shortname + \"' src=\\\"\" + imagepath + \"\\\"/>&nbsp;\" + resourcelink + managedLink + configMonitor + \"</td>\");\n/* 1440 */ if (isIt360)\n/* */ {\n/* 1442 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"15%\\\" align=\\\"left\\\">&nbsp;</td>\");\n/* */ }\n/* */ else\n/* */ {\n/* 1446 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"15%\\\" align=\\\"left\\\">\" + \"<table><tr class='whitegrayrightalign'><td><div id='mgaction'>\" + actions + \"</div></td></tr></table></td>\");\n/* */ }\n/* 1448 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"8%\\\" align=\\\"center\\\">\" + availlink + \"</td>\");\n/* 1449 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"7%\\\" align=\\\"center\\\">\" + healthlink + \"</td>\");\n/* 1450 */ if (!isIt360)\n/* */ {\n/* 1452 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"7%\\\" align=\\\"left\\\">\" + actionimg + \"</td>\");\n/* */ }\n/* */ else\n/* */ {\n/* 1456 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"7%\\\" align=\\\"left\\\">&nbsp;</td>\");\n/* */ }\n/* 1458 */ toreturn.append(\"</tr>\");\n/* */ }\n/* */ }\n/* 1461 */ return toreturn.toString();\n/* */ }", "private void initTree()\n {\n String currSpell;\n Node tempNode;\n String currString;\n Gestures currGest;\n for(int spellInd = 0; spellInd < SpellLibrary.spellList.length; spellInd++)\n {\n //Start casting a new spell from the root node\n tempNode = root;\n currSpell = SpellLibrary.spellList[spellInd];\n for(int currCharInd =0; currCharInd < currSpell.length(); currCharInd++)\n {\n currString = currSpell.substring(0,currCharInd+1);\n currGest = Gestures.getGestureByChar(currString.charAt(currString.length()-1));\n if(tempNode.getChild(currGest) == null) //Need to add a new node!\n {\n tempNode.addChild(currGest,new Node(currString));\n debug_node_number++;\n }\n //Walk into the existing node\n tempNode = tempNode.getChild(currGest);\n }\n\n }\n }", "public SearchTreeNode()\n\t{\n\t\tthis.word = \"\";\n\t\tthis.children = new HashSet<>();\n\t}", "public String getAllChildNodestoDisplay(ArrayList singlechilmos, String resIdTOCheck, String currentresourceidtree, Hashtable childmos, Hashtable availhealth, int level, HttpServletRequest request, HashMap extDeviceMap, HashMap site24x7List)\n/* */ {\n/* 1152 */ boolean isIt360 = com.adventnet.appmanager.util.Constants.isIt360;\n/* 1153 */ boolean forInventory = false;\n/* 1154 */ String trdisplay = \"none\";\n/* 1155 */ String plusstyle = \"inline\";\n/* 1156 */ String minusstyle = \"none\";\n/* 1157 */ String haidTopLevel = \"\";\n/* 1158 */ if (request.getAttribute(\"forInventory\") != null)\n/* */ {\n/* 1160 */ if (\"true\".equals((String)request.getAttribute(\"forInventory\")))\n/* */ {\n/* 1162 */ haidTopLevel = request.getParameter(\"haid\");\n/* 1163 */ forInventory = true;\n/* 1164 */ trdisplay = \"table-row;\";\n/* 1165 */ plusstyle = \"none\";\n/* 1166 */ minusstyle = \"inline\";\n/* */ }\n/* */ \n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* 1173 */ haidTopLevel = resIdTOCheck;\n/* */ }\n/* */ \n/* 1176 */ ArrayList listtoreturn = new ArrayList();\n/* 1177 */ StringBuffer toreturn = new StringBuffer();\n/* 1178 */ Hashtable availabilitykeys = (Hashtable)availhealth.get(\"avail\");\n/* 1179 */ Hashtable healthkeys = (Hashtable)availhealth.get(\"health\");\n/* 1180 */ Properties alert = (Properties)availhealth.get(\"alert\");\n/* */ \n/* 1182 */ for (int j = 0; j < singlechilmos.size(); j++)\n/* */ {\n/* 1184 */ ArrayList singlerow = (ArrayList)singlechilmos.get(j);\n/* 1185 */ String childresid = (String)singlerow.get(0);\n/* 1186 */ String childresname = (String)singlerow.get(1);\n/* 1187 */ childresname = com.adventnet.appmanager.util.ExtProdUtil.decodeString(childresname);\n/* 1188 */ String childtype = ((String)singlerow.get(2) + \"\").trim();\n/* 1189 */ String imagepath = ((String)singlerow.get(3) + \"\").trim();\n/* 1190 */ String shortname = ((String)singlerow.get(4) + \"\").trim();\n/* 1191 */ String unmanagestatus = (String)singlerow.get(5);\n/* 1192 */ String actionstatus = (String)singlerow.get(6);\n/* 1193 */ String linkclass = \"monitorgp-links\";\n/* 1194 */ String titleforres = childresname;\n/* 1195 */ String titilechildresname = childresname;\n/* 1196 */ String childimg = \"/images/trcont.png\";\n/* 1197 */ String flag = \"enable\";\n/* 1198 */ String dcstarted = (String)singlerow.get(8);\n/* 1199 */ String configMonitor = \"\";\n/* 1200 */ String configmsg = FormatUtil.getString(\"am.webclient.vcenter.esx.notconfigured.text\");\n/* 1201 */ if ((\"VMWare ESX/ESXi\".equals(childtype)) && (!\"2\".equals(dcstarted)))\n/* */ {\n/* 1203 */ configMonitor = \"&nbsp;&nbsp;<img src='/images/icon_ack.gif' align='absmiddle' style='width=16px;heigth:16px' border='0' title='\" + configmsg + \"' />\";\n/* */ }\n/* 1205 */ if (singlerow.get(7) != null)\n/* */ {\n/* 1207 */ flag = (String)singlerow.get(7);\n/* */ }\n/* 1209 */ String haiGroupType = \"0\";\n/* 1210 */ if (\"HAI\".equals(childtype))\n/* */ {\n/* 1212 */ haiGroupType = (String)singlerow.get(9);\n/* */ }\n/* 1214 */ childimg = \"/images/trend.png\";\n/* 1215 */ String actionmsg = FormatUtil.getString(\"Actions Enabled\");\n/* 1216 */ String actionimg = \"<img src=\\\"/images/alarm-icon.png\\\" border=\\\"0\\\" title=\\\"\" + actionmsg + \"\\\" />\";\n/* 1217 */ if ((actionstatus == null) || (actionstatus.equalsIgnoreCase(\"null\")) || (actionstatus.equals(\"1\")))\n/* */ {\n/* 1219 */ actionimg = \"<img src=\\\"/images/alarm-icon.png\\\" border=\\\"0\\\" title=\\\"\" + actionmsg + \"\\\" />\";\n/* */ }\n/* 1221 */ else if (actionstatus.equals(\"0\"))\n/* */ {\n/* 1223 */ actionmsg = FormatUtil.getString(\"Actions Disabled\");\n/* 1224 */ actionimg = \"<img src=\\\"/images/icon_actions_disabled.gif\\\" border=\\\"0\\\" title=\\\"\" + actionmsg + \"\\\" />\";\n/* */ }\n/* */ \n/* 1227 */ if ((unmanagestatus != null) && (!unmanagestatus.trim().equalsIgnoreCase(\"null\")))\n/* */ {\n/* 1229 */ linkclass = \"disabledtext\";\n/* 1230 */ titleforres = titleforres + \"-UnManaged\";\n/* */ }\n/* 1232 */ String availkey = childresid + \"#\" + availabilitykeys.get(childtype) + \"#\" + \"MESSAGE\";\n/* 1233 */ String availmouseover = \"\";\n/* 1234 */ if (alert.getProperty(availkey) != null)\n/* */ {\n/* 1236 */ availmouseover = \"onmouseover=\\\"ddrivetip(this,event,'\" + alert.getProperty(availkey).replace(\"\\\"\", \"&quot;\") + \"<br><span style=color: #000000;font-weight:bold;>\" + FormatUtil.getString(\"am.webclient.tooltip.text\") + \"</span>',null,true,'#000000')\\\" onmouseout=\\\"hideddrivetip()\\\" \";\n/* */ }\n/* 1238 */ String healthkey = childresid + \"#\" + healthkeys.get(childtype) + \"#\" + \"MESSAGE\";\n/* 1239 */ String healthmouseover = \"\";\n/* 1240 */ if (alert.getProperty(healthkey) != null)\n/* */ {\n/* 1242 */ healthmouseover = \"onmouseover=\\\"ddrivetip(this,event,'\" + alert.getProperty(healthkey).replace(\"\\\"\", \"&quot;\") + \"<br><span style=color: #000000;font-weight:bold;>\" + FormatUtil.getString(\"am.webclient.tooltip.text\") + \"</span>',null,true,'#000000')\\\" onmouseout=\\\"hideddrivetip()\\\" \";\n/* */ }\n/* */ \n/* 1245 */ String tempbgcolor = \"class=\\\"whitegrayrightalign\\\"\";\n/* 1246 */ int spacing = 0;\n/* 1247 */ if (level >= 1)\n/* */ {\n/* 1249 */ spacing = 40 * level;\n/* */ }\n/* 1251 */ if (childtype.equals(\"HAI\"))\n/* */ {\n/* 1253 */ ArrayList singlechilmos1 = (ArrayList)childmos.get(childresid + \"\");\n/* 1254 */ String tempresourceidtree = currentresourceidtree + \"|\" + childresid;\n/* 1255 */ String availimage = getSeverityImageForAvailability(alert.getProperty(childresid + \"#\" + availabilitykeys.get(childtype)));\n/* */ \n/* 1257 */ String availlink = \"<a href=\\\"javascript:void(0);\\\" \" + availmouseover + \" onClick=\\\"fnOpenNewWindow('/jsp/RCA.jsp?resourceid=\" + childresid + \"&attributeid=\" + availabilitykeys.get(childtype) + \"')\\\"> \" + availimage + \"</a>\";\n/* 1258 */ String healthimage = getSeverityImageForHealth(alert.getProperty(childresid + \"#\" + healthkeys.get(childtype)));\n/* 1259 */ String healthlink = \"<a href=\\\"javascript:void(0);\\\" \" + healthmouseover + \" onClick=\\\"fnOpenNewWindow('/jsp/RCA.jsp?resourceid=\" + childresid + \"&attributeid=\" + healthkeys.get(childtype) + \"')\\\"> \" + healthimage + \"</a>\";\n/* 1260 */ String editlink = \"<a href=\\\"/showapplication.do?method=editApplication&fromwhere=allmonitorgroups&haid=\" + childresid + \"\\\" class=\\\"staticlinks\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.maintenance.edit\") + \"\\\"><img align=\\\"center\\\" src=\\\"/images/icon_edit.gif\\\" border=\\\"0\\\" /></a>\";\n/* 1261 */ String imglink = \"<img src=\\\"\" + childimg + \"\\\" align=\\\"center\\\" align=\\\"left\\\" border=\\\"0\\\" height=\\\"24\\\" width=\\\"24\\\">\";\n/* 1262 */ String checkbox = \"<input type=\\\"checkbox\\\" name=\\\"select\\\" id=\\\"\" + tempresourceidtree + \"\\\" value=\\\"\" + childresid + \"\\\" onclick=\\\"selectAllChildCKbs('\" + tempresourceidtree + \"',this,this.form),deselectParentCKbs('\" + tempresourceidtree + \"',this,this.form)\\\" >\";\n/* 1263 */ String thresholdurl = \"/showActionProfiles.do?method=getHAProfiles&haid=\" + childresid;\n/* 1264 */ String configalertslink = \" <a title='\" + FormatUtil.getString(\"am.webclient.common.util.ALERTCONFIG_TEXT\") + \"' href=\\\"\" + thresholdurl + \"\\\" ><img src=\\\"images/icon_associateaction.gif\\\" align=\\\"center\\\" border=\\\"0\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.common.util.ALERTCONFIG_TEXT\") + \"\\\" /></a>\";\n/* 1265 */ String associatelink = \"<a href=\\\"/showresource.do?method=getMonitorForm&type=All&fromwhere=monitorgroupview&haid=\" + childresid + \"\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.monitorgroupdetails.associatemonitors.text\") + \"\\\" ><img align=\\\"center\\\" src=\\\"images/icon_assoicatemonitors.gif\\\" border=\\\"0\\\" /></a>\";\n/* 1266 */ String removefromgroup = \"<a class='staticlinks' href=\\\"javascript: removeMonitorFromGroup ('\" + resIdTOCheck + \"','\" + childresid + \"','\" + haidTopLevel + \"');\\\" title='\" + FormatUtil.getString(\"am.webclient.monitorgroupdetails.remove.text\") + \"'><img width='13' align=\\\"center\\\" height='14' border='0' src='/images/icon_removefromgroup.gif'/></a>&nbsp;&nbsp;\";\n/* 1267 */ String configcustomfields = \"<a href=\\\"javascript:void(0)\\\" onclick=\\\"fnOpenNewWindow('/jsp/MyField_Alarms.jsp?resourceid=\" + childresid + \"&mgview=true')\\\" title='\" + FormatUtil.getString(\"am.myfield.assign.text\") + \"'><img align=\\\"center\\\" src=\\\"/images/icon_assigncustomfields.gif\\\" border=\\\"0\\\" /></a>\";\n/* */ \n/* 1269 */ if (!forInventory)\n/* */ {\n/* 1271 */ removefromgroup = \"\";\n/* */ }\n/* */ \n/* 1274 */ String actions = \"&nbsp;&nbsp;\" + configalertslink + \"&nbsp;&nbsp;\" + removefromgroup + \"&nbsp;&nbsp;\";\n/* */ \n/* 1276 */ if ((haiGroupType == null) || ((haiGroupType != null) && (!\"1009\".equals(haiGroupType)) && (!\"1010\".equals(haiGroupType)) && (!\"1012\".equals(haiGroupType))))\n/* */ {\n/* 1278 */ actions = editlink + actions;\n/* */ }\n/* 1280 */ if ((haiGroupType == null) || ((haiGroupType != null) && (!\"1009\".equals(haiGroupType)) && (!\"1010\".equals(haiGroupType)) && (!\"3\".equals(haiGroupType)) && (!\"1012\".equals(haiGroupType))))\n/* */ {\n/* 1282 */ actions = actions + associatelink;\n/* */ }\n/* 1284 */ actions = actions + \"&nbsp;&nbsp;&nbsp;&nbsp;\" + configcustomfields;\n/* 1285 */ String arrowimg = \"\";\n/* 1286 */ if (request.isUserInRole(\"ENTERPRISEADMIN\"))\n/* */ {\n/* 1288 */ actions = \"\";\n/* 1289 */ arrowimg = \"<img align=\\\"center\\\" hspace=\\\"3\\\" border=\\\"0\\\" src=\\\"/images/icon_arrow_childattribute_grey.gif\\\"/>\";\n/* 1290 */ checkbox = \"\";\n/* 1291 */ childresname = childresname + \"_\" + com.adventnet.appmanager.server.framework.comm.CommDBUtil.getManagedServerNameWithPort(childresid);\n/* */ }\n/* 1293 */ if (isIt360)\n/* */ {\n/* 1295 */ actionimg = \"\";\n/* 1296 */ actions = \"\";\n/* 1297 */ arrowimg = \"<img align=\\\"center\\\" hspace=\\\"3\\\" border=\\\"0\\\" src=\\\"/images/icon_arrow_childattribute_grey.gif\\\"/>\";\n/* 1298 */ checkbox = \"\";\n/* */ }\n/* */ \n/* 1301 */ if (!request.isUserInRole(\"ADMIN\"))\n/* */ {\n/* 1303 */ actions = \"\";\n/* */ }\n/* 1305 */ if (request.isUserInRole(\"OPERATOR\"))\n/* */ {\n/* 1307 */ checkbox = \"\";\n/* */ }\n/* */ \n/* 1310 */ String resourcelink = \"\";\n/* */ \n/* 1312 */ if ((flag != null) && (flag.equals(\"enable\")))\n/* */ {\n/* 1314 */ resourcelink = \"<a href=\\\"javascript:void(0);\\\" onclick=\\\"toggleChildMos('#monitor\" + tempresourceidtree + \"'),toggleTreeImage('\" + tempresourceidtree + \"');\\\"><div id=\\\"monitorShow\" + tempresourceidtree + \"\\\" style=\\\"display:\" + plusstyle + \";\\\"><img src=\\\"/images/icon_plus.gif\\\" border=\\\"0\\\" hspace=\\\"5\\\"></div><div id=\\\"monitorHide\" + tempresourceidtree + \"\\\" style=\\\"display:\" + minusstyle + \";\\\"><img src=\\\"/images/icon_minus.gif\\\" border=\\\"0\\\" hspace=\\\"5\\\"></div> </a>\" + checkbox + \"<a href=\\\"/showapplication.do?haid=\" + childresid + \"&method=showApplication\\\" class=\\\"\" + linkclass + \"\\\">\" + getTrimmedText(titilechildresname, 45) + \"</a> \";\n/* */ }\n/* */ else\n/* */ {\n/* 1318 */ resourcelink = \"<a href=\\\"javascript:void(0);\\\" onclick=\\\"toggleChildMos('#monitor\" + tempresourceidtree + \"'),toggleTreeImage('\" + tempresourceidtree + \"');\\\"><div id=\\\"monitorShow\" + tempresourceidtree + \"\\\" style=\\\"display:\" + plusstyle + \";\\\"><img src=\\\"/images/icon_plus.gif\\\" border=\\\"0\\\" hspace=\\\"5\\\"></div><div id=\\\"monitorHide\" + tempresourceidtree + \"\\\" style=\\\"display:\" + minusstyle + \";\\\"><img src=\\\"/images/icon_minus.gif\\\" border=\\\"0\\\" hspace=\\\"5\\\"></div> </a>\" + checkbox + \"\" + getTrimmedText(titilechildresname, 45);\n/* */ }\n/* */ \n/* 1321 */ toreturn.append(\"<tr \" + tempbgcolor + \" id=\\\"#monitor\" + currentresourceidtree + \"\\\" style=\\\"display:\" + trdisplay + \";\\\" width='100%'>\");\n/* 1322 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"3%\\\" >&nbsp;</td> \");\n/* 1323 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"47%\\\" style=\\\"padding-left: \" + spacing + \"px !important;\\\" title=\" + childresname + \">\" + arrowimg + resourcelink + \"</td>\");\n/* 1324 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"15%\\\" align=\\\"left\\\">\" + \"<table><tr class='whitegrayrightalign'><td><div id='mgaction'>\" + actions + \"</div></td></tr></table></td>\");\n/* 1325 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"8%\\\" align=\\\"center\\\">\" + availlink + \"</td>\");\n/* 1326 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"7%\\\" align=\\\"center\\\">\" + healthlink + \"</td>\");\n/* 1327 */ if (!isIt360)\n/* */ {\n/* 1329 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"7%\\\" align=\\\"left\\\">\" + actionimg + \"</td>\");\n/* */ }\n/* */ else\n/* */ {\n/* 1333 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"7%\\\" align=\\\"left\\\">&nbsp;</td>\");\n/* */ }\n/* */ \n/* 1336 */ toreturn.append(\"</tr>\");\n/* 1337 */ if (childmos.get(childresid + \"\") != null)\n/* */ {\n/* 1339 */ String toappend = getAllChildNodestoDisplay(singlechilmos1, childresid + \"\", tempresourceidtree, childmos, availhealth, level + 1, request, extDeviceMap, site24x7List);\n/* 1340 */ toreturn.append(toappend);\n/* */ }\n/* */ else\n/* */ {\n/* 1344 */ String assocMessage = \"<td \" + tempbgcolor + \" colspan=\\\"2\\\"><span class=\\\"bodytext\\\" style=\\\"padding-left: \" + (spacing + 10) + \"px !important;\\\"> &nbsp;&nbsp;&nbsp;&nbsp;\" + FormatUtil.getString(\"am.webclient.monitorgroupdetails.nomonitormessage.text\") + \"</span><span class=\\\"bodytext\\\">\";\n/* 1345 */ if ((!request.isUserInRole(\"ENTERPRISEADMIN\")) && (!request.isUserInRole(\"DEMO\")) && (!request.isUserInRole(\"OPERATOR\")))\n/* */ {\n/* */ \n/* 1348 */ assocMessage = assocMessage + FormatUtil.getString(\"am.webclient.monitorgroupdetails.click.text\") + \" <a href=\\\"/showresource.do?method=getMonitorForm&type=All&haid=\" + childresid + \"&fromwhere=monitorgroupview\\\" class=\\\"staticlinks\\\" >\" + FormatUtil.getString(\"am.webclient.monitorgroupdetails.linktoadd.text\") + \"</span></td>\";\n/* */ }\n/* */ \n/* */ \n/* 1352 */ if ((haiGroupType == null) || ((haiGroupType != null) && (!\"1009\".equals(haiGroupType)) && (!\"1010\".equals(haiGroupType)) && (!\"3\".equals(haiGroupType)) && (!\"1012\".equals(haiGroupType))))\n/* */ {\n/* 1354 */ toreturn.append(\"<tr \" + tempbgcolor + \" id=\\\"#monitor\" + tempresourceidtree + \"\\\" style=\\\"display: \" + trdisplay + \";\\\" width='100%'>\");\n/* 1355 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"3%\\\" >&nbsp;</td> \");\n/* 1356 */ toreturn.append(assocMessage);\n/* 1357 */ toreturn.append(\"<td \" + tempbgcolor + \" >&nbsp;</td> \");\n/* 1358 */ toreturn.append(\"<td \" + tempbgcolor + \" >&nbsp;</td> \");\n/* 1359 */ toreturn.append(\"<td \" + tempbgcolor + \" >&nbsp;</td> \");\n/* 1360 */ toreturn.append(\"</tr>\");\n/* */ }\n/* */ }\n/* */ }\n/* */ else\n/* */ {\n/* 1366 */ String resourcelink = null;\n/* 1367 */ boolean hideEditLink = false;\n/* 1368 */ if ((extDeviceMap != null) && (extDeviceMap.get(childresid) != null))\n/* */ {\n/* 1370 */ String link1 = (String)extDeviceMap.get(childresid);\n/* 1371 */ hideEditLink = true;\n/* 1372 */ if (isIt360)\n/* */ {\n/* 1374 */ resourcelink = \"<a href=\" + link1 + \" class=\\\"\" + linkclass + \"\\\" title=\\\"\" + titleforres + \"\\\">\" + getTrimmedText(childresname, 45) + \"</a>\";\n/* */ }\n/* */ else\n/* */ {\n/* 1378 */ resourcelink = \"<a href=\\\"javascript:MM_openBrWindow('\" + link1 + \"','ExternalDevice','width=950,height=600,top=50,left=75,scrollbars=yes,resizable=yes')\\\" class=\\\"\" + linkclass + \"\\\" title=\\\"\" + titleforres + \"\\\">\" + getTrimmedText(childresname, 45) + \"</a>\";\n/* */ }\n/* 1380 */ } else if ((site24x7List != null) && (site24x7List.containsKey(childresid)))\n/* */ {\n/* 1382 */ hideEditLink = true;\n/* 1383 */ String link2 = URLEncoder.encode((String)site24x7List.get(childresid));\n/* 1384 */ resourcelink = \"<a href=\\\"javascript:MM_openBrWindow('\" + link2 + \"','Site24x7','width=950,height=600,top=50,left=75,scrollbars=yes,resizable=yes')\\\" class=\\\"\" + linkclass + \"\\\" title=\\\"\" + titleforres + \"\\\">\" + getTrimmedText(childresname, 45) + \"</a>\";\n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* 1389 */ resourcelink = \"<a href=\\\"/showresource.do?resourceid=\" + childresid + \"&method=showResourceForResourceID&haid=\" + resIdTOCheck + \"\\\" class=\\\"\" + linkclass + \"\\\" title=\\\"\" + titleforres + \"\\\">\" + getTrimmedText(childresname, 45) + \"</a>\";\n/* */ }\n/* */ \n/* 1392 */ String imglink = \"<img src=\\\"\" + childimg + \"\\\" align=\\\"left\\\" border=\\\"0\\\" height=\\\"24\\\" width=\\\"24\\\" />\";\n/* 1393 */ String checkbox = \"<input type=\\\"checkbox\\\" name=\\\"select\\\" id=\\\"\" + currentresourceidtree + \"|\" + childresid + \"\\\" value=\\\"\" + childresid + \"\\\" onclick=\\\"deselectParentCKbs('\" + currentresourceidtree + \"|\" + childresid + \"',this,this.form);\\\" >\";\n/* 1394 */ String key = childresid + \"#\" + availabilitykeys.get(childtype) + \"#\" + \"MESSAGE\";\n/* 1395 */ String availimage = getSeverityImageForAvailability(alert.getProperty(childresid + \"#\" + availabilitykeys.get(childtype)));\n/* 1396 */ String healthimage = getSeverityImageForHealth(alert.getProperty(childresid + \"#\" + healthkeys.get(childtype)));\n/* 1397 */ String availlink = \"<a href=\\\"javascript:void(0);\\\" \" + availmouseover + \"onClick=\\\"fnOpenNewWindow('/jsp/RCA.jsp?resourceid=\" + childresid + \"&attributeid=\" + availabilitykeys.get(childtype) + \"')\\\"> \" + availimage + \"</a>\";\n/* 1398 */ String healthlink = \"<a href=\\\"javascript:void(0);\\\" \" + healthmouseover + \" onClick=\\\"fnOpenNewWindow('/jsp/RCA.jsp?resourceid=\" + childresid + \"&attributeid=\" + healthkeys.get(childtype) + \"')\\\"> \" + healthimage + \"</a>\";\n/* 1399 */ String editlink = \"<a href=\\\"/showresource.do?haid=\" + resIdTOCheck + \"&resourceid=\" + childresid + \"&resourcename=\" + childresname + \"&type=\" + childtype + \"&method=showdetails&editPage=true&moname=\" + childresname + \"\\\" class=\\\"staticlinks\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.maintenance.edit\") + \"\\\"><img align=\\\"center\\\" src=\\\"/images/icon_edit.gif\\\" border=\\\"0\\\" /></a>\";\n/* 1400 */ String thresholdurl = \"/showActionProfiles.do?method=getResourceProfiles&admin=true&all=true&resourceid=\" + childresid;\n/* 1401 */ String configalertslink = \" <a href=\\\"\" + thresholdurl + \"\\\" title='\" + FormatUtil.getString(\"am.webclient.common.util.ALERTCONFIG_TEXT\") + \"'><img src=\\\"images/icon_associateaction.gif\\\" align=\\\"center\\\" border=\\\"0\\\" /></a>\";\n/* 1402 */ String img2 = \"<img src=\\\"/images/trvline.png\\\" align=\\\"absmiddle\\\" border=\\\"0\\\" height=\\\"15\\\" width=\\\"15\\\"/>\";\n/* 1403 */ String removefromgroup = \"<a class='staticlinks' href=\\\"javascript: removeMonitorFromGroup ('\" + resIdTOCheck + \"','\" + childresid + \"','\" + haidTopLevel + \"');\\\" title='\" + FormatUtil.getString(\"am.webclient.monitorgroupdetails.remove.text\") + \"'><img width='13' align=\\\"center\\\" height='14' border='0' src='/images/icon_removefromgroup.gif'/></a>\";\n/* 1404 */ String configcustomfields = \"<a href=\\\"javascript:void(0)\\\" onclick=\\\"fnOpenNewWindow('/jsp/MyField_Alarms.jsp?resourceid=\" + childresid + \"&mgview=true')\\\" title='\" + FormatUtil.getString(\"am.myfield.assign.text\") + \"'><img align=\\\"center\\\" src=\\\"/images/icon_assigncustomfields.gif\\\" border=\\\"0\\\" /></a>\";\n/* */ \n/* 1406 */ if (hideEditLink)\n/* */ {\n/* 1408 */ editlink = \"&nbsp;&nbsp;&nbsp;\";\n/* */ }\n/* 1410 */ if (!forInventory)\n/* */ {\n/* 1412 */ removefromgroup = \"\";\n/* */ }\n/* 1414 */ String actions = \"&nbsp;&nbsp;\" + configalertslink + \"&nbsp;&nbsp;\" + removefromgroup + \"&nbsp;&nbsp;\";\n/* 1415 */ if (!com.adventnet.appmanager.util.Constants.sqlManager) {\n/* 1416 */ actions = actions + configcustomfields;\n/* */ }\n/* 1418 */ if ((haiGroupType == null) || ((haiGroupType != null) && (!\"1009\".equals(haiGroupType)) && (!\"1010\".equals(haiGroupType)) && (!\"1012\".equals(haiGroupType))))\n/* */ {\n/* 1420 */ actions = editlink + actions;\n/* */ }\n/* 1422 */ String managedLink = \"\";\n/* 1423 */ if ((request.isUserInRole(\"ENTERPRISEADMIN\")) && (!com.adventnet.appmanager.util.Constants.isIt360))\n/* */ {\n/* 1425 */ checkbox = \"<img hspace=\\\"3\\\" border=\\\"0\\\" src=\\\"/images/icon_arrow_childattribute_grey.gif\\\"/>\";\n/* 1426 */ actions = \"\";\n/* 1427 */ if (Integer.parseInt(childresid) >= com.adventnet.appmanager.server.framework.comm.Constants.RANGE) {\n/* 1428 */ managedLink = \"&nbsp; <a target=\\\"mas_window\\\" href=\\\"/showresource.do?resourceid=\" + childresid + \"&type=\" + childtype + \"&moname=\" + URLEncoder.encode(childresname) + \"&resourcename=\" + URLEncoder.encode(childresname) + \"&method=showdetails&aam_jump=true&useHTTP=\" + (!isIt360) + \"\\\"><img border=\\\"0\\\" title=\\\"View Monitor details in Managed Server console\\\" src=\\\"/images/jump.gif\\\"/></a>\";\n/* */ }\n/* */ }\n/* 1431 */ if ((isIt360) || (request.isUserInRole(\"OPERATOR\")))\n/* */ {\n/* 1433 */ checkbox = \"\";\n/* */ }\n/* */ \n/* 1436 */ if (!request.isUserInRole(\"ADMIN\"))\n/* */ {\n/* 1438 */ actions = \"\";\n/* */ }\n/* 1440 */ toreturn.append(\"<tr \" + tempbgcolor + \" id=\\\"#monitor\" + currentresourceidtree + \"\\\" style=\\\"display: \" + trdisplay + \";\\\" width='100%'>\");\n/* 1441 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"3%\\\" >&nbsp;</td> \");\n/* 1442 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"47%\\\" nowrap=\\\"false\\\" style=\\\"padding-left: \" + spacing + \"px !important;\\\" >\" + checkbox + \"&nbsp;<img align='absmiddle' border=\\\"0\\\" title='\" + shortname + \"' src=\\\"\" + imagepath + \"\\\"/>&nbsp;\" + resourcelink + managedLink + configMonitor + \"</td>\");\n/* 1443 */ if (isIt360)\n/* */ {\n/* 1445 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"15%\\\" align=\\\"left\\\">&nbsp;</td>\");\n/* */ }\n/* */ else\n/* */ {\n/* 1449 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"15%\\\" align=\\\"left\\\">\" + \"<table><tr class='whitegrayrightalign'><td><div id='mgaction'>\" + actions + \"</div></td></tr></table></td>\");\n/* */ }\n/* 1451 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"8%\\\" align=\\\"center\\\">\" + availlink + \"</td>\");\n/* 1452 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"7%\\\" align=\\\"center\\\">\" + healthlink + \"</td>\");\n/* 1453 */ if (!isIt360)\n/* */ {\n/* 1455 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"7%\\\" align=\\\"left\\\">\" + actionimg + \"</td>\");\n/* */ }\n/* */ else\n/* */ {\n/* 1459 */ toreturn.append(\"<td \" + tempbgcolor + \" width=\\\"7%\\\" align=\\\"left\\\">&nbsp;</td>\");\n/* */ }\n/* 1461 */ toreturn.append(\"</tr>\");\n/* */ }\n/* */ }\n/* 1464 */ return toreturn.toString();\n/* */ }", "public BinTree induce() {\r\n\t\t// the initial partition contains all the samples available to us\r\n\t\tint[] entries = new int[input.length];\r\n\t\tfor (int i = 0; i < entries.length; i++)\r\n\t\t\tentries[i] = i;\r\n\t\t// the initial features include all available\r\n\t\tint[] features = new int[label.length];\r\n\t\tfor (int i = 0; i < features.length; i++)\r\n\t\t\tfeatures[i] = i;\r\n\t\t// ok, let's get the show on the road\r\n\t\treturn induceTree(entries, features);\r\n\t}", "private TObj make_node_data(ArrayList arlist, String nodename, int seq, String prefix)\n\t{\n\t\t// String p_value = \"([a-zA-Z0-9_:]+)[\\\\s]*=[\\\\s]*\\\"?([a-zA-Z0-9_\\\\-:\\\\\\\\.��-��]+)\";\n\t\t// 2013.12.17\n\t\tString p_value1 = \"([a-zA-Z0-9-_:]+)[\\\\s]*=[\\\\s]*[\\\"]([^\\\"]+)\";\n\t\tString p_value2 = \"([a-zA-Z0-9-_:]+)[\\\\s]*=[\\\\s]*[']([^']+)\";\n\t\tString p_value3 = \"([a-zA-Z0-9-_:]+)[\\\\s]*=[\\\\s]*([a-zA-Z0-9-_:\\\\.]+)\";\n\t\tPattern p1 = Pattern.compile(p_value1);\n\t\tPattern p2 = Pattern.compile(p_value2);\n\t\tPattern p3 = Pattern.compile(p_value3);\n\t\tTObj nddata = new TObj(_NODE_TYPE, make_path(prefix , nodename), nodename, 100, new TLocation( seq+1, seq+1,0,0,\"\") );\n\t\tfor ( int i = 0; i < arlist.size(); i ++) {\n\t\t\tnode_line_data nd = (node_line_data )arlist.get(i);\n\t\t\tString nodeData = nd.line_data;\n\t\t\tMatcher m1 = p1.matcher(nodeData);\n\t\t\tboolean findflag =false;\n\t\t\tlocallog.trace(\"--\", nodeData);\n\t\t\twhile(m1.find()){\n\t\t\t\tlocallog.debug(\"KEY :: \" , m1.group(1) + \" VALUE :: \" + m1.group(2));\n\t\t\t\tif(brokenflag && m1.group(2).endsWith(\"=\")) {\n\t\t\t\t\treturn make_node_data_fix(arlist, nodename, seq, prefix);\n\t\t\t\t}\n\t\t\t\tString tmp = m1.group(2).trim();\n\t\t\t\tif (tmp.endsWith(\"\\\"\"))\n\t\t\t\t\ttmp = tmp.substring(0, tmp.length() - 1);\n\n\t\t\t\tTDpd nodekey = new TDpd(1, tmp, m1.group(1), 100, new TLocation(nd.seq+1));\n\t\t\t\tnddata.add(nodekey);\n\t\t\t\tfindflag = true;\n\t\t\t}\n\t\t\t// 2014.04.11 \"\", ''\n//\t\t\t 2014.01.10 aaa='ssss\n\t\t\tMatcher m2 = p2.matcher(nodeData);\n\t\t\twhile(m2.find()){\n\t\t\t\tlocallog.debug(\"KEY :: \" , m2.group(1) + \" VALUE :: \" + m2.group(2));\n\t\t\t\tif(brokenflag && m2.group(2).endsWith(\"=\")) {\n\t\t\t\t\treturn make_node_data_fix(arlist, nodename, seq, prefix);\n\t\t\t\t}\n\t\t\t\tString tmp = m2.group(2).trim();\n\t\t\t\tif (tmp.endsWith(\"\\\"\"))\n\t\t\t\t\ttmp = tmp.substring(0, tmp.length() - 1);\n\n\t\t\t\tTDpd nodekey = new TDpd(1, tmp, m2.group(1), 100, new TLocation(nd.seq+1));\n\t\t\t\tnddata.add(nodekey);\n\t\t\t\tfindflag = true;\n\t\t\t}\n\t\t\tif(findflag == false) {\n\t\t\t\t// 2014.01.23 aaa= ssss\n\t\t\t\tMatcher m3 = p3.matcher(nodeData);\n\n\t\t\t\twhile(m3.find()){\n\t\t\t\t\tlocallog.debug(\"KEY :: \" , m3.group(1) + \" VALUE :: \" + m3.group(2));\n\t\t\t\t\tif(brokenflag && m2.group(2).endsWith(\"=\")) {\n\t\t\t\t\t\treturn make_node_data_fix(arlist, nodename, seq, prefix);\n\t\t\t\t\t}\n\t\t\t\t\tString tmp = m3.group(2).trim();\n\t\t\t\t\tif (tmp.endsWith(\"\\\"\"))\n\t\t\t\t\t\ttmp = tmp.substring(0, tmp.length() - 1);\n\n\t\t\t\t\tTDpd nodekey = new TDpd(1, tmp, m3.group(1), 100, new TLocation(nd.seq+1));\n\t\t\t\t\tnddata.add(nodekey);\n\t\t\t\t\tfindflag = true;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn nddata;\n\t}", "public void initializeTree(List<FilePlanEntry> entries) {\n\t\t\n\t\tList<FilePlan> fileList = creatingFilesPlan(entries);\n\t\tSystem.out.println(fileList);\n\t\t\n\t}", "private Node<T> finnNode(int indeks){\n Node<T> curr;\n // begin på hode\n if (indeks < antall/2){\n curr= hode;\n for ( int i=0; i<indeks; i++){\n curr= curr.neste;\n }// end for\n }// end if\n else {\n curr= hale;\n for (int i = antall-1; i>indeks; i--){\n curr= curr.forrige;\n }// end for\n }// end else\n return curr;\n }" ]
[ "0.6505875", "0.6080799", "0.5619027", "0.5496153", "0.5484276", "0.546105", "0.5334312", "0.5328861", "0.5324175", "0.5314083", "0.5296915", "0.5282827", "0.5249363", "0.5241071", "0.5216117", "0.5213232", "0.51951015", "0.5184382", "0.5166576", "0.5161079", "0.51569104", "0.5151686", "0.5138919", "0.51319504", "0.51215374", "0.5102018", "0.50696605", "0.50684804", "0.50569725", "0.5013348", "0.5013085", "0.5011598", "0.4989425", "0.4980119", "0.49756613", "0.49750388", "0.4960243", "0.49578664", "0.49553666", "0.4951816", "0.494625", "0.4943809", "0.49412635", "0.49366102", "0.493195", "0.49230415", "0.49226046", "0.49165905", "0.49149802", "0.49147555", "0.4909873", "0.49036175", "0.49012092", "0.48991033", "0.4888807", "0.48858395", "0.48841572", "0.48816198", "0.48709798", "0.48686048", "0.48673093", "0.486132", "0.48477826", "0.48469016", "0.48408064", "0.48405582", "0.48366395", "0.4828785", "0.48233253", "0.48218024", "0.48202926", "0.48100188", "0.48096722", "0.47963682", "0.47928533", "0.47890133", "0.47862205", "0.47822565", "0.47783858", "0.47779465", "0.47760338", "0.4776008", "0.47752294", "0.47717687", "0.4771675", "0.4765358", "0.4761862", "0.47613788", "0.47549155", "0.47537407", "0.47476155", "0.4745577", "0.47442412", "0.47409147", "0.47367883", "0.47360966", "0.47356212", "0.47265643", "0.47224623", "0.4720638", "0.4716398" ]
0.0
-1
gets notified when the greedy search is done to start the BFS search
@Override public void handleGreedySearchHasCompleted(State greedyState) { // set up the results from the greedy search to be used for the optimal search List<TaskDependencyNode> freeTasks = DependencyGraph.getGraph().getFreeTasks(null); RecursionStore.processPotentialBestState(greedyState); RecursionStore.pushStateTreeQueue(new StateTreeBranch(generateInitialState(RecursionStore.getBestStateHeuristic()), freeTasks, 0)); PilotRecursiveWorker pilot = new PilotRecursiveWorker(_argumentsParser.getBoostMultiplier(), this); _pool.submit(pilot); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void DFSearch(BFSNode n){\n\t\tn.discovered=true;\r\n\t\tSystem.out.print(\" discovered\");\r\n\t\tn.preProcessNode();\r\n\t\tfor( Integer edg: n.edges){\r\n\t\t\tn.processEdge(edg);\r\n\t\t\tif(!nodes[edg].discovered){\r\n\t\t\t\tnodes[edg].parent = n; \r\n\t\t\t\tnodes[edg].depth = n.depth +1;\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.print(\"{new track with parent [\"+ nodes[edg].parent.value+\"] }\");\r\n\t\t\t\tDFSearch(nodes[edg]);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tif(nodes[edg] != n.parent){\r\n\t\t\t\t\tSystem.out.print(\"{LOOP}\");\r\n\t\t\t\t\tif(nodes[edg].depth < n.reachableLimit.depth){\r\n\t\t\t\t\t\tn.reachableLimit = nodes[edg];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.print(\"{second visit}\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"back from node [ \"+n.value +\" ]\");\r\n\t\tn.postProcessNode();\r\n\t\tn.processed = true;\r\n\t\t\r\n\t}", "private void BFS() {\n\n int fruitIndex = vertices.size()-1;\n Queue<GraphNode> bfsQueue = new LinkedList<>();\n bfsQueue.add(vertices.get(0));\n while (!bfsQueue.isEmpty()) {\n GraphNode pollNode = bfsQueue.poll();\n pollNode.setSeen(true);\n for (GraphNode node : vertices) {\n if (node.isSeen()) {\n continue;\n } else if (node.getID() == pollNode.getID()) {\n continue;\n } else if (!los.isIntersects(pollNode.getPoint(), node.getPoint())) {\n pollNode.getNeigbours().add(node);\n if (node.getID() != fruitIndex) {\n bfsQueue.add(node);\n node.setSeen(true);\n }\n }\n }\n }\n }", "public void startSearch() {\n if (solving) {\n Alg.Dijkstra();\n }\n pause(); //pause state\n }", "public void BFS() {\r\n\t\tSet<Vertex> visited = new HashSet<Vertex>();\r\n\r\n\t\t// Create a queue for BFS\r\n\t\tQueue<Vertex> queue = new LinkedList<Vertex>();\r\n\r\n\t\tBFS(this.vertices[3], visited, queue); // BFS starting with 40\r\n\r\n\t\t// Call the helper function to print BFS traversal\r\n\t\t// starting from all vertices one by one\r\n\t\tfor (int i = 0; i < N; ++i)\r\n\t\t\tif (!visited.contains(this.vertices[i]))\r\n\t\t\t\tBFS(this.vertices[i], visited, queue);\r\n\t}", "public void BFS() {\n visitedCells = 1;\n\n // Initialize the vertices\n for (int j = 0; j < maze.getGrid().length; j++) {\n for (int k = 0; k < maze.getGrid().length; k++) {\n Cell cell = maze.getGrid()[j][k];\n cell.setColor(\"WHITE\");\n cell.setDistance(0);\n cell.setParent(null);\n }\n }\n\n Cell sourceCell = maze.getGrid()[0][0];\n Cell neighbor = null;\n Cell currentCell;\n int distance = 0;\n\n // Initialize the source node\n sourceCell.setColor(\"GREY\");\n sourceCell.setDistance(0);\n sourceCell.setParent(null);\n\n queue.add(sourceCell);\n\n // Visits each cell until the queue is empty\n while (!queue.isEmpty()) {\n currentCell = queue.remove();\n\n for (int i = 0; i < currentCell.mazeNeighbors.size(); i++) {\n neighbor = currentCell.mazeNeighbors.get(i);\n\n // Stop the search if you reach the final cell\n if (neighbor.x == r - 1 && neighbor.y == r - 1) {\n distance++;\n if (distance == 10)\n distance = 0;\n neighbor.setDistance(distance);\n neighbor.setParent(currentCell);\n neighbor.visited = true;\n visitedCells++;\n break;\n }\n\n // Checks each neighbor and adds it to the queue if its color is white\n if (neighbor.getColor().equalsIgnoreCase(\"WHITE\")) {\n distance++;\n if (distance == 10)\n distance = 0;\n neighbor.setColor(\"GREY\");\n neighbor.setDistance(distance);\n neighbor.setParent(currentCell);\n neighbor.visited = true;\n queue.add(neighbor);\n visitedCells++;\n }\n }\n // Stop the search if you reach the final cell\n if (neighbor.x == r - 1 && neighbor.y == r - 1)\n break;\n\n currentCell.setColor(\"BLACK\");\n }\n }", "private void bfs() {\n\t\tQueue<Node> q = new ArrayDeque<>();\n\t\tq.add(treeNodes.get(0));\n\t\twhile (!q.isEmpty()) {\n\t\t\tint size = q.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tNode curr = q.poll();\n\t\t\t\ttime += curr.informTime;\n\t\t\t\tSet<Node> nextNodes = curr.nextNodes;\n\t\t\t\tif (nextNodes == null || curr.id == treeNodes.get(0).id)\n\t\t\t\t\tcontinue;\n\t\t\t\tfor (Node node : nextNodes) {\n\t\t\t\t\tq.add(node);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "void stateProcessed (Search search);", "@Override\n\t\t\tprotected Void doInBackground() throws Exception {\n\t\t\t\tif (!verifyStartEndVerticesExist(true, false)) {\n\t\t\t\t\tsetRunning(false);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Queue\n\t\t\t\tQueue<Vertex> q = new LinkedList<Vertex>();\n\t\t\t\t\n\t\t\t\t// set start vertex as visited\n\t\t\t\tpanel.getStartVertex().setVisited(true);\n\t\t\t\tq.add(panel.getStartVertex());\n\t\t\t\twhile (!q.isEmpty()) {\n\t\t\t\t\tVertex v = q.remove();\n\t\t\t\t\tv.setSelected(true);\n\t\t\t\t\tpublish();\n\t\t\t\t\tThread.sleep(panel.getCurrentDelay());\n\t\t\t\t\tfor (Vertex vertex : getNeighbors(v)) {\n\t\t\t\t\t\tvertex.setHighlighted();\n\t\t\t\t\t\tpublish();\n\t\t\t\t\t\tThread.sleep(panel.getCurrentDelay());\n\t\t\t\t\t\tif (!vertex.isVisited()) {\n\t\t\t\t\t\t\tvertex.setVisited(true);\n\t\t\t\t\t\t\tvertex.setParent(v);\n\t\t\t\t\t\t\tq.add(vertex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tv.setSelected(false);\n\t\t\t\t\tv.setHighlighted();\n\t\t\t\t\tpublish();\n\t\t\t\t\tThread.sleep(panel.getCurrentDelay());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"BFS Finished!\");\n\t\t\t\tpublish();\n\t\t\t\tsetRunning(false);\n\t\t\t\treturn null;\n\t\t\t}", "protected void reportPointsInSearch( ) {\n\t\tfor( SearchProgressCallback progress : progressListeners )\n\t\t\tprogress.pointsInSearch(this, open_from_start.size() + (bidirectional ? open_from_goal.size() : 0), closed_from_start.size() + (bidirectional ? closed_from_goal.size() : 0));\n\t}", "private void GreedySearch(){\n\n Queue<Node> expanded = new LinkedList<>();\n ArrayList<Node> fringe = new ArrayList<>();\n ArrayList<Node> fringeTemp = new ArrayList<>();\n\n\n Node current = startNode;\n\n while(expanded.size() < 1000){\n\n if(current.getDigit().getDigitString().equals(goalNode.getDigit().getDigitString())){\n //goal is reached.\n solutionPath(current);\n expanded.add(current);\n printExpanded(expanded);\n System.exit(0);\n }\n\n\n boolean b = cycleCheck(current,expanded);\n\n if(!b) {\n expanded.add(current);\n }\n\n if(!b){\n\n if(current.getDigit().last_changed != 0){\n\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n\n }\n }\n\n if(current.getDigit().last_changed != 1){\n\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n if(current.getDigit().last_changed != 2){\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n }\n\n\n\n for(Node n : fringe){\n heuristicSetter(n);\n\n }\n\n fringeTemp.addAll(fringe);\n //now all the nodes in fringe have the heuristic value.\n //We can get the last added minm\n Node minm;\n if(fringeTemp.size() != 0){\n minm = fringeTemp.get(0);\n }else{\n break;\n }\n for(int i = 1; i<fringeTemp.size(); i++){\n if(fringeTemp.get(i).getHeuristic() <= minm.getHeuristic()){\n minm = fringeTemp.get(i);\n }\n }\n\n //now we have the minm for the next stage.\n current = minm;\n fringeTemp.remove(minm);\n fringe.clear();\n }\n\n //While loop ends\n System.out.println(\"No solution found.\");\n printExpanded(expanded);\n\n\n\n }", "public void greedyBFS(String input)\r\n\t{\r\n\t\tNode root_gbfs = new Node (input);\r\n\t\tNode current = new Node(root_gbfs.getState());\r\n\t\t\r\n\t\tNodeComparator gbfs_comparator = new NodeComparator();\r\n\t\tPriorityQueue<Node> queue_gbfs = new PriorityQueue<Node>(12, gbfs_comparator);\r\n\t\tArrayList<String> visited = new ArrayList<String>();\r\n\t\tArrayList<String> children = new ArrayList<String>();\r\n\t\t\r\n\t\tint nodes_popped = 0;\r\n\t\tint pqueue_max_size = 0;\r\n\t\tint pq_size = 0;\r\n\t\t\r\n\t\tcurrent.cost = 0;\r\n\t\tcurrent.total_cost = 0;\r\n\t\t\r\n\t\twhile(!goal_gbfs)\r\n\t\t{\r\n\t\t\tvisited.add(current.getState());\r\n\t\t\tchildren = Successor.findChildren(current.getState());\r\n\t\t\t\r\n\t\t\tfor (String a : children)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tif (visited.contains(a))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tNode nino = new Node(a);\r\n\t\t\t\t\tcurrent.children_nodes.add(nino);\r\n\t\t\t\t\tvisited.add(nino.getState());\r\n\t\t\t\t\t\r\n\t\t\t\t\tint cost = isCost(current.getState(), nino.getState());\r\n\t\t\t\t\tnino.cost = cost;\r\n\t\t\t\t\tnino.parent = current;\r\n\t\t\t\t\tint greedy_cost = greedybfsCost(nino.getState(), root_gbfs.getState());\r\n\t\t\t\t\tnino.setTotalCost(greedy_cost);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (!queue_gbfs.contains(nino))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tqueue_gbfs.add(nino);\r\n\t\t\t\t\t\tpq_size++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Repeated State checking. Removing the same node from PQ if the path cost is less then the current one \r\n\t\t\t\t\telse if (queue_gbfs.contains(nino))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor (Node original : queue_gbfs)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (original.equals(nino))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tNode copy = original;\r\n\t\t\t\t\t\t\t\tif (nino.getTotalCost() < copy.getTotalCost())\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tqueue_gbfs.remove(copy);\r\n\t\t\t\t\t\t\t\t\tqueue_gbfs.add(nino);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcurrent = queue_gbfs.poll();\r\n\t\t\tnodes_popped++;\r\n\t\t\t\r\n\t\t\tif (pq_size > pqueue_max_size)\r\n\t\t\t{\r\n\t\t\t\tpqueue_max_size = pq_size;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpq_size--;\r\n\t\t\tgoal_gbfs = isGoal(current.getState());\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tgoal_gbfs = false;\r\n\t\tSystem.out.println(\"GBFS Solved!!\");\r\n\t\tSolution.performSolution(current, root_gbfs, nodes_popped, pqueue_max_size);\r\n\t}", "private void reachable() {\r\n\r\n\t\tSortedSet<String> keys = new TreeSet<String>(vertexMap.keySet());\r\n\t\tIterator it = keys.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tVertex v = vertexMap.get(it.next());\r\n\t\t\tif (v.isStatus()) {\r\n\t\t\t\tSystem.out.println(v.getName());\r\n\t\t\t\tbfs(v);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void bfs() {\n\n }", "public static void breadthFirstSearch(ArrayList<Node> graph) {\n\t\tSystem.out.println(\"BFS:\");\n\t\tif(graph.size() == 0) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tGraphUtils.cleanGraph(graph);\n\n\t\tQueue<Node> queue = new LinkedList<Node>();\n\t\tfor(Node node : graph) {\n\t\t\tif(node.state != Node.State.UNDISCOVERED) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tnode.state = Node.State.DISCOVERED;\n\t\t\tqueue.add(node);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()) {\n\t\t\t\tnode = queue.remove();\n\t\t\t\t\n\t\t\t\t//process node\n\t\t\t\tSystem.out.print(node.name + \" -> \");\n\t\t\t\t\n\t\t\t\tfor(Edge e : node.edges) {\n\t\t\t\t\t//process edge\n\t\t\t\t\tNode neighbor = e.getNeighbor(node);\n\t\t\t\t\t\n\t\t\t\t\t//first time we see this node it gets added to the queue for later processing\n\t\t\t\t\tif(neighbor.state == Node.State.UNDISCOVERED) {\n\t\t\t\t\t\tneighbor.state = Node.State.DISCOVERED;\n\t\t\t\t\t\tqueue.add(neighbor);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//finished with this node\n\t\t\t\tnode.state = Node.State.COMPLETE;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println();\n\t\tGraphUtils.cleanGraph(graph);\n\t}", "public void BFS() {\r\n\t\tQueue queue = new Queue();\r\n\t\tqueue.enqueue(this.currentVertex);\r\n\t\tcurrentVertex.printVertex();\r\n\t\tcurrentVertex.visited = true;\r\n\t\twhile (!queue.isEmpty()) {\r\n\t\t\tVertex vertex = (Vertex) queue.dequeue();\r\n\t\t\tVertex child = null;\r\n\t\t\twhile ((child = getUnvisitedChildVertex(vertex)) != null) {\r\n\t\t\t\tchild.visited = true;\r\n\t\t\t\tchild.printVertex();\r\n\t\t\t\tqueue.enqueue(child);\r\n\t\t\t}\r\n\t\t}\r\n\t\tclearVertexNodes();\r\n\t\tprintLine();\r\n\t}", "private int BFS() {\n adjList.cleanNodeFields();\n\n //Queue for storing current shortest path\n Queue<Node<Integer, Integer>> q = new LinkedList<>();\n\n //Set source node value to 0\n q.add(adjList.getNode(startNode));\n q.peek().key = 0;\n q.peek().d = 0;\n q.peek().visited = true;\n\n //Helper variables\n LinkedList<Pair<Node<Integer, Integer>, Integer>> neighbors;//Array of pairs <neighborKey, edgeWeight>\n Node<Integer, Integer> neighbor, u;\n long speed = (long) (cellSideLength * 1.20);\n\n while (!isCancelled() && q.size() != 0) {\n u = q.poll();\n\n //Marks node as checked\n checkedNodesGC.fillRect((u.value >> 16) * cellSideLength + 0.5f,\n (u.value & 0x0000FFFF) * cellSideLength + 0.5f,\n (int) cellSideLength - 1, (int) cellSideLength - 1);\n\n //endNode found\n if (u.value == endNode) {\n //Draws shortest path\n Node<Integer, Integer> current = u, prev = u;\n\n while ((current = current.prev) != null) {\n shortestPathGC.strokeLine((prev.value >> 16) * cellSideLength + cellSideLength / 2,\n (prev.value & 0x0000FFFF) * cellSideLength + cellSideLength / 2,\n (current.value >> 16) * cellSideLength + cellSideLength / 2,\n (current.value & 0x0000FFFF) * cellSideLength + cellSideLength / 2);\n prev = current;\n }\n return u.d;\n }\n\n //Wait after checking node\n try {\n Thread.sleep(speed);\n } catch (InterruptedException interrupted) {\n if (isCancelled())\n break;\n }\n\n //Checking Neighbors\n neighbors = adjList.getNeighbors(u.value);\n for (Pair<Node<Integer, Integer>, Integer> neighborKeyValuePair : neighbors) {\n neighbor = neighborKeyValuePair.getKey();\n //Relaxation step\n //Checks if neighbor hasn't been checked, if so the assign the shortest path\n if (!neighbor.visited) {\n //Adds checked neighbor to queue\n neighbor.key = u.d + 1;\n neighbor.d = u.d + 1; //Assign shorter path found to neighbor\n neighbor.prev = u;\n neighbor.visited = true;\n q.add(neighbor);\n }\n }\n }\n return Integer.MAX_VALUE;\n }", "@Override\n\tpublic void search() {\n\t\tpq = new IndexMinPQ<>(graph.getNumberOfStations());\n\t\tpq.insert(startIndex, distTo[startIndex]);\n\t\twhile (!pq.isEmpty()) {\n\t\t\tint v = pq.delMin();\n\t\t\tnodesVisited.add(graph.getStation(v));\n\t\t\tnodesVisitedAmount++;\n\t\t\tfor (Integer vertex : graph.getAdjacentVertices(v)) {\t\n\t\t\t\trelax(graph.getConnection(v, vertex));\n\t\t\t}\n\t\t}\n\t\tpathWeight = distTo[endIndex];\n\t\tpathTo(endIndex);\n\t}", "static void bfs(int[][] G){\n\t\tQueue<Integer> q = new LinkedList<Integer>();\t\t\n\t\tfor (int ver_start = 0; ver_start < N; ver_start ++){\n\t\t\tif (visited[ver_start]) continue;\n\t\t\tq.add(ver_start);\n\t\t\tvisited[ver_start] = true;\n\n\t\t\twhile(!q.isEmpty()){\n\t\t\t\tint vertex = q.remove();\n\t\t\t\tSystem.out.print((vertex+1) + \" \");\n\t\t\t\tfor (int i=0; i<N; i++){\n\t\t\t\t\tif (G[vertex][i] == 1 && !visited[i]){\n\t\t\t\t\t\t// find neigbor of current vertex and not visited\n\t\t\t\t\t\t// add into the queue\n\t\t\t\t\t\tq.add(i);\n\t\t\t\t\t\tvisited[i] = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"--\");\t\t\t\n\t\t}\n\t}", "public void bft() {\r\n\t\tHashMap<String, Boolean> processed = new HashMap<>();\r\n\t\tLinkedList<Pair> queue = new LinkedList<>();\r\n\r\n\t\tArrayList<String> vnames = new ArrayList<>(vces.keySet());\r\n\t\tfor (String vname : vnames) {\r\n\t\t\tif (processed.containsKey(vname)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tPair rootpair = new Pair(vname, vname);\r\n\t\t\tqueue.addLast(rootpair);\r\n\t\t\twhile (queue.size() != 0) {\r\n\t\t\t\t// 1. removeFirst\r\n\t\t\t\tPair rp = queue.removeFirst();\r\n\r\n\t\t\t\t// 2. check if processed, mark if not\r\n\t\t\t\tif (processed.containsKey(rp.vname)) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tprocessed.put(rp.vname, true);\r\n\r\n\t\t\t\t// 3. Check, if an edge is found\r\n\t\t\t\tSystem.out.println(rp.vname + \" via \" + rp.psf);\r\n\r\n\t\t\t\t// 4. Add the unprocessed nbrs back\r\n\t\t\t\tArrayList<String> nbrnames = new ArrayList<>(rp.vtx.nbrs.keySet());\r\n\t\t\t\tfor (String nbrname : nbrnames) {\r\n\t\t\t\t\tif (!processed.containsKey(nbrname)) {\r\n\t\t\t\t\t\tPair np = new Pair(nbrname, rp.psf + nbrname);\r\n\t\t\t\t\t\tqueue.addLast(np);\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}", "public void bfs(Queue<Integer> queue, int visited[]) {\n if (queue.isEmpty()) {\n return;\n }\n\n int root = queue.poll();\n\n if (visited[root] == 1) {\n bfs(queue, visited);\n return;//alreadu into consideration\n }\n\n\n System.out.printf(\"Exploring of node %d has started\\n\", root);\n visited[root] = 1;\n\n\n for (int i = 0; i < adjMatrix[root].size(); i++) {\n if (visited[adjMatrix[root].get(i)] == 1 || visited[adjMatrix[root].get(i)] == 2) {\n continue;\n }\n queue.add(adjMatrix[root].get(i));\n }\n bfs(queue, visited);\n System.out.printf(\"Exploring of node %d has end\\n\", root);\n visited[root] = 2;\n }", "public void breadthFirstTraverse() {\n\t\t// track whether vertex was visited\n\t\tHashMap<Integer, Boolean> visited = buildVisited();\n\t\t// store neighbors\n\t\tQueue<Integer> queue = new LinkedList<Integer>();\n\n\t\t// arbitrarily add first element\n\t\tInteger current = (Integer) edges.keySet().toArray()[0];\n\t\tqueue.add(current);\n\n\t\twhile (queue.peek() != null) {\n\n\t\t\tcurrent = queue.remove();\n\t\t\tSystem.out.println(\"current: \" + current);\n\t\t\tvisited.put(current, true);\n\n\t\t\tfor (Integer neighbor: edges.get(current)) {\n\t\t\t\tif (!visited.get(neighbor)) {\n\t\t\t\t\tqueue.add(neighbor);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n List<NodeData> pathFind() throws NoPathException {\n System.out.println(\"Starting Scenic\");\n\n frontier.add(start);\n\n while(!frontier.isEmpty()) {\n StarNode current = frontier.getLast();\n frontier.removeLast(); // pop the priority queue\n if(current.getXCoord() == goal.getXCoord() && current.getYCoord() == goal.getYCoord()) {\n // If we are at the goal, we need to backtrack through the shortest path\n System.out.println(\"At target!\");\n finalList.add(current); // we have to add the goal to the path before we start backtracking\n while(!(current.getXCoord() == start.getXCoord() && current.getYCoord() == start.getYCoord())) {\n finalList.add(current.getPreviousNode());\n current = current.getPreviousNode();\n System.out.println(current.getNodeID());\n }\n return finalList;\n }\n else {\n // we need to get all the neighbor nodes, identify their costs, and put them into the queue\n LinkedList<StarNode> neighbors = current.getNeighbors();\n // we also need to remove the previous node from the list of neighbors because we do not want to backtrack\n neighbors.remove(current.getPreviousNode());\n\n for (StarNode newnode : neighbors) {\n int nodePlace = this.listContainsId(frontier, newnode);\n if(nodePlace > -1) {\n if (frontier.get(nodePlace).getF() > actionCost(newnode) + distanceToGo(newnode, goal)) {\n System.out.println(\"Here\");\n frontier.remove(frontier.get(nodePlace));\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n }\n else {\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n\n // This fixes the problem with infinitely looping elevators (I hope)\n if(current.getNodeType().equals(\"ELEV\") && newnode.getNodeType().equals(\"ELEV\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"ELEV\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n if(current.getNodeType().equals(\"STAI\") && newnode.getNodeType().equals(\"STAI\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"STAI\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n // this is where the node is put in the right place in the queue\n Collections.sort(frontier);\n }\n }\n }\n throw new NoPathException(start.getLongName(), goal.getLongName());\n }", "private void goSearch() {\n\t\tThread t = new Thread(this);\n\t\tt.start();\n\t}", "public static void bfs (String input)\r\n\t{\r\n\t\tNode root_bfs = new Node (input);\r\n\t\tNode current = new Node(root_bfs.getState());\r\n\t\t\r\n\t\tArrayList<String> visited = new ArrayList<String>();\r\n\t\tArrayList<String> children = new ArrayList<String>();\r\n\t\tQueue<Node> queue_bfs = new LinkedList<Node>();\r\n\t\t\r\n\t\tint nodes_popped = 0;\r\n\t\tint queue_max_size = 0;\r\n\t\tint queue_size = 0;\r\n\t\tcurrent.cost = 0;\r\n\t\t\r\n\t\t// Initial check for goal state\r\n\t\tgoal_bfs = isGoal(current.getState());\r\n\t\t\r\n\t\twhile(!goal_bfs)\r\n\t\t{\r\n\t\t\t// Add the current node to the visited array\r\n\t\t\tvisited.add(current.getState());\r\n\t\t\t// Get the nodes children from the successor function\r\n\t\t\tchildren = Successor.findChildren(current.getState());\r\n\t\t\t\r\n\t\t\tfor (String a : children)\r\n\t\t\t{\r\n\t\t\t\t// State checking, don't add already visited nodes to the queue\r\n\t\t\t\tif (visited.contains(a))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\t// Create child node from the children array and add it to the current node\r\n\t\t\t\t\tNode nino = new Node(a);\r\n\t\t\t\t\tcurrent.children_nodes.add(nino);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Obtaining the path cost\r\n\t\t\t\t\tint cost = isCost(current.getState(), nino.getState());\r\n\t\t\t\t\tnino.cost = cost;\r\n\t\t\t\t\tnino.parent = current;\r\n\t\t\t\t\t\r\n\t\t\t\t\t// State check and adding the child to the queue. Increasing size counter\r\n\t\t\t\t\tif (!queue_bfs.contains(nino))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tqueue_bfs.add(nino);\r\n\t\t\t\t\t\tqueue_size++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Pop a node off the queue\r\n\t\t\tcurrent = queue_bfs.poll();\r\n\t\t\tnodes_popped++;\r\n\t\t\t\r\n\t\t\t// Added this because my queue size variable was always one off based on where my goal check is\r\n\t\t\tif (queue_size > queue_max_size)\r\n\t\t\t{\r\n\t\t\t\tqueue_max_size = queue_size;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Decrease queue size because a node has been popped and check for goal state\r\n\t\t\tqueue_size--;\r\n\t\t\tgoal_bfs = isGoal(current.getState());\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// Now that a solution has been found, set the boolean back to false for another run\r\n\t\tgoal_bfs = false;\r\n\t\tSystem.out.println(\"BFS Solved!!\");\r\n\t\t\r\n\t\t// Send metrics to be printed to the console\r\n\t\tSolution.performSolution(current, root_bfs, nodes_popped, queue_max_size);\r\n\t\t\t\r\n\t}", "void searchFinished (Search search);", "public void run() \n\t{\n\t\tNode currentNode = this.tree.getRoot();\n\t\t\n\t\t//if the tree is empty and set the new node as the root node\n\t\tif (this.tree.getRoot() == null) \n\t\t{\n\t\t\tthis.tree.setRoot(this.node = new Node(this.node));\n\t\t\tthis.node.advanceToTheRoot();\n\t\t\ttree.getNote().setNote(\"Inserting a new root node [\" + node.getData()+\"].\");\n\t\t\twaitOnPause();\n\t\t} \n\t\telse \n\t\t{\n\t\t\t//otherwise go above the node and start to search\n\t\t\tthis.node.advanceToAboveTheRoot();\n\t\t\ttree.getNote().setNote(\"Starting to insert node [\"+this.value+\"].\");\n\t\t\twaitOnPause();\n\t\t\t\n\t\t\twhile (true) \n\t\t\t{\n\t\t\t\tint result = 0;\n\t\t\t\tboolean exit = false;\n\t\t\t\t\n\t\t\t\t//if the new node and the node which is being search are both numbers then \n\t\t\t\t//..convert their values into numbers and compare them.\n\t\t\t\tif(tree.isNumeric(currentNode.getData()) && tree.isNumeric(this.value))\n\t\t\t\t{\n\t\t\t\t\tint current = Integer.parseInt(currentNode.getData());\n\t\t\t\t\tint thisValue = Integer.parseInt(this.value);\n\t\t\t\t\t\n\t\t\t\t\tif (current == thisValue)\n\t\t\t\t\t\tresult = 1;\n\t\t\t\t\t\n\t\t\t\t\t// if the new node comes before the current node, go left\n\t\t\t\t\tif (thisValue < current) \n\t\t\t\t\t\tresult = 2;\n\t\t\t\t\telse if (thisValue > current) \n\t\t\t\t\t\tresult = 3;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//else the node which is being searched is a number so compare\n\t\t\t\t\t//..them both as words.\n\t\t\t\t\tif (currentNode.getData().compareTo(this.value) == 0) \n\t\t\t\t\t\tresult = 1;\n\t\t\t\t\t\n\t\t\t\t\t// if the new node comes before the current node, go left\n\t\t\t\t\tif (this.value.compareTo(currentNode.getData()) < 0) \n\t\t\t\t\t\tresult = 2;\n\t\t\t\t\telse if (this.value.compareTo(currentNode.getData()) > 0)\n\t\t\t\t\t\tresult = 3;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tswitch(result)\n\t\t\t\t{\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\t//if the node already exists in the tree then remove the 'Search' node\n\t\t\t\t\t\ttree.getNote().setNote(\"Node [\"+this.value+\"] already exists in the tree.\");\n\t\t\t\t\t\tif(!mf.getOpenF())\n\t\t\t\t\t\t\tthis.node.bgColor(node.getDeleteColor());\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tthis.node.setColor(node.getInvisibleColor(), node.getInvisibleColor());\n\t\t\t\t\t\twaitOnPause();\n\t\t\t\t\t\tthis.node.goDown();\n\t\t\t\t\t\ttree.getNote().setNote(\"\");\n\t\t\t\t\t\twaitOnPause();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\t//if the new node is less than the node which is being searched then go to its left\n\t\t\t\t\t\t//...child. If the left child is empty then set the new node as the left child and\n\t\t\t\t\t\t//...connect them both.\n\t\t\t\t\t\ttree.getNote().setNote(\"Checking left side since node [\" + this.value +\n\t\t\t\t\t\t\t\t\"] is less than node [\"+ currentNode.getData()+\"].\");\n\t\t\t\t\t\tif (currentNode.getLeft() != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcurrentNode = currentNode.getLeft();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcurrentNode.connectNode(this.node = new Node(this.node),\"left\");\n\t\t\t\t\t\t\ttree.getNote().setNote(\"Node [\"+this.value+\"] inserted since node [\"+currentNode.getData()+\n\t\t\t\t\t\t\t\t\t\"]'s left child is empty.\");\n\t\t\t\t\t\t\texit = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\t//if the new node is greater than the node which is being searched then go to its right\n\t\t\t\t\t\t//...child. If the right child is empty then set the new node as the right child and\n\t\t\t\t\t\t//...connect them both.\n\t\t\t\t\t\ttree.getNote().setNote(\"Going to right side since node [\" + this.value +\n\t\t\t\t\t\t\t\t\"] is greater than node [\"+ currentNode.getData()+\"].\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (currentNode.getRight() != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcurrentNode = currentNode.getRight();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// create a new node\n\t\t\t\t\t\t\tthis.node = new Node(this.node);\n\t\t\t\t\t\t\tcurrentNode.connectNode(this.node,\"right\");\n\t\t\t\t\t\t\ttree.getNote().setNote(\"Node [\"+this.value+\"] inserted since node [\"+currentNode.getData()+\n\t\t\t\t\t\t\t\t\t\"]'s right child is empty.\");\n\t\t\t\t\t\t\texit = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(exit)\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t//go to above the next node which is being searched.\n\t\t\t\tthis.node.advanceToNode(currentNode);\n\t\t\t\twaitOnPause();\t\n\t\t\t}\n\t\t\t\n\t\t\tthis.node = (this.tree.node = null);\n\t\t\t\n\t\t\t//if the tree is not empty then reposition it.\n\t\t\tif(this.tree.getRoot() != null)\n\t\t\t\t\tthis.tree.getRoot().repositionTree();\n\t\t\t\n\t\t\twaitOnPause();\n\t\t\t\n\t\t\t//check if the tree is balanced.\n\t\t\tthis.tree.reBalanceNode(currentNode);\n\t\t}\n\t\ttree.getNote().setNote(\"Insertion Complete.\");\n\t\ttree.getMainFrame().getStack().push(\"i \"+this.value); //add the operation to the stack\n\t}", "public void depthFirstSearch() {\n List<Vertex> visited = new ArrayList<Vertex>();\r\n // start the recursive depth first search on the current vertex\r\n this.dfs(visited);\r\n }", "@Override\n\tpublic void run() {\n\t\tMap<Integer, Location> possibleStartLocations = possibleStartLocations();\n\n\t\tfor(Entry<Integer, Location> startLocation : possibleStartLocations.entrySet()) {\n\t\t\t// Add startLocation to visited locations\n\t\t\tMap<Integer, Location> visitedLocations = new HashMap<Integer, Location>();\n\t\t\tvisitedLocations.put(startLocation.getKey(), startLocation.getValue());\n\t\t\t\n\t\t\t// Add startLocation to visited order\n\t\t\tList<Location> visitedOrder = new LinkedList<Location>();\n\t\t\tvisitedOrder.add(startLocation.getValue());\n\t\t\t\n\t\t\t// Start the recursion for the following start node\n\t\t\tfindSolution(startLocation, startLocation, visitedLocations, visitedOrder, 0);\n\t\t}\n\t}", "private boolean search() {\n if (null != listener) {\n listener.pre(joinTree, start, stop);\n }\n\n if (start.equals(stop)) {\n if (null != listener) {\n listener.post(joinTree, start, stop);\n }\n return false;\n }\n\n boolean result = search(start);\n\n if (null != listener) {\n listener.post(joinTree, start, stop);\n }\n\n return result;\n }", "public void next() {\n Solver<ArrayList<Integer>> mySolver =\n new Solver<ArrayList<Integer>>();\n ArrayList<ArrayList<Integer>> Solution =\n mySolver.SolveBFS(this);\n\n //Reset 'tried' to none\n tried = new HashSet<ArrayList<Integer>>();\n\n //Set up the nextState\n ArrayList<Integer> nextState = new ArrayList<Integer>();\n\n if(Solution.size() == 0) {\n //No Solution\n } else if (Solution.size() == 1) {\n nextState = Solution.get(0);\n curBoard = nextState;\n } else {\n nextState = Solution.get(1);\n curBoard = nextState;\n moveCount++;\n }\n clearStack();\n\n\tsetChanged();\n\tnotifyObservers();\n }", "public void breadthFirstSearch(){\n Deque<Node> q = new ArrayDeque<>(); // In an interview just write Queue ? Issue is java 8 only has priority queue, \n // meaning I have to pass it a COMPARABLE for the Node class\n if (this.root == null){\n return;\n }\n \n q.add(this.root);\n while(q.isEmpty() == false){\n Node n = (Node) q.remove();\n System.out.print(n.val + \", \");\n if (n.left != null){\n q.add(n.left);\n }\n if (n.right != null){\n q.add(n.right);\n }\n }\n }", "void searchStarted (Search search);", "public void bfs(Vertex<T> start) {\n\t\t\t// BFS uses Queue data structure\n\t\t\tQueue<Vertex<T>> que = new LinkedList<Vertex<T>>();\n\t\t\tstart.visited = true;\n\t\t\tque.add(start);\n\t\t\tprintNode(start);\n\n\t\t\twhile (!que.isEmpty()) {\n\t\t\t\tVertex<T> n = (Vertex<T>) que.remove();\n\t\t\t\tVertex<T> child = null;\n\t\t\t\twhile ((child = getUnvisitedChildren(n)) != null) {\n\t\t\t\t\tchild.visited = true;\n\t\t\t\t\tque.add(child);\n\t\t\t\t\tprintNode(child);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "private void breadthFirstSearch (int start, int[] visited, int[] parent){\r\n Queue< Integer > theQueue = new LinkedList< Integer >();\r\n boolean[] identified = new boolean[getNumV()];\r\n identified[start] = true;\r\n theQueue.offer(start);\r\n while (!theQueue.isEmpty()) {\r\n int current = theQueue.remove();\r\n visited[current] = 1; //ziyaret edilmis vertexler queuedan cikarilan vertexlerdir\r\n Iterator < Edge > itr = edgeIterator(current);\r\n while (itr.hasNext()) {\r\n Edge edge = itr.next();\r\n int neighbor = edge.getDest();\r\n if (!identified[neighbor]) {\r\n identified[neighbor] = true;\r\n theQueue.offer(neighbor);\r\n parent[neighbor] = current;\r\n }\r\n }\r\n }\r\n }", "void bfs(SimpleVertex simpleVertex) {\n\t\twhile (true) {\n\t\t\tif (simpleVertex.isVisited == false) {\n\n\t\t\t\tif (simpleVertex.isAdded == false) {\n\t\t\t\t\tqueue.add(simpleVertex);\n\t\t\t\t\tsimpleVertex.isAdded = true;\n\t\t\t\t}\n\t\t\t\tsimpleVertex.isVisited = true;\n\t\t\t\tSystem.out.print(simpleVertex.Vertexname + \" \");\n\n\t\t\t\tfor (int i = 0; i < simpleVertex.neighborhood.size(); i++) {\n\t\t\t\t\tSimpleEdge node = simpleVertex.neighborhood.get(i);\n\n\t\t\t\t\tif (node.two.isAdded == false)\n\t\t\t\t\t\tqueue.add(node.two);\n\t\t\t\t\tnode.two.isAdded = true;\n\n\t\t\t\t}\n\t\t\t\tqueue.poll();\n\t\t\t\tif (!queue.isEmpty())\n\t\t\t\t\tbfs(queue.peek());\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t}", "public List<GeographicPoint> bfs(GeographicPoint start, \n\t\t\t \t\t\t\t\t GeographicPoint goal, Consumer<GeographicPoint> nodeSearched)\n\t{\n\t\t// TODO: Implement this method in WEEK 3\n\t\t\n\t\t// Hook for visualization. See writeup.\n\t\t//nodeSearched.accept(next.getLocation());\n\t\t\n\t\tSet<GeographicPoint> visited = new HashSet<GeographicPoint>();\n\t\tList<GeographicPoint> queue = new ArrayList<GeographicPoint>();\n\t\tHashMap<GeographicPoint, List<GeographicPoint>> prev = new HashMap<GeographicPoint, List<GeographicPoint>>();\n\t\t\n\t\tfor (GeographicPoint temp : map.keySet())\n\t\t\tprev.put(temp, new ArrayList<GeographicPoint>());\n\t\t\n\t\tif (!map.containsKey(start) || !map.containsKey(goal)) \n\t\t\treturn null;\n\t\t\n\t\tqueue.add(start);\n\t\twhile (!queue.isEmpty() && !visited.contains(goal)) {\n\t\t\t\n\t\t\tGeographicPoint currPoint = queue.get(0);\n\t\t\tMapNode currNode = map.get(currPoint);\n\t\t\tnodeSearched.accept(currPoint);\n\t\t\t\n\t\t\tqueue.remove(0);\n\t\t\tHashMap<MapEdge, GeographicPoint> neighbours = currNode.getNeighbours();\n\t\t\tfor (GeographicPoint n : neighbours.values()) {\n\t\t\t\tif (n.equals(start))\n\t\t\t\t\tcontinue;\n\t\t\t\tif (!visited.contains(n)) {\n\t\t\t\t\tqueue.add(n);\n\t\t\t\t\tvisited.add(n);\n\t\t\t\t\tprev.get(n).add(currPoint);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn backTrack(prev, goal);\n\t}", "private void bfs(int nodeKey) {\n Queue<Integer> q = new LinkedList<>();\n // initialize all the nodes\n for (node_data node : G.getV())\n node.setTag(0);\n\n int currentNode = nodeKey;\n\n // iterate the graph and mark nodes that have been visited\n while (G.getNode(currentNode) != null) {\n for (edge_data edge : G.getE(currentNode)) {\n node_data dest = G.getNode(edge.getDest());\n if (dest.getTag() == 0) {\n q.add(dest.getKey());\n }\n G.getNode(currentNode).setTag(1);\n }\n if(q.peek()==null)\n currentNode=-1;\n else\n currentNode = q.poll();\n }\n }", "public void actionPerformed(ActionEvent e) {\r\n mode = InputMode.BFS;\r\n instr.setText(\"Click one node to start Breath First Traversal from it.\");\r\n }", "@Override\r\n public boolean breadthFirstSearch(T start, T end) {\r\n Vertex<T> startV = vertices.get(start);\r\n Vertex<T> endV = vertices.get(end);\r\n\r\n Queue<Vertex<T>> queue = new LinkedList<Vertex<T>>();\r\n Set<Vertex<T>> visited = new HashSet<>();\r\n\r\n queue.add(startV);\r\n visited.add(startV);\r\n\r\n while(queue.size() > 0){\r\n Vertex<T> next = queue.poll();\r\n if(next == null){\r\n continue;\r\n }\r\n if(next == endV){\r\n return true;\r\n }\r\n\r\n for (Vertex<T> neighbor: next.getNeighbors()){\r\n if(!visited.contains(neighbor)){\r\n visited.add(neighbor);\r\n queue.add(neighbor);\r\n }\r\n }\r\n }\r\n\r\n return false;\r\n }", "@Override\r\n public void actionPerformed(ActionEvent e)\r\n {\n toggleButtons(false);\r\n if (breadthFirstButton.isSelected())\r\n {\r\n DequeAdder tailAdder = new DequeAdder()\r\n {\r\n @Override\r\n public void add(Vertex vertex, Deque<Vertex> deque)\r\n {\r\n deque.addLast(vertex);\r\n }\r\n };\r\n problem.search((Vertex) problem.getCurrentState(),\r\n tailAdder);\r\n } else if (depthFirstButton.isSelected())\r\n {\r\n DequeAdder headAdder = new DequeAdder()\r\n {\r\n @Override\r\n public void add(Vertex vertex, Deque<Vertex> deque)\r\n {\r\n deque.addFirst(vertex);\r\n }\r\n };\r\n problem.search((Vertex) problem.getCurrentState(),\r\n headAdder);\r\n } else if (AStarButton.isSelected())\r\n {\r\n problem.searchAStar((Vertex) problem.getCurrentState());\r\n }\r\n else if (enhancedAStarButton.isSelected())\r\n {\r\n problem.enhancedAStarSearch((Vertex) problem.getCurrentState());\r\n }\r\n setStats();\r\n showNxtMvBtn.setEnabled(true);\r\n showAllMoves.setEnabled(true);\r\n }", "void BFS(String start){\n\t\tint iStart = index(start);\n\t\t\n\t\tFronta f = new Fronta(pocetVrcholu*2);\n\t\t\n\t\tvrchP[iStart].barva = 'S';\n\t\tvrchP[iStart].vzdalenost = 0;\n\t\t\n\t\tf.vloz(start);\n\t\t\n\t\twhile(!f.jePrazdna()){\n\t\t\tString u = f.vyber();\n\t\t\tint indexU = index(u);\n\t\t\tint pom = 0;\n\t\t\t\n\t\t\tfor(int i = 1;i<= vrchP[indexU].pocetSousedu;i++){\n\t\t\t\twhile(matice[indexU][pom] == 0){\n\t\t\t\t\tpom++;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tint a = pom++;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(vrchP[a].barva =='B'){\n\t\t\t\t\tvrchP[a].barva = 'S';\n\t\t\t\t\tvrchP[a].vzdalenost = vrchP[indexU].vzdalenost + 1;\n\t\t\t\t\tvrchP[a].predchudce = u;\n\t\t\t\t\tf.vloz(vrchP[a].klic);\n\t\t\t\t}\n\t\t\t}\n\t\t\tvrchP[indexU].barva = 'C';\n\t\t\tpole.add(vrchP[indexU].klic);\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n\t//loc1 is the start location,loc2 is the destination\n\tpublic ArrayList<MapCoordinate> bfsSearch(MapCoordinate loc1, MapCoordinate loc2, Map m) {\n\t\tSystem.out.println(\"come into bfsSearch\");\n\t\tif(m.isAgentHasAxe() && m.isAgentHasKey()){\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\t//Visited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation()); //add to visited every loop\n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0,s.getLocation()); //add to head\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move east\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){ //this is important else if(cTemp!='~'), not barely else,\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move north\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' &&s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t\treturn null;\n\t\t}else if(m.isAgentHasAxe()){ //only have axe\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\t//Visited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation()); //add visited every loop\n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0,s.getLocation()); //add to head\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move north\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}else if(m.isAgentHasKey()){ //only have key\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\t//Visited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation());\n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0, s.getLocation()); //add to head,in this fashion, return the right order of route\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY()); \n\t\t\t\tif(m.hasCoordinate(temp)){//state move east\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY()); //state that move west\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1); //state move north\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1); //state move south\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * \n\t\t **/\t\t\n\t\telse{ //have no key and axe\n\t\t\tSystem.out.println(\"come into the last elas clause\");\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\tVisited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\t//int i=0;\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\t//i++;\n\t\t\t\t//System.out.println(\"come into while: \"+i);\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation()); //add visited, let program won't stuck in \n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tSystem.out.println(\"return computed route\");\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0, s.getLocation()); //add to head\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\tfor(MapCoordinate mc:route){\n\t\t\t\t\t\t//System.out.println(\"print returned route in bfssearch\");\n\t\t\t\t\t\tSystem.out.print(\"mc:\"+mc.getX()+\" \"+mc.getY()+\"->\");\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\t//System.out.println(\"1 if\");\n\t\t\t\t\tif(s.getPrevState()!=null &&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if\");\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 if\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 if\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 else\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.add(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tSystem.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1);\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*'&&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1);\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}//do not do any action for not enough stones situation\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}//do not do any action for not enough stones situation\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t}", "static boolean bfs(TreeNode root) {\n Queue<TreeNode> queue = new LinkedList<TreeNode>();\n queue.add(root);\n while (!queue.isEmpty()) {\n TreeNode node = (TreeNode) queue.remove();\n if (node == null)\n continue;\n System.out.println(\"Checking node \" + node.data);\n if (isGoal(node)) {\n System.out.println(\"\\nFound goal node \" + node.data);\n return true;\n }\n queue.addAll(node.getChildren());\n // dump(queue);\n }\n return false;\n }", "void findSearchOrder() {\n boolean filled = false;\n for(int node: queryGraphNodes.keySet()) {\n\n vertexClass vc = queryGraphNodes.get(node);\n searchOrderSeq.add(node);\n for(int edge: queryGraphNodes.get(node).edges.keySet()) {\n filled = calcOrdering(edge);\n if (filled)\n break;\n }\n if(searchOrderSeq.size() == queryGraphNodes.size())\n break;\n\n }\n\n }", "public void bfs()\n{\n Queue q=new LinkedList();\n q.add(this.rootNode);\n printNode(this.rootNode);\n rootNode.visited=true;\n while(!q.isEmpty())\n {\n Node n=(Node)q.remove();\n Node child=null;\n while((child=getUnvisitedChildNode(n))!=null)\n {\n child.visited=true;\n printNode(child);\n q.add(child);\n }\n }\n //Clear visited property of nodes\n clearNodes();\n}", "private void resolverBFS() {\n\t\tQueue<Integer> cola = new LinkedList<Integer>();\n\t\tint[] vecDistancia = new int[nodos.size()];\n\t\tfor (int i = 0; i < vecDistancia.length; i++) {\n\t\t\tvecDistancia[i] = -1;\n\t\t\trecorrido[i] = 0;\n\t\t}\n\t\tint nodoActual = 0;\n\t\tcola.add(nodoActual);\n\t\tvecDistancia[nodoActual] = 0;\n\t\trecorrido[nodoActual] = -1;\n\t\twhile (!cola.isEmpty()) {\n\t\t\tif (tieneAdyacencia(nodoActual, vecDistancia)) {\n\t\t\t\tfor (int i = 1; i < matrizAdyacencia.length; i++) {\n\t\t\t\t\tif (matrizAdyacencia[nodoActual][i] != 99 && vecDistancia[i] == -1) {\n\t\t\t\t\t\tcola.add(i);\n\t\t\t\t\t\tvecDistancia[i] = vecDistancia[nodoActual] + 1;\n\t\t\t\t\t\trecorrido[i] = nodoActual;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcola.poll();\n\t\t\t\tif (!cola.isEmpty()) {\n\t\t\t\t\tnodoActual = cola.peek();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void Graph::BFS(int s)\n{\n bool *visited = new bool[V];\n for(int i = 0; i < V; i++)\n visited[i] = false;\n \n // Create a queue for BFS\n list<int> queue;\n \n // Mark the current node as visited and enqueue it\n visited[s] = true;\n queue.push_back(s);\n \n // 'i' will be used to get all adjacent vertices of a vertex\n list<int>::iterator i;\n \n while(!queue.empty())\n {\n // Dequeue a vertex from queue and print it\n s = queue.front();\n cout << s << \" \";\n queue.pop_front();\n \n // Get all adjacent vertices of the dequeued vertex s\n // If a adjacent has not been visited, then mark it visited\n // and enqueue it\n for(i = adj[s].begin(); i != adj[s].end(); ++i)\n {\n if(!visited[*i])\n {\n visited[*i] = true;\n queue.push_back(*i);\n }\n }\n }", "public void GeneralSearch()\n {\n mainQuery = new ChildEventListener() {\n @Override\n public void onChildAdded(@NonNull DataSnapshot snapshot, @Nullable String previousChildName) {\n //get the snapshot value as a boulder problem\n BoulderProblem bp = snapshot.getValue(BoulderProblem.class);\n\n //create listener to get the setter display name\n ValueEventListener setterListener = new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n //display name is the value of the snapshot\n bp.SetSetter(snapshot.getValue().toString());\n //add the boulder problem to list of boulder problems\n bps.add(bp);\n //call method to display correct list\n BPSearch();\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n };\n //call method to attach listener for getting setter display name\n AttachSetterListener(bp.GetSetterId(), setterListener);\n }\n\n @Override\n public void onChildChanged(@NonNull DataSnapshot snapshot, @Nullable String previousChildName) {\n\n }\n\n @Override\n public void onChildRemoved(@NonNull DataSnapshot snapshot) {\n //listens for boulder problems removed from the database\n\n //get the snapshot value as a boulder problem object\n BoulderProblem bp = snapshot.getValue(BoulderProblem.class);\n //loop through list of boulder problems to check if it is in the list and if so remove it and re display the list on screen\n for(int i = 0; i < bps.size(); i++)\n {\n if(bps.get(i).GetName().equals(bp.GetName()))\n {\n bps.remove(i);\n BPSearch();\n break;\n }\n }\n }\n\n @Override\n public void onChildMoved(@NonNull DataSnapshot snapshot, @Nullable String previousChildName) {\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n };\n bpRef.child(\"UserCreated\").orderByChild(sortOption).addChildEventListener(mainQuery);\n }", "@Override\n\t\tpublic void search() {\n\t\t\tSystem.out.println(\"새로운 조회\");\n\t\t}", "public List<Graph> search() {\n\n long start = System.currentTimeMillis();\n TetradLogger.getInstance().log(\"info\", \"Starting ION Search.\");\n logGraphs(\"\\nInitial Pags: \", this.input);\n TetradLogger.getInstance().log(\"info\", \"Transfering local information.\");\n long steps = System.currentTimeMillis();\n\n /*\n * Step 1 - Create the empty graph\n */\n List<Node> varNodes = new ArrayList<>();\n for (String varName : variables) {\n varNodes.add(new GraphNode(varName));\n }\n Graph graph = new EdgeListGraph(varNodes);\n\n /*\n * Step 2 - Transfer local information from the PAGs (adjacencies\n * and edge orientations)\n */\n // transfers edges from each graph and finds definite noncolliders\n transferLocal(graph);\n // adds edges for variables never jointly measured\n for (NodePair pair : nonIntersection(graph)) {\n graph.addEdge(new Edge(pair.getFirst(), pair.getSecond(), Endpoint.CIRCLE, Endpoint.CIRCLE));\n }\n TetradLogger.getInstance().log(\"info\", \"Steps 1-2: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n System.out.println(\"step2\");\n System.out.println(graph);\n\n /*\n * Step 3\n *\n * Branch and prune step that blocks problematic undirectedPaths, possibly d-connecting undirectedPaths\n */\n steps = System.currentTimeMillis();\n Queue<Graph> searchPags = new LinkedList<>();\n // place graph constructed in step 2 into the queue\n searchPags.offer(graph);\n // get d-separations and d-connections\n List<Set<IonIndependenceFacts>> sepAndAssoc = findSepAndAssoc(graph);\n this.separations = sepAndAssoc.get(0);\n this.associations = sepAndAssoc.get(1);\n Map<Collection<Node>, List<PossibleDConnectingPath>> paths;\n// Queue<Graph> step3PagsSet = new LinkedList<Graph>();\n HashSet<Graph> step3PagsSet = new HashSet<>();\n Set<Graph> reject = new HashSet<>();\n // if no d-separations, nothing left to search\n if (separations.isEmpty()) {\n // makes orientations preventing definite noncolliders from becoming colliders\n // do final orientations\n// doFinalOrientation(graph);\n step3PagsSet.add(graph);\n }\n // sets length to iterate once if search over path lengths not enabled, otherwise set to 2\n int numNodes = graph.getNumNodes();\n int pl = numNodes - 1;\n if (pathLengthSearch) {\n pl = 2;\n }\n // iterates over path length, then adjacencies\n for (int l = pl; l < numNodes; l++) {\n if (pathLengthSearch) {\n TetradLogger.getInstance().log(\"info\", \"Braching over path lengths: \" + l + \" of \" + (numNodes - 1));\n }\n int seps = separations.size();\n int currentSep = 1;\n int numAdjacencies = separations.size();\n for (IonIndependenceFacts fact : separations) {\n if (adjacencySearch) {\n TetradLogger.getInstance().log(\"info\", \"Braching over path nonadjacencies: \" + currentSep + \" of \" + numAdjacencies);\n }\n seps--;\n // uses two queues to keep up with which PAGs are being iterated and which have been\n // accepted to be iterated over in the next iteration of the above for loop\n searchPags.addAll(step3PagsSet);\n recGraphs.add(searchPags.size());\n step3PagsSet.clear();\n while (!searchPags.isEmpty()) {\n System.out.println(\"ION Step 3 size: \" + searchPags.size());\n double currentUsage = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n if (currentUsage > maxMemory) maxMemory = currentUsage;\n // deques first PAG from searchPags\n Graph pag = searchPags.poll();\n // Part 3.a - finds possibly d-connecting undirectedPaths between each pair of nodes\n // known to be d-separated\n List<PossibleDConnectingPath> dConnections = new ArrayList<>();\n // checks to see if looping over adjacencies\n if (adjacencySearch) {\n for (Collection<Node> conditions : fact.getZ()) {\n // checks to see if looping over path lengths\n if (pathLengthSearch) {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPathsOfLength\n (pag, fact.getX(), fact.getY(), conditions, l));\n } else {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPaths\n (pag, fact.getX(), fact.getY(), conditions));\n }\n }\n } else {\n for (IonIndependenceFacts allfact : separations) {\n for (Collection<Node> conditions : allfact.getZ()) {\n // checks to see if looping over path lengths\n if (pathLengthSearch) {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPathsOfLength\n (pag, allfact.getX(), allfact.getY(), conditions, l));\n } else {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPaths\n (pag, allfact.getX(), allfact.getY(), conditions));\n }\n }\n }\n }\n // accept PAG go to next PAG if no possibly d-connecting undirectedPaths\n if (dConnections.isEmpty()) {\n// doFinalOrientation(pag);\n// Graph p = screenForKnowledge(pag);\n// if (p != null) step3PagsSet.add(p);\n step3PagsSet.add(pag);\n continue;\n }\n // maps conditioning sets to list of possibly d-connecting undirectedPaths\n paths = new HashMap<>();\n for (PossibleDConnectingPath path : dConnections) {\n List<PossibleDConnectingPath> p = paths.get(path.getConditions());\n if (p == null) {\n p = new LinkedList<>();\n }\n p.add(path);\n paths.put(path.getConditions(), p);\n }\n // Part 3.b - finds minimal graphical changes to block possibly d-connecting undirectedPaths\n List<Set<GraphChange>> possibleChanges = new ArrayList<>();\n for (Set<GraphChange> changes : findChanges(paths)) {\n Set<GraphChange> newChanges = new HashSet<>();\n for (GraphChange gc : changes) {\n boolean okay = true;\n for (Triple collider : gc.getColliders()) {\n\n if (pag.isUnderlineTriple(collider.getX(), collider.getY(), collider.getZ())) {\n okay = false;\n break;\n }\n\n }\n if (!okay) {\n continue;\n }\n for (Triple collider : gc.getNoncolliders()) {\n if (pag.isDefCollider(collider.getX(), collider.getY(), collider.getZ())) {\n okay = false;\n break;\n }\n }\n if (okay) {\n newChanges.add(gc);\n }\n }\n if (!newChanges.isEmpty()) {\n possibleChanges.add(newChanges);\n } else {\n possibleChanges.clear();\n break;\n }\n }\n float starthitset = System.currentTimeMillis();\n Collection<GraphChange> hittingSets = IonHittingSet.findHittingSet(possibleChanges);\n recHitTimes.add((System.currentTimeMillis() - starthitset) / 1000.);\n // Part 3.c - checks the newly constructed graphs from 3.b and rejects those that\n // cycles or produce independencies known not to occur from the input PAGs or\n // include undirectedPaths from definite nonancestors\n for (GraphChange gc : hittingSets) {\n boolean badhittingset = false;\n for (Edge edge : gc.getRemoves()) {\n Node node1 = edge.getNode1();\n Node node2 = edge.getNode2();\n Set<Triple> triples = new HashSet<>();\n triples.addAll(gc.getColliders());\n triples.addAll(gc.getNoncolliders());\n if (triples.size() != (gc.getColliders().size() + gc.getNoncolliders().size())) {\n badhittingset = true;\n break;\n }\n for (Triple triple : triples) {\n if (node1.equals(triple.getY())) {\n if (node2.equals(triple.getX()) ||\n node2.equals(triple.getZ())) {\n badhittingset = true;\n break;\n }\n }\n if (node2.equals(triple.getY())) {\n if (node1.equals(triple.getX()) ||\n node1.equals(triple.getZ())) {\n badhittingset = true;\n break;\n }\n }\n }\n if (badhittingset) {\n break;\n }\n for (NodePair pair : gc.getOrients()) {\n if ((node1.equals(pair.getFirst()) && node2.equals(pair.getSecond())) ||\n (node2.equals(pair.getFirst()) && node1.equals(pair.getSecond()))) {\n badhittingset = true;\n break;\n }\n }\n if (badhittingset) {\n break;\n }\n }\n if (!badhittingset) {\n for (NodePair pair : gc.getOrients()) {\n for (Triple triple : gc.getNoncolliders()) {\n if (pair.getSecond().equals(triple.getY())) {\n if (pair.getFirst().equals(triple.getX()) &&\n pag.getEndpoint(triple.getZ(), triple.getY()).equals(Endpoint.ARROW)) {\n badhittingset = true;\n break;\n\n }\n if (pair.getFirst().equals(triple.getZ()) &&\n pag.getEndpoint(triple.getX(), triple.getY()).equals(Endpoint.ARROW)) {\n badhittingset = true;\n break;\n }\n }\n if (badhittingset) {\n break;\n }\n }\n if (badhittingset) {\n break;\n }\n }\n }\n if (badhittingset) {\n continue;\n }\n Graph changed = gc.applyTo(pag);\n // if graph change has already been rejected move on to next graph\n if (reject.contains(changed)) {\n continue;\n }\n // if graph change has already been accepted move on to next graph\n if (step3PagsSet.contains(changed)) {\n continue;\n }\n // reject if null, predicts false independencies or has cycle\n if (predictsFalseIndependence(associations, changed)\n || changed.existsDirectedCycle()) {\n reject.add(changed);\n }\n // makes orientations preventing definite noncolliders from becoming colliders\n // do final orientations\n// doFinalOrientation(changed);\n // now add graph to queue\n\n// Graph p = screenForKnowledge(changed);\n// if (p != null) step3PagsSet.add(p);\n step3PagsSet.add(changed);\n }\n }\n // exits loop if not looping over adjacencies\n if (!adjacencySearch) {\n break;\n }\n }\n }\n TetradLogger.getInstance().log(\"info\", \"Step 3: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n Queue<Graph> step3Pags = new LinkedList<>(step3PagsSet);\n\n /*\n * Step 4\n *\n * Finds redundant undirectedPaths and uses this information to expand the list\n * of possible graphs\n */\n steps = System.currentTimeMillis();\n Map<Edge, Boolean> necEdges;\n Set<Graph> outputPags = new HashSet<>();\n\n while (!step3Pags.isEmpty()) {\n Graph pag = step3Pags.poll();\n necEdges = new HashMap<>();\n // Step 4.a - if x and y are known to be unconditionally associated and there is\n // exactly one trek between them, mark each edge on that trek as necessary and\n // make the tiples on the trek definite noncolliders\n // initially mark each edge as not necessary\n for (Edge edge : pag.getEdges()) {\n necEdges.put(edge, false);\n }\n // look for unconditional associations\n for (IonIndependenceFacts fact : associations) {\n for (List<Node> nodes : fact.getZ()) {\n if (nodes.isEmpty()) {\n List<List<Node>> treks = treks(pag, fact.x, fact.y);\n if (treks.size() == 1) {\n List<Node> trek = treks.get(0);\n List<Triple> triples = new ArrayList<>();\n for (int i = 1; i < trek.size(); i++) {\n // marks each edge in trek as necessary\n necEdges.put(pag.getEdge(trek.get(i - 1), trek.get(i)), true);\n if (i == 1) {\n continue;\n }\n // makes each triple a noncollider\n pag.addUnderlineTriple(trek.get(i - 2), trek.get(i - 1), trek.get(i));\n }\n }\n // stop looping once the empty set is found\n break;\n }\n }\n }\n // Part 4.b - branches by generating graphs for every combination of removing\n // redundant undirectedPaths\n boolean elimTreks;\n // checks to see if removing redundant undirectedPaths eliminates every trek between\n // two variables known to be nconditionally assoicated\n List<Graph> possRemovePags = possRemove(pag, necEdges);\n double currentUsage = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n if (currentUsage > maxMemory) maxMemory = currentUsage;\n for (Graph newPag : possRemovePags) {\n elimTreks = false;\n // looks for unconditional associations\n for (IonIndependenceFacts fact : associations) {\n for (List<Node> nodes : fact.getZ()) {\n if (nodes.isEmpty()) {\n if (treks(newPag, fact.x, fact.y).isEmpty()) {\n elimTreks = true;\n }\n // stop looping once the empty set is found\n break;\n }\n }\n }\n // add new PAG to output unless a necessary trek has been eliminated\n if (!elimTreks) {\n outputPags.add(newPag);\n }\n }\n }\n outputPags = removeMoreSpecific(outputPags);\n// outputPags = applyKnowledge(outputPags);\n\n TetradLogger.getInstance().log(\"info\", \"Step 4: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n\n /*\n * Step 5\n *\n * Generate the Markov equivalence classes for graphs and accept only\n * those that do not predict false d-separations\n */\n steps = System.currentTimeMillis();\n Set<Graph> outputSet = new HashSet<>();\n for (Graph pag : outputPags) {\n Set<Triple> unshieldedPossibleColliders = new HashSet<>();\n for (Triple triple : getPossibleTriples(pag)) {\n if (!pag.isAdjacentTo(triple.getX(), triple.getZ())) {\n unshieldedPossibleColliders.add(triple);\n }\n }\n\n PowerSet<Triple> pset = new PowerSet<>(unshieldedPossibleColliders);\n for (Set<Triple> set : pset) {\n Graph newGraph = new EdgeListGraph(pag);\n for (Triple triple : set) {\n newGraph.setEndpoint(triple.getX(), triple.getY(), Endpoint.ARROW);\n newGraph.setEndpoint(triple.getZ(), triple.getY(), Endpoint.ARROW);\n }\n doFinalOrientation(newGraph);\n }\n for (Graph outputPag : finalResult) {\n if (!predictsFalseIndependence(associations, outputPag)) {\n Set<Triple> underlineTriples = new HashSet<>(outputPag.getUnderLines());\n for (Triple triple : underlineTriples) {\n outputPag.removeUnderlineTriple(triple.getX(), triple.getY(), triple.getZ());\n }\n outputSet.add(outputPag);\n }\n }\n }\n\n// outputSet = applyKnowledge(outputSet);\n outputSet = checkPaths(outputSet);\n\n output.addAll(outputSet);\n TetradLogger.getInstance().log(\"info\", \"Step 5: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n runtime = ((System.currentTimeMillis() - start) / 1000.);\n logGraphs(\"\\nReturning output (\" + output.size() + \" Graphs):\", output);\n double currentUsage = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n if (currentUsage > maxMemory) maxMemory = currentUsage;\n return output;\n }", "public void BFS(int startingVertex) {\n boolean[] visited = new boolean[numberVertices];\n Queue<Integer> q = new LinkedList<>();\n\n //Add starting vertex\n q.add(startingVertex);\n visited[startingVertex] = true;\n\n //Go through queue adding vertex edges until everything is visited and print out order visited\n while (!q.isEmpty()) {\n int current = q.poll();\n System.out.println(current + \" \");\n for (int e : adj[current]) {\n if (!visited[e]) {\n q.add(e);\n visited[e] = true;\n }\n\n }\n }\n }", "public List<String> breadthFirstSearch(List<String> array) {\n // Write your code here.\n Queue<Node> queue = new ArrayDeque<>();\n queue.add(this);\n // breadthFirstSearch(this, queue, array);\n while (queue.size() > 0) {\n Node node = queue.poll();\n array.add(node.name);\n queue.addAll(node.children);\n }\n return array;\n }", "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tswitch (msg.what) {\n\t\t\t\tcase MSG_SEARCH_FINISHED:\n\t\t\t\t\tafterSearch();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tsuper.handleMessage(msg);\n\t\t\t}", "@Override\n\tpublic boolean onSearchRequested()\n\t{\n \tstartSearch(getCurSearch(), true, null, false);\n \treturn true;\n\t}", "public static void bfs(TreeNode root){\n Queue<TreeNode> queue=new LinkedList<>();\n queue.add(root);\n System.out.println(root.val);\n root.visited=true;\n\n while (!queue.isEmpty()){\n TreeNode node=queue.remove();\n TreeNode child=null;\n if((child=getUnVisitedChiledNode(node))!=null){\n child.visited=true;\n System.out.println(child.val);\n queue.add(child);\n }\n }\n // cleearNodes();\n }", "public String breadthFirstSearch( AnyType start_vertex ) throws VertexException {\n \n StringBuffer buffer = new StringBuffer();\n \n // ----------------------------\n // TODO: Add your code here\n // ----------------------------\n boolean exists = false;\n Vertex<AnyType> S = new Vertex<AnyType>(start_vertex);\n int counter = 1;\n //make new vertex to check if its in list\n //make queue to hold vertices\n SemiConstantTimeQueue<Vertex<AnyType>> queue = new SemiConstantTimeQueue<Vertex<AnyType>>();\n //loop through and set not visited\n for( int i = 0; i < vertex_adjacency_list.size(); i++){\n vertex_adjacency_list.get(i).setVisited(-1);\n //if it's in list then set exists to true\n //and set visited \n if(vertex_adjacency_list.get(i).compareTo(S) == 0){\n exists = true;\n vertex_adjacency_list.get(i).setVisited(counter);\n counter = i;\n }\n } \n //if doesn't exist then throw the exception\n if(exists == false){\n throw new VertexException(\"Start Vertex does not exist\");\n }\n //make new queue\n queue.add(vertex_adjacency_list.get(counter));\n vertex_adjacency_list.get(counter).setVisited(1);\n counter = 1;\n int k=0;\n Vertex<AnyType>e;\n //while the queue isn't empty\n while(queue.peek() !=null){\n //make e the top of the queue \n e = queue.peek(); \n //go through the list and if you reach the begining it exits loop\n for( k = 0; k < vertex_adjacency_list.size()-1; k++){\n if(vertex_adjacency_list.get(k).compareTo(e)==0){\n break;\n }\n } \n //go through loop and check if visited, if not then add it to queue, set visited\n for( int j = 0; j< vertex_adjacency_list.get(k).numberOfAdjacentVertices(); j++){\n if(vertex_adjacency_list.get(k).getAdjacentVertex(j).hasBeenVisited()==false){\n counter++;\n queue.add(vertex_adjacency_list.get(k).getAdjacentVertex(j));\n vertex_adjacency_list.get(k).getAdjacentVertex(j).setVisited(counter);\n }\n }\n //remove from queue when through loop once\n k++;\n queue.remove();\n }\n //loop through list and print vertex and when it was visited\n for(int o = 0; o< vertex_adjacency_list.size(); o++){\n buffer.append(vertex_adjacency_list.get(o) + \":\" + vertex_adjacency_list.get(o).getVisited()+ \"\\n\");\n }\n return buffer.toString();\n }", "public void run() {\n BFS();\n printBFS();\n shortestPathList();\n printShortestPath();\n printPath();\n }", "private static int breadthFirstSearch(Vertex start) throws Queue.UnderflowException, Queue.EmptyException {\n boolean visited[] = new boolean[48];\n //Keep a queue of vertecies and a queue of the depth of the verticies - they will be added to and poped from identically\n ListQueue<Vertex> queue = new ListQueue<Vertex>();\n ListQueue<Integer> numQueue = new ListQueue<Integer>();\n //Set the starting node as visited\n visited[start.index()] = true;\n queue.enqueue(start);\n numQueue.enqueue(new Integer(1));\n\n //Keep last\n int last = -1;\n //While the queue isnt empty\n while (!queue.isEmpty()) {\n //Pop off the top from both queues and mark as visited\n start = queue.dequeue();\n int current = numQueue.dequeue();\n visited[start.index] = true;\n //For all neigbors\n for (Vertex v : start.neighbors) {\n //If we havent visited it make sure to visit it\n if (visited[v.index()] == false) {\n //As we keep adding new nodes to visit keep track of the depth\n queue.enqueue(v);\n numQueue.enqueue(current + 1);\n }\n }\n //Keep track of the most recent depth before we pop it off (queue will be empty when we exit)\n last = current;\n }\n //Return the max of the depth\n return last;\n }", "@Override\n\tprotected void notifyNewBest(LinkedList<City> goodSolution, double length) {\n\t}", "public void doBreadthFirstSearch(String startVertexName, CallBack<E> callback)\r\n\t{\r\n\t\tif(!this.dataMap.containsKey(startVertexName))\r\n\t\t{\r\n\t\t\tthrow new IllegalArgumentException(\"Vertex does not exist in the graph!\");\r\n\t\t}\r\n\t\t\r\n\t\tSet<String> visited = new HashSet<String>();\r\n\t\tQueue<String> discovered = new PriorityQueue<String>();\r\n\t\t\r\n\t\tdiscovered.add(startVertexName);\r\n\t\t\r\n\t\twhile(!discovered.isEmpty())\r\n\t\t{\r\n\t\t\tString V = discovered.poll();\r\n\t\t\t\r\n\t\t\tif(!visited.contains(V))\r\n\t\t\t{\r\n\t\t\t\tcallback.processVertex(V, this.dataMap.get(V));\r\n\t\t\t\tvisited.add(V);\r\n\t\t\t\tSortedSet<String> neighbors = new TreeSet<String>(this.adjacencyMap.get(V).keySet());\r\n\t\t\t\t\r\n\t\t\t\tfor(String node : neighbors)\r\n\t\t\t\t{\r\n\t\t\t\t\tdiscovered.add(node);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t\r\n\t}", "public void visit() {\n visited = true;\n }", "public boolean bfs(Node start, String elementToFind) {\r\n if (!graph.containsNode(start)) {\r\n return false;\r\n }\r\n if (start.getElement().equals(elementToFind)) {\r\n return true;\r\n }\r\n Queue<Node> toExplore = new LinkedList<Node>();\r\n marked.add(start);\r\n toExplore.add(start);\r\n while (!toExplore.isEmpty()) {\r\n Node current = toExplore.remove();\r\n for (Node neighbor : graph.getNodeNeighbors(current)) {\r\n if (!marked.contains(neighbor)) {\r\n if (neighbor.getElement().equals(elementToFind)) {\r\n return true;\r\n }\r\n marked.add(neighbor);\r\n toExplore.add(neighbor);\r\n }\r\n }\r\n }\r\n return false;\r\n }", "public static void browse() {\n double x = Config.LENGTH / 2;\r\n double y = Config.WIDTH / 2;\r\n double sizeX = Config.LENGTH / 2;\r\n double sizeY = Config.WIDTH / 2;\r\n \r\n // breadth first search\r\n Node root = new Node(x, y, sizeX, sizeY);\r\n ArrayList<Node> queue = new ArrayList<Node>();\r\n queue.add(root);\r\n while (!queue.isEmpty()) {\r\n \tcounter++;\r\n // pop node\r\n Node node = queue.remove(0);\r\n\r\n // retrieve information of the node\r\n x = node.getX();\r\n y = node.getY();\r\n sizeX = node.getSizeX();\r\n sizeY = node.getSizeY();\r\n\r\n // four-corners\r\n Point upperLeft = new Point(x - sizeX, y - sizeY);\r\n Point lowerLeft = new Point(x - sizeX, y + sizeY);\r\n Point lowerRight = new Point(x + sizeX, y + sizeY);\r\n Point upperRight = new Point(x + sizeX, y - sizeY);\r\n\r\n // findCoverGroup of one cell\r\n ArrayList<Sensor> coverGroup = new ArrayList<Sensor>();\r\n for (int i = 0; i < setOfSensors.size(); i++) {\r\n Sensor s = setOfSensors.get(i);\r\n if (upperLeft.checkCover(s) && lowerLeft.checkCover(s) && lowerRight.checkCover(s) && upperRight.checkCover(s)) {\r\n \tcoverGroup.add(s);\r\n }\r\n }\r\n \r\n if (coverGroup.size() > 0) {\r\n \t\r\n \t// basicCycle : find a group of k sensors that has angle between two adjacent sensors is bigger than FIX_OMEGA\r\n ArrayList<Sensor> basicCycle = findBasic(coverGroup, upperLeft);\r\n\r\n if (basicCycle != null) {\r\n \t\r\n// \ttimes program run to this branch\r\n \ttop++;\r\n boolean check_ll;\r\n boolean check_lr;\r\n boolean check_ur;\r\n boolean check;\r\n\r\n // if node is covered then isCovered = true\r\n // else rotate one unit\r\n // disadvantages : if basicCycle[n - 1].keyLevel2 == coverGroup.size() - 1 then wrong\r\n do {\r\n check_ll = Tools.check(lowerLeft, basicCycle);\r\n check_lr = Tools.check(lowerRight, basicCycle);\r\n check_ur = Tools.check(upperRight, basicCycle);\r\n check = check_ll && check_lr && check_ur;\r\n if (check) {\r\n node.isCovered = true;\r\n } else {\r\n if (basicCycle.get(Config.K - 1).keyLevel2 != coverGroup.size() - 1) {\r\n for (int i = 0; i < Config.K; i++) {\r\n int keyLevel2 = basicCycle.get(i).keyLevel2;\r\n basicCycle.set(i, coverGroup.get(keyLevel2 + 1));\r\n basicCycle.get(i).keyLevel2 = keyLevel2 + 1;\r\n }\r\n }\r\n }\r\n } while (basicCycle.get(basicCycle.size() - 1).keyLevel2 != coverGroup.size() - 1 && check != true);\r\n } \r\n \r\n else {\r\n // find all kGroup. If found, break\r\n \t\r\n// \ttimes program run to this branch\r\n \tbottom++;\r\n \t\r\n \tTools.lowerLeft = lowerLeft;\r\n \tTools.lowerRight = lowerRight;\r\n \tTools.upperRight = upperRight;\r\n \t\r\n \tfor (int i = 0; i < coverGroup.size(); i++) {\r\n \t\tcoverGroup.get(i).setDirectionWithPoint(upperLeft);\r\n \t}\r\n\r\n \tif (Tools.findAndCheck(coverGroup))\r\n \t\tnode.isCovered = true;\r\n }\r\n }\r\n\r\n // split or not\r\n if (node.isCovered) {\r\n \t// drawOutput\r\n \tg2.draw(new Rectangle2D.Double(x - sizeX, y - sizeY, sizeX * 2, sizeY * 2));\r\n } \r\n else if (node.getRank() < 7) {\r\n node.split();\r\n for (int i = 0; i < 4; i++) {\r\n queue.add(node.getChildren()[i]);\r\n }\r\n }\r\n }\r\n }", "private void bfs(int x, int y, Node p) {\n if (p == null) {\n // TODO\n return;\n }\n char c = board[x][y];\n\n if (p.next(c) == null) {\n // TODO not found\n return;\n }\n\n Node node = p.next(c);\n\n // if node is leaf, found a word\n if (node.word != null) {\n if (!results.contains(node.word)) {\n results.add(node.word);\n }\n }\n\n mark[x][y] = true;\n for (int[] dir: dirs) {\n int newX = x + dir[0];\n int newY = y + dir[1];\n if (newX < 0 || n <= newX\n || newY < 0 || m <= newY) {\n continue;\n }\n\n if (mark[newX][newY]) {\n continue;\n }\n\n bfs(newX, newY, node);\n }\n mark[x][y] = false;\n }", "@Override\r\n\tpublic void run() {\n\t\tvfBest();\r\n\t\tif(currQSize > maxQSize){\r\n\t\t\tDTS(Prey.currentTrajectory.peek().qCounter,vFBestNode.qCounter);\r\n\t\t\tSystem.out.println(\"Queue Cut\");\r\n\t\t}\r\n\t\t\r\n\t}", "public void BFSInfo(ActionEvent actionEvent)\n {\n try {\n Desktop.getDesktop().browse(new URL(\"https://en.wikipedia.org/wiki/Breadth-first_search\").toURI());\n } catch (IOException e) {\n e.printStackTrace();\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n }", "void stateBacktracked (Search search);", "public interface SearchListener extends JPFListener {\n \n /**\n * got the next state\n * Note - this will be notified before any potential propertyViolated, in which\n * case the currentError will be already set\n */\n void stateAdvanced (Search search);\n \n /**\n * state is fully explored\n */\n void stateProcessed (Search search);\n \n /**\n * state was backtracked one step\n */\n void stateBacktracked (Search search);\n\n /**\n * some state is not going to appear in any path anymore\n */\n void statePurged (Search search);\n\n /**\n * somebody stored the state\n */\n void stateStored (Search search);\n \n /**\n * a previously generated state was restored\n * (can be on a completely different path)\n */\n void stateRestored (Search search);\n \n /**\n * there was a probe request, e.g. from a periodical timer\n * note this is called synchronously from within the JPF execution loop\n * (after instruction execution)\n */\n void searchProbed (Search search);\n \n /**\n * JPF encountered a property violation.\n * Note - this is always preceeded by a stateAdvanced\n */\n void propertyViolated (Search search);\n \n /**\n * we get this after we enter the search loop, but BEFORE the first forward\n */\n void searchStarted (Search search);\n \n /**\n * there was some contraint hit in the search, we back out\n * could have been turned into a property, but usually is an attribute of\n * the search, not the application\n */\n void searchConstraintHit (Search search);\n \n /**\n * we're done, either with or without a preceeding error\n */\n void searchFinished (Search search);\n}", "public void bfs(Pair<Integer, Integer> current, Pair<Integer, Integer> goal) {\n var visited = new HashSet<Pair<Integer, Integer>>(300);\n var queue = new LinkedList<Pair<Integer, Integer>>();\n \n visited.add(current);\n queue.add(current);\n \n while (!queue.isEmpty()) {\n var toVisit = queue.poll();\n if (goal.equals(toVisit)) {\n goal.setParent(toVisit);\n toVisit.setChild(goal);\n break;\n }\n var neighbors = Utils.getNeighbors(toVisit);\n neighbors.forEach(p -> {\n // only move through SAFE tiles!\n // unless the neighbor is goal node!\n if (p.equals(goal) ||\n (!visited.contains(p) &&\n grid[p.getA()][p.getB()].getTileTypes().contains(Tile.SAFE)))\n {\n visited.add(p);\n p.setParent(toVisit);\n toVisit.setChild(p);\n queue.add(p);\n }\n });\n }\n }", "@Override\n protected void search() {\n \n obtainProblem();\n if (prioritizedHeroes.length > maxCreatures){\n frame.recieveProgressString(\"Too many prioritized creatures\");\n return;\n }\n bestComboPermu();\n if (searching){\n frame.recieveDone();\n searching = false;\n }\n }", "void BFS(int s, int d) \r\n { \r\n int source = s;\r\n int destination = d;\r\n boolean visited[] = new boolean[V];\r\n int parent[] = new int[V];\r\n \r\n // Create a queue for BFS \r\n LinkedList<Integer> queue = new LinkedList<Integer>(); \r\n \r\n // Mark the current node as visited and enqueue it \r\n \r\n visited[s]=true; \r\n queue.add(s); \r\n System.out.println(\"Search Nodes: \");\r\n while (queue.size() != 0) \r\n { \r\n int index = 0;\r\n \r\n // Dequeue a vertex from queue and print it \r\n \r\n s = queue.poll();\r\n \r\n System.out.print(convert2(s)); \r\n \r\n if(s == destination)\r\n {\r\n break;\r\n }\r\n \r\n System.out.print(\" -> \");\r\n while(index < adj[s].size()) \r\n { \r\n \r\n \r\n int n = adj[s].get(index); \r\n if (!visited[n]) \r\n { \r\n visited[n] = true;\r\n parent[n] = s;\r\n queue.add(n); \r\n }\r\n index = index+ 2;\r\n \r\n \r\n }\r\n \r\n \r\n \r\n }\r\n int check = destination;\r\n int cost = 0, first, second = 0;\r\n String string = \"\" + convert2(check);\r\n while(check!=source)\r\n {\r\n \r\n first = parent[check];\r\n string = convert2(first) + \" -> \" + string;\r\n while(adj[first].get(second) != check)\r\n {\r\n second++;\r\n }\r\n cost = cost + adj[first].get(second +1);\r\n check = first;\r\n second = 0;\r\n \r\n }\r\n \r\n System.out.println(\"\\n\\nPathway: \");\r\n \r\n System.out.println(string);\r\n \r\n \r\n System.out.println(\"\\nTotal cost: \" + cost);\r\n }", "public List<GeographicPoint> bfs(GeographicPoint start, GeographicPoint goal) {\n\t\t// Dummy variable for calling the search algorithms\n Consumer<GeographicPoint> temp = (x) -> {};\n return bfs(start, goal, temp);\n\t}", "private void enterToRunwayQueue() {\n\t\tqueue.insert(this);\n\t}", "private void BFS(Vertex start, Set<Vertex> visited, Queue<Vertex> queue) {\r\n\t\t// if(visited.contains(start)) return;\r\n\r\n\t\t// Mark the current node as visited and enqueue it\r\n\t\tvisited.add(start);\r\n\t\tqueue.offer(start);\r\n\r\n\t\tVertex currentNode;\r\n\t\tSet<Vertex> neighbors;\r\n\r\n\t\twhile (queue.size() != 0) { // or !queue.isEmpty()\r\n\t\t\t// Dequeue a vertex from queue and print it\r\n\t\t\tcurrentNode = queue.poll();\r\n\t\t\tSystem.out.print(currentNode + \" \");\r\n\r\n\t\t\t// Get all adjacent vertices of the dequeued vertex s\r\n\t\t\t// If a adjacent has not been visited, then mark it\r\n\t\t\t// visited and enqueue it\r\n\t\t\tneighbors = currentNode.getNeighbors();\r\n\r\n\t\t\tfor (Vertex n : neighbors) {\r\n\t\t\t\tif (!visited.contains(n)) {\r\n\t\t\t\t\tvisited.add(n);\r\n\t\t\t\t\tqueue.offer(n);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t * neighbors.forEach(n -> { if (!visited.contains(n)){\r\n\t\t\t * visited.add(n); queue.offer(n); } });\r\n\t\t\t */\r\n\t\t}\r\n\t}", "public void pathwayScan() {\n ScanPathwayBasedAssocSwingWorker worker = new ScanPathwayBasedAssocSwingWorker();\n // buildTask = buildTask.create(buildingThread); //the task is not started yet\n buildTask = RP.create(worker); //the task is not started yet\n buildTask.schedule(0); //start the task\n }", "static void bfs(String label) {\n\n /* Add a graph node to the queue. */\n queue.addLast(label);\n graphVisited.put(label, true);\n\n while (!queue.isEmpty()) {\n\n /* Take a node out of the queue and add it to the list of visited nodes. */\n if (!graphVisited.containsKey(queue.getFirst()))\n graphVisited.put(queue.getFirst(), true);\n\n String str = queue.removeFirst();\n\n /*\n For each unvisited vertex from the list of the adjacent vertices,\n add the vertex to the queue.\n */\n for (String lab : silhouette.get(str)) {\n if (!graphVisited.containsKey(lab) && lab != null && !queue.contains(lab))\n queue.addLast(lab);\n }\n }\n }", "private Queue<Integer> breadthSearch(int i, int j, Queue<Integer> queue, Queue<Integer> path) {\n while(queue.size() != 0) {\n queue.poll();\n }//while\n return new LinkedList();\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tdoSearch(name, count);\n\t\t\t}", "public ArrayList<SearchNode> search(Problem p) {\n\tfrontier = new NodeQueue();\t// The frontier is a queue of expanded SearchNodes not processed yet\n\texplored = new HashSet<SearchNode>();\t/// The explored set is a set of nodes that have been processed \n\tGridPos startState = (GridPos) p.getInitialState();\t// The start state is given\n\tfrontier.addNodeToFront(new SearchNode(startState));\t// Initialize the frontier with the start state \n\n\t\n\tpath = new ArrayList<SearchNode>();\t// Path will be empty until we find the goal\n\t\t\n\n\n\twhile(!frontier.isEmpty()){\n\n\t SearchNode s = frontier.removeFirst(); \n\t GridPos g = s.getState(); \n\n\t if ( p.isGoalState(g) ) {\n\t\tpath = s.getPathFromRoot();\t\n\t\tbreak; \n\t }\n\t \n\t explored.add(s); \t \n\t ArrayList<GridPos> childStates = p.getReachableStatesFrom(g);\n\n\t while(!childStates.isEmpty()){\n\n\t\tSearchNode child = new SearchNode(childStates.get(0), s); \n\n\t\tif(!explored.contains(child) && !frontier.contains(child)){\n\n\t\t if ( p.isGoalState(child.getState()) ) {\n\t\t\n\t\t\tpath = child.getPathFromRoot();\t\n\t\t\treturn path; \n\t\t }\n\n\t\t if(insertFront) \n\t\t\tfrontier.addNodeToFront(child); \t\t \t\t\n\t\t else\t\n\t\t\tfrontier.addNodeToBack(child); \t \n\n\n\n\t\t}\n\n\t\tchildStates.remove(0);\n\t }\t \n\t}\n\n\n\treturn path;\n\n }", "public static void breadthFirstSearch (HashMap<String, Zpair> stores,\n HashSet<Zpair> visited,\n List<Integer> sortedQueue) {\n List<String> q = new ArrayList<String>();\n q.add(\"Q\");\n // k=0\n //int k = 0;\n while(q.size() != 0) {\n //if(k == 21) {\n // System.exit(20);\n // }\n List<StringBuffer> path = new ArrayList<StringBuffer>(); // this is the return string\n List<String> q1 = new ArrayList<String>();\n int size = q.size();\n //System.out.println(k);\n for(int i = 0; i < size; i++) {\n //printList(q);\n path.add(ZMethods.stringPop(q));\n execute(path.get(i), stores, visited, q1, sortedQueue);\n }\n copyStringBuffer(q1,q);\n //k++;\n }\n }", "public void breadthFirst() {\n\t\tQueue<Node> queue = new ArrayDeque<>();\n\t\tqueue.add(root);\n\t\twhile(!queue.isEmpty()) {\n\t\t\tif(queue.peek().left!=null)\n\t\t\t\tqueue.add(queue.peek().left);\n\t\t\tif(queue.peek().right!=null)\n\t\t\t\tqueue.add(queue.peek().right);\n\t\t\tSystem.out.println(queue.poll().data);\n\t\t}\n\t}", "private void searchFunction() {\n\t\t\r\n\t}", "public static Integer[] LexBFS(Graph<Integer,String> g) {\n\t\tGraph<myVertex,String> h = new SparseGraph<myVertex,String>();\r\n\t\th = convertToWeighted(g);\r\n\t\tfinal int N = g.getVertexCount();\r\n\t\t//System.out.print(\"Done. Old graph: \"+N+\" vertices. New graph \" +h.getVertexCount()+\"\\n\");\r\n\t\t\r\n\t\t//System.out.print(\"New graph is:\\n\"+h+\"\\n\");\r\n\t\tmyVertex[] queue = new myVertex[N];\r\n\t\t\r\n\t\tIterator<myVertex> a = h.getVertices().iterator();\r\n\t\tqueue[0] = a.next(); // start of BFS search. Now add neighbours.\r\n\t\tint indexCounter = 1;\r\n\t\tint pivot = 0;\r\n\t\t//System.out.print(\"Initial vertex is: \"+queue[0]+\" \");\r\n\t\tSystem.out.print(\"STATUS REPORT:\\n queue = \"+queue+\"\\n indexCounter=\" + indexCounter+\"\\n pivot=\"+pivot+\"\\n\");\r\n\t\tIterator<myVertex> b = h.getNeighbors(queue[0]).iterator();\r\n\t\twhile (b.hasNext()) {\r\n\t\t\tqueue[indexCounter] = b.next();\r\n\t\t\tqueue[indexCounter].label.add(N);\r\n\t\t\tqueue[indexCounter].setColor(1); // 1 = grey = queued\r\n\t\t\tindexCounter++;\r\n\t\t}\r\n\t\t//System.out.print(\"with \"+(indexCounter-1) +\" neighbours\\n\");\r\n\t\t//System.out.print(\"STATUS REPORT:\\n queue = \"+queue+\"\\n indexCounter=\" + indexCounter+\"\\n pivot=\"+pivot+\"\\n\");\r\n\t\tqueue[0].setColor(2); // 2 = black = processed\r\n\t\t// indexCounter counts where the next grey vertex will be enqueued\r\n\t\t// pivot counts where the next grey vertex will be processed and turned black\r\n\r\n\t\tpivot = 1;\r\n\r\n\t\t//System.out.print(\"STATUS REPORT:\\n queue = \"+queue+\"\\n indexCounter=\" + indexCounter+\"\\n pivot=\"+pivot+\"\\n\");\r\n\t\twhile (pivot < indexCounter) {\r\n\t\t\t// first, find the highest labelled entry in the rest of the queue\r\n\t\t\t// and move it to the pivot position. This should be improved upon\r\n\t\t\t// by maintaining sorted order upon adding elements to the queue\r\n\t\t\t\r\n\t\t\t//System.out.print(\"choosing next vertex...\\n\");\r\n\t\t\tint max = pivot;\r\n\t\t\tfor (int i = pivot+1; i<indexCounter; i++) {\r\n\t\t\t\t//indexCounter is the next available spot, so indexCounter-1 is the last\r\n\t\t\t\t//entry i.e. it is last INDEX where queue[INDEX] is non-empty.\r\n\t\t\t\tif (queue[i].comesBefore(queue[max])) {\r\n\t\t\t\t\tmax = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//System.out.print(\"STATUS REPORT:\\n queue = \"+queue+\"\\n indexCounter=\" + indexCounter+\"\\n pivot=\"+pivot+\"\\n\");\r\n\t\t\t// at the end of this for-loop, found the index \"max\" of the element of\r\n\t\t\t// the queue with the lexicographically largest label. Swap it with pivot.\r\n\t\t\tmyVertex temp = queue[pivot];\r\n\t\t\tqueue[pivot] = queue[max];\r\n\t\t\tqueue[max] = temp;\r\n\r\n\t\t\t//System.out.print(\"Chose vertex: \"+temp+\" to visit next\\n\");\r\n\t\t\t//System.out.print(\"STATUS REPORT:\\n queue = \"+queue+\"\\n indexCounter=\" + indexCounter+\"\\n pivot=\"+pivot+\"\\n\");\r\n\t\t\t\r\n\t\t\t// process the pivot point => find and mark its neighbours, turn it black.\r\n\t\t\tb = h.getNeighbors(queue[pivot]).iterator();\r\n\t\t\twhile (b.hasNext()) {\r\n\t\t\t\tmyVertex B = b.next();\r\n\t\t\t\tif (B.color == 0) {\r\n\t\t\t\t\t// found a vertex which has not been queued...\r\n\t\t\t\t\tqueue[indexCounter] = B;\r\n\t\t\t\t\tB.label.add(N-pivot);\r\n\t\t\t\t\tB.setColor(1);\r\n\t\t\t\t\tindexCounter++;\r\n\t\t\t\t}\r\n\t\t\t\telse if (B.color == 1) {\r\n\t\t\t\t\t// found a vertex in the queue which has not been processed...\r\n\t\t\t\t\tB.label.add(N-pivot);\r\n\t\t\t\t}\r\n\t\t\t\telse if (B.color != 2) {\r\n\t\t\t\t\tSystem.out.print(\"Critical Error: found a vertex in LexBFS process \");\r\n\t\t\t\t\tSystem.out.print(\"which has been visited but is not grey or black.\\n\");\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\t//System.out.print(\"STATUS REPORT:\\n queue = \"+queue+\"\\n indexCounter=\" + indexCounter+\"\\n pivot=\"+pivot+\"\\n\");\r\n\t\t\t}\r\n\t\t\tqueue[pivot].setColor(2); //done processing current pivot\r\n\t\t\tpivot ++;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//LexBFS done; produce integer array to return;\r\n\t\t//System.out.print(\"STATUS REPORT:\\n queue = \"+queue+\"\\n indexCounter=\" + indexCounter+\"\\n pivot=\"+pivot+\"\\n\");\r\n\t\tInteger[] LBFS = new Integer[N]; // N assumes the graph is connected...\r\n\t\tfor (int i = 0; i<N; i++) {\r\n\t\t\tLBFS[i] = queue[i].id;\r\n\t\t}\r\n\t\t//System.out.print(\"STATUS REPORT:\\n queue = \"+queue+\"\\n indexCounter=\" + indexCounter+\"\\n pivot=\"+pivot+\"\\n\");\r\n\t\t//System.out.print(\"Returning array: \" + LBFS);\r\n\t\treturn LBFS;\r\n\t}", "private static void breadthFirstSearch(int source, ArrayList<ArrayList<Integer>> nodes) {\n\t\tArrayList<ArrayList<Integer>> neighbours = nodes;\n\t\tQueue<Integer> queue= new LinkedList<Integer>();\n\t\t\n\t\tboolean[] visited = new boolean[nodes.size()];\n\t\t\n\t\tqueue.add(source);\n\t\tvisited[source]=true;\n\t\t\n\t\twhile(!queue.isEmpty()) {\n\t\t\tint k =queue.remove();\n\t\t\tSystem.out.println(k);\n\t\t\tfor(int p : nodes.get(k)) {\n\t\t\t\tif(!visited[p]) {\n\t\t\t\t\tqueue.add(p);\n\t\t\t\t\tvisited[p]=true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "public void visit() {\n\t\tvisited = true;\n\t}", "private void bfs(Graph G, int s){\n queue.add(s);\n visited[s] = true;\n while (!queue.isEmpty()) {\n int v = queue.removeFirst();\n for (int w : G.adj(v)) {\n if (!visited[w]) {\n queue.add(w);\n visited[w] = true;\n edgeTo[w] = v;\n }\n }\n }\n }", "void BFS(int s);", "public interface OnResultPath {\n // Reports which nodes have been added to the frontier or removed from the frontier\n void reportProgress(List<Node> update);\n\n // Called when a path finding algorithm is finished running, should return null if no path is found\n void pathFound(Node node);\n}", "@Override\n public void run() {\n try {\n File file;\n while ((file = queue.poll(100, TimeUnit.MILLISECONDS)) != null) {\n BufferedReader reader = new BufferedReader(new FileReader(file));\n String line;\n while ((line = reader.readLine()) != null) {\n if (line.contains(searchString)) {\n // Synchronization requires because of many threads are writing into results.\n synchronized (results) {\n results.add(file.getAbsolutePath());\n break;\n }\n }\n }\n }\n } catch (InterruptedException | IOException e) {\n e.printStackTrace();\n }\n }", "void BFS(int s)\n {\n /* List of visited vertices; all false in the beginning) */\n boolean visited[] = new boolean[V];\n\n /* Queue data structure is used for BFS */\n LinkedList<Integer> queue = new LinkedList<>();\n\n /* Mark starting node s as visited and enqueue it */\n visited[s]=true;\n queue.add(s);\n\n /* Until queue is empty, dequeue a single node in queue and look for it's neighboring vertices.\n * If an adjecent node hasn't been visited yet, set it as visited and enqueue this node. s*/\n while (queue.size() != 0)\n {\n /* Dequeue */\n s = queue.poll();\n System.out.print( s + \" \");\n\n /* Get all adjacent vertices */\n Iterator<Integer> i = adj[s].listIterator();\n while (i.hasNext())\n {\n int n = i.next();\n if (!visited[n])\n {\n visited[n] = true;\n queue.add(n);\n }\n }\n }\n }", "@Override\n public void handlePilotRunHasCompleted() {\n RecursionStore.publishTotalBranches();\n if (RecursionStore.getTaskQueueSize() < _argumentsParser.getBoostMultiplier() * _argumentsParser.getMaxThreads()) {\n generateOutputAndClose();\n return;\n }\n\n this._totalNumberOfStateTreeBranches = RecursionStore.getTaskQueueSize();\n while (RecursionStore.getTaskQueueSize() > 0) {\n _pool.submit(new RecursiveWorker(RecursionStore.pollStateTreeQueue(), this));\n }\n }", "public void onSearchStarted();", "public void run()\n\t{\n\t\t// The instance of the received broadcast request. 11/29/2014, Bing Li\n\t\tSearchKeywordBroadcastRequest request;\n\t\t// The thread always runs until it is shutdown by the BoundNotificationDispatcher. 11/29/2014, Bing Li\n\t\twhile (!this.isShutdown())\n\t\t{\n\t\t\t// Check whether the notification queue is empty. 11/29/2014, Bing Li\n\t\t\twhile (!this.isEmpty())\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t// Dequeue the request. 11/29/2014, Bing Li\n\t\t\t\t\trequest = this.getNotification();\n\t\t\t\t\t// Disseminate the broadcast request to the local node's children. 11/29/2014, Bing Li\n\t\t\t\t\tMemoryMulticastor.STORE().disseminateSearchKeywordRequestAmongSubMemServers(request);\n\t\t\t\t\t// Notify the binder that the thread's task on the request has done. 11/29/2014, Bing Li\n\t\t\t\t\tthis.bind(super.getDispatcherKey(), request);\n\t\t\t\t}\n\t\t\t\tcatch (InterruptedException e)\n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Wait for a moment after all of the existing requests are processed. 11/29/2014, Bing Li\n\t\t\t\tthis.holdOn(ServerConfig.NOTIFICATION_THREAD_WAIT_TIME);\n\t\t\t}\n\t\t\tcatch (InterruptedException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void searchFinished(Search search)\r\n {\r\n if (this.filename.equals(\"\"))\r\n return;\r\n this.writeTrace();\r\n }", "void BFS(Node root) {\n\t\tQueue<Node> qe=new LinkedList<Node>();\n\t\tqe.add(root);\n\t\twhile (!qe.isEmpty()) {\n\t\t\tNode q = (Node) qe.poll();\n\t\t\tif (q != null) {\n\t\t\t\tSystem.out.print(q.data + \",\");\n\t\t\t\tqe.add(q.left);\n\t\t\t\tqe.add(q.right);\n\t\t\t}\n\t\t}\n\t}", "private void treeBreadthFirstTraversal() {\n Node currNode = root;\n java.util.LinkedList<Node> queue = new java.util.LinkedList<Node>();\n\n // Highlights the first Node.\n queueNodeSelectAnimation(currNode, \"Exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n // Explores Nodes until the queue is empty.\n while (true) {\n\n // Marks that this Node's children should be explored.\n for (int i = 0; i < getNumChildren(); ++i) {\n if (currNode.children[i] != null) {\n queue.addLast(currNode.children[i]);\n queueQueueAddAnimation(currNode.children[i],\n \"Queueing \" + currNode.children[i].key,\n AnimationParameters.ANIM_TIME);\n\n }\n }\n\n // Pops the next Node from the queue.\n if (!queue.isEmpty()) {\n currNode = queue.pop();\n queueListPopAnimation(\"Popped \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n queueNodeSelectAnimation(currNode, \"Exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n }\n // If the queue is empty, breaks.\n else break;\n\n }\n }", "void calc_closure(){\r\n\t\tint [] queue = new int[maxn];\r\n\t\tint head,tail,i,j,k;\r\n\t\tfor (i=0; i<state; ++i){\r\n\t\t\tfor (j=0; j<state; ++j)\r\n\t\t\t\tclosure[i][j]=false;\r\n\t\t\t\r\n\t\t\t//Breadth First Search\r\n\t\t\thead=-1;\r\n\t\t\ttail=0;\r\n\t\t\tqueue[0]=i;\r\n\t\t\tclosure[i][i]=true;\r\n\t\t\twhile (head<tail){\r\n\t\t\t\tj=queue[++head];\r\n\t\t\t\t//search along epsilon edge\r\n\t\t\t\tfor (k=0; k<state; ++k)\r\n\t\t\t\t\tif ((!closure[i][k])&&(g[j][symbol][k]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tqueue[++tail]=k;\r\n\t\t\t\t\t\tclosure[i][k]=true;\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "Bfs_search(int v) \r\n { \r\n V = v; \r\n \r\n adj = new LinkedList[v]; \r\n \r\n for (int i=0; i<v; ++i) \r\n adj[i] = new LinkedList(); \r\n }", "@Override\n\t\t\tpublic void run() \n\t\t\t{\n\t\t\t\tif(!(mazeCollection.containsKey(paramArray[0])))\n\t\t\t\t{\n\t\t\t\t\tc.passError(\"Maze doesn't exist\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t//if solution for this maze exists\n\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0])))\n\t\t\t\t{\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t*/\n\t\t\t\t\n\t\t\t\tif(paramArray[1].toString().equals(\"bfs\"))\n\t\t\t\t{\n\t\t\t\t\tMazeAdapter ms=new MazeAdapter(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\n\t\t\t\t\tSearcher<Position> bfs=new BFS<Position>();\n\t\t\t\t\tSolution<Position> sol=bfs.search(ms);\n\t\t\t\t\t\n\t\t\t\t\t//check if solution for the maze already exists, if so, replace it with the new one\n\t\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0]))) {\n\t\t\t\t\t\tmazeSolutions.remove(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if(paramArray[1].toString().equals(\"dfs\"))\n\t\t\t\t{\n\t\t\t\t\tMazeAdapter ms=new MazeAdapter(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\n\t\t\t\t\tSearcher<Position> dfs=new DFS<Position>();\n\t\t\t\t\tSolution<Position> sol=dfs.search(ms);\n\t\t\t\t\t\n\t\t\t\t\t//check if solution for the maze already exists, if so, replace it with the new one\n\t\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0]))) {\n\t\t\t\t\t\tmazeSolutions.remove(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tc.passError(\"Invalid algorithm\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void search() {\n\t}" ]
[ "0.6710282", "0.660853", "0.6584118", "0.6390812", "0.6386616", "0.6314876", "0.6169695", "0.61501795", "0.6129371", "0.61201274", "0.60853386", "0.6072546", "0.6052434", "0.6035116", "0.60273594", "0.59892905", "0.5964245", "0.59449977", "0.5942052", "0.59193826", "0.5913282", "0.5904156", "0.59000957", "0.5886017", "0.58797836", "0.58764315", "0.5857469", "0.584391", "0.5838131", "0.5834701", "0.581113", "0.5810748", "0.5808384", "0.5784728", "0.5776193", "0.57566", "0.57320863", "0.571574", "0.56768763", "0.566936", "0.5666881", "0.5659458", "0.5633206", "0.56307256", "0.561345", "0.5605194", "0.5541218", "0.55407834", "0.5528192", "0.55245864", "0.5517006", "0.55136544", "0.550858", "0.55031633", "0.5502185", "0.5496691", "0.54954064", "0.5487281", "0.54815495", "0.54681283", "0.5454728", "0.54510415", "0.5437898", "0.5431415", "0.5430461", "0.54251426", "0.541949", "0.541594", "0.54139507", "0.5396654", "0.5394415", "0.53936607", "0.5391699", "0.5379309", "0.5366147", "0.5366062", "0.5366059", "0.5356763", "0.5353461", "0.5348067", "0.5334454", "0.53325474", "0.53271437", "0.5326097", "0.53243756", "0.5322141", "0.5315754", "0.5304606", "0.53027683", "0.5298514", "0.5298182", "0.5296746", "0.5290562", "0.5280459", "0.52803123", "0.5273407", "0.5266309", "0.5260544", "0.5256206", "0.525445" ]
0.6244344
6
Method used to start the parallelisation search after the BFS pilot search is done
@Override public void handlePilotRunHasCompleted() { RecursionStore.publishTotalBranches(); if (RecursionStore.getTaskQueueSize() < _argumentsParser.getBoostMultiplier() * _argumentsParser.getMaxThreads()) { generateOutputAndClose(); return; } this._totalNumberOfStateTreeBranches = RecursionStore.getTaskQueueSize(); while (RecursionStore.getTaskQueueSize() > 0) { _pool.submit(new RecursiveWorker(RecursionStore.pollStateTreeQueue(), this)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startSearch() {\n if (solving) {\n Alg.Dijkstra();\n }\n pause(); //pause state\n }", "@Override\n\t\t\tprotected Void doInBackground() throws Exception {\n\t\t\t\tif (!verifyStartEndVerticesExist(true, false)) {\n\t\t\t\t\tsetRunning(false);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Queue\n\t\t\t\tQueue<Vertex> q = new LinkedList<Vertex>();\n\t\t\t\t\n\t\t\t\t// set start vertex as visited\n\t\t\t\tpanel.getStartVertex().setVisited(true);\n\t\t\t\tq.add(panel.getStartVertex());\n\t\t\t\twhile (!q.isEmpty()) {\n\t\t\t\t\tVertex v = q.remove();\n\t\t\t\t\tv.setSelected(true);\n\t\t\t\t\tpublish();\n\t\t\t\t\tThread.sleep(panel.getCurrentDelay());\n\t\t\t\t\tfor (Vertex vertex : getNeighbors(v)) {\n\t\t\t\t\t\tvertex.setHighlighted();\n\t\t\t\t\t\tpublish();\n\t\t\t\t\t\tThread.sleep(panel.getCurrentDelay());\n\t\t\t\t\t\tif (!vertex.isVisited()) {\n\t\t\t\t\t\t\tvertex.setVisited(true);\n\t\t\t\t\t\t\tvertex.setParent(v);\n\t\t\t\t\t\t\tq.add(vertex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tv.setSelected(false);\n\t\t\t\t\tv.setHighlighted();\n\t\t\t\t\tpublish();\n\t\t\t\t\tThread.sleep(panel.getCurrentDelay());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"BFS Finished!\");\n\t\t\t\tpublish();\n\t\t\t\tsetRunning(false);\n\t\t\t\treturn null;\n\t\t\t}", "public List<Graph> search() {\n\n long start = System.currentTimeMillis();\n TetradLogger.getInstance().log(\"info\", \"Starting ION Search.\");\n logGraphs(\"\\nInitial Pags: \", this.input);\n TetradLogger.getInstance().log(\"info\", \"Transfering local information.\");\n long steps = System.currentTimeMillis();\n\n /*\n * Step 1 - Create the empty graph\n */\n List<Node> varNodes = new ArrayList<>();\n for (String varName : variables) {\n varNodes.add(new GraphNode(varName));\n }\n Graph graph = new EdgeListGraph(varNodes);\n\n /*\n * Step 2 - Transfer local information from the PAGs (adjacencies\n * and edge orientations)\n */\n // transfers edges from each graph and finds definite noncolliders\n transferLocal(graph);\n // adds edges for variables never jointly measured\n for (NodePair pair : nonIntersection(graph)) {\n graph.addEdge(new Edge(pair.getFirst(), pair.getSecond(), Endpoint.CIRCLE, Endpoint.CIRCLE));\n }\n TetradLogger.getInstance().log(\"info\", \"Steps 1-2: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n System.out.println(\"step2\");\n System.out.println(graph);\n\n /*\n * Step 3\n *\n * Branch and prune step that blocks problematic undirectedPaths, possibly d-connecting undirectedPaths\n */\n steps = System.currentTimeMillis();\n Queue<Graph> searchPags = new LinkedList<>();\n // place graph constructed in step 2 into the queue\n searchPags.offer(graph);\n // get d-separations and d-connections\n List<Set<IonIndependenceFacts>> sepAndAssoc = findSepAndAssoc(graph);\n this.separations = sepAndAssoc.get(0);\n this.associations = sepAndAssoc.get(1);\n Map<Collection<Node>, List<PossibleDConnectingPath>> paths;\n// Queue<Graph> step3PagsSet = new LinkedList<Graph>();\n HashSet<Graph> step3PagsSet = new HashSet<>();\n Set<Graph> reject = new HashSet<>();\n // if no d-separations, nothing left to search\n if (separations.isEmpty()) {\n // makes orientations preventing definite noncolliders from becoming colliders\n // do final orientations\n// doFinalOrientation(graph);\n step3PagsSet.add(graph);\n }\n // sets length to iterate once if search over path lengths not enabled, otherwise set to 2\n int numNodes = graph.getNumNodes();\n int pl = numNodes - 1;\n if (pathLengthSearch) {\n pl = 2;\n }\n // iterates over path length, then adjacencies\n for (int l = pl; l < numNodes; l++) {\n if (pathLengthSearch) {\n TetradLogger.getInstance().log(\"info\", \"Braching over path lengths: \" + l + \" of \" + (numNodes - 1));\n }\n int seps = separations.size();\n int currentSep = 1;\n int numAdjacencies = separations.size();\n for (IonIndependenceFacts fact : separations) {\n if (adjacencySearch) {\n TetradLogger.getInstance().log(\"info\", \"Braching over path nonadjacencies: \" + currentSep + \" of \" + numAdjacencies);\n }\n seps--;\n // uses two queues to keep up with which PAGs are being iterated and which have been\n // accepted to be iterated over in the next iteration of the above for loop\n searchPags.addAll(step3PagsSet);\n recGraphs.add(searchPags.size());\n step3PagsSet.clear();\n while (!searchPags.isEmpty()) {\n System.out.println(\"ION Step 3 size: \" + searchPags.size());\n double currentUsage = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n if (currentUsage > maxMemory) maxMemory = currentUsage;\n // deques first PAG from searchPags\n Graph pag = searchPags.poll();\n // Part 3.a - finds possibly d-connecting undirectedPaths between each pair of nodes\n // known to be d-separated\n List<PossibleDConnectingPath> dConnections = new ArrayList<>();\n // checks to see if looping over adjacencies\n if (adjacencySearch) {\n for (Collection<Node> conditions : fact.getZ()) {\n // checks to see if looping over path lengths\n if (pathLengthSearch) {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPathsOfLength\n (pag, fact.getX(), fact.getY(), conditions, l));\n } else {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPaths\n (pag, fact.getX(), fact.getY(), conditions));\n }\n }\n } else {\n for (IonIndependenceFacts allfact : separations) {\n for (Collection<Node> conditions : allfact.getZ()) {\n // checks to see if looping over path lengths\n if (pathLengthSearch) {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPathsOfLength\n (pag, allfact.getX(), allfact.getY(), conditions, l));\n } else {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPaths\n (pag, allfact.getX(), allfact.getY(), conditions));\n }\n }\n }\n }\n // accept PAG go to next PAG if no possibly d-connecting undirectedPaths\n if (dConnections.isEmpty()) {\n// doFinalOrientation(pag);\n// Graph p = screenForKnowledge(pag);\n// if (p != null) step3PagsSet.add(p);\n step3PagsSet.add(pag);\n continue;\n }\n // maps conditioning sets to list of possibly d-connecting undirectedPaths\n paths = new HashMap<>();\n for (PossibleDConnectingPath path : dConnections) {\n List<PossibleDConnectingPath> p = paths.get(path.getConditions());\n if (p == null) {\n p = new LinkedList<>();\n }\n p.add(path);\n paths.put(path.getConditions(), p);\n }\n // Part 3.b - finds minimal graphical changes to block possibly d-connecting undirectedPaths\n List<Set<GraphChange>> possibleChanges = new ArrayList<>();\n for (Set<GraphChange> changes : findChanges(paths)) {\n Set<GraphChange> newChanges = new HashSet<>();\n for (GraphChange gc : changes) {\n boolean okay = true;\n for (Triple collider : gc.getColliders()) {\n\n if (pag.isUnderlineTriple(collider.getX(), collider.getY(), collider.getZ())) {\n okay = false;\n break;\n }\n\n }\n if (!okay) {\n continue;\n }\n for (Triple collider : gc.getNoncolliders()) {\n if (pag.isDefCollider(collider.getX(), collider.getY(), collider.getZ())) {\n okay = false;\n break;\n }\n }\n if (okay) {\n newChanges.add(gc);\n }\n }\n if (!newChanges.isEmpty()) {\n possibleChanges.add(newChanges);\n } else {\n possibleChanges.clear();\n break;\n }\n }\n float starthitset = System.currentTimeMillis();\n Collection<GraphChange> hittingSets = IonHittingSet.findHittingSet(possibleChanges);\n recHitTimes.add((System.currentTimeMillis() - starthitset) / 1000.);\n // Part 3.c - checks the newly constructed graphs from 3.b and rejects those that\n // cycles or produce independencies known not to occur from the input PAGs or\n // include undirectedPaths from definite nonancestors\n for (GraphChange gc : hittingSets) {\n boolean badhittingset = false;\n for (Edge edge : gc.getRemoves()) {\n Node node1 = edge.getNode1();\n Node node2 = edge.getNode2();\n Set<Triple> triples = new HashSet<>();\n triples.addAll(gc.getColliders());\n triples.addAll(gc.getNoncolliders());\n if (triples.size() != (gc.getColliders().size() + gc.getNoncolliders().size())) {\n badhittingset = true;\n break;\n }\n for (Triple triple : triples) {\n if (node1.equals(triple.getY())) {\n if (node2.equals(triple.getX()) ||\n node2.equals(triple.getZ())) {\n badhittingset = true;\n break;\n }\n }\n if (node2.equals(triple.getY())) {\n if (node1.equals(triple.getX()) ||\n node1.equals(triple.getZ())) {\n badhittingset = true;\n break;\n }\n }\n }\n if (badhittingset) {\n break;\n }\n for (NodePair pair : gc.getOrients()) {\n if ((node1.equals(pair.getFirst()) && node2.equals(pair.getSecond())) ||\n (node2.equals(pair.getFirst()) && node1.equals(pair.getSecond()))) {\n badhittingset = true;\n break;\n }\n }\n if (badhittingset) {\n break;\n }\n }\n if (!badhittingset) {\n for (NodePair pair : gc.getOrients()) {\n for (Triple triple : gc.getNoncolliders()) {\n if (pair.getSecond().equals(triple.getY())) {\n if (pair.getFirst().equals(triple.getX()) &&\n pag.getEndpoint(triple.getZ(), triple.getY()).equals(Endpoint.ARROW)) {\n badhittingset = true;\n break;\n\n }\n if (pair.getFirst().equals(triple.getZ()) &&\n pag.getEndpoint(triple.getX(), triple.getY()).equals(Endpoint.ARROW)) {\n badhittingset = true;\n break;\n }\n }\n if (badhittingset) {\n break;\n }\n }\n if (badhittingset) {\n break;\n }\n }\n }\n if (badhittingset) {\n continue;\n }\n Graph changed = gc.applyTo(pag);\n // if graph change has already been rejected move on to next graph\n if (reject.contains(changed)) {\n continue;\n }\n // if graph change has already been accepted move on to next graph\n if (step3PagsSet.contains(changed)) {\n continue;\n }\n // reject if null, predicts false independencies or has cycle\n if (predictsFalseIndependence(associations, changed)\n || changed.existsDirectedCycle()) {\n reject.add(changed);\n }\n // makes orientations preventing definite noncolliders from becoming colliders\n // do final orientations\n// doFinalOrientation(changed);\n // now add graph to queue\n\n// Graph p = screenForKnowledge(changed);\n// if (p != null) step3PagsSet.add(p);\n step3PagsSet.add(changed);\n }\n }\n // exits loop if not looping over adjacencies\n if (!adjacencySearch) {\n break;\n }\n }\n }\n TetradLogger.getInstance().log(\"info\", \"Step 3: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n Queue<Graph> step3Pags = new LinkedList<>(step3PagsSet);\n\n /*\n * Step 4\n *\n * Finds redundant undirectedPaths and uses this information to expand the list\n * of possible graphs\n */\n steps = System.currentTimeMillis();\n Map<Edge, Boolean> necEdges;\n Set<Graph> outputPags = new HashSet<>();\n\n while (!step3Pags.isEmpty()) {\n Graph pag = step3Pags.poll();\n necEdges = new HashMap<>();\n // Step 4.a - if x and y are known to be unconditionally associated and there is\n // exactly one trek between them, mark each edge on that trek as necessary and\n // make the tiples on the trek definite noncolliders\n // initially mark each edge as not necessary\n for (Edge edge : pag.getEdges()) {\n necEdges.put(edge, false);\n }\n // look for unconditional associations\n for (IonIndependenceFacts fact : associations) {\n for (List<Node> nodes : fact.getZ()) {\n if (nodes.isEmpty()) {\n List<List<Node>> treks = treks(pag, fact.x, fact.y);\n if (treks.size() == 1) {\n List<Node> trek = treks.get(0);\n List<Triple> triples = new ArrayList<>();\n for (int i = 1; i < trek.size(); i++) {\n // marks each edge in trek as necessary\n necEdges.put(pag.getEdge(trek.get(i - 1), trek.get(i)), true);\n if (i == 1) {\n continue;\n }\n // makes each triple a noncollider\n pag.addUnderlineTriple(trek.get(i - 2), trek.get(i - 1), trek.get(i));\n }\n }\n // stop looping once the empty set is found\n break;\n }\n }\n }\n // Part 4.b - branches by generating graphs for every combination of removing\n // redundant undirectedPaths\n boolean elimTreks;\n // checks to see if removing redundant undirectedPaths eliminates every trek between\n // two variables known to be nconditionally assoicated\n List<Graph> possRemovePags = possRemove(pag, necEdges);\n double currentUsage = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n if (currentUsage > maxMemory) maxMemory = currentUsage;\n for (Graph newPag : possRemovePags) {\n elimTreks = false;\n // looks for unconditional associations\n for (IonIndependenceFacts fact : associations) {\n for (List<Node> nodes : fact.getZ()) {\n if (nodes.isEmpty()) {\n if (treks(newPag, fact.x, fact.y).isEmpty()) {\n elimTreks = true;\n }\n // stop looping once the empty set is found\n break;\n }\n }\n }\n // add new PAG to output unless a necessary trek has been eliminated\n if (!elimTreks) {\n outputPags.add(newPag);\n }\n }\n }\n outputPags = removeMoreSpecific(outputPags);\n// outputPags = applyKnowledge(outputPags);\n\n TetradLogger.getInstance().log(\"info\", \"Step 4: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n\n /*\n * Step 5\n *\n * Generate the Markov equivalence classes for graphs and accept only\n * those that do not predict false d-separations\n */\n steps = System.currentTimeMillis();\n Set<Graph> outputSet = new HashSet<>();\n for (Graph pag : outputPags) {\n Set<Triple> unshieldedPossibleColliders = new HashSet<>();\n for (Triple triple : getPossibleTriples(pag)) {\n if (!pag.isAdjacentTo(triple.getX(), triple.getZ())) {\n unshieldedPossibleColliders.add(triple);\n }\n }\n\n PowerSet<Triple> pset = new PowerSet<>(unshieldedPossibleColliders);\n for (Set<Triple> set : pset) {\n Graph newGraph = new EdgeListGraph(pag);\n for (Triple triple : set) {\n newGraph.setEndpoint(triple.getX(), triple.getY(), Endpoint.ARROW);\n newGraph.setEndpoint(triple.getZ(), triple.getY(), Endpoint.ARROW);\n }\n doFinalOrientation(newGraph);\n }\n for (Graph outputPag : finalResult) {\n if (!predictsFalseIndependence(associations, outputPag)) {\n Set<Triple> underlineTriples = new HashSet<>(outputPag.getUnderLines());\n for (Triple triple : underlineTriples) {\n outputPag.removeUnderlineTriple(triple.getX(), triple.getY(), triple.getZ());\n }\n outputSet.add(outputPag);\n }\n }\n }\n\n// outputSet = applyKnowledge(outputSet);\n outputSet = checkPaths(outputSet);\n\n output.addAll(outputSet);\n TetradLogger.getInstance().log(\"info\", \"Step 5: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n runtime = ((System.currentTimeMillis() - start) / 1000.);\n logGraphs(\"\\nReturning output (\" + output.size() + \" Graphs):\", output);\n double currentUsage = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n if (currentUsage > maxMemory) maxMemory = currentUsage;\n return output;\n }", "public synchronized void startSolving()\n/* */ {\n/* 373 */ setKeepSolving(true);\n/* */ \n/* */ \n/* 376 */ if ((!this.solving) && (this.iterationsToGo > 0))\n/* */ {\n/* */ \n/* 379 */ setSolving(true);\n/* 380 */ setKeepSolving(true);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 387 */ fireTabuSearchStarted();\n/* */ \n/* */ \n/* */ \n/* 391 */ TabuSearch This = this;\n/* */ \n/* 393 */ Thread t = new Thread(new Runnable() {\n/* */ private final TabuSearch val$This;\n/* */ \n/* */ public void run() {\n/* 397 */ while ((MultiThreadedTabuSearch.this.keepSolving) && (MultiThreadedTabuSearch.this.iterationsToGo > 0))\n/* */ {\n/* */ \n/* 400 */ synchronized (this.val$This)\n/* */ {\n/* 402 */ MultiThreadedTabuSearch.this.iterationsToGo -= 1;\n/* */ try\n/* */ {\n/* 405 */ MultiThreadedTabuSearch.this.performOneIteration();\n/* */ }\n/* */ catch (NoMovesGeneratedException e)\n/* */ {\n/* 409 */ if (SingleThreadedTabuSearch.err != null)\n/* 410 */ SingleThreadedTabuSearch.err.println(e);\n/* 411 */ MultiThreadedTabuSearch.this.stopSolving();\n/* */ }\n/* */ catch (NoCurrentSolutionException e)\n/* */ {\n/* 415 */ if (SingleThreadedTabuSearch.err != null)\n/* 416 */ SingleThreadedTabuSearch.err.println(e);\n/* 417 */ MultiThreadedTabuSearch.this.stopSolving();\n/* */ }\n/* 419 */ MultiThreadedTabuSearch.this.incrementIterationsCompleted();\n/* 420 */ this.val$This.notifyAll();\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* 425 */ synchronized (this.val$This)\n/* */ {\n/* */ \n/* */ \n/* 429 */ MultiThreadedTabuSearch.this.setSolving(false);\n/* 430 */ MultiThreadedTabuSearch.this.setKeepSolving(false);\n/* */ \n/* */ \n/* 433 */ if (MultiThreadedTabuSearch.this.helpers != null)\n/* 434 */ for (int i = 0; i < MultiThreadedTabuSearch.this.helpers.length; i++)\n/* 435 */ MultiThreadedTabuSearch.this.helpers[i].dispose();\n/* 436 */ MultiThreadedTabuSearch.this.helpers = null;\n/* */ \n/* */ \n/* 439 */ MultiThreadedTabuSearch.this.fireTabuSearchStopped();\n/* 440 */ this.val$This.notifyAll(); } } }, \"MultiThreadedTabuSearch-Master\");\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 448 */ t.setPriority(this.threadPriority);\n/* 449 */ t.start();\n/* */ }\n/* 451 */ notifyAll();\n/* */ }", "@Override\n protected void start() throws Exception {\n LogManager.getLogger().log(ALGORITHM, \"STARTING TABU SEARCH...\");\n LogManager.getLogger().log(ALGORITHM, \"MAX ITERATIONS: \" + maxIterations);\n LogManager.getLogger().log(ALGORITHM, \"MAX ITERATIONS WITHOUT IMPROVEMENTS: \" + maxIterationsWithoutImprovement);\n LogManager.getLogger().log(ALGORITHM, \"MIN QUEUE: \" + minQueue);\n LogManager.getLogger().log(ALGORITHM, \"RISING TREND: \" + risingTrend);\n LogManager.getLogger().log(ALGORITHM, \"MAX THREADS: \" + (maxThreads != null ? maxThreads : \"DEFAULT\"));\n LogManager.getLogger().log(ALGORITHM, \"MULTI-STARTS -> # OF GREEDY: \" + greedyMultiStart + \", # OF RANDOM: \" + randomMultiStart);\n\n String iSettings = null;\n if (intensificationLearning) {\n iSettings = \"LEARNING\";\n }\n if (localSearchIntensification) {\n if (iSettings != null) {\n iSettings += \", \";\n } else {\n iSettings = \"\";\n }\n iSettings += \"LOCAL SEARCH\";\n }\n if (pathRelinking) {\n if (iSettings != null) {\n iSettings += \", \";\n } else {\n iSettings = \"\";\n }\n iSettings += \"PATH RELINKING\";\n }\n if (intensification) {\n if (iSettings != null) {\n iSettings += \", \";\n } else {\n iSettings = \"\";\n }\n iSettings += \"INTENSIFICATION\";\n }\n if (iSettings == null) {\n iSettings = \"NONE\";\n }\n LogManager.getLogger().log(ALGORITHM, \"INTENSIFICATION SETTINGS: \" + iSettings);\n\n String dSettings = null;\n if (diversificationLearning) {\n dSettings = \"LEARNING\";\n }\n if (greedyMultiStart + randomMultiStart > 1) {\n if (dSettings != null) {\n dSettings += \", \";\n } else {\n dSettings = \"\";\n }\n dSettings += \"MULTI-STARTS\";\n }\n if (moveDiversification) {\n if (dSettings != null) {\n dSettings += \", \";\n } else {\n dSettings = \"\";\n }\n dSettings += \"MOVE DIVERSIFY\";\n }\n if (diversification) {\n if (dSettings != null) {\n dSettings += \", \";\n } else {\n dSettings = \"\";\n }\n dSettings += \"DIVERSIFICATION\";\n }\n if (dSettings == null) {\n dSettings = \"NONE\";\n }\n LogManager.getLogger().log(ALGORITHM, \"DIVERSIFICATION SETTINGS: \" + dSettings);\n\n LabeledUndirectedGraph<N, E> zero = getZeroGraph(minGraph);\n\n if (!zero.isConnected()) {\n minCost = zero.calculateCost() + 1;\n\n Queue<LabeledUndirectedGraph<N, E>> startsQueue = new LinkedList<>();\n for (int i = 0; i < greedyMultiStart; i++) {\n startsQueue.add(applyMVCA());\n }\n for (int i = 0; i < randomMultiStart; i++) {\n startsQueue.add(new LabeledUndirectedGraph<>(getSpanningTree(graph)));\n }\n int nthreads = Runtime.getRuntime().availableProcessors();\n if (maxThreads != null) {\n if (maxThreads <= 1) {\n nthreads = 1;\n } else {\n nthreads = maxThreads;\n }\n }\n nthreads = Integer.min(nthreads, (greedyMultiStart + randomMultiStart));\n\n LogManager.getLogger().log(ALGORITHM, \"THREADS: \" + nthreads);\n\n //PRINT PROGRESS\n prog = 0;\n tot = startsQueue.size();\n print(Ansi.ansi().cursor().save().erase().eraseLine().a(String.format(\"\\t%.2f%%\", prog)));\n\n if (nthreads == 1) {\n while (!startsQueue.isEmpty()) {\n compute(startsQueue.poll());\n\n //PRINT PROGRESS\n// prog = (tot - startsQueue.size()) * 100 / tot;\n prog = 100;\n print(Ansi.ansi().cursor().load().erase().eraseLine().a(String.format(\"\\t%.2f%%\", prog)));\n }\n } else {\n\n List<Thread> pool = new ArrayList<>();\n for (int i = 0; i < nthreads; i++) {\n Thread th = new Thread(() -> {\n try {\n boolean empty;\n synchronized (lock) {\n empty = startsQueue.isEmpty();\n }\n\n while (!empty) {\n LabeledUndirectedGraph<N, E> g;\n\n synchronized (lock) {\n g = startsQueue.poll();\n }\n compute(g);\n synchronized (lock) {\n empty = startsQueue.isEmpty();\n\n //PRINT PROGRESS\n// prog = (tot - startsQueue.size()) * 100 / tot;\n prog++;\n double _prog = this.prog * 100 / tot;\n print(Ansi.ansi().cursor().load().erase().eraseLine().a(String.format(\"\\t%.2f%%\", _prog)));\n }\n }\n } catch (Exception ex) {\n throw new RuntimeException(ex);\n }\n });\n th.setDaemon(false);\n th.setName(\"TabuSearch_Calc_\" + i);\n th.setPriority(Thread.MAX_PRIORITY);\n th.start();\n pool.add(th);\n }\n for (Thread th : pool) {\n th.join();\n }\n }\n\n println();\n\n minGraphs.forEach(_min -> {\n if (_min.calculateCost() < minGraph.calculateCost()) {\n minGraph = _min;\n }\n });\n\n LogManager.getLogger().log(ALGORITHM, \"END TABU SEARCH.\");\n LogManager.getLogger().log(ALGORITHM, \"BEST AT THIS POINT: \" + minGraph.calculateCost());\n\n if (pathRelinking) {\n LogManager.getLogger().log(ALGORITHM, \"STARTING PATH RELINKING...\");\n\n pathRelinking(pathRelinkingAlt);\n\n println();\n LogManager.getLogger().log(ALGORITHM, \"BEST AT THIS POINT: \" + minGraph.calculateCost());\n }\n } else {\n minGraph = zero;\n }\n\n LogManager.getLogger().log(ALGORITHM, \"END.\");\n }", "public void pathwayScan() {\n ScanPathwayBasedAssocSwingWorker worker = new ScanPathwayBasedAssocSwingWorker();\n // buildTask = buildTask.create(buildingThread); //the task is not started yet\n buildTask = RP.create(worker); //the task is not started yet\n buildTask.schedule(0); //start the task\n }", "@Override\n public void run() {\n \n amIActive = true;\n String inputFile;\n String outputFile;\n double x, y, z;\n int progress;\n int i, n;\n double[][] vertices = null;\n int pointNum = 0;\n int numPoints = 0;\n int numFeatures;\n int oneHundredthTotal;\n double neighbourhoodRadius;\n ShapeType shapeType, outputShapeType;\n List<KdTree.Entry<Double>> results;\n double[] entry;\n double nodeGapThreshold = 5; //0.65;\n int[] parts = {0};\n \n if (args.length <= 0) {\n showFeedback(\"Plugin parameters have not been set.\");\n return;\n }\n \n inputFile = args[0];\n outputFile = args[1];\n neighbourhoodRadius = Double.parseDouble(args[2]);\n nodeGapThreshold = Integer.parseInt(args[3]);\n \n // check to see that the inputHeader and outputHeader are not null.\n if ((inputFile == null) || (outputFile == null)) {\n showFeedback(\"One or more of the input parameters have not been set properly.\");\n return;\n }\n\n try {\n // set up the input shapefile.\n ShapeFile input = new ShapeFile(inputFile);\n shapeType = input.getShapeType();\n \n // make sure that the shapetype is either a flavour of polyline or polygon.\n if (shapeType.getBaseType() != ShapeType.POLYGON && shapeType.getBaseType() != ShapeType.POLYLINE) {\n showFeedback(\"This tool only works with shapefiles of a polygon or line base shape type.\");\n return;\n }\n \n // set up the output files of the shapefile and the dbf\n outputShapeType = ShapeType.POLYLINE;\n \n //int numOutputFields = input.attributeTable.getFieldCount() + 1;\n //int numInputFields = input.attributeTable.getFieldCount();\n //DBFField[] inputFields = input.attributeTable.getAllFields();\n DBFField[] fields = new DBFField[1];\n \n fields[0] = new DBFField();\n fields[0].setName(\"VALUE\");\n fields[0].setDataType(DBFField.DBFDataType.NUMERIC);\n fields[0].setFieldLength(10);\n fields[0].setDecimalCount(4);\n \n ShapeFile output = new ShapeFile(outputFile, outputShapeType, fields);\n \n \n// DBFField[] fieldsPnts = new DBFField[3];\n// \n// fieldsPnts[0] = new DBFField();\n// fieldsPnts[0].setName(\"VALUE\");\n// fieldsPnts[0].setDataType(DBFField.FIELD_TYPE_N);\n// fieldsPnts[0].setFieldLength(10);\n// fieldsPnts[0].setDecimalCount(4);\n// \n// fieldsPnts[1] = new DBFField();\n// fieldsPnts[1].setName(\"NODE_GAP\");\n// fieldsPnts[1].setDataType(DBFField.FIELD_TYPE_N);\n// fieldsPnts[1].setFieldLength(10);\n// fieldsPnts[1].setDecimalCount(0);\n// \n// fieldsPnts[2] = new DBFField();\n// fieldsPnts[2].setName(\"RANGE\");\n// fieldsPnts[2].setDataType(DBFField.FIELD_TYPE_N);\n// fieldsPnts[2].setFieldLength(10);\n// fieldsPnts[2].setDecimalCount(0);\n// \n// ShapeFile outputPnts = new ShapeFile(outputFile.replace(\".shp\", \"_pnts.shp\"), ShapeType.POINT, fieldsPnts);\n \n numFeatures = input.getNumberOfRecords();\n oneHundredthTotal = numFeatures / 100;\n //featureNum = 0;\n n = 0;\n progress = 0;\n int recordNum;\n \n for (ShapeFileRecord record : input.records) {\n recordNum = record.getRecordNumber();\n// Object[] attData = input.attributeTable.getRecord(recordNum - 1);\n vertices = record.getGeometry().getPoints();\n numPoints = vertices.length;\n KdTree<Double> pointsTree = new KdTree.SqrEuclid(2, new Integer(numPoints));\n for (i = 0; i < numPoints; i++) {\n x = vertices[i][0];\n y = vertices[i][1];\n entry = new double[]{y, x};\n z = i;\n pointsTree.addPoint(entry, z);\n }\n \n ArrayList<ShapefilePoint> pnts = new ArrayList<>();\n int lineLength = 0;\n \n for (i = 0; i < numPoints; i++) {\n x = vertices[i][0];\n y = vertices[i][1];\n entry = new double[]{y, x};\n \n results = pointsTree.neighborsWithinRange(entry, neighbourhoodRadius);\n \n double maxVal = 0;\n double minVal = numPoints;\n double range = 0;\n double j;\n \n double[] values = new double[results.size()];\n int k = 0;\n for (KdTree.Entry entry2 : results) {\n j = (double)entry2.value;\n values[k] = j;\n k++;\n if (j > maxVal) {\n maxVal = j;\n }\n if (j < minVal) {\n minVal = j;\n }\n }\n range = maxVal - minVal;\n \n if (range == numPoints - 1) {\n maxVal = 0;\n minVal = numPoints;\n values = new double[results.size()];\n k = 0;\n for (KdTree.Entry entry2 : results) {\n j = (double) entry2.value;\n if (j < numPoints / 2) {\n j += numPoints;\n }\n if (j > maxVal) {\n maxVal = j;\n }\n if (j < minVal) {\n minVal = j;\n }\n values[k] = j;\n k++;\n }\n range = maxVal - minVal;\n }\n \n // find the largest gap between node indices within the neighbourhood\n Arrays.sort(values);\n double maxGap = 0;\n for (int a = 1; a < k; a++) {\n if (values[a] - values[a - 1] > maxGap) {\n maxGap = values[a] - values[a - 1];\n }\n }\n \n// if (maxGap <= 1) {\n if (maxGap >= nodeGapThreshold) {\n pnts.add(new ShapefilePoint(x, y));\n lineLength++;\n if (i == numPoints - 1) {\n PointsList pl = new PointsList(pnts);\n whitebox.geospatialfiles.shapefile.PolyLine wbPoly = new whitebox.geospatialfiles.shapefile.PolyLine(parts, pl.getPointsArray());\n Object[] rowData = new Object[1];\n rowData[0] = new Double(recordNum);\n output.addRecord(wbPoly, rowData);\n pnts.clear();\n lineLength = 0;\n }\n } else if (lineLength > 1) {\n// k = (int)maxVal - 1;\n// if (k >= numPoints) {\n// k -= numPoints;\n// }\n// pnts.add(new ShapefilePoint(vertices[k][0], vertices[k][1]));\n PointsList pl = new PointsList(pnts);\n whitebox.geospatialfiles.shapefile.PolyLine wbPoly = new whitebox.geospatialfiles.shapefile.PolyLine(parts, pl.getPointsArray());\n Object[] rowData = new Object[1];\n rowData[0] = new Double(recordNum);\n output.addRecord(wbPoly, rowData);\n pnts.clear();\n lineLength = 0;\n// i = (int)maxVal;\n// pnts.add(new ShapefilePoint(vertices[i][0], vertices[i][1]));\n// lineLength++;\n } else {\n pnts.clear();\n lineLength = 0;\n }\n// } else if (lineLength > 1) {\n// PointsList pl = new PointsList(pnts);\n// whitebox.geospatialfiles.shapefile.PolyLine wbPoly = new whitebox.geospatialfiles.shapefile.PolyLine(parts, pl.getPointsArray());\n// Object[] rowData = new Object[1];\n// rowData[0] = new Double(recordNum);\n// output.addRecord(wbPoly, rowData);\n// pnts.clear();\n// lineLength = 0;\n// } else if (lineLength == 1) {\n// pnts.clear();\n// lineLength = 0;\n// }\n \n// if (maxGap > 1) {\n// if (maxGap >= nodeGapThreshold) {\n// pnts.add(new ShapefilePoint(x, y));\n// lineLength++;\n// } else if (lineLength > 1) {\n// PointsList pl = new PointsList(pnts);\n// whitebox.geospatialfiles.shapefile.PolyLine wbPoly = new whitebox.geospatialfiles.shapefile.PolyLine(parts, pl.getPointsArray());\n// Object[] rowData = new Object[1];\n// rowData[0] = new Double(recordNum);\n// output.addRecord(wbPoly, rowData);\n// pnts.clear();\n// lineLength = 0;\n// } else {\n// pnts.clear();\n// lineLength = 0;\n// }\n// } else if (lineLength > 1) {\n// PointsList pl = new PointsList(pnts);\n// whitebox.geospatialfiles.shapefile.PolyLine wbPoly = new whitebox.geospatialfiles.shapefile.PolyLine(parts, pl.getPointsArray());\n// Object[] rowData = new Object[1];\n// rowData[0] = new Double(recordNum);\n// output.addRecord(wbPoly, rowData);\n// pnts.clear();\n// lineLength = 0;\n// } else if (lineLength == 1) {\n// pnts.clear();\n// lineLength = 0;\n// }\n \n }\n \n n++;\n if (n >= oneHundredthTotal) {\n n = 0;\n if (cancelOp) {\n cancelOperation();\n return;\n }\n progress++;\n updateProgress(progress);\n }\n }\n \n output.write();\n// outputPnts.write();\n \n // returning a header file string displays the image.\n updateProgress(\"Displaying vector: \", 0);\n returnData(outputFile);\n \n \n } catch (OutOfMemoryError oe) {\n myHost.showFeedback(\"An out-of-memory error has occurred during operation.\");\n } catch (Exception e) {\n myHost.showFeedback(\"An error has occurred during operation. See log file for details.\");\n myHost.logException(\"Error in \" + getDescriptiveName(), e);\n } finally {\n updateProgress(\"Progress: \", 0);\n // tells the main application that this process is completed.\n amIActive = false;\n myHost.pluginComplete();\n }\n \n }", "@Override\n\tpublic void search() {\n\t\tpq = new IndexMinPQ<>(graph.getNumberOfStations());\n\t\tpq.insert(startIndex, distTo[startIndex]);\n\t\twhile (!pq.isEmpty()) {\n\t\t\tint v = pq.delMin();\n\t\t\tnodesVisited.add(graph.getStation(v));\n\t\t\tnodesVisitedAmount++;\n\t\t\tfor (Integer vertex : graph.getAdjacentVertices(v)) {\t\n\t\t\t\trelax(graph.getConnection(v, vertex));\n\t\t\t}\n\t\t}\n\t\tpathWeight = distTo[endIndex];\n\t\tpathTo(endIndex);\n\t}", "public static void main(String[] args) throws ParallelException {\r\n\t\tif (args.length < 2) {\r\n\t\t\tSystem.err.println(\"usage: java -cp <classpath> <graphfile> <k> \"+\r\n\t\t\t\t \"[numinitnodes] [numiterations] \"+\r\n\t\t\t\t \"[do_local_search] [num_dls_threads] \"+\r\n\t\t\t\t \"[max_allowed_time_millis] [use_N2RXP_4_DLS]\");\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n try {\r\n long st = System.currentTimeMillis();\r\n Graph g = DataMgr.readGraphFromFile2(args[0]);\r\n\t\t\tint k = Integer.parseInt(args[1]);\r\n double best = 0;\r\n boolean do_local_search = false;\r\n\t\t\tboolean use_N2RXP_4_ls = false;\r\n int num_threads = 1;\r\n\t\t\tlong max_time_ms = Long.MAX_VALUE; // indicates the max allowed time to run (in millis)\r\n GRASPPacker p = new GRASPPacker(g,k);\r\n Set init=null;\r\n int num_iters = 1;\r\n if (args.length>2) {\r\n int numinit = 0;\r\n try {\r\n numinit = Integer.parseInt(args[2]);\r\n if (numinit<0) numinit=0; // ignore wrong option value and continue\r\n }\r\n catch (ClassCastException e) {\r\n e.printStackTrace(); // ignore wrong option value and continue\r\n }\r\n Graph gp = p._g;\r\n int gsz = gp.getNumNodes();\r\n init = k==2 ? new TreeSet(new NodeComparator2()) : new TreeSet(new NodeComparator4());\r\n\t\t\t\tRandom rnd = RndUtil.getInstance().getRandom();\r\n for (int i=0; i<numinit; i++) {\r\n int nid = rnd.nextInt(gsz);\r\n Node n = gp.getNodeUnsynchronized(nid);\r\n init.add(n);\r\n }\r\n if (args.length>3) {\r\n try {\r\n num_iters = Integer.parseInt(args[3]);\r\n if (num_iters<0) num_iters = 0;\r\n }\r\n catch (ClassCastException e) {\r\n e.printStackTrace(); // ignore wrong option value and continue\r\n }\r\n if (args.length>4) {\r\n do_local_search = \"true\".equals(args[4]);\r\n if (args.length>5) {\r\n try {\r\n num_threads = Integer.parseInt(args[5]);\r\n\t\t\t\t\t\t\t\tif (args.length>6) {\r\n\t\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\t\tmax_time_ms = Long.parseLong(args[6]);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tcatch (Exception e) {\r\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (args.length>7)\r\n\t\t\t\t\t\t\t\t\t\tuse_N2RXP_4_ls = \"true\".equals(args[7]);\r\n\t\t\t\t\t\t\t\t}\r\n }\r\n catch (Exception e) {\r\n e.printStackTrace(); // ignore wrong option and continue\r\n }\r\n }\r\n }\r\n }\r\n }\r\n Set best_found = null;\r\n\t\t\tif (max_time_ms<0) // -1 or any negative value indicates +Inf\r\n\t\t\t\tmax_time_ms = Long.MAX_VALUE;\r\n\t\t\tboolean cont = true;\r\n\t\t\tTimerThread t = new TimerThread(max_time_ms, cont);\r\n\t\t\tt.start();\r\n for (int i=0; i<num_iters && t.doContinue(); i++) {\r\n\t\t\t\tSystem.err.println(\"GRASPPacker: starting iteration \"+i);\r\n Set s = p.pack(init); // Set<Node>\r\n if (do_local_search) {\r\n // convert s to Set<Integer>\r\n Set nodeids = new IntSet();\r\n Iterator iter = s.iterator();\r\n while (iter.hasNext()) {\r\n Node n = (Node) iter.next();\r\n Integer nid = new Integer(n.getId());\r\n nodeids.add(nid);\r\n }\r\n // now do the local search\r\n DLS dls = new DLS();\r\n AllChromosomeMakerIntf movesmaker;\r\n\t\t\t\t\tif (use_N2RXP_4_ls) movesmaker = new IntSetN2RXPGraphAllMovesMaker(k);\r\n\t\t\t\t\telse movesmaker = new IntSetN1RXPFirstImprovingGraphAllMovesMakerMT(k);\r\n IntSetNeighborhoodFilterIntf filter = new GRASPPackerIntSetNbrhoodFilter2(k);\r\n //FunctionIntf f = k==2 ? new SetSizeEvalFunction() : new SetWeightEvalFunction(g);\r\n FunctionIntf f;\r\n if (k==2) f = new SetSizeEvalFunction();\r\n else f = new SetWeightEvalFunction(g);\r\n HashMap dlsparams = new HashMap();\r\n dlsparams.put(\"dls.movesmaker\",movesmaker);\r\n dlsparams.put(\"dls.x0\", nodeids);\r\n dlsparams.put(\"dls.numthreads\", new Integer(num_threads));\r\n dlsparams.put(\"dls.maxiters\", new Integer(10)); // itc: HERE rm asap\r\n dlsparams.put(\"dls.graph\", g);\r\n dlsparams.put(\"dls.intsetneighborhoodfilter\", filter);\r\n //dlsparams.put(\"dls.createsetsperlevellimit\", new Integer(100));\r\n dls.setParams(dlsparams);\r\n PairObjDouble pod = dls.minimize(f);\r\n Set sn = (Set) pod.getArg();\r\n if (sn!=null) {\r\n s.clear();\r\n Iterator sniter = sn.iterator();\r\n while (sniter.hasNext()) {\r\n Integer id = (Integer) sniter.next();\r\n Node n = g.getNode(id.intValue());\r\n s.add(n);\r\n }\r\n }\r\n }\r\n int iter_best = s.size();\r\n double iter_w_best = 0.0;\r\n Iterator it = s.iterator();\r\n while (it.hasNext()) {\r\n Node n = (Node) it.next();\r\n Double nwD = n.getWeightValueUnsynchronized(\"value\"); // used to be n.getWeightValue(\"value\");\r\n double nw = nwD==null ? 1.0 : nwD.doubleValue();\r\n iter_w_best += nw;\r\n }\r\n System.err.println(\"GRASPPacker.main(): iter: \"+i+\": soln size found=\"+iter_best+\" soln weight=\"+iter_w_best);\r\n if (iter_w_best > best) {\r\n best_found = s;\r\n best = iter_w_best;\r\n }\r\n }\r\n long tot = System.currentTimeMillis()-st;\r\n System.out.println(\"Final Best soln found=\"+best+\" total time=\"+tot+\" (msecs)\");\r\n if (p.isFeasible(best_found)) {\r\n System.out.println(\"feasible soln: \"+printNodes(best_found));\r\n }\r\n else System.err.println(\"infeasible soln\");\r\n // write solution to file\r\n PrintWriter pw = new PrintWriter(new FileWriter(\"sol.out\"));\r\n pw.println(best);\r\n Iterator it = best_found.iterator();\r\n while (it.hasNext()) {\r\n Node n = (Node) it.next();\r\n pw.println((n.getId()+1));\r\n }\r\n pw.flush();\r\n pw.close();\r\n }\r\n catch (Exception e) {\r\n e.printStackTrace();\r\n System.exit(-1);\r\n }\r\n }", "static void start() throws IOException\n {\n cms_list = create_cms( num_cms );\n\n\n // 5.do until terminate\n\t\tfor( int iter=0; iter<num_iter; iter++ )\n\t\t{\n\t\t\tstart_t = System.currentTimeMillis();\n\n\t\t\tcms_sol_rdd = spark_selection(); //selction \n\t\t cms_list = new ArrayList( spark_transition_fitness( cms_sol_rdd ));\n\t\t\treduce_t = System.currentTimeMillis();\n\t\t for( int i=0; i<num_cms; i++ )\n if( best_objectvalue > cms_list.get(i)._2() )\n best_objectvalue = cms_list.get(i)._2();\n\n\t\t\tend_t = System.currentTimeMillis();\n\t\t\tprint_best( iter + 1 ); //print\n\t\t}\n }", "private void run(){\r\n\t\tArrayList<Integer> parcours = new ArrayList<Integer>();\r\n\t\tArrayList<Integer> sommets = new ArrayList<Integer>();\r\n\t\t\r\n\t\t//initialisation de la liste des sommets\r\n\t\tfor (int i=1; i<super.g.getDim();i++) {\r\n\t\t\tsommets.add(i);\r\n\t\t}\r\n\r\n\t\t//g�n�ration d'un parcours initial\r\n\t\tAlgo2opt algo = new Algo2opt(super.g);\r\n\t\tsuper.parcoursMin = algo.parcoursMin;\r\n\t\tsuper.dist = algo.dist;\r\n\r\n\t\tcheminMin(parcours,sommets,super.g.getDim(), 0);\r\n\t}", "private void goSearch() {\n\t\tThread t = new Thread(this);\n\t\tt.start();\n\t}", "void DFSearch(BFSNode n){\n\t\tn.discovered=true;\r\n\t\tSystem.out.print(\" discovered\");\r\n\t\tn.preProcessNode();\r\n\t\tfor( Integer edg: n.edges){\r\n\t\t\tn.processEdge(edg);\r\n\t\t\tif(!nodes[edg].discovered){\r\n\t\t\t\tnodes[edg].parent = n; \r\n\t\t\t\tnodes[edg].depth = n.depth +1;\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.print(\"{new track with parent [\"+ nodes[edg].parent.value+\"] }\");\r\n\t\t\t\tDFSearch(nodes[edg]);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tif(nodes[edg] != n.parent){\r\n\t\t\t\t\tSystem.out.print(\"{LOOP}\");\r\n\t\t\t\t\tif(nodes[edg].depth < n.reachableLimit.depth){\r\n\t\t\t\t\t\tn.reachableLimit = nodes[edg];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.print(\"{second visit}\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"back from node [ \"+n.value +\" ]\");\r\n\t\tn.postProcessNode();\r\n\t\tn.processed = true;\r\n\t\t\r\n\t}", "@Override\n public void handleGreedySearchHasCompleted(State greedyState) {\n // set up the results from the greedy search to be used for the optimal search\n List<TaskDependencyNode> freeTasks = DependencyGraph.getGraph().getFreeTasks(null);\n RecursionStore.processPotentialBestState(greedyState);\n RecursionStore.pushStateTreeQueue(new StateTreeBranch(generateInitialState(RecursionStore.getBestStateHeuristic()), freeTasks, 0));\n\n PilotRecursiveWorker pilot = new PilotRecursiveWorker(_argumentsParser.getBoostMultiplier(), this);\n _pool.submit(pilot);\n }", "@Override\n\tpublic void run() {\n\t\tMap<Integer, Location> possibleStartLocations = possibleStartLocations();\n\n\t\tfor(Entry<Integer, Location> startLocation : possibleStartLocations.entrySet()) {\n\t\t\t// Add startLocation to visited locations\n\t\t\tMap<Integer, Location> visitedLocations = new HashMap<Integer, Location>();\n\t\t\tvisitedLocations.put(startLocation.getKey(), startLocation.getValue());\n\t\t\t\n\t\t\t// Add startLocation to visited order\n\t\t\tList<Location> visitedOrder = new LinkedList<Location>();\n\t\t\tvisitedOrder.add(startLocation.getValue());\n\t\t\t\n\t\t\t// Start the recursion for the following start node\n\t\t\tfindSolution(startLocation, startLocation, visitedLocations, visitedOrder, 0);\n\t\t}\n\t}", "public static void start(){\n mngr.getStpWds();\n mngr.getDocuments();\n mngr.calculateWeights();\n mngr.getInvertedIndex();\n mngr.getClusters();\n mngr.getCategories();\n mngr.getUserProfiles();\n mngr.makeDocTermMatrix();\n\n }", "@Override\n\t\t\tpublic void run() \n\t\t\t{\n\t\t\t\tif(!(mazeCollection.containsKey(paramArray[0])))\n\t\t\t\t{\n\t\t\t\t\tc.passError(\"Maze doesn't exist\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t//if solution for this maze exists\n\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0])))\n\t\t\t\t{\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t*/\n\t\t\t\t\n\t\t\t\tif(paramArray[1].toString().equals(\"bfs\"))\n\t\t\t\t{\n\t\t\t\t\tMazeAdapter ms=new MazeAdapter(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\n\t\t\t\t\tSearcher<Position> bfs=new BFS<Position>();\n\t\t\t\t\tSolution<Position> sol=bfs.search(ms);\n\t\t\t\t\t\n\t\t\t\t\t//check if solution for the maze already exists, if so, replace it with the new one\n\t\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0]))) {\n\t\t\t\t\t\tmazeSolutions.remove(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if(paramArray[1].toString().equals(\"dfs\"))\n\t\t\t\t{\n\t\t\t\t\tMazeAdapter ms=new MazeAdapter(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\n\t\t\t\t\tSearcher<Position> dfs=new DFS<Position>();\n\t\t\t\t\tSolution<Position> sol=dfs.search(ms);\n\t\t\t\t\t\n\t\t\t\t\t//check if solution for the maze already exists, if so, replace it with the new one\n\t\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0]))) {\n\t\t\t\t\t\tmazeSolutions.remove(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tc.passError(\"Invalid algorithm\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void run() {\n\t\tMap<Integer, Integer> roots = new TreeMap<Integer, Integer>();\n\t\t\n\t\tEdge[] edges = new Edge[this.edges.length];\n\t\tint n, weight, relevantEdges, root, lowerBound = 0;\n\t\n\t\t// Sort edges by weight.\n\t\tquickSort(0, this.edges.length - 1);\n\t\n\t\t// Compute initial lower bound (best k - 1 edges).\n\t\t// Choosing the cheapest k - 1 edges is not very intelligent. There is no guarantee\n\t\t// that this subset of edges even induces a subgraph over the initial graph.\n\t\t// TODO: Find a better initial lower bound.\n\t\tfor (int i = 0; i < solution.length; i++) {\n\t\t\tlowerBound += this.edges[i].weight;\n\t\t}\n\t\n\t\t// Iterate over all nodes in the graph and run Prim's algorithm\n\t\t// until k - 1 edges are fixed.\n\t\t// As all induced subgraphs have k nodes and are connected according to Prim, they\n\t\t// are candidate solutions and thus submitted.\n\t\tfor (root = 0; root < taken.length; root++) {\n\t\t\ttaken = new boolean[taken.length];\n\t\t\tSystem.arraycopy(this.edges, 0, edges, 0, this.edges.length);\n\n\t\t\ttaken[root] = true;\n\t\t\tn = 0;\n\t\t\tweight = 0;\n\t\t\trelevantEdges = this.edges.length;\n\n\t\t\twhile (n < solution.length) { \n\t\t\t\tfor (int i = 0; i < relevantEdges; i++) {\n\t\t\t\t\t// XOR to check if connected and no circle.\n\t\t\t\t\tif (taken[edges[i].node1] ^ taken[edges[i].node2]) {\n\t\t\t\t\t\ttaken[taken[edges[i].node1] ? edges[i].node2 : edges[i].node1] = true;\n\t\t\t\t\t\tsolution[n++] = edges[i];\n\t\t\t\t\t\tweight += edges[i].weight;\n\t\t\t\t\t\tSystem.arraycopy(edges, i + 1, edges, i, --relevantEdges - i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t// Check for circle.\n\t\t\t\t\telse if (taken[edges[i].node1]) {\n\t\t\t\t\t\tSystem.arraycopy(edges, i + 1, edges, i, --relevantEdges - i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Sum up what we've just collected and submit this\n\t\t\t// solution to the framework.\n\t\t\tHashSet<Edge> set = new HashSet<Edge>(solution.length);\n\t\t\tfor (int i = 0; i < solution.length; i++) {\n\t\t\t\tset.add(solution[i]);\n\t\t\t}\n\t\t\tsetSolution(weight, set);\n\t\t\troots.put(weight, root);\n\t\t}\n\n\t\t// Now for the real business, let's do some Branch-and-Bound. Roots of \"k Prim Spanning Trees\"\n\t\t// are enumerated by weight to increase our chances to obtain the kMST earlier.\n\t\tfor (int item : roots.values()) {\n\t\t\ttaken = new boolean[taken.length];\n\t\t\tSystem.arraycopy(this.edges, 0, edges, 0, this.edges.length);\n\t\t\ttaken[item] = true;\n\t\t\tbranchAndBound(edges, solution.length, 0, lowerBound);\n\t\t}\n\t}", "protected void reportPointsInSearch( ) {\n\t\tfor( SearchProgressCallback progress : progressListeners )\n\t\t\tprogress.pointsInSearch(this, open_from_start.size() + (bidirectional ? open_from_goal.size() : 0), closed_from_start.size() + (bidirectional ? closed_from_goal.size() : 0));\n\t}", "@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n protected Integer compute() {\n if ((this.end - this.start) > 10) {\n int middle = (this.start + this.end) / 2;\n RecursiveTask<Integer> task1 = new SearchFJP<T>(\n this.array, start, middle, start, this.searchIndex\n );\n RecursiveTask<Integer> task2 = new SearchFJP<T>(\n this.array, middle, end, middle, this.searchIndex\n );\n task1.fork();\n task2.fork();\n return task1.join() + task2.join();\n } else {\n return serialSearch();\n }\n }", "public void BFS() {\n visitedCells = 1;\n\n // Initialize the vertices\n for (int j = 0; j < maze.getGrid().length; j++) {\n for (int k = 0; k < maze.getGrid().length; k++) {\n Cell cell = maze.getGrid()[j][k];\n cell.setColor(\"WHITE\");\n cell.setDistance(0);\n cell.setParent(null);\n }\n }\n\n Cell sourceCell = maze.getGrid()[0][0];\n Cell neighbor = null;\n Cell currentCell;\n int distance = 0;\n\n // Initialize the source node\n sourceCell.setColor(\"GREY\");\n sourceCell.setDistance(0);\n sourceCell.setParent(null);\n\n queue.add(sourceCell);\n\n // Visits each cell until the queue is empty\n while (!queue.isEmpty()) {\n currentCell = queue.remove();\n\n for (int i = 0; i < currentCell.mazeNeighbors.size(); i++) {\n neighbor = currentCell.mazeNeighbors.get(i);\n\n // Stop the search if you reach the final cell\n if (neighbor.x == r - 1 && neighbor.y == r - 1) {\n distance++;\n if (distance == 10)\n distance = 0;\n neighbor.setDistance(distance);\n neighbor.setParent(currentCell);\n neighbor.visited = true;\n visitedCells++;\n break;\n }\n\n // Checks each neighbor and adds it to the queue if its color is white\n if (neighbor.getColor().equalsIgnoreCase(\"WHITE\")) {\n distance++;\n if (distance == 10)\n distance = 0;\n neighbor.setColor(\"GREY\");\n neighbor.setDistance(distance);\n neighbor.setParent(currentCell);\n neighbor.visited = true;\n queue.add(neighbor);\n visitedCells++;\n }\n }\n // Stop the search if you reach the final cell\n if (neighbor.x == r - 1 && neighbor.y == r - 1)\n break;\n\n currentCell.setColor(\"BLACK\");\n }\n }", "private void startSearch() {\n for (int i = 0; i < this.threadsSaerch.length; i++) {\n this.threadsSaerch[i] = this.threads.getSearchThread();\n this.threadsSaerch[i].start();\n }\n }", "public void bft() {\r\n\t\tHashMap<String, Boolean> processed = new HashMap<>();\r\n\t\tLinkedList<Pair> queue = new LinkedList<>();\r\n\r\n\t\tArrayList<String> vnames = new ArrayList<>(vces.keySet());\r\n\t\tfor (String vname : vnames) {\r\n\t\t\tif (processed.containsKey(vname)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tPair rootpair = new Pair(vname, vname);\r\n\t\t\tqueue.addLast(rootpair);\r\n\t\t\twhile (queue.size() != 0) {\r\n\t\t\t\t// 1. removeFirst\r\n\t\t\t\tPair rp = queue.removeFirst();\r\n\r\n\t\t\t\t// 2. check if processed, mark if not\r\n\t\t\t\tif (processed.containsKey(rp.vname)) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tprocessed.put(rp.vname, true);\r\n\r\n\t\t\t\t// 3. Check, if an edge is found\r\n\t\t\t\tSystem.out.println(rp.vname + \" via \" + rp.psf);\r\n\r\n\t\t\t\t// 4. Add the unprocessed nbrs back\r\n\t\t\t\tArrayList<String> nbrnames = new ArrayList<>(rp.vtx.nbrs.keySet());\r\n\t\t\t\tfor (String nbrname : nbrnames) {\r\n\t\t\t\t\tif (!processed.containsKey(nbrname)) {\r\n\t\t\t\t\t\tPair np = new Pair(nbrname, rp.psf + nbrname);\r\n\t\t\t\t\t\tqueue.addLast(np);\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}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "public void startCompute();", "private void scanDepth(Rectangle field) throws InterruptedException {\n\t\tdepthSearchAborted = true;\n\t\tdouble[] coordinate = plotSheet.toCoordinatePoint(0, 0, field);\n\t\tdouble f_xy = function.f(coordinate[0], coordinate[1]);\n\t\tthis.f_xHighest = f_xy;\n\t\tthis.f_xLowest \t= f_xy;\n\t\t\n\t\tint length = (field.x + field.width-plotSheet.getFrameThickness()) - (field.x+plotSheet.getFrameThickness());\n\t\tThread[] threads = new Thread[threadCnt];\n\t\t\n\t\tint stepSize = length/threadCnt;\n\t\t\n\t\tDepthSearcher[] dSearcher = new DepthSearcher[threadCnt];\n\t\t\n\t\tint leftLim = field.x+plotSheet.getFrameThickness();\n\t\tint rightLim = (field.x + plotSheet.getFrameThickness()+ (stepSize));\n\t\tdSearcher[0] = new DepthSearcher(field,leftLim ,rightLim );\n\t\tthreads[0] = new Thread(dSearcher[0]);\n\t\tfor(int i = 1; i< threads.length-1; i++){\n\t\t\tdSearcher[i] = new DepthSearcher(field, field.x + plotSheet.getFrameThickness() + stepSize*i +1, field.x+ plotSheet.getFrameThickness() + stepSize*(i+1));\n\t\t\tthreads[i] = new Thread(dSearcher[i]);\n\t\t}\n\t\tif(threadCnt>1){\n\t\t\tdSearcher[threadCnt-1] = new DepthSearcher(field, field.x + plotSheet.getFrameThickness() + stepSize*(threadCnt-1) +1, field.x+ plotSheet.getFrameThickness() + length);\n\t\t\tthreads[threadCnt-1] = new Thread(dSearcher[threadCnt-1]);\n\t\t}\n\t\tfor(Thread thread : threads) {\n\t\t\tthread.start();\n\t\t}\n\t\t\n\t\tfor(Thread thread : threads) {\n\t\t\tthread.join();\n\t\t}\n\t\t\n\t\tfor(DepthSearcher searcher : dSearcher ){\n\t\t\tif(searcher.getF_xHighest() > this.f_xHighest)\n\t\t\t\tthis.f_xHighest = searcher.getF_xHighest();\n\t\t\tif(searcher.getF_xLowest() < this.f_xLowest)\n\t\t\t\tthis.f_xLowest = searcher.getF_xLowest();\n\t\t}\n\t\t\n\t\t//System.err.println(this.f_xHighest + \" : \" + this.f_xLowest);\n\t\t//create borders based on heigth gradient\n\t\tborders = new double[this.heightRegionCount];\n\t\tdouble steps = (this.f_xHighest - this.f_xLowest)/this.heightRegionCount;\n\t\t\n\t\tfor(int i = 0; i < borders.length ; i++) {\n\t\t\tborders[i] = this.f_xLowest + (this.f_xHighest - this.f_xLowest)*Math.pow((1.0/this.heightRegionCount)*(i+1.0), gradientCurveFactor);\n\t\t\t//System.err.println(borders[i]+\" \" + (this.f_xHighest - this.f_xLowest)*Math.pow((1.0/this.heightRegionCount)*(i+1.0), gradientCurveFactor));\n\t\t}\n\t\tif(!this.abortPaint){\n\t\t\tdepthSearchAborted = false;\n\t\t\tdepthScanningIsFinished = true;\n\t\t}\n\t}", "public void run()\n {\n //while (still executing jobs on grid)\n // attempt to sample data\n while (processingJobs)\n {\n //if (not paused)\n // sample data\n if (!paused)\n {\n //get the storage element object appropriate for this thread\n int ind = nodeChoice.indexOf('e');\n String siteno = nodeChoice.substring(ind+1);\n int siteID = Integer.parseInt(siteno);\n site = _gc.findGridSiteByID(siteID);\n StorageElement se = site.getSE();\n //sample time\n long timeMillis = time.getRunningTimeMillis();\n timeSecs = (int)(timeMillis/1000);\n //sample capacity\n capacity = se.getCapacity();\n float usage = (capacity - se.getAvailableSpace())/100;\n /* if (range values identical for last three readings)\n * remove intermediate statistic\n */\n if (usage==prevUsage&&usage==prevPrevUsage)\n { \n int itemCount = seriesSEUVTime.getItemCount();\n if (itemCount>2)\n seriesSEUVTime.remove(itemCount-1);\n } \n prevPrevUsage = prevUsage;\n prevUsage = usage;\n seriesSEUVTime.add(timeSecs, usage);\n pieDataset.setValue(\"Used Storage (GB)\", new Integer((int)((capacity - se.getAvailableSpace())/100)));\n pieDataset.setValue(\"Free Storage (GB)\", new Integer((int)((se.getAvailableSpace())/100)));\n //if (not saving all graphs)\n // try to refresh statistics\n if(!printingAll)\n this.sendDatatoGUI();\n }\n \n //delay next sample by short time\n try\n {\n if (paused)\n sleep(Integer.MAX_VALUE);\n else\n sleep(samplingDelay);\n }\n catch (InterruptedException e)\n {\n //in here if user is wishing to see chart from this object\n this.sendDatatoGUI();\n } \n }\n \n //out here only when all jobs have finished.\n //thread shall sleep for long time but can be \n //re-awakened if user wants to see statistics \n //from this object when run is complete.\n while (true)\n {\n try\n {\n sleep(Integer.MAX_VALUE);\n }\n catch (InterruptedException e)\n {\n //in here if user is wishing to see chart from this object\n this.sendDatatoGUI();\n }\n }\n }", "public void initialSearch() {\n Kinematics k = getTrustedRobotKinematics();\n //logger.info(\"Kinematics position is \" + k.getPosition());\n\n // Set the default planner.\n setPlanner(PlannerType.TRAPEZOIDAL);\n\n // For gateway no zones were defined yet.\n m_robot.setCheckZones(false);\n\n // Do a preliminary trajectory in a lawnmower pattern.\n Point startPoint = k.getPosition();\n runTrajectory(startPoint, m_lawnmowerTrajectory);\n m_initialSearchDone = true;\n }", "public void searchNearFreePark() {\n\t\tthis.generalRequest(LocalRequestType.PARK);\n\t}", "public void BFS() {\r\n\t\tSet<Vertex> visited = new HashSet<Vertex>();\r\n\r\n\t\t// Create a queue for BFS\r\n\t\tQueue<Vertex> queue = new LinkedList<Vertex>();\r\n\r\n\t\tBFS(this.vertices[3], visited, queue); // BFS starting with 40\r\n\r\n\t\t// Call the helper function to print BFS traversal\r\n\t\t// starting from all vertices one by one\r\n\t\tfor (int i = 0; i < N; ++i)\r\n\t\t\tif (!visited.contains(this.vertices[i]))\r\n\t\t\t\tBFS(this.vertices[i], visited, queue);\r\n\t}", "private void runAlgorithm(){\n fitness = new ArrayList<Double>(); \n \n int iter = 0;\n \n // While temperature higher than absolute temperature\n this.temperature = getCurrentTemperature(0);\n while(this.temperature > this.p_absoluteTemperature && iter < 100000){\n //while(!stopCriterionMet()){\n // Select next state\n //for(int i=0;i<20;i++){\n int count = 0;\n boolean selected = false;\n while(!selected){\n Problem.ProblemState next = nextState();\n if(isStateSelected(next)){\n selected = true;\n this.state = next;\n }\n \n count++;\n if(count == 10) break;\n }\n //}\n \n // Sample data\n double fvalue = this.state.getFitnessValue();\n this.fitness.add(new Double(fvalue));\n \n iter = iter + 1;\n \n // Lower temperature\n this.temperature = getCurrentTemperature(iter);\n }\n \n this.n_iter = iter;\n return;\n }", "private int BFS() {\n adjList.cleanNodeFields();\n\n //Queue for storing current shortest path\n Queue<Node<Integer, Integer>> q = new LinkedList<>();\n\n //Set source node value to 0\n q.add(adjList.getNode(startNode));\n q.peek().key = 0;\n q.peek().d = 0;\n q.peek().visited = true;\n\n //Helper variables\n LinkedList<Pair<Node<Integer, Integer>, Integer>> neighbors;//Array of pairs <neighborKey, edgeWeight>\n Node<Integer, Integer> neighbor, u;\n long speed = (long) (cellSideLength * 1.20);\n\n while (!isCancelled() && q.size() != 0) {\n u = q.poll();\n\n //Marks node as checked\n checkedNodesGC.fillRect((u.value >> 16) * cellSideLength + 0.5f,\n (u.value & 0x0000FFFF) * cellSideLength + 0.5f,\n (int) cellSideLength - 1, (int) cellSideLength - 1);\n\n //endNode found\n if (u.value == endNode) {\n //Draws shortest path\n Node<Integer, Integer> current = u, prev = u;\n\n while ((current = current.prev) != null) {\n shortestPathGC.strokeLine((prev.value >> 16) * cellSideLength + cellSideLength / 2,\n (prev.value & 0x0000FFFF) * cellSideLength + cellSideLength / 2,\n (current.value >> 16) * cellSideLength + cellSideLength / 2,\n (current.value & 0x0000FFFF) * cellSideLength + cellSideLength / 2);\n prev = current;\n }\n return u.d;\n }\n\n //Wait after checking node\n try {\n Thread.sleep(speed);\n } catch (InterruptedException interrupted) {\n if (isCancelled())\n break;\n }\n\n //Checking Neighbors\n neighbors = adjList.getNeighbors(u.value);\n for (Pair<Node<Integer, Integer>, Integer> neighborKeyValuePair : neighbors) {\n neighbor = neighborKeyValuePair.getKey();\n //Relaxation step\n //Checks if neighbor hasn't been checked, if so the assign the shortest path\n if (!neighbor.visited) {\n //Adds checked neighbor to queue\n neighbor.key = u.d + 1;\n neighbor.d = u.d + 1; //Assign shorter path found to neighbor\n neighbor.prev = u;\n neighbor.visited = true;\n q.add(neighbor);\n }\n }\n }\n return Integer.MAX_VALUE;\n }", "@Override\n public void run() {\n for (int i = start; i < end; i++) {\n Node node = nodes.get(i);\n //Filter out nearby crime\n List<Crime> relatedCrimes = crimes.parallelStream()\n .filter((crime) -> Math.abs(crime.getLongitude() - node.getLongitude()) < 0.04) //1.72 miles in coordinate representation\n .filter((crime -> Math.abs(crime.getLatitude() - node.getLatitude()) < 0.04))\n .collect(Collectors.toList());\n for (Crime crime : relatedCrimes) {\n GKDE.gaussianKDEAccumulate(crime, node);\n }\n GKDE.gaussianKDEResult(node, 10);\n }\n //release the latch\n latch.countDown();\n }", "private void breadthFirstSearch (int start, int[] visited, int[] parent){\r\n Queue< Integer > theQueue = new LinkedList< Integer >();\r\n boolean[] identified = new boolean[getNumV()];\r\n identified[start] = true;\r\n theQueue.offer(start);\r\n while (!theQueue.isEmpty()) {\r\n int current = theQueue.remove();\r\n visited[current] = 1; //ziyaret edilmis vertexler queuedan cikarilan vertexlerdir\r\n Iterator < Edge > itr = edgeIterator(current);\r\n while (itr.hasNext()) {\r\n Edge edge = itr.next();\r\n int neighbor = edge.getDest();\r\n if (!identified[neighbor]) {\r\n identified[neighbor] = true;\r\n theQueue.offer(neighbor);\r\n parent[neighbor] = current;\r\n }\r\n }\r\n }\r\n }", "public void runSJF() {\n\n //init\n ArrayList<Processus> localProcess = new ArrayList<>(); //Creation of a local list of process\n for (Processus cpy : listOfProcess) { //Copy the list of process in the local list\n localProcess.add(cpy);\n }\n int size = listOfProcess.size(); //variable used to save the initial size of the list of process\n\n Processus executedProc = null; //ExecutedProc is the current process that is being execute\n Processus tmpProc = localProcess.get(0); //The tmpProc is the previous process executed\n\n //Variable we need to calcul\n double occupancyRate = 0;\n double averageWaitingTime = 0;\n double averageReturnTime = 0;\n int currentTime = 0;\n int occupancyTime = 0;\n\n //beginning of the algo\n while (!localProcess.isEmpty()) { //As long as there are processes that are not done yet we keep going on\n\n //Determines the next process that will be executed\n for (Processus proc : localProcess) { //flow all remaining processes\n if (proc.getTime() <= currentTime) { //check if the currentTime of the process is below the currentTime\n if (localProcess.size() == 1) { //if there is only one process left\n executedProc = proc;\n } else if ((proc.getRessource(proc.getCurrentStep()) <= tmpProc.getRessource(tmpProc.getCurrentStep())) || (proc.getTime() < tmpProc.getTime())) {//shortest process selected\n executedProc = proc;\n tmpProc = proc;\n }\n }\n }\n\n //Check if the current process is assigned\n if (executedProc != null) {\n\n //execute the current ressource\n int tmpTime = 0;\n while (executedProc.getRessource(executedProc.getCurrentStep()) > tmpTime) { //As long as there is a resource\n for (Processus proc : localProcess) {\n if (proc.getTime() <= currentTime && !proc.equals(executedProc)) { //checking if there is another process waiting\n proc.setWaitingTime(1);\n }\n }\n currentTime++; //currentTime is updating at each loop\n occupancyTime++; //occupancyTime is updating at each loop\n tmpTime++;\n }\n\n executedProc.setCurrentStep(executedProc.getCurrentStep() + 1); //Update the currentStep to the next one (index of the lists of UC and inOut)\n\n if (executedProc.getCurrentStep() >= executedProc.getlistOfResource().size()) {//if it is the end of the process\n averageReturnTime += executedProc.getExecutedTime(); //update the average return time by adding the time that the process took\n localProcess.remove(executedProc); //remove the process from the list of process that needs to run\n }\n\n if (executedProc.getCurrentStep() <= executedProc.getListOfInOut().size()) { //If there is another inOut, it set the new time\n executedProc.setTime(executedProc.getInOut(executedProc.getCurrentStep() - 1) + currentTime);\n }\n\n executedProc = null;\n } else {\n currentTime++;\n }\n }\n //end of the algo\n\n //Calculation of the variables\n occupancyRate = ((double) occupancyTime / (double) currentTime) * 100;\n for (Processus proc : listOfProcess) {\n averageWaitingTime += proc.getWaitingTime();\n }\n averageWaitingTime = averageWaitingTime / size;\n averageReturnTime = averageReturnTime / size;\n\n //Updating the global variables\n currentAverageReturnTime = averageReturnTime;\n logger.trace(\"Current average return time : \" + currentAverageReturnTime);\n currentAverageWaitingTime = averageWaitingTime;\n logger.trace(\"Current average waiting time : \" + currentAverageWaitingTime);\n currentOccupancyRate = occupancyRate;\n logger.trace(\"Current occupancy rate : \" + currentOccupancyRate);\n currentOccupancyTime = occupancyTime;\n logger.trace(\"Current occupancy time : \" + currentOccupancyTime);\n\n restList(); //reset the list to the origin values so the user can test another algo\n }", "@Override\n\t\tprotected void compute() {\n\t\t\tif (end - start < workSize) {\n\t\t\t\tresultsQueue.offer(new Results(start, end, findPrimes(start, end)));\n\t\t\t} else {\n\t\t\t\t// Divide into two pieces\n\t\t\t\tint mid = (start + end) / 2;\n\n\t\t\t\tinvokeAll(new FindPrimes(start, mid), new FindPrimes(mid + 1, end));\n\t\t\t}\n\t\t}", "public MultiThreadedTabuSearch() {}", "public void run() throws Exception {\n try {\n\t System.out.println(\"SSVD start!\");\n FileSystem fs = FileSystem.get(conf);\n\n Path qPath = new Path(outputPath, \"Q-job\");\n Path btPath = new Path(outputPath, \"Bt-job\");\n Path yPath = new Path(outputPath, \"Y-job\"); //tetst phase\n Path uHatPath = new Path(outputPath, \"UHat\");\n Path svPath = new Path(outputPath, \"Sigma\");\n Path uPath = new Path(outputPath, \"U\");\n Path vPath = new Path(outputPath, \"V\");\n\n if (overwrite) {\n fs.delete(outputPath, true);\n }\n\n\t int[] iseed = {0,0,0,1};\n\t double[] x = new double[1];\n\t Dlarnv.dlarnv(2,iseed,0,1,x,0);\n\t long seed = (long)(x[0]*(double)Long.MAX_VALUE);\n\n\t long start, end;\n\t \t\t\n\tstart = new Date().getTime();\n\tQJob.run(conf,\n inputPath,\n qPath.toString(),\n\t\treduceSchedule,\n k,\n p,\n seed,\n\t\tmis);\n\tend = new Date().getTime();\n\tSystem.out.println(\"Q-Job done \"+Long.toString(end-start));\n\tLogger LOG = LoggerFactory.getLogger(SSVDSolver.class);\n\t \n /*\n * restrict number of reducers to a reasonable number so we don't have to\n * run too many additions in the frontend when reconstructing BBt for the\n * last B' and BB' computations. The user may not realize that and gives a\n * bit too many (I would be happy i that were ever the case though).\n */\n\t \n start = new Date().getTime();\n\t BtJob.run(conf,\n inputPath,\n\t\t\t\tbtPath,\n\t\t\t\tqPath.toString(),\n\t\t\t\tk,\n p,\n outerBlockHeight,\n\t\t\t\tq <= 0 ? Math.min(1000, reduceTasks) : reduceTasks,\n\t\t\t\tq <= 0,\n\t\t\t\treduceSchedule,\n\t\t\t\tmis);\n\n\t end = new Date().getTime();\n System.out.println(\"Bt-Job done \"+Long.toString(end-start));\n\t \n // power iterations is unnecessary in application of recommendation system \t \n\t /*for (int i = 0; i < q; i++) {\n\t Path btPathGlob = new Path(btPath, BtJob.OUTPUT_BT + \"-*\");\n\t\tPath aBtPath = new Path(outputPath, String.format(\"ABt-job-%d\", i + 1)); \n qPath = new Path(outputPath, String.format(\"ABtQ-job-%d\", i + 1));\t\t\n ABtDenseOutJob.run(conf,\n inputPath,\n btPathGlob,\n aBtPath,//qPath,\n //ablockRows,\n //minSplitSize,\n k,\n p,\n //abtBlockHeight,\n reduceTasks,\n //broadcast\n\t\t\t\t\t\t mis);\n\t\t\n\t\tToolRunner.run(conf, new QRFirstJob(), new String[]{\n \"-input\", aBtPath.toString(),\n \"-output\", qPath.toString(),\n\t\t\t \"-mis\",Integer.toString(mis),\n\t\t\t \"-colsize\", Integer.toString(k+p),\n \"-reduceSchedule\", reduceSchedule});\n\t\t\t \n btPath = new Path(outputPath, String.format(\"Bt-job-%d\", i + 1));\n\n BtJob.run(conf,\n inputPath,\n\t\t\t\t btPath,\n qPath.toString(), \n k,\n p,\n outerBlockHeight,\n i == q - 1 ? Math.min(1000, reduceTasks) : reduceTasks,\n i == q - 1,\n\t\t\t\t reduceSchedule,\n\t\t\t\t mis);\n }*/\n\t \n cmUpperTriangDenseMatrix bbt =\n loadAndSumUpperTriangMatrices(fs, new Path(btPath, BtJob.OUTPUT_BBT\n + \"-*\"), conf);\n\n // convert bbt to something our eigensolver could understand\n assert bbt.numColumns() == k + p;\n\n double[][] bbtSquare = new double[k + p][];\n for (int i = 0; i < k + p; i++) {\n bbtSquare[i] = new double[k + p];\n }\n\n for (int i = 0; i < k + p; i++) {\n for (int j = i; j < k + p; j++) {\n bbtSquare[i][j] = bbtSquare[j][i] = bbt.get(i, j);\n }\n }\n\n svalues = new double[k + p];\n\n // try something else.\n EigenSolver eigenWrapper = new EigenSolver(bbtSquare);\n double[] eigenva2 = eigenWrapper.getWR();\n\t \n for (int i = 0; i < k + p; i++) {\n svalues[i] = Math.sqrt(eigenva2[i]); // sqrt?\n }\n // save/redistribute UHat\n double[][] uHat = eigenWrapper.getVL();\n\t //double[][] uHat = eigenWrapper.getUHat();\n\t \n fs.mkdirs(uHatPath);\n SequenceFile.Writer uHatWriter =\n SequenceFile.createWriter(fs,\n conf,\n uHatPath = new Path(uHatPath, \"uhat.seq\"),\n IntWritable.class,\n VectorWritable.class,\n CompressionType.BLOCK);\n\t \n int m = uHat.length;\n IntWritable iw = new IntWritable();\n VectorWritable vw = new VectorWritable();\n\t \n for (int i = 0; i < m; i++) {\n vw.set(new DenseVector(uHat[i],true));\n iw.set(i);\n uHatWriter.append(iw, vw);\n }\n\t uHatWriter.close();\n\n SequenceFile.Writer svWriter =\n SequenceFile.createWriter(fs,\n conf,\n svPath = new Path(svPath, \"svalues.seq\"),\n IntWritable.class,\n VectorWritable.class,\n CompressionType.BLOCK);\n\n vw.set(new DenseVector(svalues, true));\n svWriter.append(iw, vw);\n\n svWriter.close();\n\n\t start = new Date().getTime();\n UJob ujob = null;\t \n if (computeU) {\n ujob = new UJob();\n\t\tujob.start(conf,\n new Path(btPath, BtJob.Q_MAT+ \"-*\"),\n uHatPath,\n svPath,\n uPath,\n k,\n cUHalfSigma,\n\t\t\t\t mis);\t\t\t\t \n // actually this is map-only job anyway\n }\n\n VJob vjob = null;\n if (computeV) {\n vjob = new VJob();\n vjob.start(conf,\n new Path(btPath, BtJob.OUTPUT_BT + \"-*\"),\n uHatPath,\n svPath,\n vPath,\n k,\n reduceTasks,\n\t\t\t\t subRowSize,\n cVHalfSigma,\n\t\t\t\t mis);\n }\n\n if (ujob != null) {\n ujob.waitForCompletion();\n this.uPath = uPath.toString();\n }\n\t System.out.println(\"U-Job done \");\n\t \n if (vjob != null) {\n vjob.waitForCompletion();\n this.vPath = vPath.toString();\n }\n\tend = new Date().getTime();\n\tSystem.out.println(\"U-Job+V-Job done \"+(end-start));\n\t\n } catch (InterruptedException exc) {\n throw new IOException(\"Interrupted\", exc);\n } catch (ClassNotFoundException exc) {\n throw new IOException(exc);\n }\n\n }", "private void startALG(boolean Alg_isFileOrDBOut) {\r\n\r\n this.Alg_isFileOrDBOut = Alg_isFileOrDBOut;\r\n // this.isDBReadInUse=true;\r\n // System.out.println(\"startALG(boolean Alg_isFileOrDBOut)\");\r\n\r\n Thread t = new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Controller.this.dBOutError = false;\r\n // dBInError = false;\r\n String nodeListString;\r\n String edgeListString;\r\n\r\n // get pparameters\r\n Controller.this.display_degree_temp = Integer\r\n .parseInt((String) Controller.this.nodeDegreeSpinner.getValue());\r\n Controller.this.display_edges_temp = 1000;\r\n\r\n if (Controller.this.displayEdgesSpinner.getValue().equals(\"all\")) {\r\n Controller.this.display_edges_temp = -2;\r\n } else {\r\n Controller.this.display_edges_temp = Integer\r\n .parseInt((String) Controller.this.displayEdgesSpinner.getValue());\r\n }\r\n\r\n Controller.this.scale_temp = 1000;\r\n if (Controller.this.scaleSpinner.getValue().equals(\"600 x 600\"))\r\n Controller.this.scale_temp = 600;\r\n if (Controller.this.scaleSpinner.getValue().equals(\"1000 x 1000\"))\r\n Controller.this.scale_temp = 1000;\r\n if (Controller.this.scaleSpinner.getValue().equals(\"2000 x 2000\"))\r\n Controller.this.scale_temp = 2000;\r\n if (Controller.this.scaleSpinner.getValue().equals(\"3000 x 3000\"))\r\n Controller.this.scale_temp = 3000;\r\n if (Controller.this.scaleSpinner.getValue().equals(\"4000 x 4000\"))\r\n Controller.this.scale_temp = 4000;\r\n if (Controller.this.scaleSpinner.getValue().equals(\"5000 x 5000\"))\r\n Controller.this.scale_temp = 5000;\r\n\r\n int minWeight_temp = Integer.parseInt((String) Controller.this.minweightSpinner.getValue());\r\n int iterations_temp = Integer.parseInt((String) Controller.this.iterationsSpinner.getValue());\r\n\r\n Controller.this.display_sub_current = Controller.this.only_sub.isSelected();\r\n\r\n String Alg_param_temp = \"\";\r\n String Alg_param_value_temp = \"\";\r\n String Alg_param_keep = \"\";\r\n String Alg_param_mut1 = \"\";\r\n String Alg_param_mut2 = \"\";\r\n String Alg_param_update = \"\";\r\n\r\n String ALGOPT = Controller.this.Alg_param.getSelection().getActionCommand();\r\n if (ALGOPT.equals(\"top\")) {\r\n Alg_param_temp = \"top\";\r\n }\r\n if (ALGOPT.equals(\"dist log\")) {\r\n Alg_param_temp = \"dist\";\r\n Alg_param_value_temp = \"log\";\r\n }\r\n if (ALGOPT.equals(\"dist nolog\")) {\r\n Alg_param_temp = \"dist\";\r\n Alg_param_value_temp = \"nolog\";\r\n }\r\n if (ALGOPT.equals(\"vote\")) {\r\n Alg_param_temp = \"vote\";\r\n Alg_param_value_temp = ((String) Controller.this.vote_value.getValue()).trim();\r\n } // fi vote\r\n\r\n Alg_param_keep = ((String) Controller.this.keep_value.getValue()).trim();\r\n Alg_param_mut1 = Controller.this.mutationParameter.getSelection().getActionCommand();\r\n Alg_param_mut2 = ((String) Controller.this.mut_value.getValue()).trim();\r\n Alg_param_update = Controller.this.Update_param.getSelection().getActionCommand();\r\n\r\n Controller.this.alg_param_current = Alg_param_temp;\r\n Controller.this.vote_value_current = Alg_param_value_temp;\r\n Controller.this.keepclass_value_current = Alg_param_keep;\r\n Controller.this.mut_option_current = Alg_param_mut1;\r\n Controller.this.mut_value_current = Alg_param_mut2;\r\n\r\n Controller.this.cw.isActive = true;\r\n if (!Controller.this.is_already_renumbered\r\n || ((Controller.this.is_already_read_from_DB && Controller.this.UseFile.isSelected())\r\n || (!Controller.this.is_already_read_from_DB && Controller.this.UseDB.isSelected()))) {\r\n Controller.this.cw.isNumbered = false;\r\n Controller.this.is_already_renumbered = true;\r\n }\r\n\r\n if (Controller.this.isDBInUsed()) {\r\n nodeListString = NODES_TMP_FILENAME;\r\n edgeListString = EDGES_TMP_FILENAME;\r\n Controller.this.isDBReadInUse = true;\r\n\r\n // if data is not yet read from DB\r\n if (!Controller.this.is_already_read_from_DB) {\r\n\r\n // delete old files\r\n /*\r\n * System.out.println(\"Deleting files with \"\r\n * +nodeListString+\" and \"+edgeListString);\r\n *\r\n * new File(nodeListString).delete(); new\r\n * File(nodeListString+\".renumbered\").delete(); new\r\n * File(nodeListString+\".renumbered.bin\").delete(); new\r\n * File(nodeListString+\".renumbered.idx\").delete(); new\r\n * File(nodeListString+\".renumbered.meta\").delete(); new\r\n * File(nodeListString+\".renumbered.tmp\").delete(); new\r\n * File(nodeListString+\".bin\").delete(); new\r\n * File(nodeListString+\".idx\").delete();\r\n *\r\n * new File(edgeListString).delete(); new\r\n * File(edgeListString+\".renumbered\").delete(); new\r\n * File(edgeListString+\".renumbered.bin\").delete(); new\r\n * File(edgeListString+\".renumbered.idx\").delete(); new\r\n * File(edgeListString+\".renumbered.meta\").delete(); new\r\n * File(edgeListString+\".renumbered.tmp\").delete(); new\r\n * File(edgeListString+\".bin\").delete(); new\r\n * File(edgeListString+\".idx\").delete();\r\n */\r\n\r\n String[] nodeColumns = { Controller.this.colnodeIdfield.getText(),\r\n Controller.this.colnodeLabelfield.getText() };\r\n String[] edgeColumns = { Controller.this.coledge1field.getText(),\r\n Controller.this.coledge2field.getText(), Controller.this.colweightfield.getText() };\r\n String pw = \"\";\r\n\r\n for (int i = 0; i < Controller.this.rpasswdfield.getPassword().length; i++)\r\n pw += Controller.this.rpasswdfield.getPassword()[i];\r\n\r\n Controller.this.dbc_out = new DBConnect(Controller.this.rhostfield.getText(),\r\n Controller.this.rdatabasefield.getText(), Controller.this.ruserfield.getText(), pw,\r\n Integer.parseInt(Controller.this.rportfield.getText()),\r\n Controller.this.rtablename1efield.getText(), nodeColumns,\r\n Controller.this.rtablename2efield.getText(), edgeColumns);\r\n\r\n try {\r\n // System.out.println(\"Deleting files with\r\n // \"+nodeListString+\" and \"+edgeListString);\r\n\r\n new File(nodeListString).delete();\r\n new File(nodeListString + \".renumbered\").delete();\r\n new File(nodeListString + \".renumbered.bin\").delete();\r\n new File(nodeListString + \".renumbered.idx\").delete();\r\n new File(nodeListString + \".renumbered.meta\").delete();\r\n new File(nodeListString + \".renumbered.tmp\").delete();\r\n new File(nodeListString + \".bin\").delete();\r\n new File(nodeListString + \".idx\").delete();\r\n\r\n new File(edgeListString).delete();\r\n new File(edgeListString + \".renumbered\").delete();\r\n new File(edgeListString + \".renumbered.bin\").delete();\r\n new File(edgeListString + \".renumbered.idx\").delete();\r\n new File(edgeListString + \".renumbered.meta\").delete();\r\n new File(edgeListString + \".renumbered.tmp\").delete();\r\n new File(edgeListString + \".bin\").delete();\r\n new File(edgeListString + \".idx\").delete();\r\n\r\n Controller.this.dbc_out.stillWorks = true;\r\n Controller.this.dbc_out.getAllFromDbAndWriteIntoTempFiles();\r\n\r\n Controller.this.is_already_read_from_DB = true;\r\n } catch (IOWrapperException iow_e) {\r\n System.err.println(\"Error while loading from DB!\\nConnection failed!\");\r\n JOptionPane.showMessageDialog(null,\r\n \"Error while loading from database!\\nConnection failed!\", \"Error\",\r\n JOptionPane.ERROR_MESSAGE);\r\n Controller.this.is_alg_started = false;\r\n Controller.this.dBOutError = true;\r\n Controller.this.dBInError = true;\r\n Controller.this.dbc_out.stillWorks = false;\r\n Controller.this.semaphore = true;\r\n Controller.this.isFileOutStarted = false;\r\n Controller.this.isDBOutStarted = false;\r\n return;\r\n\r\n } catch (IOIteratorException ioi_e) {\r\n System.err.println(\"Error while loading from DB!\\nCould not iterate over results!\");\r\n JOptionPane.showMessageDialog(null,\r\n \"Error while loading from database!\\nCould not iterate over results!\", \"Error\",\r\n JOptionPane.ERROR_MESSAGE);\r\n Controller.this.is_alg_started = false;\r\n Controller.this.dBOutError = true;\r\n Controller.this.dBInError = true;\r\n Controller.this.dbc_out.stillWorks = false;\r\n Controller.this.semaphore = true;\r\n Controller.this.isFileOutStarted = false;\r\n Controller.this.isDBOutStarted = false;\r\n return;\r\n }\r\n\r\n } // fi (!is_already_read_from_DB)\r\n } // fi (isDBInUsed())\r\n\r\n else if (Controller.this.isFileInUsed() && (Controller.this.edgeFileText.getText().length() != 0\r\n && Controller.this.nodefileText.getText().length() != 0)) {\r\n nodeListString = Controller.this.nodefileText.getText();\r\n edgeListString = Controller.this.edgeFileText.getText();\r\n Controller.this.is_already_read_from_DB = false;\r\n\r\n } else {\r\n nodeListString = \"examples\" + System.getProperty(\"file.separator\") + \"allews.txt\";\r\n edgeListString = \"examples\" + System.getProperty(\"file.separator\") + \"skoll.txt\";\r\n Controller.this.is_already_read_from_DB = false;\r\n }\r\n\r\n // initialize\r\n double call_mut_value;\r\n double call_keep_value;\r\n\r\n call_keep_value = (new Double(Alg_param_keep)).doubleValue();\r\n call_mut_value = (new Double(Alg_param_mut2)).doubleValue();\r\n\r\n Controller.this.cw.isNumbered = Controller.this.FilesNumbered.isSelected();\r\n Controller.this.cw.graphInMemory = Controller.this.GraphInMemory.isSelected();\r\n Controller.this.cw.setCWGraph(nodeListString, edgeListString);\r\n Controller.this.cw.setCWParameters(minWeight_temp, Alg_param_temp, Alg_param_value_temp,\r\n call_keep_value, Alg_param_mut1, call_mut_value, Alg_param_update, iterations_temp,\r\n Controller.this.isAlg_isFileOrDBOut());\r\n\r\n Controller.this.cw.run();\r\n\r\n Controller.this.is_alg_started = true;\r\n Controller.this.semaphore = false;\r\n // setAlg_isFileOrDBOut(false);\r\n }// run\r\n });// runnable, thread\r\n\r\n t.start();\r\n Timer timer = new Timer();\r\n timer.schedule(new ObserveProgress(timer, t), 200, 2000);\r\n }", "void findSearchOrder() {\n boolean filled = false;\n for(int node: queryGraphNodes.keySet()) {\n\n vertexClass vc = queryGraphNodes.get(node);\n searchOrderSeq.add(node);\n for(int edge: queryGraphNodes.get(node).edges.keySet()) {\n filled = calcOrdering(edge);\n if (filled)\n break;\n }\n if(searchOrderSeq.size() == queryGraphNodes.size())\n break;\n\n }\n\n }", "public BfsDenseIntegerResult computeParent(Buffer adjacencyMatrixTransposed, int startNode, int maxIterations, int concurrency) {\n checkStatusCode(setGlobalInt(GxB_NTHREADS, concurrency));\n\n long nodeCount = nrows(adjacencyMatrixTransposed);\n\n // result vector\n Buffer resultVector = createVector(intType(), nodeCount);\n // make result vector dense (needs to be 0 still to work with mask -> Difference to ejml implementation)\n checkStatusCode(assignVectorInt(resultVector, null, null, NOT_FOUND, GrB_ALL, nodeCount, null));\n // finish pending work on v\n nvalsVector(resultVector);\n\n // node-id vector (not needed using GRAPHBLAS 2.0 (index aware apply can be used)\n Buffer idVector = createVector(intType(), nodeCount);\n\n for (int i = 0; i < nodeCount; i++) {\n setVectorElementInt(idVector, i, i + 1);\n }\n\n // queue vector\n Buffer queueVector = createVector(intType(), nodeCount);\n // init node vector\n setVectorElementInt(queueVector, startNode, startNode + 1);\n\n Buffer semiRing = createSemiring(minMonoidInt(), secondBinaryOpInt());\n\n Buffer multDesc = createDescriptor();\n // invert the mask\n checkStatusCode(setDescriptorValue(multDesc, GrB_MASK , GrB_COMP));\n // clear q first\n checkStatusCode(setDescriptorValue(multDesc, GrB_OUTP , GrB_REPLACE));\n //checkStatusCode(setDescriptorValue(multDesc, GrB_MASK, GrB_STRUCTURE));\n\n Buffer assignDesc = createDescriptor();\n checkStatusCode(setDescriptorValue(assignDesc, GrB_MASK, GrB_STRUCTURE));\n\n\n int iteration = 1;\n // nodeCount\n int nodesVisited = 0;\n long nodesInQueue = 1;\n\n // BFS-traversal\n for (; ; iteration++) {\n // v<q> = q, using vector assign with q as the mask\n checkStatusCode(\n assign(resultVector, queueVector, null, queueVector, GrB_ALL, nodeCount, assignDesc)\n );\n\n nodesVisited += nodesInQueue ;\n // check for fixPoint\n if (nodesInQueue == 0 || nodesVisited == nodeCount || iteration > maxIterations) break ;\n\n assign(queueVector, queueVector, null, idVector, GrB_ALL, nodeCount, assignDesc);\n\n // q<¬v> = q min.first matrix\n checkStatusCode(mxv(queueVector, resultVector, null, semiRing, adjacencyMatrixTransposed, queueVector, multDesc));\n\n nodesInQueue = nvalsVector(queueVector);\n }\n\n // output vector\n int[] values = new int[Math.toIntExact(nodeCount)];\n long[] indices = new long[Math.toIntExact(nodeCount)];\n\n // make sure everything got written\n vectorWait(resultVector);\n checkStatusCode(extractVectorTuplesInt(resultVector, values, indices));\n\n\n // free c-allocated stuff\n freeVector(queueVector);\n freeVector(resultVector);\n freeVector(idVector);\n freeDescriptor(multDesc);\n freeDescriptor(assignDesc);\n freeSemiring(semiRing);\n\n // just using values as we know its a dense vector\n return new BfsDenseIntegerResult(values, iteration - 1, NOT_FOUND);\n }", "public void runSRJF() {\n //init\n ArrayList<Processus> localProcess = new ArrayList<>(); //Creation of a local list of process\n //localProcess = (ArrayList<Processus>) listOfProcess.clone();\n for (Processus cpy : listOfProcess) { //Copy the list of process in the local list with new instances of process\n Processus tmp = new Processus(cpy.getName(), cpy.getTime(), (HashMap<Integer, Integer>) cpy.getListOfInOut().clone(), (HashMap<Integer, Integer>) cpy.getlistOfResource().clone());\n localProcess.add(tmp);\n }\n int size = listOfProcess.size(); //variable used to save the initial size of the list of process\n\n Processus executedProc = null; //ExecutedProc is the current process that is being execute\n Processus tmpProc = localProcess.get(0); //The tmpProc is the previous process executed\n\n //Variable we need to calcul\n double occupancyRate = 0;\n double averageWaitingTime = 0;\n double averageReturnTime = 0;\n int currentTime = 0;\n int occupancyTime = 0;\n\n //beginning of the algo\n while (!localProcess.isEmpty()) {\n tmpProc = null;\n if (executedProc != null && executedProc.getTime() <= currentTime) {//test if the current executed process is the smallest and is not in in/out operation\n for (Processus proc : localProcess) {//chose the process to execute (the shortest)\n if (proc.getTime() <= currentTime) {\n if (proc.getRessource(proc.getCurrentStep()) < executedProc.getRessource(executedProc.getCurrentStep())) {//shortest process selected\n executedProc = proc;\n }\n }\n }\n } else {//same tests but if there is no current process on the UC\n for (Processus proc : localProcess) {\n if (proc.getTime() <= currentTime) {\n if (localProcess.size() == 1 || tmpProc == null) {//if there is only only one process left in the list\n executedProc = proc;\n tmpProc = proc;\n } else if (proc.getRessource(proc.getCurrentStep()) <= tmpProc.getRessource(tmpProc.getCurrentStep())) {//shortest process selected\n executedProc = proc;\n tmpProc = proc;\n }\n }\n }\n }\n if (executedProc != null) {//if there is a process\n //execution of the process over 1 unity of time and then verifying again it's steel the smallest\n for (Processus proc : localProcess) {\n if (proc.getTime() <= currentTime && !proc.equals(executedProc)) {\n proc.setWaitingTime(1);//set th waiting time of the others process that could be executed\n }\n }\n occupancyTime++;\n currentTime++;\n executedProc.setTime(executedProc.getTime() + 1);\n executedProc.setRessource(executedProc.getCurrentStep(), executedProc.getRessource(executedProc.getCurrentStep()) - 1);\n if (executedProc.getRessource(executedProc.getCurrentStep()) <= 0) {\n if (executedProc.getCurrentStep() < executedProc.getListOfInOut().size()) {\n executedProc.setTime(currentTime + executedProc.getInOut(executedProc.getCurrentStep()));\n executedProc.setCurrentStep(executedProc.getCurrentStep() + 1);\n if (executedProc.getCurrentStep() > executedProc.getlistOfResource().size()) {\n averageReturnTime += executedProc.getExecutedTime(); //update the average return time by adding the time that the process took\n averageWaitingTime += executedProc.getWaitingTime();\n localProcess.remove(executedProc);\n }\n } else {\n averageReturnTime += executedProc.getExecutedTime(); //update the average return time by adding the time that the process took\n averageWaitingTime += executedProc.getWaitingTime();\n localProcess.remove(executedProc);\n }\n executedProc = null;\n }\n } else {\n currentTime++;\n }\n }\n //Calculation of the variables\n occupancyRate = ((double) occupancyTime / (double) currentTime) * 100;\n\n averageWaitingTime = averageWaitingTime / size;\n averageReturnTime = averageReturnTime / size;\n\n //Updating the global variables\n currentAverageReturnTime = averageReturnTime;\n logger.trace(\"Current average return time : \" + currentAverageReturnTime);\n currentAverageWaitingTime = averageWaitingTime;\n logger.trace(\"Current average waiting time : \" + currentAverageWaitingTime);\n currentOccupancyRate = occupancyRate;\n logger.trace(\"Current occupancy rate : \" + currentOccupancyRate);\n currentOccupancyTime = occupancyTime;\n logger.trace(\"Current occupancy time : \" + currentOccupancyTime);\n\n restList(); //reset the list to the origin values so the user can test another algo\n\n }", "Long[] searchSolution(int timeLimit, Graph g);", "@Override\n List<NodeData> pathFind() throws NoPathException {\n System.out.println(\"Starting Scenic\");\n\n frontier.add(start);\n\n while(!frontier.isEmpty()) {\n StarNode current = frontier.getLast();\n frontier.removeLast(); // pop the priority queue\n if(current.getXCoord() == goal.getXCoord() && current.getYCoord() == goal.getYCoord()) {\n // If we are at the goal, we need to backtrack through the shortest path\n System.out.println(\"At target!\");\n finalList.add(current); // we have to add the goal to the path before we start backtracking\n while(!(current.getXCoord() == start.getXCoord() && current.getYCoord() == start.getYCoord())) {\n finalList.add(current.getPreviousNode());\n current = current.getPreviousNode();\n System.out.println(current.getNodeID());\n }\n return finalList;\n }\n else {\n // we need to get all the neighbor nodes, identify their costs, and put them into the queue\n LinkedList<StarNode> neighbors = current.getNeighbors();\n // we also need to remove the previous node from the list of neighbors because we do not want to backtrack\n neighbors.remove(current.getPreviousNode());\n\n for (StarNode newnode : neighbors) {\n int nodePlace = this.listContainsId(frontier, newnode);\n if(nodePlace > -1) {\n if (frontier.get(nodePlace).getF() > actionCost(newnode) + distanceToGo(newnode, goal)) {\n System.out.println(\"Here\");\n frontier.remove(frontier.get(nodePlace));\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n }\n else {\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n\n // This fixes the problem with infinitely looping elevators (I hope)\n if(current.getNodeType().equals(\"ELEV\") && newnode.getNodeType().equals(\"ELEV\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"ELEV\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n if(current.getNodeType().equals(\"STAI\") && newnode.getNodeType().equals(\"STAI\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"STAI\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n // this is where the node is put in the right place in the queue\n Collections.sort(frontier);\n }\n }\n }\n throw new NoPathException(start.getLongName(), goal.getLongName());\n }", "protected void startBuilding(IVertex<String> source){\n\n for(int i =0 ; i < Constants.MAX_THREADS; i++){\n shortestThread[i] = new ShortestPathFinderThread(this.weightedGraph, source,\n this.settledNodes, this.unSettledNodes,\n this.predecessors, this.distance);\n shortestThread[i].start();\n }\n }", "@Override\n\tpublic void solve() {\n\t\tlong startTime = System.nanoTime();\n\n\t\twhile(!unvisitedPM.isEmpty()){\n\t\t\tProblemModel current = findCheapestNode();\n\t\n\t\t\tfor(ProblemModel pm : current.getSubNodes()){\n\t\t\n\t\t\t\tif(!visited.contains(pm) && !unvisitedPM.contains(pm)){\n\t\t\t\t\t\n\t\t\t\t\tunvisitedPM.add(pm);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(current.getSideStart().isEmpty()){\n\t\t\t\tSystem.out.print( \"\\n\"+ \"StartSide Runners: \");\n\t\t\t\tfor(Integer r: current.getSideStart()){\n\t\t\t\t\tSystem.out.print( \" \" +r) ;\n\t\t\t\t}\n\t\t\t\tSystem.out.print( \"\\n\" + \"EndSide Runners: \");\n\t\t\t\tfor(Integer r: current.getSideEnd()){\n\t\t\t\t\tSystem.out.print( \" \" + r);\n\t\t\t\t}\n\n\t\t\t\tprintPathTaken(current);\n\t\t\t\tSystem.out.print( \"\\n\" + \"------------done--------------\");\n\t\t\t\tlong endTime = System.nanoTime();\n\t\t\t\tlong duration = ((endTime - startTime)/1000000);\n\t\t\t\tSystem.out.print( \"\\n\" + \"-AS1 Time taken: \" + duration + \"ms\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tvisited.add(current);\n\t\t\n\t\t}\n\t\t\n\n\t}", "public void depthFirstSearch() {\n List<Vertex> visited = new ArrayList<Vertex>();\r\n // start the recursive depth first search on the current vertex\r\n this.dfs(visited);\r\n }", "public static void breadthFirstSearch(ArrayList<Node> graph) {\n\t\tSystem.out.println(\"BFS:\");\n\t\tif(graph.size() == 0) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tGraphUtils.cleanGraph(graph);\n\n\t\tQueue<Node> queue = new LinkedList<Node>();\n\t\tfor(Node node : graph) {\n\t\t\tif(node.state != Node.State.UNDISCOVERED) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tnode.state = Node.State.DISCOVERED;\n\t\t\tqueue.add(node);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()) {\n\t\t\t\tnode = queue.remove();\n\t\t\t\t\n\t\t\t\t//process node\n\t\t\t\tSystem.out.print(node.name + \" -> \");\n\t\t\t\t\n\t\t\t\tfor(Edge e : node.edges) {\n\t\t\t\t\t//process edge\n\t\t\t\t\tNode neighbor = e.getNeighbor(node);\n\t\t\t\t\t\n\t\t\t\t\t//first time we see this node it gets added to the queue for later processing\n\t\t\t\t\tif(neighbor.state == Node.State.UNDISCOVERED) {\n\t\t\t\t\t\tneighbor.state = Node.State.DISCOVERED;\n\t\t\t\t\t\tqueue.add(neighbor);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//finished with this node\n\t\t\t\tnode.state = Node.State.COMPLETE;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println();\n\t\tGraphUtils.cleanGraph(graph);\n\t}", "private void runBest() {\n }", "public void startGraph() {\r\n this.setStatus(false);\r\n this.isGraphStarted = true;\r\n\r\n // if (Alg not started yet or Alg started, but not ready for graph) or\r\n // (Alg started but (already read from DB but now fileSelected) or (DB\r\n // selected but not read yet))\r\n if ((!this.is_alg_started || !this.isAlgStartedForGraph)\r\n || (this.is_alg_started && ((this.is_already_read_from_DB && this.UseFile.isSelected())\r\n || (!this.is_already_read_from_DB && this.UseDB.isSelected())))) {\r\n this.dBInError = false;\r\n this.startALG(false);\r\n } else {\r\n try {\r\n Thread t1 = new Thread(new MyGraphGUI(this.display_sub_current, (ChineseWhispers) this.cw.clone(),\r\n this.display_edges_temp, this.scale_temp, 30, this.display_degree_temp));\r\n t1.start();\r\n } catch (CloneNotSupportedException e) {\r\n e.printStackTrace();\r\n }\r\n this.setStatus(true);\r\n this.isGraphStarted = false;\r\n this.isAlgStartedForGraph = true;\r\n }\r\n }", "public static void main(String[] args) throws Exception {\n\t\tlong startTime, stopTime;\n\t\tdouble t_searchCache, t_storeCache;\n//\t\tMap<SmallGraph, SmallGraph> cache = new HashMap<SmallGraph, SmallGraph>(); // the cache\n\t\t// the index on the ploytrees stored in the cache\n\t\tMap<Set<Pair<Integer,Integer>>, Set<SmallGraph>> cacheIndex = new HashMap<Set<Pair<Integer,Integer>>, Set<SmallGraph>>();\n\t\tMap<SmallGraph, Pair<Integer, SmallGraph>> polytree2query = new HashMap<SmallGraph, Pair<Integer, SmallGraph>>();\n\n\t\t// reading the original data graph\n\t\tGraph originalDataGraph = new Graph(args[0]);\n\t\tif(args.length == 6)\toriginalDataGraph.buildParentIndex(args[5]);\n\n\t\t// reading all popular data graphs\n\t\tFile dirG = new File(args[1]);\n\t\tif(!dirG.isDirectory())\n\t\t\tthrow new Exception(\"The specified path for the candidate data graphs is not a valid directory\");\n\t\tFile[] graphFiles = dirG.listFiles();\n\t\tint nPopularGraphs = graphFiles.length;\n\t\tGraph[] graphs = new Graph[nPopularGraphs];\n\t\tfor(int i=0; i < nPopularGraphs; i++)\n\t\t\tgraphs[i] = new Graph(graphFiles[i].getAbsolutePath());\n\t\t\n\t\t// statistical result file\n\t\tFile file = new File(args[2]);\n\t\t// if file does not exists, then create it\n\t\tif (!file.exists()) file.createNewFile();\n\t\tFileWriter fw = new FileWriter(file.getAbsoluteFile());\t\t\t\n\t\tBufferedWriter bw = new BufferedWriter(fw);\t\n\n\t\tbw.write(\"queryNo\\t querySize\\t degree\\t sourceNo\\t isPolytree\\t nHitCandidates\\t t_searchCache\\t isHit\\t hitQueryNo\\t hitQuerySize\\t t_storeCache\\n\");\n\t\tStringBuilder fileContents = new StringBuilder();\n\t\t\n\t\tint nSourceOptions = nPopularGraphs + 1; // number of sources for creating query\n\t\tRandom randSource = new Random();\n\t\tint[] querySizes = {20,22,24,26,28,30,32,34,36,38}; // different available sizes for queries\n\t\tRandom randQuerySize = new Random();\n//\t\tRandom randDegree = new Random();\n\t\tRandom randCenter = new Random();\n\t\t\t\t\n\t\tint requestedQueries = Integer.parseInt(args[4]);\n\t\tfor(int queryNo=0; queryNo < requestedQueries; queryNo++) { // main loop\n\t\t\tSystem.out.print(\"Processing Q\" + queryNo + \":\\t\");\n\t\t\tSmallGraph q;\n\t\t\tint querySize = 25;\n\t\t\tint degree = 5;\n\t\t\tint sourceNo = randSource.nextInt(nSourceOptions);\n\t\t\t// q is created\n\t\t\tif(sourceNo == nSourceOptions - 1) { // from the original data graph\n\t\t\t\tboolean notFound = true;\n\t\t\t\tSmallGraph sg = null;\n\t\t\t\twhile(notFound) {\n\t\t\t\t\tquerySize = querySizes[randQuerySize.nextInt(querySizes.length)];\n\t\t\t\t\t//degree = randDegree.nextInt(querySize/DEGREE_RATIO);\n\t\t\t\t\tdegree = (int)Math.sqrt(querySize);\n\t\t\t\t\tint center = randCenter.nextInt(originalDataGraph.getNumVertices());\n\t\t\t\t\tsg = GraphUtils.subGraphBFS(originalDataGraph, center, degree, querySize);\n\t\t\t\t\tif(sg.getNumVertices() == querySize)\n\t\t\t\t\t\tnotFound = false;\n\t\t\t\t}\n\t\t\t\tq = QueryGenerator.arrangeID(sg);\n\t\t\t} else {\t// from popular data graphs\n\t\t\t\tGraph dataGraph = graphs[sourceNo];\n\t\t\t\tboolean notFound = true;\n\t\t\t\tSmallGraph sg = null;\n\t\t\t\twhile(notFound) {\n\t\t\t\t\tquerySize = querySizes[randQuerySize.nextInt(querySizes.length)];\n\t\t\t\t\tdegree = (int)Math.sqrt(querySize);\n\t\t\t\t\tif(degree == 0) continue;\n\t\t\t\t\tint center = randCenter.nextInt(dataGraph.getNumVertices());\n\t\t\t\t\tsg = GraphUtils.subGraphBFS(dataGraph, center, degree, querySize);\n\t\t\t\t\tif(sg.getNumVertices() == querySize)\n\t\t\t\t\t\tnotFound = false;\n\t\t\t\t}\n\t\t\t\tq = QueryGenerator.arrangeID(sg);\n\t\t\t} //if-else\n\t\t\t\n\t\t\tfileContents.append(queryNo + \"\\t\" + q.getNumVertices() + \"\\t\" + degree + \"\\t\" + sourceNo + \"\\t\");\n\t\t\tSystem.out.print(\"N\" + q.getNumVertices() + \"D\" + degree + \"S\" + sourceNo + \",\\t\");\n\t\t\t\n\t\t\tint queryStatus = q.isPolytree();\n\t\t\tswitch (queryStatus) {\n\t\t\t\tcase -1: System.out.println(\"The query Graph is disconnected\");\n\t\t\t\t\tfileContents.append(\"-1\\t 0\\t 0\\t 0\\t -1\\t 0\\t\");\n\t\t\t\t\tcontinue;\n\t\t\t\tcase 0: System.out.print(\"! polytree, \");\n\t\t\t\t\tfileContents.append(\"0\\t\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1: System.out.print(\"a polytree, \");\n\t\t\t\t\tfileContents.append(\"1\\t\");\n\t\t\t\t\tbreak;\n\t\t\t\tdefault: System.out.println(\"Undefined status of the query graph\");\n\t\t\t\t\tfileContents.append(\"2\\t 0\\t 0\\t 0\\t -1\\t 0\\t\");\n\t\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// searching in the cache\n\t\t\tPair<Integer, SmallGraph> hitPair = null;\n\t\t\tstartTime = System.nanoTime();\n\t\t\tboolean notInCache = true;\n\t\t\tSet<SmallGraph> candidateMatchSet = CacheUtils.getCandidateMatchSet(q, cacheIndex);\n\t\t\tint nHitCandidates = candidateMatchSet.size();\n\t\t\tSystem.out.print(\"nHitCandidates=\" + nHitCandidates + \", \");\n\t\t\tfileContents.append(nHitCandidates + \"\\t\");\n\t\t\t\n\t\t\tfor(SmallGraph candidate : candidateMatchSet) {\n\t\t\t\tif(CacheUtils.isDualCoverMatch(q, candidate)) {\n\t\t\t\t\tnotInCache = false;\n\t\t\t\t\tSystem.out.print(\"Hit the cache!, \");\n\n\t\t\t\t\thitPair = polytree2query.get(candidate);\n\t\t\t\t\t// use the cache content to answer the query\n//\t\t\t\t\tlong bTime = System.currentTimeMillis();\n//\t\t\t\t\tSmallGraph inducedSubgraph = cache.get(candidate);\n//\t\t\t\t\tSet<Ball> tightResults_cache = TightSimulation.getTightSimulation(inducedSubgraph, queryGraph);\n//\t\t\t\t\ttightResults_cache = TightSimulation.filterMatchGraphs(tightResults_cache);\n//\t\t\t\t\tlong fTime = System.currentTimeMillis();\n//\t\t\t\t\tSystem.out.println(\"The time for tight simulation from cache: \" + (fTime - bTime) + \" ms\");\n\t\t\t\t\tbreak; // the first match would be enough \n\t\t\t\t} //if\n\t\t\t} //for\n\t\t\tstopTime = System.nanoTime();\n\t\t\tt_searchCache = (double)(stopTime - startTime) / 1000000;\n\t\t\tSystem.out.print(\"search: \" + t_searchCache + \", \");\n\t\t\tfileContents.append(t_searchCache + \"\\t\");\n\t\t\t\n\t\t\tif(! notInCache) { // found in the cache\n\t\t\t\t// hit query\n\t\t\t\tfileContents.append(\"1\\t\");\n\t\t\t\tint hitQueryNo = hitPair.getValue0();\n\t\t\t\tSmallGraph hitQuery = hitPair.getValue1();\n\t\t\t\thitQuery.print2File(args[3] + \"/Q\" + hitQueryNo + \"_N\" + hitQuery.getNumVertices() + \".txt\");\n\t\t\t\tfileContents.append(hitQueryNo + \"\\t\" + hitQuery.getNumVertices() + \"\\t\");\n\t\t\t}\n\n\t\t\tstartTime = System.nanoTime();\n\t\t\tif(notInCache) { // Not found in the cache\n\t\t\t\tSystem.out.print(\"Not the cache!, \");\n\t\t\t\tfileContents.append(\"0\\t\");\n\t\t\t\tfileContents.append(\"-1\\t-1\\t\");\n//\t\t\t\tlong bTime = System.currentTimeMillis();\n//\t\t\t\tSet<Ball> tightResults_cache = TightSimulation.getTightSimulation(dataGraph, queryGraph);\n//\t\t\t\ttightResults_cache = TightSimulation.filterMatchGraphs(tightResults_cache);\n//\t\t\t\tlong fTime = System.currentTimeMillis();\n//\t\t\t\tSystem.out.println(\"The time for tight simulation without cache: \" + (fTime - bTime) + \" ms\");\n\t\t\t\t// store in the cache\n\t\t\t\t// The polytree of the queryGraph is created\n\t\t\t\tint center = q.getSelectedCenter();\n\t\t\t\tSmallGraph polytree = GraphUtils.getPolytree(q, center);\n\t\t\t\t// The dualSimSet of the polytree is found\n\t\t\t\t// The induced subgraph of the dualSimSet is found\n\t\t\t\t// The <polytree, inducedSubgraph> is stored in the cache\n//\t\t\t\tcache.put(polytree, inducedSubgraph);\n\t\t\t\tSet<Pair<Integer, Integer>> sig = polytree.getSignature(); \n\t\t\t\tif (cacheIndex.get(sig) == null) {\n\t\t\t\t\tSet<SmallGraph> pltSet = new HashSet<SmallGraph>();\n\t\t\t\t\tpltSet.add(polytree);\n\t\t\t\t\tcacheIndex.put(sig, pltSet);\n\t\t\t\t} else\n\t\t\t\t\tcacheIndex.get(sig).add(polytree);\n\t\t\t\t\n\t\t\t\tpolytree2query.put(polytree, new Pair<Integer, SmallGraph>(queryNo, q)); // save the queries filling the cache\n\t\t\t} //if\n\t\t\tstopTime = System.nanoTime();\n\t\t\tt_storeCache = (double)(stopTime - startTime) / 1000000;\n\t\t\tSystem.out.println(\"store: \" + t_storeCache);\n\t\t\tfileContents.append(t_storeCache + \"\\n\");\t\t\t\n\t\t\t\n\t\t\tbw.write(fileContents.toString());\n\t\t\tfileContents.delete(0, fileContents.length());\n\t\t} //for\n\t\t\n\t\tbw.close();\n\t\t\n\t\tSystem.out.println(\"Number of signatures stored: \" + cacheIndex.size());\n\t\tSystem.out.println(\"Number of polytrees stored: \" + polytree2query.size());\n\t\tint maxSet = 0;\n\t\tfor(Set<SmallGraph> pt : cacheIndex.values()) {\n\t\t\tint theSize = pt.size();\n\t\t\tif(theSize > maxSet)\n\t\t\t\tmaxSet = theSize;\n\t\t} //for\n\t\tSystem.out.println(\"The maximum number of stored polytrees with the same signature: \" + maxSet);\n\t}", "@Override\r\n protected void compute() {\r\n //if count != 0 || splitA.length == 1 then go, else for loop to make splitA.length subtasks to run splitArrayB and then they all call mergeAB\r\n if(global_count == 0){\r\n splitArrayB();\r\n }\r\n if(global_count != 0 || splitA.length == 1){\r\n mergeAB();\r\n }\r\n else{\r\n List<ConcurrentMerge> subtasks = new ArrayList<>();\r\n ConcurrentMerge temp;\r\n for(int i = 0; i < splitA.length; i++){\r\n global_count++;\r\n temp = new ConcurrentMerge(A, B, splitA, splitB, C, global_count);\r\n subtasks.add(temp);\r\n }\r\n invokeAll(subtasks);\r\n }\r\n }", "public void run() {\n // solve();\n faster();\n }", "@Override\n\tpublic void startIBK() {\n\t\talgo.algoIBK();\n\t}", "public static void liveDemo() {\n Scanner in = new Scanner( System.in );\n float srcTank1, srcTank2, destTank;\n int alternetPaths;\n Graph mnfld = new Graph();\n boolean runSearch = true;\n\n //might need to limit query results, too large maybe?\n //newnodes = JDBC.graphInformation(); //returns arraylist of nodes\n //mnfld.setPipes(newnodes); //set nodes to the manifold\n //JDBC.insertConnections(mnfld);\n\n//\t\t /*\n//\t\t\tfor (int i = 0; i < newnodes.length(); i++) { //length might be wrong\n//\t\t\t\t//need to look for way to add edges by looking for neighbor nodes i think\n//\t\t\t\t//loop through nodes and create Edges\n//\t\t\t\t//might need new query\n//\t\t\t\tnewedges.addEdge(node1,node2,cost);\n//\t\t\t}\n//\n//\t\t\tmnfld.setConnections(newedges);\n//\n//\t\t\tup to this point, graph should be global to Dijkstra and unused.\n//\t\t\tloop until user leaves page\n//\t\t\tget input from user for tanks to transfer\n//\t\t\tfind shortest path between both tanks\n//\t\t\tend loop\n//\t\t\tthis will change depending how html works so not spending any time now on it\n//\t\t*/\n //shortestPath.runTest();\n\n shortestPath.loadGraph( mnfld );\n while (runSearch) {\n // Gets user input\n System.out.print( \"First Source Tank: \" );\n srcTank1 = in.nextFloat();\n System.out.print( \"Second Source Tank: \" );\n srcTank2 = in.nextFloat();\n System.out.print( \"Destination Tank: \" );\n destTank = in.nextFloat();\n System.out.print( \"Desired Number of Alternate Paths: \" );\n alternetPaths = in.nextInt();\n\n // Prints outputs\n Dijkstra.resetCosts( mnfld );\n System.out.println( \"True shortest with alt paths\" );\n Dijkstra.findAltPaths( mnfld, alternetPaths, srcTank1, destTank );\n mnfld.restoreDroppedConnections();\n\n Dijkstra.resetCosts( mnfld );\n System.out.println( \"Lineup Considering used connections\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( srcTank1 ), true );\n mnfld.getPipe( destTank ).printLine();\n mnfld.restoreDroppedConnections();\n\n Dijkstra.resetCosts( mnfld );\n System.out.println( \"Lineup Considering only open connections\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( srcTank1 ), false );\n mnfld.getPipe( destTank ).printLine();\n mnfld.restoreDroppedConnections();\n\n Dijkstra.resetCosts( mnfld );\n System.out.println( \"Merge Lineup\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( srcTank1 ) );\n System.out.println( \"\\t Original Lineup: \" );\n mnfld.getPipe( destTank ).printLine();\n System.out.println( \"\\t Merged Lineup: \" );\n Dijkstra.mergePaths( mnfld, srcTank2, mnfld.getPipe( destTank ).getPath(), mnfld.getPipe( destTank ) );\n System.out.print( \"\\nRun another search [1:Yes, 0:No] :: \" );\n if (in.nextInt() == 0) runSearch = false;\n else System.out.println( \"\\n\\n\\n\" );\n }\n\n\n }", "public static void main(String[] args) {\n SearchTree search = new SearchTree(new Node(INITIAL_STATE), GOAL_STATE);\n long startTime = System.currentTimeMillis();\n\n search.breadthFirstSearch();\n// search.depthFirstSearch();\n// search.iterativeDeepening(10);\n\n long finishTime = System.currentTimeMillis();\n long totalTime = finishTime - startTime;\n System.out.println(\"\\n[Elapsed time: \" + totalTime + \" milliseconds]\");\n System.out.println(\"========================================================\");\n }", "public SolutionSet execute() throws JMetalException, ClassNotFoundException, IOException {\n initialization();\n createInitialSwarm() ;\n evaluateSwarm();\n initializeLeaders() ;\n initializeParticlesMemory() ;\n updateLeadersDensityEstimator() ;\n\n while (!stoppingCondition()) {\n computeSpeed(iterations_, maxIterations_);\n computeNewPositions();\n perturbation();\n evaluateSwarm();\n updateLeaders() ;\n updateParticleMemory() ;\n updateLeadersDensityEstimator() ;\n iterations_++ ;\n }\n\n tearDown() ;\n return paretoFrontApproximation() ;\n }", "public void breadthFirstTraverse() {\n\t\t// track whether vertex was visited\n\t\tHashMap<Integer, Boolean> visited = buildVisited();\n\t\t// store neighbors\n\t\tQueue<Integer> queue = new LinkedList<Integer>();\n\n\t\t// arbitrarily add first element\n\t\tInteger current = (Integer) edges.keySet().toArray()[0];\n\t\tqueue.add(current);\n\n\t\twhile (queue.peek() != null) {\n\n\t\t\tcurrent = queue.remove();\n\t\t\tSystem.out.println(\"current: \" + current);\n\t\t\tvisited.put(current, true);\n\n\t\t\tfor (Integer neighbor: edges.get(current)) {\n\t\t\t\tif (!visited.get(neighbor)) {\n\t\t\t\t\tqueue.add(neighbor);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void train() {\n\n\t\tint D = Os.length;\n\t\tint T_n = 0;\n\t\tdouble log_likelihood = 0;\n\t\tdouble log_likelihood_new = 0;\n\t\tdouble epsilon = this.epsilon;\n\t\tint maxIter = this.maxIter;\n\n\t\t// Initialization\n\n\t\tclearVector(pi);\n\t\tclearMatrix(A);\n\t\tclearMatrix(B);\n\n\t\tdouble[] a = allocateVector(N);\n\t\tdouble[] b = allocateVector(N);\n\n\t\tint[] Q_n = null;\n\t\tint[] O_n = null;\n\t\t\n\t\tif (Qs == null) {\n\t\t\t\n\t\t\tpi = initializePi();\n\t\t\tA = initializeA();\n\t\t\tB = initializeB();\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\tfor (int n = 0; n < D; n++) {\n\t\t\t\tQ_n = Qs[n];\n\t\t\t\tO_n = Os[n];\n\t\t\t\tT_n = Os[n].length;\n\t\t\t\tfor (int t = 0; t < T_n; t++) {\n\t\t\t\t\tif (t < T_n - 1) {\n\t\t\t\t\t\tA[Q_n[t]][Q_n[t + 1]] += 1;\n\t\t\t\t\t\ta[Q_n[t]] += 1;\n\t\t\t\t\t\tif (t == 0) {\n\t\t\t\t\t\t\tpi[Q_n[0]] += 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tB[Q_n[t]][O_n[t]] += 1;\n\t\t\t\t\tb[Q_n[t]] += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tdivideAssign(pi, D);\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tdivideAssign(A[i], a[i]);\n\t\t\t\tdivideAssign(B[i], b[i]);\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\tint s = 0;\n\t\tdouble[] pi_new = allocateVector(N);\n\t\tdouble[][] A_new = allocateMatrix(N, N);\n\t\tdouble[][] B_new = allocateMatrix(N, M);\n\t\tdouble[] temp_pi = null;\n\t\tdouble[][] temp_A = null;\n\t\tdouble[][] temp_B = null;\n\t\tdouble[][] alpha_hat = null;\n\t\tdouble[][] beta_hat = null;\n\t\tdouble[] c_n = null;\n\t\tdouble[][] xi = allocateMatrix(N, N);\n\t\tdouble[] gamma = allocateVector(N);\n\t\tdo {\n\n\t\t\t// Clearance\n\t\t\tclearVector(pi_new);\n\t\t\tclearMatrix(A_new);\n\t\t\tclearMatrix(B_new);\n\t\t\tclearVector(a);\n\t\t\tclearVector(b);\n\t\t\t/*clearMatrix(xi);\n\t\t\tclearVector(gamma);*/\n\t\t\tlog_likelihood_new = 0;\n\n\t\t\tfor (int n = 0; n < D; n++) {\n\n\t\t\t\t// Q_n = Qs[n];\n\t\t\t\tO_n = Os[n];\n\t\t\t\tT_n = Os[n].length;\n\t\t\t\tc_n = allocateVector(T_n);\n\t\t\t\talpha_hat = allocateMatrix(T_n, N);\n\t\t\t\tbeta_hat = allocateMatrix(T_n, N);\n\n\t\t\t\t// Forward Recursion with Scaling\t\t\t\n\n\t\t\t\tfor (int t = 0; t <= T_n - 1; t++) {\n\t\t\t\t\tif (t == 0) {\n\t\t\t\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\t\t\t\talpha_hat[0][i] = pi[i] * B[i][O_n[0]];\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\t\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\t\t\t\t\talpha_hat[t][j] += alpha_hat[t - 1][i] * A[i][j] * B[j][O_n[t]];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tc_n[t] = 1.0 / sum(alpha_hat[t]);\n\t\t\t\t\ttimesAssign(alpha_hat[t], c_n[t]);\n\t\t\t\t}\n\n\t\t\t\t// Backward Recursion with Scaling\n\n\t\t\t\tfor (int t = T_n + 1; t >= 2; t--) {\n\t\t\t\t\tif (t == T_n + 1) {\n\t\t\t\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\t\t\t\tbeta_hat[t - 2][i] = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (t <= T_n) {\n\t\t\t\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\t\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\t\t\t\t\tbeta_hat[t - 2][i] += A[i][j] * B[j][O_n[t - 1]] * beta_hat[t - 1][j];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ttimesAssign(beta_hat[t - 2], c_n[t - 2]);\n\t\t\t\t}\n\n\t\t\t\t// Expectation Variables and Updating Model Parameters\n\n\t\t\t\tfor (int t = 0; t <= T_n - 1; t++) {\n\t\t\t\t\tif (t < T_n - 1) {\n\t\t\t\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\t\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\t\t\t\t\txi[i][j] = alpha_hat[t][i] * A[i][j] * B[j][O_n[t + 1]] * beta_hat[t + 1][j];\n\t\t\t\t\t\t\t\t// A_new[i][j] += xi[i][j];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tplusAssign(A_new[i], xi[i]);\n\t\t\t\t\t\t\tgamma[i] = sum(xi[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (t == 0) {\n\t\t\t\t\t\t\tplusAssign(pi_new, gamma);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tplusAssign(a, gamma);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tassignVector(gamma, alpha_hat[t]);\n\t\t\t\t\t}\n\t\t\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\t\t\tB_new[j][O_n[t]] += gamma[j];\n\t\t\t\t\t}\n\t\t\t\t\tplusAssign(b, gamma);\n\t\t\t\t\tlog_likelihood_new += -Math.log(c_n[t]);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// Normalization (Sum to One)\n\n\t\t\tsum2one(pi_new);\n\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tdivideAssign(A_new[i], a[i]);\n\t\t\t}\n\n\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\tdivideAssign(B_new[j], b[j]);\n\t\t\t}\n\n\t\t\ttemp_pi = pi;\n\t\t\tpi = pi_new;\n\t\t\tpi_new = temp_pi;\n\n\t\t\ttemp_A = A;\n\t\t\tA = A_new;\n\t\t\tA_new = temp_A;\n\n\t\t\ttemp_B = B;\n\t\t\tB = B_new;\n\t\t\tB_new = temp_B;\n\t\t\t// display(B);\n\n\t\t\ts = s + 1;\n\n\t\t\tif (s > 1) {\n\t\t\t\tif (Math.abs((log_likelihood_new - log_likelihood) / log_likelihood) < epsilon) {\n\t\t\t\t\tfprintf(\"log[P(O|Theta)] does not increase.\\n\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlog_likelihood = log_likelihood_new;\n\t\t\tfprintf(\"Iter: %d, log[P(O|Theta)]: %f\\n\", s, log_likelihood);\n\n\t\t} while (s < maxIter);\n\n\t}", "@Override\r\n public boolean breadthFirstSearch(T start, T end) {\r\n Vertex<T> startV = vertices.get(start);\r\n Vertex<T> endV = vertices.get(end);\r\n\r\n Queue<Vertex<T>> queue = new LinkedList<Vertex<T>>();\r\n Set<Vertex<T>> visited = new HashSet<>();\r\n\r\n queue.add(startV);\r\n visited.add(startV);\r\n\r\n while(queue.size() > 0){\r\n Vertex<T> next = queue.poll();\r\n if(next == null){\r\n continue;\r\n }\r\n if(next == endV){\r\n return true;\r\n }\r\n\r\n for (Vertex<T> neighbor: next.getNeighbors()){\r\n if(!visited.contains(neighbor)){\r\n visited.add(neighbor);\r\n queue.add(neighbor);\r\n }\r\n }\r\n }\r\n\r\n return false;\r\n }", "public void run(){\t\n\t\tComputingRequest pathCompReq;\n\t\tlong timeIniNanos;\n\t\tlong timeEndNanos;\n\t\tlong timePreNanos=System.nanoTime();\n\t\twhile (running) {\n\t\t\tlog.info(\"Waiting for a new Computing Request to process\");\n\t\t\ttry {\n\t\t\t\tpathCompReq=pathComputingRequestQueue.take();\n\n\t\t\t\tif (analyzeRequestTime){\n\t\t\t\t\tdouble idleTimeV=(System.nanoTime()-timePreNanos)/(double)1000000;\n\t\t\t\t\tif (idleTimeV<20000){\n\t\t\t\t\t\tidleTime.analyze(idleTimeV);\t\n\t\t\t\t\t}\t\n\t\t\t\t}\n\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tlog.warn(\"There is no path to compute\");\n\t\t\t\te.printStackTrace();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttimeIniNanos=System.nanoTime();\n\n\t\t\tif (pathCompReq.getRequestList().size()==1){\n\t\t\t\tlog.info(\"Processing New Path Computing request, id: \"+pathCompReq.getRequestList().get(0).toString());\t\n\t\t\t}\n\t\t\t//FIXME: ESTA PARTE PUEDE FALLAR SI MANDAN OTRA COSA QUE NO SEAN IPV4 o GEN END POINTS\n\t\t\t//POR AHORA PONGO TRY CATH Y MANDO NOPATH\n\t\t\tlong sourceIF=0;\n\t\t\tlong destIF=0;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tP2PEndpoints p2pep=null;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry{\n\t\t\t\t//For the IT case\n\t\t\t\tif (ted.isITtedb()){\n\t\t\t\t\tlog.info(\"Processing New Path Computing request, id: \"+pathCompReq.getRequestList().get(0).toString());\t\t\n\t\t\t\t\tsource =(((GeneralizedEndPoints)pathCompReq.getRequestList().get(0).getEndPoints()).getP2PEndpoints().getSourceEndPoint().getEndPointIPv4TLV().getIPv4address());\n\t\t\t\t\tdest =(((GeneralizedEndPoints)pathCompReq.getRequestList().get(0).getEndPoints()).getP2PEndpoints().getDestinationEndPoint().getEndPointIPv4TLV().getIPv4address());\n\t\t\t\t}else {\n\t\t\t\t\ttry { //EndPointsIPv4\n\t\t\t\t\t\tif (pathCompReq.getRequestList().get(0).getEndPoints() instanceof GeneralizedEndPoints){\n\t\t\t\t\t\t\tsource = ((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).getSourceIP();\n\t\t\t\t\t\t\tdest = ((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).getDestIP();\n\t\t\t\t\t\t\tsourceIF=((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).getSourceIF();\n\t\t\t\t\t\t\tdestIF=((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).getDestIF();\n\t\t\t\t\t\t\tlog.info(\"SubObjeto: EP-Unnumbered Interface: \"+((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).toString());\n\t\t\t\t\t\t\tEndPointsIPv4 ep= new EndPointsIPv4();\n\t\t\t\t\t\t\tep.setDestIP(dest);\n\t\t\t\t\t\t\tep.setSourceIP(source);\n\t\t\t\t\t\t\tpathCompReq.getRequestList().get(0).setEndPoints(ep);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsource = ((EndPointsIPv4)pathCompReq.getRequestList().get(0).getEndPoints()).getSourceIP();\n\t\t\t\t\t\tdest = ((EndPointsIPv4)pathCompReq.getRequestList().get(0).getEndPoints()).getDestIP();\n\t\t\t\t\t\tlog.info(\" XXXX try source: \"+source);\n\t\t\t\t\t\tlog.info(\" XXXX try dest: \"+dest);\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e) { //GeneralizedEndPoints\n\t\t\t\t\t\tif (pathCompReq.getRequestList().get(0).getEndPoints() instanceof GeneralizedEndPoints){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tp2pep = ((GeneralizedEndPoints)pathCompReq.getRequestList().get(0).getEndPoints()).getP2PEndpoints();\t\t\t\n\n\t\t\t\t\t\t\t//P2PEndpoints p2pep = ((GeneralizedEndPoints)pathCompReq.getRequestList().get(0).getEndPoints()).getP2PEndpoints();\t\t\t\n\t\t\t\t\t\t\tlog.info(\"RequestProcessorThread GeneralizedEndPoints -> sourceDataPath:: \"+p2pep.getSourceEndPoint()+\" destDataPath :: \"+p2pep.getDestinationEndPoint());\n\n\t\t\t\t\t\t\tGeneralizedEndPoints ep= new GeneralizedEndPoints();\n\t\t\t\t\t\t\tep.setP2PEndpoints(p2pep); \t\n\t\t\t\t\t\t\tpathCompReq.getRequestList().get(0).setEndPoints(ep);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tsource = p2pep.getSourceEndPoint().getEndPointIPv4TLV().getIPv4address();\n\t\t\t\t\t\t\tdest = p2pep.getDestinationEndPoint().getEndPointIPv4TLV().getIPv4address();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}catch (Exception e){\n\t\t\t\t//If fails, we send NoPath, by now (reasons later...)\n\t\t\t\t//FIXME\n\t\t\t\tlog.info(\"Shouldn't be here except in WLANs\");\n\t\t\t\t//log.info(FuncionesUtiles.exceptionToString(e));\n\t\t\t\t//this.sendNoPath(pathCompReq);\n\t\t\t}\n\t\t\t//In case it is a child PCE with a parent, requestToParent = true\n\t\t\tboolean requestToParent = false;\n\t\t\n\t\t\tif (this.isChildPCE==true){\n\t\t\t\t//Before sending to the parent, check that the source and destinations don't belong to the domain\n\t\t\t\t\n\t\t\t\tif((!(((DomainTEDB)ted).belongsToDomain(source))||(!(((DomainTEDB)ted).belongsToDomain(dest))))){\t\t\t\t\t\n\t\t\t\t\trequestToParent = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t//In case we need to send the request to the parent... this way...\n\t\t\tif (requestToParent == true) {\n\t\t\t\tlog.info(\"Child PCE: Request is going to be fowarded to the Parent PCE\");\n\t\t\t\tPCEPRequest pcreq = new PCEPRequest();\n\t\t\t\tRequest request=pathCompReq.getRequestList().get(0).duplicate();\n\t\t\t\t//FIXME: hay que poner un nuevo requestID, si no... la podemos liar\n\t\t\t\tpcreq.addRequest(request);\n\t\t\t\tPCEPResponse p_rep = cpcerm.newRequest(pcreq);\n\n\n\t\t\t\tif (p_rep==null){\n\t\t\t\t\tlog.warn(\"Parent doesn't answer\");\n\t\t\t\t\tthis.sendNoPath(pathCompReq);\n\t\t\t\t}else {\n\t\t\t\t\tlog.info(\"RESP: \"+p_rep.toString());\n\t\t\t\t}\n\n\t\t\t\tComputingResponse pcepresp = new ComputingResponse();\n\t\t\t\tpcepresp.setResponsetList(p_rep.getResponseList());\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tlog.info(\"Encoding Computing Request\");\n\t\t\t\t\tpcepresp.encode();\n\t\t\t\t} \n\t\t\t\tcatch (PCEPProtocolViolationException e1)\n\t\t\t\t{\n\t\t\t\t\tlog.info(UtilsFunctions.exceptionToString(e1));\n\t\t\t\t}\n\n\n\t\t\t\ttry {\n\t\t\t\t\tlog.info(\"oNE OF THE NODES IS NOT IN THE DOMAIN. Send Request to parent PCE,pcepresp:\"+pcepresp+\",pathCompReq.getOut():\"+pathCompReq.getOut());\n\t\t\t\t\tpathCompReq.getOut().write(p_rep.getBytes());\n\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tlog.warn(\"Parent doesn't answer\");\n\t\t\t\t\tComputingResponse m_resp=new ComputingResponse();\n\t\t\t\t\tResponse response=new Response();\n\t\t\t\t\tRequestParameters rp = new RequestParameters();\n\t\t\t\t\trp.setRequestID(request.getRequestParameters().requestID);\n\t\t\t\t\tresponse.setRequestParameters(rp);\n\t\t\t\t\tNoPath noPath= new NoPath();\n\t\t\t\t\tnoPath.setNatureOfIssue(ObjectParameters.NOPATH_NOPATH_SAT_CONSTRAINTS);\n\t\t\t\t\tNoPathTLV noPathTLV=new NoPathTLV();\n\t\t\t\t\tnoPath.setNoPathTLV(noPathTLV);\t\t\t\t\n\t\t\t\t\tresponse.setNoPath(noPath);\n\t\t\t\t\tm_resp.addResponse(response);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tm_resp.encode();\n\t\t\t\t\t\tpathCompReq.getOut().write(m_resp.getBytes());\n\t\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t\t} catch (IOException e2) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te2.printStackTrace();\n\t\t\t\t\t} catch (PCEPProtocolViolationException e3) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te3.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(\"Send NO PATH\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\tlog.info(\"Response sent!!\");\n\t\t\t\t//\t}\n\t\t\t\t//}\n\t\t\t\tft=null;\n\n\t\t\t} else {\n\t\t\t\tint of=0;\n\t\t\t\tComputingAlgorithmManager algortithmManager=null;\n\t\t\t\tComputingAlgorithmManagerSSON algortithmManagerSSON=null;\n\t\t\t\tif (pathCompReq.getSvec()!=null){\n\t\t\t\t\tlog.info(\"SVEC Request \");\n\t\t\t\t\tObjectiveFunction objectiveFunctionObject=pathCompReq.getSvec().getObjectiveFunction();\n\t\t\t\t\tif (objectiveFunctionObject!=null){\n\t\t\t\t\t\tof=objectiveFunctionObject.getOFcode();\n\t\t\t\t\t\tlog.info(\"ObjectiveFunction code \"+of);\n\t\t\t\t\t\talgortithmManager =svecAlgorithmList.get(new Integer(of));\n\t\t\t\t\t\tif (algortithmManager==null){\n\t\t\t\t\t\t\tif (objectiveFunctionObject.isPbit()==true){\n\t\t\t\t\t\t\t\tlog.warn(\"OF not supported\");\n\t\t\t\t\t\t\t\t//Send error\n\t\t\t\t\t\t\t\tPCEPError msg_error= new PCEPError();\n\t\t\t\t\t\t\t\tErrorConstruct error_c=new ErrorConstruct();\n\t\t\t\t\t\t\t\tPCEPErrorObject error= new PCEPErrorObject();\n\t\t\t\t\t\t\t\terror.setErrorType(ObjectParameters.ERROR_UNSUPPORTEDOBJECT);\n\t\t\t\t\t\t\t\terror.setErrorValue(ObjectParameters.ERROR_UNSUPPORTEDOBJECT_UNSUPPORTED_PARAMETER);\n\t\t\t\t\t\t\t\terror_c.getErrorObjList().add(error);\n\t\t\t\t\t\t\t\tmsg_error.setError(error_c);\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tmsg_error.encode();\n\t\t\t\t\t\t\t\t\tpathCompReq.getOut().write(msg_error.getBytes());\n\t\t\t\t\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\tlog.warn(\"IOException sending error to PCC: \"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t} catch (PCEPProtocolViolationException e) {\n\t\t\t\t\t\t\t\t\tlog.error(\"Malformed ERROR MESSAGE, CHECK PCE CODE:\"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\tbreak;\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tlog.warn(\"USING Default SVEC \");\n\t\t\t\t\t\t\t\tDefaultSVECPathComputing dspc=new DefaultSVECPathComputing(pathCompReq,ted);\n\t\t\t\t\t\t\t\tft=new ComputingTask(dspc);\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tlog.info(\"Custom SVEC OF \"+of);\n\t\t\t\t\t\t\tComputingAlgorithm cpr=algortithmManager.getComputingAlgorithm(pathCompReq, ted);\n\t\t\t\t\t\t\tft=new ComputingTask(cpr);\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tlog.info(\"Default SVEC \");\n\t\t\t\t\t\tDefaultSVECPathComputing dspc=new DefaultSVECPathComputing(pathCompReq,ted);\n\t\t\t\t\t\tft=new ComputingTask(dspc);\t\n\n\t\t\t\t\t}\n\n\n\t\t\t\t}//aqui se acaba el de svec!=null\n\t\t\t\telse {\n\t\t\t\t\tboolean nopath=false;\n\t\t\t\t\tlog.debug(\"Non-svec request\");\n\t\t\t\t\tdouble totalTimeNs=System.nanoTime()-pathCompReq.getTimeStampNs();\n\t\t\t\t\tdouble totalTimeMs=totalTimeNs/1000000L;\n\t\t\t\t\tif (useMaxReqTime==true){\n\t\t\t\t\t\tif (totalTimeMs>pathCompReq.getMaxTimeInPCE()){\n\t\t\t\t\t\t\tlog.info(\"Request execeeded time, sending nopath\");\n\t\t\t\t\t\t\tft=null;\n\t\t\t\t\t\t\tlog.info(\"Mando no path request execeeded time.totalTimeMs \"+totalTimeMs+\"pathCompReq.getMaxTimeInPCE()\");\n\t\t\t\t\t\t\tsendNoPath(pathCompReq);\n\t\t\t\t\t\t\tnopath=true;\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\n\t\t\t\t\tif (nopath==false){\n\t\t\t\t\t\tObjectiveFunction objectiveFunctionObject=pathCompReq.getRequestList().get(0).getObjectiveFunction();\n\t\t\t\t\t\tif (objectiveFunctionObject!=null){ \t\t\t\t\n\t\t\t\t\t\t\tof=objectiveFunctionObject.getOFcode();\n\n\t\t\t\t\t\t\tlog.debug(\"ObjectiveFunction code \"+of);\n\t\t\t\t\t\t\talgortithmManager =singleAlgorithmList.get(new Integer(of));\n\t\t\t\t\t\t\tif (singleAlgorithmListsson != null){\n\t\t\t\t\t\t\t\talgortithmManagerSSON = singleAlgorithmListsson.get(new Integer(of));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (algortithmManager==null && algortithmManagerSSON==null){\n\t\t\t\t\t\t\t\tif (objectiveFunctionObject.isPbit()==true){\n\t\t\t\t\t\t\t\t\tlog.warn(\"OF not supported!!\");\n\t\t\t\t\t\t\t\t\t//Send error\n\t\t\t\t\t\t\t\t\tPCEPError msg_error= new PCEPError();\n\t\t\t\t\t\t\t\t\tErrorConstruct error_c=new ErrorConstruct();\n\t\t\t\t\t\t\t\t\tPCEPErrorObject error= new PCEPErrorObject();\n\t\t\t\t\t\t\t\t\terror.setErrorType(ObjectParameters.ERROR_UNSUPPORTEDOBJECT);\n\t\t\t\t\t\t\t\t\terror.setErrorValue(ObjectParameters.ERROR_UNSUPPORTEDOBJECT_UNSUPPORTED_PARAMETER);\n\t\t\t\t\t\t\t\t\terror_c.getErrorObjList().add(error);\n\t\t\t\t\t\t\t\t\terror_c.getRequestIdList().add(pathCompReq.getRequestList().get(0).getRequestParameters());\n\t\t\t\t\t\t\t\t\tmsg_error.setError(error_c);\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tmsg_error.encode();\n\t\t\t\t\t\t\t\t\t\tpathCompReq.getOut().write(msg_error.getBytes());\n\t\t\t\t\t\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\tlog.warn(\"IOException sending error to PCC: nons\"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t} catch (PCEPProtocolViolationException e) {\n\t\t\t\t\t\t\t\t\t\tlog.error(\"Malformed ERROR MESSAGE, CHECK PCE CODE. nons\"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tnopath=true;\n\t\t\t\t\t\t\t\t\tft=null;\n\t\t\t\t\t\t\t\t\tlog.warn(\"error message informing sent.\"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tlog.info(\"Choosing default algotithm 1\");\n\t\t\t\t\t\t\t\t\tlog.info(\"pathCompReq:: \"+pathCompReq.toString());\n\t\t\t\t\t\t\t\t\t//log.info(\"ted:: \"+ted.printTopology());\n\t\t\t\t\t\t\t\t\tDefaultSinglePathComputing dspc=new DefaultSinglePathComputing(pathCompReq,ted);\n\t\t\t\t\t\t\t\t\tft=new ComputingTask(dspc);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tlog.info(\"Choosing algorithm of OF \"+of);\n\t\t\t\t\t\t\t\tboolean ssonAlgorithm = false;\n\t\t\t\t\t\t\t\tif (singleAlgorithmListsson != null){\n\t\t\t\t\t\t\t\t\tif (singleAlgorithmListsson.size()!=0){\n\t\t\t\t\t\t\t\t\t\tssonAlgorithm = true;\n\t\t\t\t\t\t\t\t\t\t//FIXME: Hay que declarar el parametro \"modulation format\".\n\t\t\t\t\t\t\t\t\t\tint mf=0;\n\t\t\t\t\t\t\t\t\t\tComputingAlgorithm cpr=algortithmManagerSSON.getComputingAlgorithm(pathCompReq, ted, mf);\n\t\t\t\t\t\t\t\t\t\tft=new ComputingTask(cpr);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (!ssonAlgorithm){\n\t\t\t\t\t\t\t\t\tif (isMultilayer==true){\n\t\t\t\t\t\t\t\t\t\tComputingAlgorithm cpr=algortithmManager.getComputingAlgorithm(pathCompReq, ted, opCounter);\n\t\t\t\t\t\t\t\t\t\tft=new ComputingTask(cpr);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tComputingAlgorithm cpr=algortithmManager.getComputingAlgorithm(pathCompReq, ted);\n\t\t\t\t\t\t\t\t\t\tft=new ComputingTask(cpr);\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tlog.info(\"Choosing default algotithm 2\");\n\t\t\t\t\t\t\tDefaultSinglePathComputing dspc=new DefaultSinglePathComputing(pathCompReq,ted);\n\t\t\t\t\t\t\tft=new ComputingTask(dspc);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (ft!=null)\t{\n\t\t\t\t//Here the task will be executed. n\n\t\t\t\tComputingResponse rep;\n\t\t\t\ttry {\n\t\t\t\t\tft.run();\n\t\t\t\t\trep=ft.get(pathCompReq.getMaxTimeInPCE(),TimeUnit.MILLISECONDS);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\tlog.warn(\"Computation failed: \"+e.getMessage()+\" || \"+UtilsFunctions.exceptionToString(e)+\" || \" +\",MAXTIME: \"+pathCompReq.getMaxTimeInPCE());\n\t\t\t\t\trep=null;\n\t\t\t\t}\n\t\t\t\tlog.info(\"ReppPP:::\"+rep);\n\t\t\t\t//FIXME: There's a trap here. We change Response to send an unnumbered interface\n\t\t\t\tif ((sourceIF!=0)&&(destIF!=0))//Esto ocurre en el caso de recibir UnnumberedInterface EndPoints (Caso VNTM)\n\t\t\t\t\ttrappingResponse(rep, sourceIF, destIF);\n\t\t\t\ttry {\n\t\t\t\t\t//FIXME: WE ARE USING THE MAX TIME IN PCE, REGARDLESS THE TIME IN THE PCE\n\t\t\t\t\t//log.error(\"Esperamos \"+pathCompReq.getMaxTimeInPCE());\n\t\t\t\t\t//FIXME: \t\t\t\t\n\t\t\t\t\tif (rep!=null){\n\t\t\t\t\t\t//log.info(\"rep.getPathList().get(0)\"+rep.getResponse(0).getPathList().get(0));\n\t\t\t\t\t\tComputingResponse repRes=ft.executeReservation();\n\t\t\t\t\t\tif (repRes!=null){\n\t\t\t\t\t\t\trep=repRes;\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttimeEndNanos=System.nanoTime();\n\n\t\t\t\t\t\tdouble compTimeMicroSec=(timeEndNanos-timeIniNanos)/(double)1000;\n\t\t\t\t\t\tdouble toTimeMicroSec=(timeEndNanos-pathCompReq.getTimeStampNs())/(double)1000;\n\t\t\t\t\t\tdouble toTimeMiliSec=(timeEndNanos-pathCompReq.getTimeStampNs())/(double)1000000;\n\t\t\t\t\t\t//In some no path cases, we can retry\n\t\t\t\t\t\t//here it is the right place\n\t\t\t\t\t\tboolean retry=false;\n\t\t\t\t\t\tif ((rep.ResponseList.getFirst().getNoPath()!=null)&&(pathCompReq.getRequestList().getFirst().getRequestParameters().isRetry())){\n\t\t\t\t\t\t\tdouble totalTimeMs=(System.nanoTime()-pathCompReq.getTimeStampNs())/1000000L;\n\t\t\t\t\t\t\tif (pathCompReq.getRequestList().getFirst().getRequestParameters().getMaxRequestTimeTLV()!=null){\n\t\t\t\t\t\t\t\tlong maxReqTimeMs=pathCompReq.getRequestList().getFirst().getRequestParameters().getMaxRequestTimeTLV().getMaxRequestTime();\n\t\t\t\t\t\t\t\tif (totalTimeMs<=maxReqTimeMs){\n\t\t\t\t\t\t\t\t\tif (totalTimeMs<60000){//FIXME: LIMITE DE 1 MINUTO, PARA EVITAR ATAQUE MALINTENCIONADO\n\t\t\t\t\t\t\t\t\t\tlog.info(\"Re-queueing comp req\");\n\t\t\t\t\t\t\t\t\t\tpathComputingRequestRetryQueue.add(pathCompReq);\t\n\t\t\t\t\t\t\t\t\t\tretry=true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (retry==false) {\n\t\t\t\t\t\t\tif (pathCompReq.getPccReqId()!=null){\n\t\t\t\t\t\t\t\trep.getResponse(0).setPccIdreq(pathCompReq.getPccReqId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (pathCompReq.getMonitoring()!=null){\n\t\t\t\t\t\t\t\tlog.info(\"Monitoring Info is requested\");\n\t\t\t\t\t\t\t\tMetricPCE metricPCE=new MetricPCE();\n\t\t\t\t\t\t\t\tPceIdIPv4 pceId=new PceIdIPv4();\n\t\t\t\t\t\t\t\tInet4Address pceIPAddress=null;\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tpceIPAddress = (Inet4Address) Inet4Address.getByName(\"0.0.0.0\");\n\t\t\t\t\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tpceId.setPceIPAddress(pceIPAddress);\n\t\t\t\t\t\t\t\tmetricPCE.setPceId(pceId);\n\t\t\t\t\t\t\t\tProcTime procTime=new ProcTime();\n\t\t\t\t\t\t\t\tmetricPCE.setProcTime(procTime);\n\t\t\t\t\t\t\t\t//FIXME: Ahora lo pongo en us para unas pruebas\n\t\t\t\t\t\t\t\t//en la RFC esta en ms\n\t\t\t\t\t\t\t\tprocTime.setCurrentProcessingTime((long)toTimeMiliSec);\n\t\t\t\t\t\t\t\t//procTime.setMaxProcessingTime((long)toTimeMiliSec);\n\t\t\t\t\t\t\t\trep.getResponse(0).getMetricPCEList().add(metricPCE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry { \t\t\n\t\t\t\t\t\t\t\tlog.info(rep.toString());\n\t\t\t\t\t\t\t\trep.encode();\n\t\t\t\t\t\t\t} catch (PCEPProtocolViolationException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\tlog.error(\"PROBLEM ENCONDING RESPONSE, CHECK CODE!!\"+e.getMessage());\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\t\tlog.info(\"Request processeed, about to send response\");\n\t\t\t\t\t\t\t\tpathCompReq.getOut().write(rep.getBytes());\n\t\t\t\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\tlog.warn(\"Could not send the response \"+e.getMessage());\n\t\t\t\t\t\t\t\tif (rep.getResponse(0).getResConf()!=null){\n\t\t\t\t\t\t\t\t\t//FIXME\n\t\t\t\t\t\t\t\t\tlog.warn(\"If your are using WLANs this is not going to work!!\");\n\t\t\t\t\t\t\t\t\tthis.reservationManager.cancelReservation(rep.getResponse(0).getResConf().getReservationID());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//log.info(\"Response sent number \"+rep.getResponseList().getFirst().getRequestParameters().getRequestID()+\",rep.getPathList().get(0)\"+rep.getResponse(0).getPathList().get(0));\n\n\t\t\t\t\t\t\t/*** STRONGEST: Collaborative PCEs ***/\t\n\t\t\t\t\t\t\t//FIXME: pasarlo al reservation manager\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (collaborationPCESessionManager!=null){\n\t\t\t\t\t\t\t\tif (!(rep.getResponseList().isEmpty())){\n\t\t\t\t\t\t\t\t\tif (!(rep.getResponseList().get(0).getNoPath()!=null)){\n\t\t\t\t\t\t\t\t\t\tPCEPNotification m_not = createNotificationMessage(rep,pathCompReq.getRequestList().get(0).getReservation().getTimer());\t\t\t\t\n\n\t\t\t\t\t\t\t\t\t\tcollaborationPCESessionManager.sendNotifyMessage(m_not);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else {\n\t\t\t\t\t\tlog.info(\"COMPUTING TIME execeeded time, sending NOPATH\");\n\t\t\t\t\t\tsendNoPath(pathCompReq);\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (analyzeRequestTime){\n\n\t\t\t\tdouble comp=(System.nanoTime()-timeIniNanos)/(double)1000000;\n\t\t\t\tprocTime.analyze(comp);\n\t\t\t\ttimePreNanos=System.nanoTime();\n\t\t\t\tif (comp>maxProcTime){\n\t\t\t\t\tmaxProcTime=comp;\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t}", "public static void main(String[] args) {\n // write your code here\n initialize();\n\n\n Sort(profile.getProfile());\n Integer[][][] mas = new Integer[11][11][1];\n\n R.add(Q.pollFirst());\n\n for (Integer[] e : Q) {\n if (DiskCover(e, R, Rant)) {\n R.add(e);\n // Rtmp.add(Q.pollFirst());\n }\n }\n\n FindMaxAngle(R, 0);\n\n Rg = R;\n //Rtmp-R add Q\n list_r.add(R);\n int j = 0;\n boolean flag = false;\n while (!Q.isEmpty()) {\n\n\n list_r.add(FindMaxPolygonCover(Rg));\n\n }\n\n MakePolygon(list_r);\n\n boolean work = true;\n\n do {\n R.clear();\n Gr.getEdge().clear();\n // algorithmConnectivity.setMarketVertexFirst();\n for (int i = 0; i < Gr.getVertex().size(); i++) {\n\n AlgorithmConnectivity algorithmConnectivity = new AlgorithmConnectivity();\n algorithmConnectivity.initializated(Gr.getVertex().size());\n algorithmConnectivity.setMarketVertexFirst();\n algorithmConnectivity.setMarketVertexSecond(i);\n while (algorithmConnectivity.findSecond() != 100) {\n //int a= iterator.next();\n int index = algorithmConnectivity.findSecond();\n algorithmConnectivity.setMarketVertexThird(index);\n algorithmConnectivity = MakeConnection(index, algorithmConnectivity);\n }\n R.add(algorithmConnectivity.getMarket());\n }\n if (!checkConnectionGraf(R)) {\n //MakeConnection(Gr);\n ArrayList<Integer[]> result = new ArrayList<Integer[]>();\n ArrayList<Integer> ver = new ArrayList<Integer>();\n ArrayList<ArrayList<Integer>> v = new ArrayList<ArrayList<Integer>>();\n for (Integer[] p : R) {\n ArrayList<Integer> res = new ArrayList<Integer>();\n ver.clear();\n for (int i = 0; i < p.length; i++) {\n if (p[i] != 1) {\n ver.add(Gr.getVertex().get(i));\n }\n }\n if (ver.size() != 1) {\n // result.add(AddNewRoute(ver));\n // v.add(ver);\n result.addAll(AddNewRoute(ver));\n }\n }\n int minumum = 1000;\n Integer[] place = new Integer[3];\n for (int i = 0; i < result.size(); i++) {\n Integer[] ma = result.get(i);\n if (ma[2] == null) {\n System.out.print(\"\");\n }\n if ((minumum > ma[2]) && (ma[2]) != 0) {\n minumum = ma[2];\n place = ma;\n }\n }\n if (minumum == 1000) {\n for (Integer[] p : R) {\n ver.clear();\n for (int i = 0; i < p.length - 1; i++) {\n if (p[i] == 1) {\n ver.add(Gr.getVertex().get(i));\n }\n }\n result.addAll(AddNewRoute(ver));\n // result.add(AddNewRoute(ver));\n for (int i = 0; i < result.size(); i++) {\n Integer[] ma = result.get(i);\n if (ma[2] == null) {\n System.out.print(\"\");\n }\n if ((minumum > ma[2]) && (ma[2]) != 0) {\n minumum = ma[2];\n place = ma;\n }\n }\n AddNewVertex(place);\n }\n } else {\n AddNewVertex(place);\n }\n } else {\n work = false;\n }\n\n } while (work);\n\n MobileProfile prof = new MobileProfile();\n prof.initialization(Gr.getVertex().size());\n int sum = 0;\n int[][][] massive = profile.getProfile();\n for (int i = 0; i < Gr.getVertex().size(); i++) {\n // sum=sum+massive;\n }\n\n\n zcd = new ZCD();\n\n zcd.setGraphR(Gr);\n\n Iterator<Edges> it = Gr.getEdgeses().iterator();\n boolean fla = false;\n while (it.hasNext()) {\n Edges d = it.next();\n LinkedList<Integer[]> graph_edges = g.getSort_index();\n\n for (int i = 0; i < graph_edges.size(); i++) {\n Integer[] mass = graph_edges.get(i);\n if (checkLine(g.getCoordinate().get(mass[0]), g.getCoordinate().get(mass[1]), Gr.getCoordinate().get(d.getX()), Gr.getCoordinate().get(d.getY()))) {\n if (!fla) {\n Integer[] wr = new Integer[3];\n wr[0] = d.getX();\n wr[1] = d.getY();\n wr[2] = mass[2];\n fla = true;\n zcd.addWrEdges(wr);\n }\n }\n }\n if (!fla) {\n\n Integer[] wr = new Integer[3];\n wr[0] = d.getX();\n wr[1] = d.getY();\n wr[2] = 2;\n\n zcd.addWrEdges(wr);\n\n }\n fla = false;\n }\n\n Edges e = null;\n for (int i = 0; i < Gr.getVertex().size(); i++) {\n int sumwr = 0;\n HashSet<Edges> item = Gr.getEdgeses();\n Iterator<Edges> iterator = item.iterator();\n for (int k = 0; k < zcd.getWrEdges().size(); k++) {\n\n e = iterator.next();\n if (e.checkEdge(i)) {\n Integer[] m = zcd.getWrEdges().get(k);\n sumwr = sumwr + m[2];\n\n }\n\n }\n wr.add(sumwr);\n\n }\n\n int max = 0;\n int count = 0;\n for (int i = 0; i < wr.size(); i++) {\n if (max < wr.get(i)) {\n max = wr.get(i);\n count = i;\n }\n }\n Integer[] a = new Integer[2];\n a[0] = count;\n a[1] = max;\n zcd.setRoot_vertex(a);\n\n\n int number_vertex = 5;\n //ZTC ztc = new ZTC();\n neig = new int[Gr.getVertex().size()][Gr.getVertex().size()];\n for (int i = 0; i < Gr.getVertex().size(); i++) {\n HashSet<Edges> item = Gr.getEdgeses();\n Iterator<Edges> iterator = item.iterator();\n while (iterator.hasNext()) {\n e = iterator.next();\n if (e.checkEdge(i)) {\n\n neig[i][e.getY()] = 1;\n }\n }\n }\n ztc.setNeigboor(neig);\n ztc.addTVertex(a[0]);\n Integer[] zero = new Integer[3];\n zero[0] = a[0];\n zero[1] = 0;\n zero[2] = 0;\n verLmtest.add(zero);\n vertex_be = new boolean[Gr.getVertex().size()];\n int root_number = 5;\n while (ztc.getTvertex().size() != Gr.getVertex().size()) {\n\n LinkedList<Edges> q = new LinkedList<Edges>();\n\n\n count_tree++;\n\n\n LinkedList<Integer> vertext_t = new LinkedList<Integer>(ztc.getTvertex());\n while (vertext_t.size() != 0) {\n // for(int i=0; i<count_tree;i++){\n\n number_vertex = vertext_t.pollFirst();\n weight_edges.clear();\n if (!vertex_be[number_vertex]) {\n vertex_be[number_vertex] = true;\n } else {\n continue;\n }\n\n // if(i<vertext_t.size())\n\n\n HashSet<Edges> item = Gr.getEdgeses();\n Iterator<Edges> iterator = item.iterator();\n // while (iterator.hasNext()) {\n for (int k = 0; k < item.size(); k++) {\n e = iterator.next();\n\n if (e.checkEdge(number_vertex)) {\n\n weight_edges.add(zcd.getWrEdges().get(k));\n q.add(e);\n }\n\n if (q.size() > 1)\n q = sort(weight_edges, q);\n\n\n while (!q.isEmpty()) {\n e = q.pollFirst();\n Integer[] lm = new Integer[3];\n\n\n lm[0] = e.getY();\n lm[1] = 1;\n lm[2] = 0;\n boolean add_flag = true;\n for (int i = 0; i < verLmtest.size(); i++) {\n Integer[] mess = verLmtest.get(i);\n if (e.getY() == mess[0]) {\n add_flag = false;\n }\n }\n if (add_flag) {\n for (int i = 0; i < verLmtest.size(); i++) {\n Integer[] mess = verLmtest.get(i);\n if (e.getX() == mess[0]) {\n mess[2] = mess[2] + 1;\n /* if (e.getX() == root_number) {\n mess[1] = 1;\n } else {\n mess[1] = mess[1] + 1;\n lm[1]=mess[1];\n\n }*/\n verLmtest.set(i, mess);\n break;\n }\n\n }\n for (int i = 0; i < verLmtest.size(); i++) {\n Integer[] mess = verLmtest.get(i);\n if (e.getX() == mess[0]) {\n lm[1] = mess[1] + 1;\n }\n\n }\n\n verLmtest.add(lm);\n } else {\n continue;\n }\n // }\n if (ztc.getTvertex().size() == 1) {\n edgesesTestHash.add(e);\n int x = e.getX();\n int y = e.getY();\n Edges e1 = new Edges(y, x);\n edgesesTestHash.add(e1);\n\n ztc.addEdges(e);\n ztc.addEdges(e1);\n\n ztc.addTVertex(lm[0]);\n // q.removeFirst();\n\n\n } else {\n // edgesTest.add(e);\n int x = e.getX();\n int y = e.getY();\n Edges e1 = new Edges(y, x);\n // disable.add(e);\n // disable.add(e1);\n\n edgesesTestHash.add(e1);\n edgesesTestHash.add(e);\n\n int[][] ad = getNeighboor();\n\n\n if (checkLegal(e, ad)) {\n ztc.addEdges(e);\n ztc.addEdges(e1);\n\n ztc.addTVertex(lm[0]);\n\n // if(q.size()!=0)\n // q.removeFirst();\n } else {\n // q.removeFirst();\n\n Iterator<Edges> edgesIterator = edgesesTestHash.iterator();\n while (edgesIterator.hasNext()) {\n Edges eo = edgesIterator.next();\n if ((eo.getY() == e.getY()) && (eo.getX() == e.getX())) {\n edgesIterator.remove();\n }\n if ((eo.getY() == e1.getY()) && (eo.getX() == e1.getX())) {\n edgesIterator.remove();\n }\n }\n\n verLmtest.removeLast();\n }\n\n\n }\n\n\n }\n\n\n }\n }\n }\n\n ztc.setEdgesesTree(edgesesTestHash);\n ztc.setGr(Gr);\n ConvertDataToJs convertDataToJs=new ConvertDataToJs();\n try {\n convertDataToJs.save(ztc);\n } catch (FileNotFoundException e1) {\n e1.printStackTrace();\n }\n\n System.out.print(\"\");\n\n }", "public void doPartition() {\n int sum = 0;\n for (int q = 0; q < w.queryCount; q++) {\n for (int a = 0; a < w.attributeCount; a++) {\n sum += w.usageMatrix[q][a];\n }\n }\n\n if (sum == w.queryCount * w.attributeCount) {\n partitioning = new int[w.attributeCount];\n return;\n }\n\n\t\t//ArrayUtils.printArray(usageMatrix, \"Usage Matrix\", \"Query\", null);\n\t\t\n\t\t// generate candidate partitions (all possible primary partitions)\n\t\tint[][] candidatePartitions = generateCandidates(w.usageMatrix);\n\t\t//ArrayUtils.printArray(candidatePartitions, \"Number of primary partitions:\"+candidatePartitions.length, \"Partition \", null);\n\t\t\n\t\t// generate the affinity matrix and METIS input file \n\t\tint[][] matrix = affinityMatrix(candidatePartitions, w.usageMatrix);\n\t\t//ArrayUtils.printArray(matrix, \"Partition Affinity Matrix Size: \"+matrix.length, null, null);\n\t\twriteGraphFile(graphFileName, matrix);\n\t\t\n\t\t// run METIS using the graph file\n\t\ttry {\n\t\t\tProcess p = Runtime.getRuntime().exec(metisLocation+\" \"+graphFileName+\" \"+K);\n\t\t\tp.waitFor();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\n\t\t// read primary partition groups created by METIS \n\t\tint[][][] primaryPartitionGroups = readPartitionFile(candidatePartitions); // TODO exception here for too few groups or attributes...\n\t\t//for(int[][] primaryPartitionGroup: primaryPartitionGroups)\n\t\t//\tArrayUtils.printArray(primaryPartitionGroup, \"Partition Group\", \"Partition\", null);\n\t\t\n\t\t\n\t\t//int i=0;\n\t\tList<int[][]> bestLayouts = new ArrayList<int[][]>();\n\t\tfor(int[][] primaryPartitionGroup: primaryPartitionGroups){\n\t\t\tminCost = Double.MAX_VALUE;\n\t\t\t\n\t\t\t// Candidate Merging\n\t\t\t//System.out.println(\"Primary Partition Group:\"+(i+1));\n\t\t\tList<BigInteger> mergedCandidatePartitions = mergeCandidates(primaryPartitionGroup);\n\t\t\t//System.out.println(\"Number of merged partitions:\"+mergedCandidatePartitions.size());\n\t\t\t\n\t\t\t// Layout Generation\n\t\t\tgenerateLayout(mergedCandidatePartitions, primaryPartitionGroup);\n\t\t\tbestLayouts.add(bestLayout);\t\t\t\n\t\t\t//ArrayUtils.printArray(bestLayout, \"Layout:\"+(++i), null, null);\n\t\t}\n\t\t\n\t\t// Combine sub-Layouts\n\t\tList<int[][]> mergedBestLayouts = mergeAcrossLayouts(bestLayouts, bestLayouts.size());\n\t\tpartitioning = PartitioningUtils.getPartitioning(mergedBestLayouts);\n\t}", "List<String> parallelSearch(String rootPath, String textToSearch, List<String> extensions) throws InterruptedException {\n // Here the results will be put.\n List<String> results = new ArrayList<>();\n\n // Queue for intercommunication between \"file system walker\" and \"searchers\"\n BlockingQueue<File> queue = new LinkedBlockingDeque<>();\n\n // Thread that walks the file system and put files with provided extension in queue.\n Thread fileFinder = new Thread(new FileFinder(queue, new File(rootPath), extensions));\n\n List<Thread> searchers = new ArrayList<>();\n for (int i = 0; i < SEARCHERS_COUNT; i++) {\n // Searcher takes file from queue and looks for text entry in it.\n searchers.add(new Thread(new TextInFileSearcher(queue, textToSearch, results)));\n }\n\n // Run all the guys.\n fileFinder.start();\n searchers.forEach(Thread::start);\n searchers.forEach(t -> {\n try {\n t.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n });\n fileFinder.join();\n\n return results;\n }", "public static void main( String[] args )\n {\n //Initialize, need to remove existing in output file location.\n \t\n \t//Implement \n \t\n \t//Output your result, you need to sort your result!!!\n \t//And,Don't add a additional clean up step delete the new generated file...\n \tSparkConf conf=new SparkConf().setAppName(\"SpatialRange\");\n\t\tJavaSparkContext sc =new JavaSparkContext(conf);\n\t\t//reads each line from the csv file and stores it in RDD\n\t\tJavaRDD<String> pointStrings = sc.textFile(args[0]);\n\t\tJavaRDD<Vector> pointsSet = pointStrings.map(new Function<String,Vector>()\n\t {\n public Vector<Double> call(String line)\n {\n String[] coordinates = line.split(\",\");\n Vector<Double> vect= new Vector<Double>(coordinates.length); \n \n for(String coordinate: coordinates)\n {\n \tvect.add(Double.parseDouble(coordinate));\n \t\n }\n\n return vect;\n }\n });\n\t\t\n\t\t//getting the second input\n\t\tJavaRDD<String> searchPolyString = sc.textFile(args[1]);\n\t\tJavaRDD<Vector> searchPolySet = searchPolyString.map(new Function<String,Vector>()\n\t {\n public Vector<Double> call(String line)\n {\n String[] coordinates = line.split(\",\");\n \n Vector<Double> vect= new Vector<Double>(coordinates.length); \n \n for(String coordinate: coordinates)\n {\n \tvect.add(Double.parseDouble(coordinate));\n \t\n }\n\n return vect;\n }\n });\n\t\t\n\t\tList<Vector> queryWindow = searchPolySet.collect();\n\t\t\n\t\t//broadcasting the query window points to all the nodes\n\t\tfinal Broadcast<List<Vector>> broadcast = sc.broadcast(queryWindow);\n\t\t\n\t\tJavaRDD<String> queryResult = pointsSet.map(new Function<Vector,String>()\n\t {\n\t public String call(Vector inputVect)\n\t {\n\t \n\t List<Vector> querWindow = broadcast.value();\n\t Vector<Double> searchVect = querWindow.get(0);\n\t \n\t if(containsPolygon(searchVect,inputVect))\n\t {\t\n\t \tdouble pkey= Double.parseDouble (inputVect.elementAt(0).toString());\n\t\t\t\t\t\t\tint pointKey = (int) pkey;\n\t return String.valueOf(pointKey);\n\t }\n\t else\n\t {\n\t return \"NULL\";\n\t }\n\t }\n\t }\n\t );\n\t\tJavaRDD<String> output = queryResult.filter(new Function<String,Boolean>()\n\t {\n\t public Boolean call(String result)\n\t {\n\t \tif(!result.contains(\"NULL\"))\n\t \t\treturn true;\n\t \telse\n\t \t\treturn false;\n\t }\n\t });\n\t\t\n\t\tdeleteIfExist(args[2]);\n\t\toutput.coalesce(1).saveAsTextFile(args[2]);\n\n\n\t}", "public void execute() {\r\n\t\tgraph = new Graph();\r\n\t\tfor (int i = 0; i < WIDTH_TILES; i++) {// loops x-coords\r\n\t\t\tfor (int j = 0; j < HEIGHT_TILES; j++) {// loops y-coords\r\n\t\t\t\taddNeighbours(i, j);// adds neighbours/connections for each node\r\n\t\t\t}// for (j)\r\n\t\t}// for (i)\r\n\t\t\r\n\t\trunning = true;// sets the simulation to running\r\n\t}", "public void run() {\n BFS();\n printBFS();\n shortestPathList();\n printShortestPath();\n printPath();\n }", "public void next() {\n Solver<ArrayList<Integer>> mySolver =\n new Solver<ArrayList<Integer>>();\n ArrayList<ArrayList<Integer>> Solution =\n mySolver.SolveBFS(this);\n\n //Reset 'tried' to none\n tried = new HashSet<ArrayList<Integer>>();\n\n //Set up the nextState\n ArrayList<Integer> nextState = new ArrayList<Integer>();\n\n if(Solution.size() == 0) {\n //No Solution\n } else if (Solution.size() == 1) {\n nextState = Solution.get(0);\n curBoard = nextState;\n } else {\n nextState = Solution.get(1);\n curBoard = nextState;\n moveCount++;\n }\n clearStack();\n\n\tsetChanged();\n\tnotifyObservers();\n }", "private void BFS() {\n\n int fruitIndex = vertices.size()-1;\n Queue<GraphNode> bfsQueue = new LinkedList<>();\n bfsQueue.add(vertices.get(0));\n while (!bfsQueue.isEmpty()) {\n GraphNode pollNode = bfsQueue.poll();\n pollNode.setSeen(true);\n for (GraphNode node : vertices) {\n if (node.isSeen()) {\n continue;\n } else if (node.getID() == pollNode.getID()) {\n continue;\n } else if (!los.isIntersects(pollNode.getPoint(), node.getPoint())) {\n pollNode.getNeigbours().add(node);\n if (node.getID() != fruitIndex) {\n bfsQueue.add(node);\n node.setSeen(true);\n }\n }\n }\n }\n }", "public void solve(int startX, int startY, int endX, int endY) {\r\n // re-inicializar células para encontrar o caminho\r\n for (Cell[] cellrow : this.cells) {\r\n for (Cell cell : cellrow) {\r\n cell.parent = null;\r\n cell.visited = false;\r\n cell.inPath = false;\r\n cell.travelled = 0;\r\n cell.projectedDist = -1;\r\n }\r\n }\r\n // células ainda estão sendo consideradas\r\n ArrayList<Cell> openCells = new ArrayList<>();\r\n // célula sendo considerada\r\n Cell endCell = getCell(endX, endY);\r\n if (endCell == null) return; // saia se terminar fora dos limites\r\n { // bloco anônimo para excluir o início, porque não usado posteriormente\r\n Cell start = getCell(startX, startY);\r\n if (start == null) return; // saia se começar fora dos limites\r\n start.projectedDist = getProjectedDistance(start, 0, endCell);\r\n start.visited = true;\r\n openCells.add(start);\r\n }\r\n boolean solving = true;\r\n while (solving) {\r\n if (openCells.isEmpty()) return; // sair, nenhum caminho\r\n // classifique openCells de acordo com a menor distância projetada\r\n Collections.sort(openCells, new Comparator<Cell>() {\r\n @Override\r\n public int compare(Cell cell1, Cell cell2) {\r\n double diff = cell1.projectedDist - cell2.projectedDist;\r\n if (diff > 0) return 1;\r\n else if (diff < 0) return -1;\r\n else return 0;\r\n }\r\n });\r\n Cell current = openCells.remove(0); // célula pop menos projetada\r\n if (current == endCell) break; // no final\r\n for (Cell neighbor : current.neighbors) {\r\n double projDist = getProjectedDistance(neighbor,\r\n current.travelled + 1, endCell);\r\n if (!neighbor.visited || // ainda não visitado\r\n projDist < neighbor.projectedDist) { // melhor caminho\r\n neighbor.parent = current;\r\n neighbor.visited = true;\r\n neighbor.projectedDist = projDist;\r\n neighbor.travelled = current.travelled + 1;\r\n if (!openCells.contains(neighbor))\r\n openCells.add(neighbor);\r\n }\r\n }\r\n }\r\n // criar caminho do fim ao começo\r\n Cell backtracking = endCell;\r\n backtracking.inPath = true;\r\n while (backtracking.parent != null) {\r\n backtracking = backtracking.parent;\r\n backtracking.inPath = true;\r\n }\r\n }", "public abstract void executeWorkFlow(String projectName, String fastaFileId, Set<String> mgfIdsList, Set<String> searchEnginesList, SearchParameters searchParameters, Map<String, Boolean> searchEngines);", "@Override public final void compute2() {\n assert _left == null && _rite == null && _res == null;\n if( _hi-_lo >= 2 ) { // Multi-chunk case: just divide-and-conquer to 1 chunk\n final int mid = (_lo+_hi)>>>1; // Mid-point\n _left = clone();\n _rite = clone();\n _left._hi = mid; // Reset mid-point\n _rite._lo = mid; // Also set self mid-point\n addToPendingCount(1); // One fork awaiting completion\n _left.fork(); // Runs in another thread/FJ instance\n _rite.compute2(); // Runs in THIS F/J thread\n return; // Not complete until the fork completes\n }\n // Zero or 1 chunks, and further chunk might not be homed here\n if( _hi > _lo ) { // Single chunk?\n Vec v0 = _fr.firstReadable();\n if( v0.chunkKey(_lo).home() ) { // And chunk is homed here?\n\n // Make decompression chunk headers for these chunks\n Chunk bvs[] = new Chunk[_fr._vecs.length];\n for( int i=0; i<_fr._vecs.length; i++ )\n if( _fr._vecs[i] != null )\n bvs[i] = _fr._vecs[i].elem2BV(_lo);\n\n // Call all the various map() calls that apply\n if( _fr._vecs.length == 1 ) map(bvs[0]);\n if( _fr._vecs.length == 2 && bvs[0] instanceof NewChunk) map((NewChunk)bvs[0], bvs[1]);\n if( _fr._vecs.length == 2 ) map(bvs[0], bvs[1]);\n if( _fr._vecs.length == 3 ) map(bvs[0], bvs[1], bvs[2]);\n if( true ) map(bvs );\n _res = self(); // Save results since called map() at least once!\n // Further D/K/V put any new vec results.\n for( Chunk bv : bvs )bv.close(_lo+_outputChkOffset,_fs);\n }\n }\n tryComplete(); // And this task is complete\n }", "public void runSpectraSearchOptimizer()\n\t{\n\t\t//Load in information from each library file\n\t\ttry\n\t\t{\n\t\t\t//Read in MSP Files\n\t\t\treadMSP();\n\n\t\t\t//Sort arrays by mass, lowest to highest\n\t\t\tCollections.sort(librarySpectra);\n\t\t\tupdateProgress(100,\"% - Sorting Libraries\",true);\n\n\t\t\t//Bin MSP LibrarySpectra\n\t\t\tbinMasses();\n\n\t\t\tfor (double l=0.01; l<3.01; l=l+.01)\n\t\t\t{\n\t\t\t\tfor (double m=0.01; m<3.01; m=m+.01)\n\t\t\t\t{\n\t\t\t\t\tthis.intWeight = l;\n\t\t\t\t\tthis.massWeight = m;\n\n\t\t\t\t\t//Read in all mgf files\n\t\t\t\t\tfor (int i=0; i<mgfFiles.size(); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tupdateProgress((int)(Double.valueOf(i+1)\n\t\t\t\t\t\t\t\t/(Double.valueOf(mgfFiles.size())*100.0)),\"% - Loading Spectra\",true);\n\n\t\t\t\t\t\ttimeStart = System.nanoTime();\n\t\t\t\t\t\tnumSpectra = 0;\n\n\t\t\t\t\t\t//Read in spectra and search\n\t\t\t\t\t\treadMGF(mgfFiles.get(i));\n\n\t\t\t\t\t\t//Iterate through spectra and match\n\t\t\t\t\t\tfor (int j=0; j<sampleMS2Spectra.size(); j++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmatchLibrarySpectra(sampleMS2Spectra.get(j), massBinSize, ms1Tol, ms2Tol);\t\t\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Write ouput files for mgf\n\t\t\t\t\t\twriteResults(sampleMS2Spectra,mgfFiles.get(i)+\"_\"+l+\"_\"+m+\".csv\",maxResults);\n\n\t\t\t\t\t\t//Clear sample spectra\n\t\t\t\t\t\tsampleMS2Spectra = new ArrayList<SampleSpectrum>();\n\t\t\t\t\t}\n\n\t\t\t\t\t//Create mzxmlparser\n\t\t\t\t\tMZXMLParser parser = new MZXMLParser();\n\n\t\t\t\t\t//Read in mzxml files\n\t\t\t\t\tfor (int i=0; i<mzxmlFiles.size(); i++)\n\t\t\t\t\t{\n\n\t\t\t\t\t\ttimeStart = System.nanoTime();\n\t\t\t\t\t\tnumSpectra = 0;\n\n\t\t\t\t\t\t//Parse MZXML\n\t\t\t\t\t\tparser.readFile(mzxmlFiles.get(i));\n\n\t\t\t\t\t\t//Create SampleSpectrum objects\n\t\t\t\t\t\tfor (int j=0; j<parser.sampleSpecArray.size(); j++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsampleMS2Spectra.add(parser.sampleSpecArray.get(j));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Iterate through spectra and match\n\t\t\t\t\t\tfor (int j=0; j<sampleMS2Spectra.size(); j++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmatchLibrarySpectra(sampleMS2Spectra.get(j), massBinSize, ms1Tol, ms2Tol);\t\t\t\t\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Write ouput files for mzxml\n\t\t\t\t\t\twriteResults(sampleMS2Spectra,mzxmlFiles.get(i)+l+\"_\"+m+\".csv\",maxResults);\n\n\t\t\t\t\t\t//Clear sample spectra\n\t\t\t\t\t\tsampleMS2Spectra = new ArrayList<SampleSpectrum>();\n\t\t\t\t\t}\n\t\t\t\t\tupdateProgress(100,\"% - Completed\",true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void resolverBFS() {\n\t\tQueue<Integer> cola = new LinkedList<Integer>();\n\t\tint[] vecDistancia = new int[nodos.size()];\n\t\tfor (int i = 0; i < vecDistancia.length; i++) {\n\t\t\tvecDistancia[i] = -1;\n\t\t\trecorrido[i] = 0;\n\t\t}\n\t\tint nodoActual = 0;\n\t\tcola.add(nodoActual);\n\t\tvecDistancia[nodoActual] = 0;\n\t\trecorrido[nodoActual] = -1;\n\t\twhile (!cola.isEmpty()) {\n\t\t\tif (tieneAdyacencia(nodoActual, vecDistancia)) {\n\t\t\t\tfor (int i = 1; i < matrizAdyacencia.length; i++) {\n\t\t\t\t\tif (matrizAdyacencia[nodoActual][i] != 99 && vecDistancia[i] == -1) {\n\t\t\t\t\t\tcola.add(i);\n\t\t\t\t\t\tvecDistancia[i] = vecDistancia[nodoActual] + 1;\n\t\t\t\t\t\trecorrido[i] = nodoActual;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcola.poll();\n\t\t\t\tif (!cola.isEmpty()) {\n\t\t\t\t\tnodoActual = cola.peek();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public MultiThreadedTabuSearch(Solution initialSolution, MoveManager moveManager, ObjectiveFunction objectiveFunction, TabuList tabuList, AspirationCriteria aspirationCriteria, boolean maximizing)\n/* */ {\n/* 106 */ super(initialSolution, moveManager, objectiveFunction, tabuList, aspirationCriteria, maximizing);\n/* */ }", "public void startPopulateWorkers(){\r\n\t\tArrayList<Thread> threads = new ArrayList<Thread>();\r\n\t\t\r\n\t\t//Create threads\r\n\t\tfor(int i = 0; i < pts.length; i++){\r\n\t\t\tthreads.add(new Thread(pts[i]));\r\n\t\t\tthreads.get(i).start();\r\n\t\t}\r\n\t\t\r\n\t\t//Wait for threads to finish\r\n\t\tfor(int i = 0; i < pts.length; i++){\r\n\t\t\ttry {\r\n\t\t\t\tthreads.get(i).join();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tthrow new RuntimeException(e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "static void start() throws IOException\n {\n Double[][] center;\n JavaPairRDD<Integer, Tuple2<Double[], Double>> sol;\n\n center = create_center( num_k );\n\n // 5.do until terminate\n for( int iter=0; iter<num_iter; iter++ )\n\t\t{\n start_t = System.currentTimeMillis();\n\n center = spark_kmeans( center );\n\n end_t = System.currentTimeMillis();\n print_best( iter + 1 );\n\t\t}\n }", "@Override\n public synchronized void run() {\n while (true) {\n int nodesInQueue = 0;\n //find nodes for jobs to run on\n Iterator<AmuseJob> iterator = queue.iterator();\n while (iterator.hasNext()) {\n AmuseJob job = iterator.next();\n\n if (job.isPending()) {\n //find nodes to run this job on. Always only a single pilot, but may contain multiple nodes per pilot.\n PilotManager target = pilots.getSuitablePilot(job);\n\n //If suitable nodes are found\n if (target != null) {\n job.start(target);\n //remove this job from the queue\n iterator.remove();\n } else {\n nodesInQueue++;\n }\n } else {\n //remove this job from the queue\n iterator.remove();\n }\n }\n\n if (nodesInQueue > 0) {\n logger.info(\"Now \" + nodesInQueue + \" waiting in queue\");\n }\n \n try {\n wait(5000);\n } catch (InterruptedException e) {\n logger.debug(\"Scheduler thread interrupted, time to quit\");\n return;\n }\n \n \n }\n }", "public void run () {\n generalFeatureExtraction();\n\n //\n // 2 - Traverse the Call Graph and propagate call stack counter\n propagateFeatures();\n }", "@Override\n protected void run() {\n for (long number : numbers){\n addTask(new FindFactorsTask(new FindFactorsTask.SearchOptions(number)));\n }\n executeTasks();\n\n //Find common factors\n final Set<Long> set = new HashSet<>(((FindFactorsTask) getTasks().get(0)).getFactors());\n for (int i = 1; i < getTasks().size(); ++i){\n set.retainAll(((FindFactorsTask) getTasks().get(i)).getFactors());\n }\n\n //Find largest factor\n gcf = Collections.max(set);\n }", "@Override\n public void bsp(\n BSPPeer<LongWritable, FloatVectorWritable, NullWritable, NullWritable, ParameterMessage> peer)\n throws IOException, SyncException, InterruptedException {\n LongWritable key = new LongWritable();\n FloatVectorWritable value = new FloatVectorWritable();\n while (peer.readNext(key, value)) {\n FloatVector v = value.getVector();\n trainingSet.add(v);\n }\n\n if (peer.getPeerIndex() != peer.getNumPeers() - 1) {\n LOG.debug(peer.getPeerName() + \": \" + trainingSet.size() + \" training instances loaded.\");\n }\n \n while (this.iterations++ < maxIterations) {\n this.inMemoryModel.setIterationNumber(iterations);\n \n // each groom calculate the matrices updates according to local data\n if (peer.getPeerIndex() != peer.getNumPeers() - 1) {\n calculateUpdates(peer);\n } else {\n // doing summation received updates\n if (peer.getSuperstepCount() > 0) {\n // and broadcasts previous updated weights\n mergeUpdates(peer);\n }\n }\n\n peer.sync();\n\n if (maxIterations == Long.MAX_VALUE && isConverge) {\n if (peer.getPeerIndex() == peer.getNumPeers() - 1)\n peer.sync();\n break;\n }\n }\n\n peer.sync();\n if (peer.getPeerIndex() == peer.getNumPeers() - 1)\n mergeUpdates(peer); // merge last updates\n }", "public List<Vertex> runTabuSearch() {\r\n\t\tBestPath = convertPath(ClothestPath.findCycle(this.vertexGraph, this.edgeGraph, this.isOriented));\r\n\t\tLastPath = new ArrayList<Vertex>(BestPath);\r\n\t\tint BestEval = fit(BestPath);\r\n\t\thistoBestPath.add(new ArrayList<Vertex>(BestPath));\r\n\r\n\t\tint iteration_actuel = 0;\r\n\t\twhile (iteration_actuel < this.numberIteration) {\r\n\t\t\tLastPath = newPath();\r\n\t\t\t\r\n\t\t\tif(LastPath.isEmpty()) {\r\n\t\t\t\titerationReal = iteration_actuel;\r\n\t\t\t\treturn BestPath;\r\n\t\t\t}\r\n\r\n\t\t\tif (fit(LastPath) < BestEval) {\r\n\t\t\t\tBestPath = new ArrayList<Vertex>(LastPath);\r\n\t\t\t\tBestEval = fit(LastPath);\r\n\t\t\t\thistoBestPath.add(new ArrayList<Vertex>(BestPath));\r\n\t\t\t}\r\n\r\n\t\t\titeration_actuel++;\r\n\t\t}\r\n\r\n\t\titerationReal = iteration_actuel;\r\n\t\treturn BestPath;\r\n\t}", "@Test\n public void testInitializeSearch() {\n try {\n smallMaze.setBegin(Maze.position(1, 1));\n initSearch.invoke(solver.getClass(), smallMaze, testESet, testNQueue);\n } catch (Exception e) {\n fail(\"Unexpectedly could not invoke initializeSearch().\");\n }\n\n assertEquals(1, testESet.size());\n assertEquals(1, testNQueue.size());\n }", "public void startTrainingMode() {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tint[][] m= { {197,130,139,188},{20,24,167,182},{108,78,169,193},{184,65,83,41} };\r\n\t\tint[][] m2= {{149,77,42,136},\r\n\t\t\t\t{145,155,45,0},\r\n\t\t\t\t{136,102,182,87},\r\n\t\t\t\t{178,183,143,60}};\r\n\t\tfor (int[] is : m2) {\r\n\t\t\tfor (int is2 : is) {\r\n\t\t\t\tSystem.out.print(is2+\",\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"\\n\");\r\n\t\t}\r\n\t\tSearchable matrix=new Matrix(m2,new MatrixState(\"0,0\"),new MatrixState(\"3,3\"));\r\n\t\tSearcher<String> sol=new BFS<>();\r\n\t\tSystem.out.println(sol.search(matrix));\r\n\t}", "public void runAlgorithm( AdjacencyListGraph<Point2D.Double, Double> g )\n\t{\n\t\tfor ( Vertex v : g.vertices() )\n\t\t{\n\t\t\tv.put ( VERTEX_STATUS, FREE );\n\t\t}\n\n\n\t\t// initialize all the edges of the graph as being FREE (not in the matching)\n\t\tfor ( Edge e : g.edges() )\n\t\t{\n\t\t\te.put ( EDGE_STATUS, FREE ); \n\t\t}\n\n\t\tdepthFirstSearch(g);\n\n\t\tfor(Vertex v : g.vertices())\n\t\t{\n\t\t\tif (v.get(VERTEX_STATUS) == FREE)\n\t\t\t{\n\t\t\t\tfor ( Edge e : g.incidentEdges(v) )\n\t\t\t\t{\n\t\t\t\t\tVertex w = g.opposite(v, e);\n\t\t\t\t\tif(v.get(VERTEX_STATUS) == FREE && w.get(VERTEX_STATUS) == FREE)\n\t\t\t\t\t{\n\t\t\t\t\t\te.put(EDGE_STATUS, MATCHED);\n\t\t\t\t\t\tv.put(VERTEX_STATUS, MATCHED);\n\t\t\t\t\t\tw.put(VERTEX_STATUS, MATCHED);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void run(){\n\n for (int locIdx = begN; locIdx < endN; locIdx++) {\n\n // do mean-shift for profiles at these locations\n\n for (int profileIdx=0; profileIdx<profiles.get(locIdx).size(); profileIdx++) {\n\n // access the detection\n// int profileLength = profiles.get(locIdx).get(profileIdx).length;\n\n // calculate peaks for the ring 'profileIdx'\n ArrayList<Float> currPeaks = extractPeakIdxsList(profiles.get(locIdx).get(profileIdx), startIdx.get(profileIdx), finishIdx.get(locIdx).get(profileIdx));\n\n //if (currPeaks.size()<3) {\n // // it is not a bifurcation according to MS for this ring, don't calculate further, leave empty fields of peakIdx at this location\n // break;\n //}\n //else {\n // add those points\n for (int pp=0; pp<currPeaks.size(); pp++){\n peakIdx.get(locIdx).get(profileIdx).add(pp, currPeaks.get(pp));\n }\n //}\n\n/*\n\t\t\t\tfor (int k=0; k<nrPoints; k++) {\n start[k] = ((float) k / nrPoints) * profileLength;\n }\n\n\t\t\t\tTools.runMS( \tstart,\n \tprofiles.get(locIdx).get(profileIdx),\n \tmaxIter,\n \tepsilon,\n \th,\n\t\t\t\t\t\t\t\tmsFinish);\n*/\n\n /*\n for (int i1=0; i1<nrPoints; i1++) {\n convIdx.get(locIdx).get(profileIdx)[i1] = (float) msFinish[i1];\n }\n*/\n/*\n int inputProfileLength = profiles.get(locIdx).get(profileIdx).length;\n Vector<float[]> cls = Tools.extractClusters1(msFinish, minD, M, inputProfileLength);\n\t\t\t\textractPeakIdx(cls, locIdx, profileIdx); // to extract 3 major ones (if there are three)\n*/\n\n }\n\n }\n\n }", "public static void main(String[] args) throws FileNotFoundException, IOException {\r\n\r\n //Creating an instance object of the class PathBetweenNodes\r\n PathBetweenNodes x = new PathBetweenNodes();\r\n x.graph = new PathBetweenNodes();\r\n x.readMaze(); // reading the maze from the file\r\n LinkedList<String> visited = new LinkedList<String>(); // creating an array called visited to store visited nodes\r\n System.out.println(\"Enter the source node:\");//asking user to enter the start node\r\n Scanner sc = new Scanner(System.in); // Scanner to input the start node into the system\r\n START = sc.next();\r\n System.out.println(\"Enter the destination node:\");// asking user to input the destination node\r\n END = sc.next(); //scan the destination node into the system\r\n mode(option);\r\n startTimer = System.nanoTime();\r\n visited.add(START);// adding the start node to array visited\r\n new PathBetweenNodes().breadthFirst(x.graph, visited); // implementing the breath first search for graph x and array visited\r\n sc.close(); // scanner must be closed\r\n if (x.graph.flag) {\r\n System.out.println(\"There is existing path between \" + START + \" and \" + END + \" as above.\");\r\n }\r\n if (!x.graph.flag) {\r\n System.out.println(\"No path was found between \" + START + \" and \" + END + \".\");\r\n }\r\n endTimer = System.nanoTime();\r\n long TimeElapsed = endTimer - startTimer;\r\n System.out.println(\"Time taken to solve the maze = \" + TimeElapsed + \" Nano seconds.\");\r\n }", "@Override\n protected void compute() {\n\n if(this.workLoad > 16){\n System.out.println(\"Splitting Workload :: \"+this.workLoad);\n List<MyRecursiveAction> subTasks = new ArrayList<>();\n subTasks.addAll(createSubTasks());\n\n subTasks.forEach(tasks -> {\n tasks.fork();\n });\n }else{\n System.out.println(\"Doing Workload myself :: \"+this.workLoad);\n }\n }", "protected void startClusterer() {\r\n\t\tif (m_RunThread == null) {\r\n\t\t\tm_StartBut.setEnabled(false);\r\n\t\t\tm_timer.setEnabled(false);\r\n\t\t\tm_StopBut.setEnabled(true);\r\n\t\t\tm_ignoreBut.setEnabled(false);\r\n\t\t\tm_RunThread = new Thread() {\r\n\t\t\t\tInstances trainInst = null;\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tboolean errors = false;\r\n\t\t\t\t\tlong start,end;\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\t\t// Copy the current state of things\r\n\t\t\t\t\t\tm_Log.statusMessage(\"Setting up...\");\r\n\t\t\t\t\t\tInstances inst = new Instances(m_Instances);\r\n\t\t\t\t\t\tinst.setClassIndex(-1);\r\n\t\r\n\t\t\t\t\t\tint[] ignoredAtts = null;\r\n\t\t\t\t\t\ttrainInst = new Instances(inst);\r\n\t\r\n\t\t\t\t\t\tif (m_EnableClassesToClusters.isSelected()) {\r\n\t\t\t\t\t\t\ttrainInst.setClassIndex(m_ClassCombo.getSelectedIndex());\r\n\t\t\t\t\t\t\tinst.setClassIndex(m_ClassCombo.getSelectedIndex());\r\n\t\t\t\t\t\t\tif (inst.classAttribute().isNumeric()) {\r\n\t\t\t\t\t\t\t\tthrow new Exception(\"Class must be nominal for class based evaluation!\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (!m_ignoreKeyList.isSelectionEmpty()) {\r\n\t\t\t\t\t\t\ttrainInst = removeIgnoreCols(trainInst);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (!m_ignoreKeyList.isSelectionEmpty()) {\r\n\t\t\t\t\t\t\tignoredAtts = m_ignoreKeyList.getSelectedIndices();\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\tif (m_EnableClassesToClusters.isSelected()) {\r\n\t\t\t\t\t\t\t// add class to ignored list\r\n\t\t\t\t\t\t\tif (ignoredAtts == null) {\r\n\t\t\t\t\t\t\t\tignoredAtts = new int[1];\r\n\t\t\t\t\t\t\t\tignoredAtts[0] = m_ClassCombo.getSelectedIndex();\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tint[] newIgnoredAtts = new int[ignoredAtts.length + 1];\r\n\t\t\t\t\t\t\t\tSystem.arraycopy(ignoredAtts, 0,\r\n\t\t\t\t\t\t\t\t\t\tnewIgnoredAtts, 0, ignoredAtts.length);\r\n\t\t\t\t\t\t\t\tnewIgnoredAtts[ignoredAtts.length] = m_ClassCombo\r\n\t\t\t\t\t\t\t\t\t\t.getSelectedIndex();\r\n\t\t\t\t\t\t\t\tignoredAtts = newIgnoredAtts;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tint clustering_amount = 1;\r\n\t\t\t\t\t\tif(m_BracketingBut.isEnabled()){\r\n\t\t\t\t\t\t\tclustering_amount = m_bracketingPanel.getNumberClusterings();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t//add tasks\r\n\t\t\t\t\t\tfor (int i = 0; i < clustering_amount; i++) {\r\n\t\t\t\t\t\t\tif (m_Log instanceof TaskLogger) {\r\n\t\t\t\t\t\t\t\t((TaskLogger) m_Log).taskStarted();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfor (int i = 0; i < clustering_amount ; i++) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSerializedObject so = new SerializedObject((SubspaceClusterer) m_ClustererEditor.getValue());\r\n\t\t\t\t\t\t\tSubspaceClusterer clusterer = (SubspaceClusterer) so.getObject();\r\n\t\t\t\t\t\t\tif(m_BracketingBut.isEnabled()){\r\n\t\t\t\t\t\t\t\tm_bracketingPanel.setBracketingParameter(clusterer, i);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tString name = (new SimpleDateFormat(\"HH:mm:ss - \")).format(new Date());\r\n\t\t\t\t\t\t\tString cname = clusterer.getClass().getName();\r\n\t\t\t\t\t\t\tif (cname.startsWith(\"weka.subspaceClusterer.\")) {\r\n\t\t\t\t\t\t\t\tname += cname.substring(\"weka.subspaceClusterer.\".length());\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tname += cname;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tString parameter_name = \"\";\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(m_BracketingBut.isEnabled()){\r\n\t\t\t\t\t\t\t\tparameter_name+= m_bracketingPanel.getParameterString(clusterer,i);\r\n\t\t\t\t\t\t\t\tname+=parameter_name;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tString cmd = clusterer.getClass().getName();\r\n\t\t\t\t\t\t\tif (m_ClustererEditor.getValue() instanceof OptionHandler)\r\n\t\t\t\t\t\t\t\tcmd += \" \" + Utils.joinOptions(((OptionHandler)clusterer).getOptions());\r\n\r\n\t\t\t\t\t\t\t//add measure options to command line\r\n\t\t\t\t\t\t\tif(m_EnableEvaluation.isSelected()){\r\n\t\t\t\t\t\t\t\tArrayList<ClusterQualityMeasure> cmdMeasureList = m_evaluationPanel.getSelectedMeasures();\r\n\t\t\t\t\t\t\t\tif(cmdMeasureList.size() > 0) cmd+= \" -M \";\r\n\t\t\t\t\t\t\t\tfor (int c = 0; c < cmdMeasureList.size(); c++) {\r\n\t\t\t\t\t\t\t\t\tString c_name = cmdMeasureList.get(c).getClass().getName();\r\n\t\t\t\t\t\t\t\t\tif (c_name.startsWith(\"weka.clusterquality.\")) {\r\n\t\t\t\t\t\t\t\t\t\tcmd+= c_name.substring(\"weka.clusterquality.\".length());\r\n\t\t\t\t\t\t\t\t\t\tif(c < cmdMeasureList.size()-1) cmd+= \":\";\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tm_Log.logMessage(\"Started \" + cname);\r\n\t\t\t\t\t\t\t\tm_Log.logMessage(\"Command: \" + cmd);\r\n\t\t\t\t\t\t\t\tm_Log.logMessage(\"Clustering: Started\");\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// Build the model and output it.\r\n\t\t\t\t\t\t\t\tm_Log.statusMessage(\"Clusterer running...\");\r\n\t\r\n\t\t\t\t\t\t\t\tStringBuffer outBuffer = new StringBuffer();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// remove the class attribute (if set) and build the clusterer\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tBuildSubspaceClustererThread clusterthread = new BuildSubspaceClustererThread(clusterer,removeClass(trainInst));\r\n\t\t\t\t\t\t\t\tstart = System.currentTimeMillis();\r\n\r\n\t\t\t\t\t\t\t\tclusterthread.start();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tint timer = Integer.parseInt(m_timer.getText());\r\n\t\t\t\t\t\t\t\tif(!m_EnableTimer.isSelected() || timer <= 0 || timer > 1000000000){\r\n\t\t\t\t\t\t\t\t\ttimer = 0;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tclusterthread.join(timer*60*1000);\r\n\t\t\t\t\t\t\t\tend = System.currentTimeMillis();\r\n\t\t\t\t\t\t\t\tif(clusterthread.isAlive()) {\r\n\t\t\t\t\t\t\t\t\tclusterthread.interrupt();\r\n\t\t\t\t\t\t\t\t\tclusterthread.stop();\r\n\t\t\t\t\t\t\t\t\tthrow new Exception(\"Timeout after \"+timer+\" minutes\");\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tclusterthread.join();\r\n\t\t\t\t\t\t\t\tif(clusterthread.getException()!=null) {\r\n\t\t\t\t\t\t\t\t\tthrow clusterthread.getException();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\toutBuffer.append(getClusterInformation(clusterer,inst,end-start));\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tm_Log.logMessage(\"Clustering: done\");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//Evaluation stuff, catch Exceptions, most likely out of memory\r\n\t\t\t\t\t\t\t\tif(m_EnableEvaluation.isSelected()){\r\n\t\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\t\tif(inst.classIndex() >= 0){\r\n\t\t\t\t\t\t\t\t\t\t\tm_Log.statusMessage(\"Evaluation running...\");\r\n\t\t\t\t\t\t\t\t\t\t\tm_Log.logMessage(\"Evaluation: Start\");\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tArrayList<ClusterQualityMeasure> measures = m_evaluationPanel.getSelectedMeasures();\r\n\t\t\t\t\t\t\t\t\t\t\tArrayList<Cluster> m_TrueClusters = m_evaluationPanel.getTrueClusters();\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t//Run evaluation\r\n\t\t\t\t\t\t\t\t\t\t\tstart = System.currentTimeMillis();\r\n\t\t\t\t\t\t\t\t\t\t\tStringBuffer qualBuffer = SubspaceClusterEvaluation.evaluateClustersQuality(clusterer, inst, measures, m_TrueClusters, m_evaluationPanel.getTrueClusterFile());\r\n\t\t\t\t\t\t\t\t\t\t\tend = System.currentTimeMillis();\r\n\t\t\t\t\t\t\t\t\t\t\toutBuffer.append(qualBuffer);\r\n\t\t\t\t\t\t\t\t\t\t\toutBuffer.append(\"\\n\\nCalculating Evaluation took: \"+formatTimeString(end-start)+\"\\n\");\r\n\t\t\t\t\t\t\t\t\t\t\tm_Log.logMessage(\"Evaluation: Finished\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}catch (Exception e) {\r\n\t\t\t\t\t\t\t\t\t\terrors = true;\r\n\t\t\t\t\t\t\t\t\t\tm_Log.logMessage(e.getMessage());\r\n\t\t\t\t\t\t\t\t\t\tm_Log.logMessage(\"Problem evaluating clustering (number of clusters: \"+clusterer.getSubspaceClustering().size()+\")\");\r\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t}catch (OutOfMemoryError e) {\r\n\t\t\t\t\t\t\t\t\t\terrors = true;\r\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Out of memory\");\r\n\t\t\t\t\t\t\t\t\t\tm_Log.logMessage(e.getMessage());\r\n\t\t\t\t\t\t\t\t\t\tm_Log.statusMessage(\"See error log\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t//Visual stuff, catch Exceptions, most likely out of memory\r\n\t\t\t\t\t\t\t\tm_CurrentVis = new SubspaceVisualData();\r\n\t\t\t\t\t\t\t\tif (!isInterrupted() && m_EnableStoreVisual.isSelected()) {\r\n\t\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\t\tm_Log.statusMessage(\"Calculating visualization...\");\r\n\t\t\t\t\t\t\t\t\t\tm_Log.logMessage(\"Calculate visualization: Start\");\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t//calculate visual stuff\r\n\t\t\t\t\t\t\t\t\t\tstart = System.currentTimeMillis();\r\n\t\t\t\t\t\t\t\t\t\tm_CurrentVis.calculateVisual((ArrayList<Cluster>)clusterer.getSubspaceClustering(), removeClass(trainInst));\r\n\t\t\t\t\t\t\t\t\t\tend = System.currentTimeMillis();\r\n\t\t\t\t\t\t\t\t\t\t//where is the name being used???\r\n\t\t\t\t\t\t\t\t\t\tm_CurrentVis.setName(name + \" (\" + inst.relationName()+ \")\");\r\n\t\t\t\t\t\t\t\t\t\tm_CurrentVis.setHistoryName(parameter_name);\r\n\t\t\t\t\t\t\t\t\t\toutBuffer.append(\"Calculating visualization took: \"+formatTimeString(end-start)+\"\\n\");\r\n\t\t\t\t\t\t\t\t\t\tm_Log.logMessage(\"Calculate visualization: Finished\");\r\n\t\t\t\t\t\t\t\t\t}catch (Exception e) {\r\n\t\t\t\t\t\t\t\t\t\terrors = true;\r\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t\tm_Log.logMessage(e.getMessage());\r\n\t\t\t\t\t\t\t\t\t\tm_Log.logMessage(\"Problem calculating visualization (number of clusters: \"+clusterer.getSubspaceClustering().size()+\")\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tcatch(OutOfMemoryError e){\r\n\t\t\t\t\t\t\t\t\t\terrors = true;\r\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Out of memory\");\r\n\t\t\t\t\t\t\t\t\t\tm_Log.logMessage(e.getMessage());\r\n\t\t\t\t\t\t\t\t\t\tm_Log.statusMessage(\"See error log\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t//put buffer into cluster so it can be safed with the cluster\r\n\t\t\t\t\t\t\t\tclusterer.setConsole(outBuffer);\r\n\t\t\t\t\t\t\t\tm_Log.logMessage(\"Finished \" + cmd);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tm_History.addResult(name, outBuffer);\r\n\t\t\t\t\t\t\t\tm_History.setSingle(name);\r\n\t\t\t\t\t\t\t\tm_History.updateResult(name);\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t} catch (Exception ex) {\r\n\t\t\t\t\t\t\t\terrors = true;\r\n\t\t\t\t\t\t\t\tm_Log.logMessage(ex.getMessage());\r\n\t\t\t\t\t\t\t\tm_Log.statusMessage(\"Problem evaluating clusterer\");\r\n\t\t\t\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcatch(OutOfMemoryError e){\r\n\t\t\t\t\t\t\t\tm_Log.logMessage(e.getMessage());\r\n\t\t\t\t\t\t\t\tm_Log.statusMessage(\"See error log\");\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Out of memory\");\r\n\t\t\t\t\t\t\t\t//e.printStackTrace();\r\n\t\t\t\t\t\t\t} finally {\r\n\t\t\t\t\t\t\t\tFastVector vv = new FastVector();\r\n\t\t\t\t\t\t\t\tvv.addElement(clusterer);\r\n\t\t\t\t\t\t\t\tInstances trainHeader = new Instances(m_Instances, 0);\r\n\t\t\t\t\t\t\t\tvv.addElement(trainHeader);\r\n\t\t\t\t\t\t\t\tif (ignoredAtts != null)\r\n\t\t\t\t\t\t\t\t\tvv.addElement(ignoredAtts);\r\n\t\t\t\t\t\t\t\tvv.addElement(m_CurrentVis);\r\n\t\r\n\t\t\t\t\t\t\t\tm_History.addObject(name, vv);\r\n\t\t\t\t\t\t\t\tif (isInterrupted()) {\r\n\t\t\t\t\t\t\t\t\tm_Log.logMessage(\"Bracketing interrupted:\" + cname);\r\n\t\t\t\t\t\t\t\t\tm_Log.statusMessage(\"See error log\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (m_Log instanceof TaskLogger) {\r\n\t\t\t\t\t\t\t\t\t((TaskLogger) m_Log).taskFinished();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (Exception ex) {\r\n\t\t\t\t\t\terrors = true;\r\n\t\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t\t\tm_Log.logMessage(ex.getMessage());\r\n\t\t\t\t\t\tm_Log.statusMessage(\"Problem setting up clusterer\");\r\n\t\t\t\t\t} catch (OutOfMemoryError ex) {\r\n\t\t\t\t\t\terrors = true;\r\n\t\t\t\t\t\tSystem.out.println(\"Out of memory\");\r\n\t\t\t\t\t\tm_Log.logMessage(ex.getMessage());\r\n\t\t\t\t\t\tm_Log.statusMessage(\"See error log\");\r\n\t\t\t\t\t} \r\n\t\t\t\t\tfinally {\r\n\r\n\t\t\t\t\t\tm_RunThread = null;\r\n\t\t\t\t\t\tm_StartBut.setEnabled(true);\r\n\t\t\t\t\t\tm_StopBut.setEnabled(false);\r\n\t\t\t\t\t\tm_ignoreBut.setEnabled(true);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//kill all other tasks in the logger so the poor bird can stop running\r\n\t\t\t\t\t\t//belongs somewhere else, but doesnt work in finally after for-bracketing anymore \r\n\t\t\t\t\t\tint clustering_amount = 1;\r\n\t\t\t\t\t\tif(m_BracketingBut.isEnabled()){\r\n\t\t\t\t\t\t\tclustering_amount = m_bracketingPanel.getNumberClusterings();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tfor (int j = 0; j < clustering_amount; j++) {\r\n\t\t\t\t\t\t\tif (m_Log instanceof TaskLogger) {\r\n\t\t\t\t\t\t\t\t((TaskLogger) m_Log).taskFinished();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(errors){ \r\n\t\t\t\t\t\t\tm_Log.statusMessage(\"Errors accured, see error logs\");\r\n\t\t\t\t\t\t\tJOptionPane\r\n\t\t\t\t\t\t\t\t.showMessageDialog(SubspaceClustererPanel.this,\r\n\t\t\t\t\t\t\t\t\"Problems occured during clusterig, check error log for more details\",\r\n\t\t\t\t\t\t\t\t\"Evaluate clusterer\",\r\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{ \r\n\t\t\t\t\t\t\tm_Log.statusMessage(\"OK\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\tm_RunThread.setPriority(Thread.MIN_PRIORITY);\r\n\t\t\tm_RunThread.start();\r\n\t\t}\r\n\t}", "private void LocalSearch(int solutionPosition, int tempSolutionPositionsStart)\n\t{\n\t\tif (localSearchers==null || localSearchers.length==0)\n\t\t\treturn;\n\t\t\n\t\tint iteration = 0;\n\t\twhile (true)\n\t\t{\n\t\t\tint bestHeuristic = -1;\n\t\t\tint bestSrc = -1;\n\t\t\tdouble bestPen = problem.getFunctionValue(solutionPosition);\n\n\t\t\tif (VERBOSE)\n\t\t\t\tSystem.out.print(\" Testing local search heuristic\");\n\t\t\t\n\t\t\tfor (int x=0; x < localSearchers.length; x++)\n\t\t\t{\n\t\t\t\tint i = localSearchers[x];\n\n\t\t\t\tif (VERBOSE)\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\n\t\t\t\tint testPosition = tempSolutionPositionsStart+x;\n\t\t\t\tdouble pen = problem.applyHeuristic(i, solutionPosition, testPosition);\n\t\t\t\t\n\t\t\t\tif (VERBOSE)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" [pen=\"+pen+\"]\");\n\t\t\t\t\tif (x+1 < localSearchers.length) \n\t\t\t\t\t\tSystem.out.print(\",\");\n\t\t\t\t}\n\n\t\t\t\tif (pen < bestPen)\n\t\t\t\t{\n\t\t\t\t\tbestPen = pen;\n\t\t\t\t\tbestSrc = testPosition;\n\t\t\t\t\tbestHeuristic = i;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (hasTimeExpired() || hasBestSolutionReachedLB())\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (bestSrc != -1)\n\t\t\t{\n\t\t\t\titeration++;\n\t\t\t\tproblem.copySolution(bestSrc, solutionPosition);\n\t\t\t\t\n\t\t\t\tif (VERBOSE)\n\t\t\t\t\tSystem.out.println(\". Selecting heuristic : \" + bestHeuristic\n\t\t\t\t\t\t\t\t\t + \" Pen: \" + bestPen+\" (iteration=\"+iteration+\")\");\n\t\t\t\t\n\t\t\t\tif (hasTimeExpired() || hasBestSolutionReachedLB())\n\t\t\t\t\treturn;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (VERBOSE)\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "public void startColumnsThreads(){\n addCars.start();\n gasStation.startWorkColumns();\n }", "private void reset() throws ParallelException {\r\n\t\tif (_k==2) _g.makeNNbors(true); // force reset (from cache)\r\n\t\t// else _g.makeNbors(true); // don't force reset (from cache): no need\r\n _nodesq = new TreeSet(_origNodesq);\r\n }" ]
[ "0.70666814", "0.65043414", "0.6439701", "0.6411158", "0.627106", "0.61912984", "0.60644096", "0.59346825", "0.58799505", "0.5831418", "0.5824226", "0.5813188", "0.5730165", "0.5727972", "0.5711247", "0.57037127", "0.5686518", "0.5672986", "0.5672969", "0.5659105", "0.5659105", "0.5657086", "0.56508124", "0.56382674", "0.5636287", "0.56317395", "0.56317395", "0.56317395", "0.56317395", "0.56317395", "0.56317395", "0.56317395", "0.5607791", "0.55753773", "0.5559956", "0.55466294", "0.55461353", "0.5543382", "0.55223584", "0.55106723", "0.54880726", "0.54878056", "0.5476806", "0.545172", "0.543701", "0.543304", "0.54224175", "0.540212", "0.5401058", "0.5396504", "0.53934556", "0.5382222", "0.53661984", "0.5357559", "0.535391", "0.5352598", "0.5349641", "0.53350836", "0.53348273", "0.5319108", "0.5294119", "0.5264851", "0.52474445", "0.5246597", "0.52442706", "0.52437246", "0.5243287", "0.52409184", "0.5233724", "0.5226915", "0.52227837", "0.52197796", "0.5212458", "0.5200948", "0.5194432", "0.51899374", "0.51880884", "0.51823467", "0.5175726", "0.51701653", "0.5166477", "0.51660997", "0.5163556", "0.5162375", "0.5159623", "0.51570797", "0.5151118", "0.51498216", "0.51326525", "0.5132294", "0.5128454", "0.51207024", "0.51185346", "0.51132506", "0.51121944", "0.5110874", "0.5103897", "0.51034963", "0.51034755", "0.5102093", "0.5098959" ]
0.0
-1
when a thread i finished with a runnable it calls here which waits until all tasks are finished before moving on
@Override public synchronized void handleThreadRecursionHasCompleted() { //ensure that all branches have been explored before writing output this.numberOfBranchesCompleted++; RecursionStore.updateBranchesComplete(this.numberOfBranchesCompleted); if (this.numberOfBranchesCompleted != this._totalNumberOfStateTreeBranches) { return; } // write output file generateOutputAndClose(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void taskComplete() {\n mTasksLeft--;\n if ((mTasksLeft==0) & mHasCloRequest){\n onAllTasksCompleted();\n }\n }", "@Override\r\n public void tasksFinished()\r\n {\n }", "private void waitUntilAllThreadsAreFinished() {\n int index = 1;\n\n while (true) {\n while (index <= noThread) {\n if (carry[index] == -1) {\n index = 1;\n } else {\n index++;\n }\n }\n break;\n }\n }", "@Override\n\tpublic synchronized void waitAllTasks() throws ExecutionException, InterruptedException {\n\t\twaitTasks(key -> true);\n\t}", "public void waitForFinish() {\n for(Future future : futures){\n try {\n future.get();\n } catch (InterruptedException | ExecutionException e) {\n LOGGER.error(\"ERROR\",e);\n }\n }\n }", "public void run() {\n\t\tfor (ConConsumer consumer : _consumers) {\n\t\t\tconsumer.register();\n\t\t}\n\t\t// commit the channels <\n\t\t// wait for the tasks finish >\n\t\t_monitor.checkFinish();\n\t\t// wait for the tasks finish <\n\t\t_threadPool.shutdown();\n\t}", "public void executWaiting() {\n for (Runnable action : this.todo) {\n runAction( action );\n }\n }", "public void allFinished() {\n\t}", "private static void await_execution(Thread[] threads) {\n for (Thread t: threads)\n {\n if (t.isAlive()) {\n try {\n t.join();\n }\n catch (InterruptedException ie) { \n ie.printStackTrace();\n }\n }\n }\n }", "public void awaitPendingTasksFinished() throws IgniteCheckedException {\n GridCompoundFuture pendingFut = this.pendingTaskFuture;\n\n this.pendingTaskFuture = new GridCompoundFuture();\n\n if (pendingFut != null) {\n pendingFut.markInitialized();\n\n pendingFut.get();\n }\n }", "@Override\n public void run() {\n try{\n for(int n = 0;n < 20; n++){\n //This simulates 1sec of busy activity\n Thread.sleep(1000);\n //now talk to the ain thread\n myHandler.post(foregroundTask);\n }\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n }", "public void waitAllNodesCompleteProcessingTask() {\n // check coordinator finished task\n while (!txnCoordinator.hasNoRunningJobs()) {\n Thread.yield();\n }\n // check each participant finished task and resolve unfinished task\n for (Participant p : txnCoordinator.getParticipants()) {\n while (!((Node) p).hasNoRunningJobs()) {\n Thread.yield();\n }\n p.resolveUnfinishedTask();\n }\n }", "public void done() {\n try {\n C1000c.this.mo5101e(get());\n } catch (InterruptedException e) {\n Log.w(\"AsyncTask\", e);\n } catch (ExecutionException e2) {\n throw new RuntimeException(\"An error occurred while executing doInBackground()\", e2.getCause());\n } catch (CancellationException unused) {\n C1000c.this.mo5101e(null);\n } catch (Throwable th) {\n throw new RuntimeException(\"An error occurred while executing doInBackground()\", th);\n }\n }", "@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\tIterator<Future<Integer>> iter = runningThreadsList.iterator();\n\t\t\tif (iter.hasNext()) {\n\t\t\t\tFuture<Integer> future = (Future<Integer>) iter.next();\n\t\t\t\tif (future.isDone()) {\n\t\t\t\t\trunningThreadsList.remove(future);\n\t\t\t\t\t\n\t\t\t\t\tif (allocator.getInventory().isEmpty()) {\n\t\t\t\t\t\tallocator.shutdown();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tThread.yield();\n\t\t}\n\t\t\t\n\t\t\n\t}", "public void waitToFinish()\n {\n while(!this.finished)\n {\n try\n {\n Thread.sleep(1);\n }\n catch (InterruptedException e)\n {\n e.printStackTrace();\n return;\n }\n }\n }", "public void finishTask() {\n\t\t\n\t}", "protected void finishBuilding() throws Exception{\n for(int i =0 ; i < Constants.MAX_THREADS; i++){\n if(shortestThread[i]!=null){\n shortestThread[i].setFinishedProcessing(true);\n shortestThread[i].join();\n }\n }\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\t\n\t\t\t while ( !bFinished ) {\n\t\t\t \ttry {\n\t\t\t\t\t\t\tThread.sleep(200);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t }\n\t\t\t System.exit(0);\n\t\t\t\t}", "private void completionService() {\n ListeningExecutorService executor = MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(numberOfThreadsInThePool));\n ExecutorCompletionService<String> completionService = new ExecutorCompletionService<String>(executor);\n for (final String printRequest : printRequests) {\n// ListenableFuture<String> printer = completionService.submit(new Printer(printRequest));\n completionService.submit(new Printer(printRequest));\n }\n try {\n for (int t = 0, n = printRequests.size(); t < n; t++) {\n Future<String> f = completionService.take();\n System.out.print(f.get());\n }\n } catch (InterruptedException | ExecutionException e) {\n Thread.currentThread().interrupt();\n } finally {\n// if (executor != null) {\n executor.shutdownNow();\n// }\n }\n\n }", "private void awaitDone() throws IgniteInterruptedCheckedException {\n U.await(doneLatch);\n }", "public void finish() {\n\t\ttask.run();\n\t\ttask.cancel();\n\t}", "void submitAndWaitForAll(Iterable<Runnable> tasks);", "public void done() {\n AppMethodBeat.i(98166);\n try {\n AsyncTask.this.a(get());\n AppMethodBeat.o(98166);\n } catch (InterruptedException e) {\n AppMethodBeat.o(98166);\n } catch (ExecutionException e2) {\n RuntimeException runtimeException = new RuntimeException(\"An error occured while executing doInBackground()\", e2.getCause());\n AppMethodBeat.o(98166);\n throw runtimeException;\n } catch (CancellationException e3) {\n AsyncTask.this.a(null);\n AppMethodBeat.o(98166);\n }\n }", "public synchronized void waitForDone() {\n\twhile (!done) myWait();\n }", "protected void finished(){\n if (doFilterUpdate) {\n //runFilterUpdates();\n }\n \n double groupTotalTimeSecs = (System.currentTimeMillis() - (double) groupStartTime) / 1000;\n log.info(\"Job \"+id+\" finished \" /*+ parsedType*/ + \" after \"\n + groupTotalTimeSecs + \" seconds\");\n \n ((DistributedTileBreeder)breeder).jobDone(this);\n }", "public final void execute() {\n thread = Thread.currentThread();\n while (!queue.isEmpty()) {\n if (currentThreads.get() < maxThreads) {\n queue.remove(0).start();\n currentThreads.incrementAndGet();\n } else {\n try {\n Thread.sleep(Long.MAX_VALUE);\n } catch (InterruptedException ex) {}\n }\n }\n while (currentThreads.get() > 0) {\n try {\n Thread.sleep(Long.MAX_VALUE);\n } catch (InterruptedException ex) {}\n }\n }", "private void delegateTasks() {\n logger.debug(\"task delegation started\");\n\n untilTasksAndThreadsAreAvailable:\n while (true) {\n Optional<Node> selectedNode;\n Optional<WorkerPoolTask> task = workerPool.pollTask();\n\n if (!task.isPresent()) {\n while (true) {\n State prevState = state.get();\n State nextState;\n if (prevState == DURING_DELEGATION) {\n // No more tasks and free threads appeared\n nextState = NO_DELEGATION;\n } else {\n //prevState == DURING_DELEGATION_WITH_SCHEDULED_RE_EXECUTION\n nextState = DURING_DELEGATION;\n }\n if (state.compareAndSet(prevState, nextState)) {\n logger.debug(\"changed from \" + prevState + \" to \" + nextState);\n if (prevState == DURING_DELEGATION) {\n return;\n } else {\n //prevState == DURING_DELEGATION_WITH_SCHEDULED_RE_EXECUTION\n continue untilTasksAndThreadsAreAvailable;\n }\n }\n logger.debug(\"state change missed in delegateTasks when task wasn't present\");\n }\n }\n\n synchronized (nodes) { // Synchronization with HeartBeat nodes.updateAfterHeartBeat method.\n selectedNode = nodes.drainThreadFromNodeHavingHighestPriority();\n if (!selectedNode.isPresent()) {\n workerPool.submitTask(task.get(), true);\n State nextState = AWAITING_FREE_THREADS;\n State prevState = state.getAndSet(nextState);\n logger.debug(\"changed from \" + prevState + \" to \" + nextState);\n return;\n }\n }\n\n if (!delegateTask(selectedNode.get(), task.get())) {\n //If delegation failed we release the thread to keep proper number of free threads up-to-date\n //If HeartBeat happened between draining a thread and returning it, this operation will take no effect\n //as we are working on invalidated version of node.\n nodes.returnThread(selectedNode.get());\n }\n }\n }", "void synchronizationDone();", "public void done() {\n try {\n AsyncTask.this.a(get());\n } catch (InterruptedException e) {\n Log.w(\"AsyncTask\", e);\n } catch (ExecutionException e2) {\n throw new RuntimeException(\"An error occured while executing doInBackground()\", e2.getCause());\n } catch (CancellationException unused) {\n AsyncTask.this.a(null);\n }\n }", "private void async(Runnable runnable) {\n Bukkit.getScheduler().runTaskAsynchronously(KitSQL.getInstance(), runnable);\n }", "@Override\n\tpublic boolean done() {\n\t\tfor(Task t : details.getPendingTasks()){\n\t\t\tif(!t.isComplete())\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public void run() {\n task.run();\n }", "public Status waitUntilFinished();", "@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\twhile(!(gst.done&&gpt.done));\r\n\t\t\t\t\t\t\t\t\tx.task().post(new Runnable(){\r\n\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\t\tgotoLiveView(pattern,gst.resultFile);\r\n\t\t\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\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}", "final void waitFinished() {\n if (selectionSyncTask != null) {\n selectionSyncTask.waitFinished();\n }\n }", "public final void run() {\n\t\ttask();\n\t\t_nextTaskHasRan = true;\n\t}", "@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tSystem.out.println(\"All Finished\");\r\n\t\t\t}", "protected void completeFuturesForFauxInstances() {\n }", "void testFinished() {\n currentThreads.decrementAndGet();\n thread.interrupt();\n }", "public void run() {\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\tThread.sleep(500L);\n\t\t\t\t\t// Thread.sleep(30);\n\t\t\t\t\trunOnUiThread(done);\n\n\t\t\t\t} catch (InterruptedException 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\t}\n\t\t}", "private void run() {\n log.log(Level.INFO, \"Starting multiple evaluation of {0} tasks\", tasks.size());\n boolean done = tasks.isEmpty();\n while (!done) {\n boolean hasFreeTasks = true;\n while (hasCapacity() && hasFreeTasks) {\n File task = getFreeTask();\n if (task == null) {\n hasFreeTasks = false;\n } else {\n EvaluatorHandle handle = new EvaluatorHandle();\n if (handle.createEvaluator(task, log, isResume)) {\n log.fine(\"Created new evaluation handler\");\n evaluations.add(handle);\n }\n }\n }\n\n log.log(Level.INFO, \"Tasks in progress: {0}, Unfinished tasks: {1}\", new Object[]{evaluations.size(), tasks.size()});\n try {\n Thread.sleep(5000);\n } catch (InterruptedException ex) {\n //Bla bla\n }\n checkRunningEvaluations();\n done = tasks.isEmpty();\n }\n\n }", "@Override\n public void run() {\n try {\n remove_elements();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "protected void synchronizationDone() {\n }", "public void finish() {\n latch.countDown();\n }", "private void invokePostRefreshTasks(boolean success) {\r\n Vector tasksToRun = null;\r\n \r\n synchronized(postRefreshTasks) {\r\n int size = postRefreshTasks.size();\r\n if(size > 0) {\r\n tasksToRun = new Vector(size);\r\n for(int i=0; i<size; i++) {\r\n Object[] element = (Object[])postRefreshTasks.elementAt(i);\r\n // Add the task if the refresh was successful, or if the\r\n // task does not depend on a successful refresh.\r\n if(success || !((Boolean)element[1]).booleanValue()) {\r\n tasksToRun.addElement((Runnable)element[0]);\r\n }\r\n }\r\n postRefreshTasks.removeAllElements();\r\n }\r\n }\r\n \r\n if(tasksToRun != null) {\r\n int size = tasksToRun.size();\r\n for(int i=0; i<size; i++) {\r\n mailStoreServices.invokeLater((Runnable)tasksToRun.elementAt(i));\r\n }\r\n }\r\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile(progressStatus<100)\n\t\t\t\t{\n\t\t\t\t\tprogressStatus=performTask();\n\t\t\t\t\tmyHandler.post(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\tprogressBar.setProgress(progressStatus);\n\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tmyHandler.post(new Runnable() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t Toast.makeText(getBaseContext(),\"Task Completed\",Toast.LENGTH_LONG).show();\n\t progressStatus=0; \n\t myProgress=0;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t}", "protected void cleanup() {\n finished = true;\n thread = null;\n }", "@Override\n public void run() {\n mRunnable.onPostExecute();\n mExecutor.onPostExecuteCallback(mRunnable);\n }", "protected abstract long waitOnQueue();", "private void normalExecutorService() {\n ListeningExecutorService executor = MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(numberOfThreadsInThePool));\n try {\n Set<Future<String>> printTaskFutures = new HashSet<Future<String>>();\n for (final String printRequest : printRequests) {\n// Future<String> printer = executor.submit(new Printer(printRequest));\n ListenableFuture<String> printer = executor.submit(new Printer(printRequest));\n printTaskFutures.add(printer);\n// Futures.addCallback(printer, new FutureCallback<String>() {\n// // we want this handler to run immediately after we push the big red button!\n// public void onSuccess(String explosion) {\n//// walkAwayFrom(explosion);\n// }\n//\n// public void onFailure(Throwable thrown) {\n//// battleArchNemesis(); // escaped the explosion!\n// }\n// });\n }\n for (Future<String> future : printTaskFutures) {\n System.out.print(future.get());\n\n }\n } catch (Exception e) {\n Thread.currentThread().interrupt();\n } finally {\n// if (executor != null) {\n executor.shutdownNow();\n// }\n }\n }", "public void finishThread() {\n\t\tstopBlinking();\n\t\tpin1.low();\n\t\tpin2.low();\n\t\tpin3.low();\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\twhile(true)\n\t\t\t\t{\n\t\t\t\t\tfor(int i =0 ; i< secuencia.length; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\tGdeMonitor.dispararTransicion(secuencia[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "protected void execute() {\n finished = true;\n }", "@Override\n\t\tpublic void run() {\n\t\t\tURL url;\n\t\t\ttry {\n\t\t\t\tThread.sleep(3000);\n\t\t\t\turl = new URL(strUrl);\n\t\t\t\tURLConnection con = url.openConnection();\n\t\t\t\tcon.connect();\n\t\t\t\tInputStream input = con.getInputStream();\n\t\t\t\tList<Map<String,Object>> temp = json.getListItems(input);\n\t\t\t\tif(temp != null){\n\t\t\t\t\tif(merger.mergeTwoList(list, temp, direction))\n\t\t\t\t\t\tmyHandler.sendEmptyMessage(1);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tmyHandler.sendEmptyMessage(5);\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}", "public void run() {\n\t\twhile (!isShutdown()) {\n\t\t\tlong threadId = Thread.currentThread().getId(); \n\t\t\tSystem.out.println(\"Thread \" + threadId + \" is trying to dequeue from queue of size \" + taskQueue.size());\n\t\t\tRunnable task = taskQueue.dequeue();\n\t\t\ttask.run(); \n\t\t}\n\t}", "public void run() {\n \t\t\r\n\t\t\tarraylist_destination.clear();\r\n\t\t\tarraylist_driverid.clear();\r\n\t\t\tarraylist_riderid.clear();\r\n\t\t\tarraylist_drivername.clear();\r\n\t\t\tarraylist_pickuptime.clear();\r\n\t\t\tarraylist_tripid.clear();\r\n\t\t\tarraylist_driver_image.clear();\r\n\t\t\tarraylist_rider_image.clear();\r\n\t\t\tarraylist_distance.clear();\r\n\t\t\tarraylist_requesttype.clear();\r\n\t\t\tarraylist_start.clear();\r\n\t\t\tarraylist_actualfare.clear();\r\n\t\t\tarraylist_suggestion.clear();\r\n\t\t\tarraylist_eta.clear();\r\n\t\t\tarraylist_driverrating.clear();\r\n\t\t\tarraylist_status.clear();\r\n\t\t\tarraylist_vehicle_color.clear();\r\n\t\t\tarraylist_vehicle_type.clear();\r\n\t\t\tarraylist_vehicle_name.clear();\r\n\t\t\tarraylist_vehicle_img.clear();\r\n\t\t\tarraylist_vehicle_year.clear();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(Utility.isConnectingToInternet(RiderQueue_Activity.this))\r\n \t \t{\r\n \t\t\t\t/**call pending request for rider queue class**/\r\n\t\t\t\tnew httpPendingRequest_riderqueue().execute(); \r\n \t \t\t}\r\n \t \telse{\r\n \t \t\tUtility.alertMessage(RiderQueue_Activity.this,\"error in internet connection\");\r\n \t \t}\r\n\t\t \r\n }", "public void done() {\n if (!isCancelled()) {\n try {\n C0637h.this.mo7991a(get());\n } catch (InterruptedException | ExecutionException e) {\n C0637h.this.mo7992a(e.getCause());\n }\n } else {\n C0637h.this.mo7992a((Throwable) new CancellationException());\n }\n }", "public void notifyAsyncTaskDone();", "protected void onThreadFinish() {\n\t\t// notify test finish\n\t\tparent.finishLock.countDown();\n\n\t\t// print finish summary message\n\t\tprintThreadFinishMessage();\n\t}", "private void backgroundThreadProcessing() {\n // [ ... Time consuming operations ... ]\n }", "@Override\n public void run() {\n runTask();\n\n }", "public void runPendingTasks() {\n/* */ try {\n/* 578 */ this.loop.runTasks();\n/* 579 */ } catch (Exception e) {\n/* 580 */ recordException(e);\n/* */ } \n/* */ \n/* */ try {\n/* 584 */ this.loop.runScheduledTasks();\n/* 585 */ } catch (Exception e) {\n/* 586 */ recordException(e);\n/* */ } \n/* */ }", "public void run() throws InterruptedException, ExecutionException {\n\t\tExecutorService exec = Executors.newCachedThreadPool();\n\t\tfor (Entry<Integer, Set<Task>> entry : map.entrySet()) {\n\t\t\tList<Future<?>> futures = new ArrayList<Future<?>>();\n\t\t\t\n\t\t\t// submit each task in the set to the executor\n\t\t\tfor (Task task : entry.getValue()){\n\t\t\t\tfutures.add(exec.submit(task));\n\t\t\t}\n\t\t\t\n\t\t\t// iterate the futures to see if all the tasks in the set have finished execution\n\t\t\tfor (Iterator<Future<?>> iterator = futures.iterator(); iterator.hasNext();) {\n\t\t\t\tFuture<?> future = (Future<?>) iterator.next();\n\t\t\t\tif (future.get() == null);\n\t\t\t}\n\t\t}\n\t\texec.shutdown();\n\t}", "public void run()\r\n/* 996: */ {\r\n/* 997:838 */ if (DefaultPromise.this.listeners == null) {\r\n/* 998: */ for (;;)\r\n/* 999: */ {\r\n/* :00:840 */ GenericFutureListener<?> l = (GenericFutureListener)poll();\r\n/* :01:841 */ if (l == null) {\r\n/* :02: */ break;\r\n/* :03: */ }\r\n/* :04:844 */ DefaultPromise.notifyListener0(DefaultPromise.this, l);\r\n/* :05: */ }\r\n/* :06: */ }\r\n/* :07:849 */ DefaultPromise.execute(DefaultPromise.this.executor(), this);\r\n/* :08: */ }", "private void initialBlockOnMoarRunners() throws InterruptedException\n {\n lock.lock();\n try\n {\n if (taskQueue.isEmpty() && runners > 1)\n {\n runners--;\n needMoreRunner.await();\n runners++;\n }\n }\n finally\n {\n lock.unlock();\n }\n }", "public void finishedAllRequests() {\n hasMoreRequests = false;\n }", "public void finish() {\n for (RecordConsumer consumer : consumerList) {\n consumer.submit(new Record(true));\n }\n }", "private void onComplete(int duration) {\n\t\t\n\t\tservice = Executors.newSingleThreadExecutor();\n\n\t\ttry {\n\t\t Runnable r = new Runnable() {\n\t\t @Override\n\t\t public void run() {\n\t\t // Database task\n\t\t \tcontrollerVars.setPlays(false);\n\t\t }\n\t\t };\n\t\t Future<?> f = service.submit(r);\n\n\t\t f.get(duration, TimeUnit.MILLISECONDS); // attempt the task for two minutes\n\t\t}\n\t\tcatch (final InterruptedException e) {\n\t\t // The thread was interrupted during sleep, wait or join\n\t\t}\n\t\tcatch (final TimeoutException e) {\n\t\t // Took too long!\n\t\t}\n\t\tcatch (final ExecutionException e) {\n\t\t // An exception from within the Runnable task\n\t\t}\n\t\tfinally {\n\t\t service.shutdown();\n\t\t}\t\t\n\t}", "public void completeTask() {\n completed = true;\n }", "@Override\n\tpublic void run() {\n\t\tNewDeliverTaskManager ndtm = NewDeliverTaskManager.getInstance();\n\t\tif(ndtm != null && ndtm.isNewDeliverTaskAct) {\n\t\t\tNewDeliverTaskManager.logger.error(\"[旧的任务库删除线程启动成功][\" + this.getName() + \"]\");\n\t\t\twhile(isStart) {\n\t\t\t\tint count1 = 0;\n\t\t\t\tint count2 = 0;\n\t\t\t\tif(needRemoveList != null && needRemoveList.size() > 0) {\n\t\t\t\t\tList<DeliverTask> rmovedList = new ArrayList<DeliverTask>();\n\t\t\t\t\tfor(DeliverTask dt : needRemoveList) {\n\t\t\t\t\t\tDeliverTaskManager.getInstance().notifyDeleteFromCache(dt);\n\t\t\t\t\t\trmovedList.add(dt);\n\t\t\t\t\t\tcount1++;\n\t\t\t\t\t\tif(count1 >= 300) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsynchronized (this.needRemoveList) {\n\t\t\t\t\t\tfor(DeliverTask dt : rmovedList) {\n\t\t\t\t\t\t\tneedRemoveList.remove(dt);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(heartBeatTime);\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\tTransitRobberyManager.logger.error(\"删除旧的已完成列表线程出错1:\", e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(teRemoveList != null && teRemoveList.size() > 0) {\n\t\t\t\t\tList<TaskEntity> teRemovedList = new ArrayList<TaskEntity>();\n\t\t\t\t\tfor(TaskEntity te : teRemoveList) {\n\t\t\t\t\t\tTaskEntityManager.getInstance().notifyDeleteFromCache(te);\n\t\t\t\t\t\tteRemovedList.add(te);\n\t\t\t\t\t\tcount2++;\n\t\t\t\t\t\tif(count2 >= 100) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsynchronized (this.teRemoveList) {\n\t\t\t\t\t\tfor(TaskEntity te : teRemovedList) {\n\t\t\t\t\t\t\tteRemoveList.remove(te);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else{\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(30000);\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\tTransitRobberyManager.logger.error(\"删除旧的已完成列表线程出错2:\", e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tTransitRobberyManager.logger.error(\"[旧的任务库删除线程关闭][\" + this.getName() + \"]\");\n\t}", "public void run() {\n for (CrawlTask newTask = queue.pop(level); newTask != null; newTask = queue.pop(level))\n /*while (queue.getQueueSize(currentLevel)>0)*/ {\n//\t\t\tObject newTask = queue.pop(currentLevel);\n // Tell the message receiver what we're doing now\n mainCrawler.receiveMessage(newTask, id);\n // Process the newTask\n process(newTask);\n // If there are less threads running than it could, try\n // starting more threads\n if (tc.getMaxThreads() > tc.getRunningThreads()) {\n try {\n tc.startThreads();\n } catch (Exception e) {\n System.err.println(\"[\" + id + \"] \" + e.toString());\n }\n }\n }\n // Notify the ThreadController that we're done\n tc.finished(id);\n }", "protected void done() {\n\t\ttry {\n\t\t\t// get the result of doInBackground and display it\n\t\t\tresultJLabel.setText(get().toString());\n\t\t} // end try\n\t\tcatch (InterruptedException ex) {\n\t\t\tresultJLabel.setText(\"Interrupted while waiting for results.\");\n\t\t} // end catch\n\t\tcatch (ExecutionException ex) {\n\t\t\tresultJLabel.setText(\"Error encountered while performing calculation.\");\n\t\t} // end catch\n\t}", "public void executeAll()\n {\n this.queue.clear();\n this.queue_set = false;\n this.resetComputation();\n while(executeNext()) {}\n }", "@Override\n public void run() {\n if ((waitOnThese) != null) {\n for (Future<?> f : waitOnThese) {\n try {\n f.get();\n } catch (Throwable e) {\n System.err.println(\"Error while waiting on future in CompletionThread\");\n }\n }\n }\n /* send the event */\n if ((event) == (SerializedObserverTest.TestConcurrencySubscriberEvent.onError)) {\n observer.onError(new RuntimeException(\"mocked exception\"));\n } else\n if ((event) == (SerializedObserverTest.TestConcurrencySubscriberEvent.onComplete)) {\n observer.onComplete();\n } else {\n throw new IllegalArgumentException(\"Expecting either onError or onComplete\");\n }\n\n }", "@Override\r\n public void run() { \r\n do{\r\n if(resList[resId].semaphore.tryLock()){ //gets lock and returns true if free (basically wait)\r\n try{\r\n this.doJob();\r\n }\r\n catch(Exception e){ //just in case\r\n System.out.println(e.toString());\r\n }\r\n finally{\r\n resList[resId].semaphore.unlock(); //frees resource (basically signal)\r\n }\r\n }\r\n } while(!shutdown);\r\n \r\n System.out.println(name + \" stopped.\"); //notify that the thread has stopped.\r\n }", "public void waitCompletion()\n {\n\n if (isThreadEnabled())\n {\n try\n {\n executionThread.join();\n }\n catch (InterruptedException ex)\n {\n throw new RuntimeException(ex);\n }\n }\n }", "synchronized public void jobDone(){ // l'action a été réalisée\n\t\tdone = true; // changement d'état\n\t\tthis.notifyAll(); // on notifie tout le monde\n\t}", "void waitAll();", "public void completeNext()\n {\n\tTask t = toDo.get(0);\n\tt.complete();\n\ttoDo.remove(0);\n\tcompleted.add(t);\n }", "private void downloadImages(){\n new Thread(new Runnable() {\n @Override\n public void run() {\n while(true){\n if(jsonFlag) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getApplicationContext(), \"\\tJSON DOWNLOADED\\nIMAGES DOWNLOADING...\", Toast.LENGTH_SHORT).show();\n }\n });\n for ( int i = 0; i < getSize(); ++i) {\n final int index = i;\n new Thread(new Runnable() {\n @Override\n public void run() {\n long startTime;\n synchronized (mutex) {\n startTime = System.currentTimeMillis();\n bitmapList.add(getBitmapFromURL(urlList.get(index)));\n threadOrder.add(index);\n }\n long stopTime = System.currentTimeMillis();\n long elapsedTime = stopTime - startTime;\n Log.i(TAG, \"Image [\" + index + \"] downloaded. Duration is: \" + elapsedTime + \" ms.\");\n ++downloadCount;\n if (downloadCount == getSize()) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getApplicationContext(), \"IMAGES DOWNLOADED\", Toast.LENGTH_SHORT).show();\n }\n });\n downloadFlag = true;\n downloadCount = 0;\n }\n }\n }).start();\n }\n break;\n }\n }\n }\n }).start();\n }", "protected final void whenResolved(Collection<? extends Task<?>> tasks, Runnable callback) {\n \tnumOfTasksLeft = tasks.size();\n Object[] tmpArr = tasks.toArray();\n this.callback=callback;\n// \tfor (Task<?> t : tasks) {\n//\n//\t\t}\n \n for (int i=0; i<tmpArr.length; i++){\n ((Task<?>)tmpArr[i]).getResult().whenResolved(()->{\n \tsynchronized (this) { // we need to synchronize in order to prevent a situation where two threads adds the same resolved task\n \tnumOfTasksLeft--;\n if (numOfTasksLeft <= 0)\n // Add to my Queue\n myProcessor.getPool().addTask(this, myProcessor.getProcessorID());\n \t}\n });\n }\n \n \n // I get tasks, and callbacks. When all the tasks are completed, run the callback\n // @pre-condition - all of the tasks needs to be resolved <-> getResult!=null\n// \tIterator<? extends Task<?>> it=tasks.iterator();\n// \twhile (it.hasNext()) {\n// \t\tif (it.next().getResult()==null)\n//\t\t\t\ttry {\n//\t\t\t\t\t// Option for OBJECT in wait\n//\t\t\t\t\twait();\n//\t\t\t\t} catch (InterruptedException 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}\n }", "public void performBatchComplete() {\n ArrayList arrayList = new ArrayList(this.batch);\n this.batch.clear();\n this.mainThreadHandler.sendMessage(this.mainThreadHandler.obtainMessage(8, arrayList));\n logBatch(arrayList);\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\r\n\t\t\t\tfor(int i=0;i<15;i++){\r\n\t\t\t\t\tSystem.out.println(\"inside the run method of thread\"+\r\n\t\t\t\t\t\t\tThread.currentThread().getName() +\",i is\"+i);\r\n\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\tThread.sleep(100);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch(InterruptedException e){\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\r\n\t\t\t\tfor(int i=0;i<15;i++){\r\n\t\t\t\t\tSystem.out.println(\"inside the run method of thread\"+\r\n\t\t\t\t\t\t\tThread.currentThread().getName() +\",i is\"+i);\r\n\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\tThread.sleep(100);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch(InterruptedException e){\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\r\n\t\t\t\tfor(int i=0;i<15;i++){\r\n\t\t\t\t\tSystem.out.println(\"inside the run method of thread\"+\r\n\t\t\t\t\t\t\tThread.currentThread().getName() +\",i is\"+i);\r\n\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\tThread.sleep(100);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch(InterruptedException e){\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void run()\n\t{\n\t\tRandom random = new Random();\n\t\tfor(int i = 0; i < nIteraciones; i++)\n\t\t{\n\t\t\tInteger contenido = random.nextInt();\n\t\t\tString titulo = \"Thread \" + idThread + \", Mensaje \" + i;\n\t\t\tMensaje<Integer> mensaje = new Mensaje<Integer>(contenido,titulo);\n\t\t\tboolean exito = false;\n\t\t\twhile(!exito)\n\t\t\t{\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(\"Thread \" + idThread + \" almacenando, intento: \" + iteracionActual);\n\t\t\t\t\tbuffer.almacenar(mensaje);\n\t\t\t\t\texito = true;\n\t\t\t\t\titeracionActual++;\n\t\t\t\t} catch (ExceptionFullBuffer e) {\n\t\t\t\t\tSystem.err.println(\"Thread: \" + idThread + \", \" + e.getMessage());\n\t\t\t\t\tThread.yield();\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\t}\n\t\t}\n\t\tbuffer.retirarThreadActivo(idThread);\n\t\tSystem.out.println(\"Termino Thread: \" + idThread);\n\t}", "public void checkOffTask() {\n isDone = true;\n }", "public void end() {\n\t\t// End runs waiting to start.\n\t\tfor ( Run r : startQueue ) {\n\t\t\tr.setState(\"dnf\");\n\t\t\tPrinter.print(\"Bib #\" + r.getBibNum() + \" Did Not Finish\");\n\t\t\tcompletedRuns.add(r);\n\t\t}\n\t\tstartQueue.clear();\n\t\t\n\t\t// End runs waiting to finish.\n\t\tfor ( Run r : finishQueue ) {\n\t\t\tr.setState(\"dnf\");\n\t\t\tPrinter.print(\"Bib #\" + r.getBibNum() + \" Did Not Finish\");\n\t\t\tcompletedRuns.add(r);\n\t\t}\n\t\tfinishQueue.clear();\n\t}", "void done(boolean allSucceeded);", "public interface OnAllThreadResultListener {\n void onSuccess();//所有线程执行完毕\n void onFailed();//所有线程执行出现问题\n}", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t Toast.makeText(getBaseContext(),\"Task Completed\",Toast.LENGTH_LONG).show();\n\t progressStatus=0; \n\t myProgress=0;\n\t\t\t\t\t\t\n\t\t\t\t\t}", "protected void makeThreadObjectFinish() {\n\t\ttry {\n\t\t\tif (syncCommands != null) {\n\t\t\t\tsyncCommands.join();\n\t\t\t}\n\t\t} catch (Exception e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "protected void onQueued() {}", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"======开始执行任务======\");\n\t\trunning = true;\n\t\twhile (running) {\n\t\t}\n\t\tSystem.out.println(\"======结束执行任务======\");\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}", "private void waitForBackgroupTasks() {\n this.objectStore.getAllObjectIDs();\n this.objectStore.getAllEvictableObjectIDs();\n this.objectStore.getAllMapTypeObjectIDs();\n }", "@Override\n\tpublic void execute() {\n\t\tThreadPool pool=ThreadPool.getInstance();\n\t\tpool.beginTaskRun(this);\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\ttask();\n\t\t}", "public void run() {\t\t\r\n\t\tif(this.stopped) {\r\n\t\t\tthis.animationFigure.showBusy(false);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(this.state==null || this.state.getState() == State.UNBLOCKED) {\r\n\t\t\tthis.finished=true;\r\n\t\t this.animationFigure.showBusy(false);\r\n\t\t\t//notify Listeners and tell them that animation finished. This listeners are user defined listeners which will be informed.\r\n\t\t\tanimationFigure.notifyAnimationListener(new AnimationFinishedEvent(animationFigure, AnimationFinishedEvent.BUSY_FINISHED));\r\n\t\t\t//notify observers, here the observer which listens if animation is finished. this Observer looks into the animationqueue \r\n\t\t\t//after each finished \r\n\t\t\tsetChanged();\r\n\t\t\tnotifyObservers(this.animationFigure);\r\n\t\t\t\r\n\t\t\t// notify waiting threads\r\n\t\t\tsynchronized (this) {\r\n\t\t\t\tthis.notifyAll();\r\n\t\t\t}\r\n\t\t return;\r\n\t\t}\r\n\t\tif (counter >= 5) {\r\n\t\t\tcounter = 0;\r\n\t\t\tthis.animationFigure.showBusy(!this.animationFigure.isShowBusy());\r\n\t\t}\r\n\t\tcounter++;\r\n\t\tmap.getDisplay().timerExec(100, this);\t\t\t\r\n\t}", "@Override\npublic void run() {\n perform();\t\n}", "@Override\n protected void afterExecute(final Runnable r, final Throwable t) {\n mActiveTasks.remove(r);\n\n // Perform a quick check to see if there are any remaining requests in\n // the blocked queue. Peek the head and check for duplicates in the \n // active and task queues. If no duplicates exist, add the request to\n // the task queue. Repeat this until a duplicate is found\n synchronized (mBlockedTasks) {\n while(mBlockedTasks.peek()!=null && \n !mTaskQueue.contains(mBlockedTasks.peek()) && \n !mActiveTasks.contains(mBlockedTasks.peek())){\n Runnable runnable = mBlockedTasks.poll();\n if(runnable!=null){\n mThreadPool.execute(runnable);\n }\n }\n }\n super.afterExecute(r, t);\n }" ]
[ "0.6820668", "0.6724902", "0.6699213", "0.66037637", "0.6515412", "0.6507344", "0.64565456", "0.6453525", "0.6421847", "0.6380551", "0.6358266", "0.6332197", "0.6311128", "0.62931377", "0.6241298", "0.6234097", "0.61857635", "0.61604637", "0.61474895", "0.6139187", "0.61178166", "0.6109052", "0.60874474", "0.6082041", "0.60664606", "0.6064231", "0.6053536", "0.60507137", "0.6040174", "0.6038576", "0.6036081", "0.6020513", "0.6018157", "0.6006644", "0.60060954", "0.60052425", "0.5990847", "0.5972032", "0.5960827", "0.59472156", "0.59362686", "0.59186673", "0.591259", "0.591084", "0.59062046", "0.5905546", "0.5898674", "0.5891897", "0.58873266", "0.58729297", "0.58572", "0.5857195", "0.5851236", "0.5848738", "0.5837226", "0.58325726", "0.582308", "0.5813055", "0.58056766", "0.5804898", "0.58022076", "0.57955205", "0.57942003", "0.5790206", "0.5786949", "0.577778", "0.5775473", "0.57659954", "0.5762377", "0.5746328", "0.57400984", "0.57394934", "0.57313687", "0.5725945", "0.5725565", "0.5721225", "0.5720493", "0.5720095", "0.5718964", "0.5711912", "0.57087225", "0.57002425", "0.5696582", "0.5696582", "0.5696582", "0.56965613", "0.5679892", "0.5679606", "0.5675278", "0.5675074", "0.5674348", "0.5670603", "0.5668911", "0.56635654", "0.5649932", "0.5647648", "0.5642395", "0.5627473", "0.5618589", "0.56151015", "0.56125915" ]
0.0
-1
used to write and output file and close the program
public void generateOutputAndClose() { try{ Thread.sleep(1000); }catch(Exception e){ } RecursionStore.finishGuiProcessing(); DependencyGraph dg = DependencyGraph.getGraph(); String outputName = _argumentsParser.getOutputFileName(); try { dg.generateOutput(RecursionStore.getBestState(), outputName); System.out.println("Finished"); if(!_argumentsParser.displayVisuals()){ System.exit(0); } } catch (IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void close(){\n\t\ttry {\n\t\t\tout.close();\n\t\t\tout = null;\n\t\t}\n\t\tcatch (IOException e){\n\t\t\tSystem.out.println(\"Problem closing file.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "private void outputFile() {\n // Define output file name\n Scanner sc = new Scanner(System.in);\n System.out.println(\"What do you want to call this file?\");\n String name = sc.nextLine();\n\n // Output to file\n Path outputFile = Paths.get(\"submissions/\" + name + \".java\");\n try {\n Files.write(outputFile, imports);\n if (imports.size() > 0)\n Files.write(outputFile, Collections.singletonList(\"\"), StandardOpenOption.APPEND);\n Files.write(outputFile, lines, StandardOpenOption.APPEND);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public static void end()\n {\n if(out!=null) {\n out.println(\"close \" + name);\n out.flush();\n }\n }", "public void close() {\n this.output.flush();\n this.output.close();\n }", "public void close(){\r\n\t\tif (this.fileWriter != null){\r\n\t\t\ttry {\r\n\t\t\t\tthis.fileWriter.flush();\r\n\t\t\t\tthis.fileWriter.close();\r\n\t\t\t\tthis.fileWriter = null;\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tlogger.error(\"Cannot close the file handle \"+this.myfilename+\". Your results might be lost. Cause: \"+e.getMessage());\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\r\n\t\t}\r\n\t}", "@Override\r\n public boolean close() {\r\n\r\n if (clearOutputFolder) {\r\n if (!args.hasValue(LaraiKeys.OUTPUT_FOLDER)) {\r\n KadabraLog.warning(\"No output folder defined, skipping cleaning\");\r\n } else {\r\n try {\r\n FileUtils.cleanDirectory(outputDir);\r\n } catch (final IOException e) {\r\n KadabraLog.warning(\"Output folder could not be cleaned before code generation: \" + e.getMessage());\r\n }\r\n }\r\n\r\n }\r\n\r\n if (args.get(JavaWeaverKeys.WRITE_CODE)) {\r\n if (prettyPrint) {\r\n spoon.prettyprint();\r\n spoon = newSpoon(Arrays.asList(temp), outputDir);\r\n // spoon.getEnvironment().setNoClasspath(true);\r\n // spoon.getEnvironment().setNoClasspath(false);\r\n buildAndProcess();\r\n spoon.prettyprint();\r\n } else {\r\n // System.out.println(\"PRESERVE? \" + spoon.getEnvironment().isPreserveLineNumbers());\r\n spoon.prettyprint();\r\n }\r\n }\r\n\r\n // Write XML files\r\n jApp.getAndroidResources().write(outputDir);\r\n\r\n // writeCode(temp, outputDir, true);\r\n\r\n if (reportGear.isActive()) {\r\n\r\n KadabraLog.info(\"REPORT: \");\r\n KadabraLog.info(\"Advised Join Points: \" + reportGear.getAdvisedJoinPoints().size());\r\n }\r\n return true;\r\n }", "public void close() {\n try { out.flush(); } catch (Exception e) {}; // just to be sure\n \n cleanup();\n }", "private static void closeAll() {\n try {\n outputFileBuffer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n Encog.getInstance().shutdown();\n }", "public void finish() {\n if (rnaFile != null) {\n try {\n FileWriter writer = new FileWriter(rnaFile);\n writer.write(rna.toString());\n writer.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n\n System.exit(0);\n }", "@Override\n\tpublic void executeOp() {\n try {\n // Make a bunch of shit that will allow us to write to the file\n FileWriter fw = new FileWriter(file.getAbsoluteFile());\n BufferedWriter bw = new BufferedWriter(fw);\n\n // Write the text that's in our notepad to the file\n bw.write(textArea.getText());\n\n // Close the \"stream\"\n bw.close();\n\n // If the attempt fails, display the error message - then give up.\n } catch (IOException ioe) {\n JOptionPane.showMessageDialog(frame, \"PROBLEM SAVING\");\n }\n\t}", "@Override\n\t\tpublic void close() throws IOException {\n\t\t\tout.close();\n\t\t}", "protected void close()\n {\n out.close();\n }", "public static void main(String[] args) throws IOException {\n PrintWriter outputFile = new PrintWriter(\"ResultFile.txt\");\n\n outputFile.println(\"Line 1\");\n outputFile.println(\"Line 2\");\n outputFile.println(\"Line 3\");\n outputFile.println(\"Line 4\");\n\n\n outputFile.close();\n\n }", "public void close() {\n this.output = null;\n }", "public void close() {\n if (this.out == null) {\n return;\n }\n try {\n this.out.flush();\n this.out.close();\n this.out = null;\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void outputToFile(String filemame)\n {\n }", "private void saveResourceFile()\r\n\t{\t\r\n\t\tFile file = null;\r\n\t\tFileWriter fw = null;\r\n\t\t//File complete = null;//New file for the completed list\r\n\t\t//FileWriter fw2 = null;//Can't use the same filewriter to do both the end task and the complted products.\r\n\t\ttry{\r\n\t\t\tfile = new File(outFileName);\r\n\t\t\tfile.createNewFile();\r\n\t\t\tfw = new FileWriter(outFileName,true);\r\n\t\t\tfor(FactoryObject object : mFObjects)\r\n\t\t\t{\r\n\t\t\t\tif(object instanceof FactoryReporter) {\r\n\t\t\t\t\t((FactoryReporter)object).report(fw);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tSystem.out.println(ioe.getMessage());\r\n\t\t\tif(file != null) {\r\n\t\t\t\tfile.delete();\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tif(fw != null) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tfw.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tSystem.out.println(\"Failed to close the filewriter!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void closeFile(){\n\t\t\n\t\ttry{\n\n\t\t\tbufferedInput.close();\n\t\t}\n\t\tcatch(IOException ex) {\n \t\tSystem.err.println(\"Error: Some problem while closing file\");; \n\t\t\tSystem.exit(1); \n \t}\n\t}", "public static void main(String[] args) {\n try (FileOutputStream f = new FileOutputStream()) //create an object of fileoutputstream\n {\n String data = \"Hello stupid\"; //custom string input\n byte[] arr = data.getBytes(); //convert string to bytes\n stream.write(arr); //text written in file\n } catch (Exception e) { //catch block to handle exception\n System.out.println(e.getMessage());\n }\n System.out.println(\"resources are closed so byebye\");\n }", "@Override\n public void close() throws IOException\n {\n _out.close();\n }", "public void postRun() {\n if (manageFileSystem && fs != null) {\n try {\n fs.close();\n }\n catch (IOException e) {\n System.out.println(String.format(\"Failed to close AlluxioFileSystem: %s\", e.getMessage()));\n }\n }\n // only to close the FileOutputStream when manageRecordFile=true\n if (manageRecordFile && recordOutput != null) {\n try {\n recordOutput.close();\n }\n catch (IOException e) {\n System.out.println(String.format(\"Failed to close File %s: %s\", recordFileName, e.getMessage()));\n }\n }\n }", "public static void closeFile() {\n\t\tif (input != null)\n\t\t\tinput.close();\n\t\t\n\t}", "public synchronized void close() throws IOException {\n\t\t\tfinish();\n\t\t\tout.close();\n\t\t}", "private static void writeToOutput() {\r\n FileWriter salida = null;\r\n String archivo;\r\n JFileChooser jFC = new JFileChooser();\r\n jFC.setDialogTitle(\"KWIC - Seleccione el archivo de salida\");\r\n jFC.setCurrentDirectory(new File(\"src\"));\r\n int res = jFC.showSaveDialog(null);\r\n if (res == JFileChooser.APPROVE_OPTION) {\r\n archivo = jFC.getSelectedFile().getPath();\r\n } else {\r\n archivo = \"src/output.txt\";\r\n }\r\n try {\r\n salida = new FileWriter(archivo);\r\n PrintWriter bfw = new PrintWriter(salida);\r\n System.out.println(\"Índice-KWIC:\");\r\n for (String sentence : kwicIndex) {\r\n bfw.println(sentence);\r\n System.out.println(sentence);\r\n }\r\n bfw.close();\r\n System.out.println(\"Se ha creado satisfactoriamente el archivo de texto\");\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void open(){\n try {\n output = new BufferedWriter(new FileWriter(training_path, true));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void processSaveAndClose() {\n\n\t\tPrintWriter writer = null;\n\t\ttry {\n\t\t\ttry {\n\t\t\t\twriter = new PrintWriter(classesOutFile);\n\n\t\t\t\tint i = 0;\n\t\t\t\tfor (FitnessClass fc: fitnessClass) {\n\n\t\t\t\t\tif (fc == null) {\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tString fileOutput = fc.toStringClassesOut();\n\t\t\t\t\t\twriter.print(fileOutput);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tfinally {\n\n\t\t\t\tif (writer != null) {\n\t\t\t\t\twriter.close();\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t} \t\n\t\t}\n\t\tcatch (IOException ioe) {\n\t\t\tJOptionPane.showMessageDialog(null, \"File not found\",\n\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE);\n\n\t\t}\t\t\t\t\n\n\t}", "public void closeFile() throws IOException{\r\n\t\toutRCVictim.close();\r\n\t\tf[0][0].close();\r\n\t\t\r\n\t}", "private static void textFilesOutput() {\n\n // make output directory if it doesn't already exist\n new File(\"output\").mkdirs();\n\n Output airportFlightCounter = new AirportFlightCounter(airports);\n Output flightInventory = new FlightInventory(flights);\n Output flightPassengerCounter = new FlightPassengerCounter(flights);\n Output mileageCounter = new MileageCounter(flights, airports);\n\n try {\n airportFlightCounter.toTextFile();\n flightInventory.toTextFile();\n flightPassengerCounter.toTextFile();\n mileageCounter.toTextFile();\n } catch (FileNotFoundException e) {\n logger.error(\"Could not write to one or more text files - please close any open instances of that file\");\n e.printStackTrace();\n }\n\n logger.info(\"Output to text files completed\");\n }", "static public void exit() {\n // We close our printStream ( can be a log so we do things properly )\n out.flush();\n System.exit(0);\n }", "private void cmdWrite(String filename) throws NoSystemException {\n MSystem system = system();\n PrintWriter out = null;\n try {\n if (filename == null)\n out = new PrintWriter(System.out);\n else {\n out = new PrintWriter(new BufferedWriter(new FileWriter(\n filename)));\n }\n out\n .println(\"-- Script generated by USE \"\n + Options.RELEASE_VERSION);\n out.println();\n system.writeSoilStatements(out);\n } catch (IOException ex) {\n Log.error(ex.getMessage());\n } finally {\n if (out != null) {\n out.flush();\n if (filename != null)\n out.close();\n }\n }\n }", "private void finishFile() {\n\t\twriter.println();\n\t\twriter.println(\"; wait for any key press:\");\n\t\twriter.println(\"mov ah, 0\");\n\t\twriter.println(\"int 16h\");\n\t\twriter.println();\n\t\twriter.println(\"ret\");\n\t}", "protected void fileSet() throws IOException {\n//\t\tfos = new FileOutputStream(outFile, false);\n//\t\tdos = new DataOutputStream(fos);\n\t\trealWriter = new BufferedWriter(new FileWriter(outFile.getAbsolutePath()));\n\t}", "@Override\n public void close() {\n try {\n out.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void Close() throws IOException {\n\n\t\ttermFile = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(Path.ResultHM1+type+Path.TermDir), \"utf-8\"));\n\t\t// Write to term file\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(String term: term2termid.keySet()){\n\t\t\tsb.append(term + \" \" + term2termid.get(term) + \"\\n\");\n\t\t}\n\t\ttermFile.write(sb.toString());\n\t\ttermFile.close();\n\t\tterm2termid.clear();\n\n\t\t// Write to docVector\n\t\tWriteDocFile();\n\t\t// Write to posting file\n\t\tWritePostingFile();\n\n\t}", "protected void close() {\n\t\tif(sOutput != null) {\n\t\t\ttry {\n\t\t\t\tsOutput.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"error closing output stream\");\n\t\t\t}\n\t\t\t\n\t\t\tsOutput = null;\n\t\t}\n\t}", "public void close() {\n if (numDigits > 0)\n flush();\n try {\n output.close();\n } catch (IOException e) {\n throw new RuntimeException(e.toString());\n }\n }", "private void writeProc() throws Exception {\n\t\tWriter writer = new Writer(this.procPath,this.procDataList);\n\t\twriter.running();\n\t}", "public void closeFile() \r\n {\r\n try // close file and exit\r\n {\r\n if ( input != null )\r\n input.close();\r\n } // end try\r\n catch ( IOException ioException )\r\n {\r\n System.err.println( \"Error closing file.\" );\r\n System.exit( 1 );\r\n } // end catch\r\n }", "public void closeFile(){\n }", "@Override\n\t public synchronized void close() throws IOException {\n\t\tout.close();\n\t\topen = false;\n\t }", "public FileOutput(String filename) {\n\t\tthis.filename = filename;\n\t\ttry {\n\t\t\twriter = new PrintWriter(new BufferedWriter(new FileWriter(filename,false)));\n\t\t\tSystem.out.println(\"Created\\t\\\"\" + filename + \"\\\" sucessfully\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not create\\t\" + filename);\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\twriter.close();\n\t\t}\n\t\t\n\t}", "private void open()\n {\n try\n {\n // Found how to append to a file here \n //http://stackoverflow.com/questions/1625234/how-to-append-text-to-an-existing-file-in-java\n r = new PrintWriter( new BufferedWriter(new FileWriter(filePath, true)));\n }\n catch( IOException e )\n {\n r = null;\n UI.println(\"An error occored when operning stream to the log file.\\n This game wont be logged\");\n Trace.println(e);\n }\n }", "public void close()\r\n\t\tthrows IOException\r\n\t{\r\n\t\tif (out != null)\r\n\t\t\tout.close();\r\n\r\n\t\tif (rnd != null)\r\n\t\t\trnd.close();\r\n\t}", "public void close() throws IOException {\n FileOutputStream out = new FileOutputStream(fileName);\n wb.write(out);\n\n out.close();\n wb.close();\n }", "private void closeOutput() throws Exception \n { Close the fifo file...\n //\n data.fifoStream.close();\n data.fifoStream=null;\n \n // wait for the INSERT statement to finish and check for any\n // error and/or warning...\n // \n data.sqlRunner.join();\n SqlRunner sqlRunner = data.sqlRunner;\n data.sqlRunner = null;\n sqlRunner.checkExcn();\n \n //wait for UNIX/Linux Process to be finished\n data.sqlProcess.waitFor();\n \n data.sqlOutputStream.close();\n data.sqlOutputStream=null;\n }", "public void shutdown() {\n try {\n this.writer.close();\n } catch (IOException e) {\n log.warn(i18n.getString(\"problemCloseOutput\", e), e);\n }\n }", "public void close() throws IOException{\n\t\tcp.close();\n\t\tSuaDB.fileMgr().flushFile(fileName);\n\t}", "public void close() throws IOException {\n\t\tout.flush();\n\t\tout.close();\n\t}", "public void Exit(){\n\t\t\t\tclose();\n\t\t\t}", "public void close() {\n try {\n out.close();\n } catch (java.io.IOException ioe) {\n }\n ;\n }", "private void saveOutputFile() {\n FileChooser fileChooser = new FileChooser();\n if (textMergeScript.hasCurrentDirectory()) {\n fileChooser.setInitialDirectory (textMergeScript.getCurrentDirectory());\n }\n chosenOutputFile = fileChooser.showSaveDialog (ownerWindow);\n if (fileChooser != null) {\n writeOutput();\n openOutputDataName.setText (tabNameOutput);\n }\n }", "public void closeFile() throws IOException {\n finstream.close();\n writer.close();\n }", "public static void closeIO()\r\n\t{\n\t\ttry\r\n\t\t{\r\n\t\t\tinStream.close();\r\n\t\t\toutStream.close();\r\n\t\t}\r\n\t\tcatch(IOException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void close() throws Exception{\r\n\tout.close();\r\n}", "void closeFiles() {\n try {\n inputFile.close();\n debugFile.close();\n reportFile.close();\n workFile.close();\n stnFile.close();\n } catch(Exception e) {}\n }", "public void close()\n throws IOException\n {\n outstream.close();\n }", "public void close() {\n this.octaveExec.close();\n }", "private void closeOutputStream() {\n\t\tPrintStreamManagement.closeOutputStream();\n\t}", "public abstract void saveToFile(PrintWriter out);", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "public static void endWrite()\r\n\t{\r\n\t\r\n\t}", "public void finalize()\n\t{\n\t\tif (!isClosed) {\n\t\t\t// System.out.println(\"SimWriter: finalize() - writing closing bracket to file...\");\n\t\t\twList.writeToFile(\"\\n ]\", 0);\n\t\t\tisClosed = true;\n\t\t}\n\t\t//System.out.println(\"SimWriter: finalize() done\");\n\t}", "public void write(File output) throws IOException {\n }", "static void Output(String filename, String message){\n FileOutputStream out;\n DataOutputStream data;\n try {\n out = new FileOutputStream(filename);\n data = new DataOutputStream(out);\n data.writeBytes(message);\n data.close();\n }\n catch (FileNotFoundException ex){\n System.out.println(\"File to open file for writing\");\n }\n catch (IOException ex) {\n System.out.println(\"RuntimeException on writing/closing file\");\n }\n }", "public void close() {\r\n\t\tflush();\r\n\t\ttry {\r\n\t\t\tdos.close();\r\n\t\t\ts.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "private void createFile(String outputData, File file) {\n try {\n FileWriter writer = new FileWriter(file);\n writer.write(outputData);\n writer.close();\n } catch (IOException e) {\n e.getSuppressed();\n }\n }" ]
[ "0.7302034", "0.68853456", "0.6682515", "0.6669816", "0.6619072", "0.6590357", "0.65852153", "0.6539819", "0.6534165", "0.6524611", "0.6478357", "0.64697796", "0.64608544", "0.6457988", "0.6424848", "0.6387869", "0.6355583", "0.6352093", "0.63505495", "0.6315489", "0.63115484", "0.6300973", "0.62995636", "0.6290817", "0.6272309", "0.62694055", "0.62557113", "0.62408984", "0.6238651", "0.62280893", "0.6218406", "0.6216653", "0.6208195", "0.6203797", "0.6202032", "0.6199292", "0.61825424", "0.6173261", "0.61719793", "0.61712307", "0.61687714", "0.6168392", "0.6165669", "0.6152004", "0.61474895", "0.61298347", "0.61200565", "0.6117685", "0.61163676", "0.60689723", "0.6067905", "0.6060811", "0.60316795", "0.6030293", "0.6015261", "0.59855", "0.59778285", "0.596222", "0.59486157", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59453195", "0.59396255", "0.5937443", "0.59369475", "0.59290236", "0.59194165", "0.5918793" ]
0.63431096
19
User can pass in any object that needs to be accessed once the NonBlocking Web service call is finished and appropriate method of this CallBack is called.
public ApplicationManagementServiceCallbackHandler(Object clientData){ this.clientData = clientData; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void callbackCall() {\n\t\t\t}", "public WebserviceCallbackHandler(){\n this.clientData = null;\n }", "public UrbrWSServiceCallbackHandler(){\r\n this.clientData = null;\r\n }", "public ApplicationManagementServiceCallbackHandler(){\n this.clientData = null;\n }", "public WebserviceCallbackHandler(Object clientData){\n this.clientData = clientData;\n }", "public Response callback() throws Exception;", "@Override\r\n\tpublic Response invoke() {\n\t\treturn null;\r\n\t}", "public PartnerAPICallbackHandler(){\n this.clientData = null;\n }", "@Override\n\tpublic void callback(Object o) {}", "public interface GeneralService {\n\n /**\n * Returns general server data\n */\n Request getGeneralData(AsyncCallback<GeneralData> callback);\n\n}", "public interface AsynService {\n void asynMethod();\n}", "public interface RLatitudeServiceAsync {\r\n\r\n\tvoid sayHello(AsyncCallback<String> callback);\r\n\r\n\tvoid publishUser(String name, String firstName, String dateNaissance,\r\n\t\t\tAsyncCallback< String > callback );\r\n\t\r\n\tvoid checkPasswordLoginValidity( String login, String password, AsyncCallback< Boolean > callback );\r\n\t\r\n\tvoid publishAuthentication( String uid, String login, String password, AsyncCallback</*IUser*/Void> callback );\r\n\t\r\n\tvoid connect(String login, String password, AsyncCallback< String > callback);\r\n\t\r\n\tvoid disconnect(String uid, AsyncCallback< Boolean > callback);\r\n\t\r\n\tvoid changeMyVisibility(String uid, boolean visibility,\r\n\t\t\tAsyncCallback<Boolean> callback);\r\n\r\n\tvoid getVisibility(String uid, AsyncCallback<Boolean> callback);\r\n\t\r\n\tvoid setCurrentPostion(String uid, Position position,\r\n\t\t\tAsyncCallback<Void> callback);\r\n\t\r\n\tvoid addContact( String uidUser, String uidContact, AsyncCallback< Void > callback );\r\n\t\r\n\tvoid getContact( String uid,\r\n\t\t\tAsyncCallback< List< ResolvedContact > > callback );\r\n\t\r\n\tvoid getUser( String name, String lastName, AsyncCallback<ResolvedUser> callback );\r\n\t\r\n\tvoid getUser(String uid,AsyncCallback<ResolvedUser> callback);\r\n\r\n\tvoid getPosition( String uidUser, AsyncCallback< Position > callback );\r\n\r\n}", "public ScoringServiceCallbackHandler(){\r\n this.clientData = null;\r\n }", "public OrderServiceImplServiceCallbackHandler(){\n this.clientData = null;\n }", "public interface RequestCallbackListener {\n public void notifyToCaller(boolean isExecuted,Object obj);\n}", "public LoadBalanceCallbackHandler(){\n this.clientData = null;\n }", "interface InterfaceAsyncRequestData {\n\n /*\n * This is Interface used when a VALUE obtained from\n * an Async Thread (Class) has to be pass over to another\n * Class (probably UI thread for display to user),\n * but Async Thread and UI Thread are seperated in 2 different class.\n *\n * NOTE:\n * Implementation for these methods are\n * preferable to be\n * inside the necessary displayed UI Activity, e.g. MainActivity\n *\n * Summary:\n * - UI Thread = setup the methods, (activityRequestData = this), just for standby, NOT TO BE CALLED!\n *\n * - Background/Async Thread = invoke/call the methods, activityRequestData=null\n *\n * - Interface (or I called it \"Skin\") here = just a skin / head / methods name only, without implementation\n *\n *\n * UI Thread:\n * -implements and link->>\n *\n * ClassName implements AsyncRespondInterface {\n * ClassName(){\n * Async.activityRequestData = this;\n * }\n * // implements the rest of the methods()\n * }\n *\n * Background/Async Thread:\n * -prepare->> AsyncRespondInterface activityRequestData = null;\n * -invoke->> AsyncRespondInterface.someMethods();\n *\n */\n\n void getArrayListJSONResult(ArrayList<JSONObject> responses);\n}", "public interface MembershipsCallBack {\n void onCompleted(int statusCode, ArrayList<Membership> membershipArrayList);\n}", "public interface MyCallbackInterface {\n //its supposed to send the JSON object on request completed\n void onRequestCompleted(JSONArray result);\n }", "Single<WebClientServiceResponse> whenResponseReceived();", "Single<WebClientServiceResponse> whenResponseReceived();", "@Override\n public void getData(final int start, final ApiCallBack<List<ClassMyMessageBean>> callBack) {\n\n }", "@Override\n\t\t\t\tpublic void onResponseReceived(Request request, Response response) {\n\t\t\t\t\t\n\t\t\t\t}", "public interface HomepageServiceAsync {\n\tpublic void getProtectionInformation(AsyncCallback<ProtectionInformationModel[]> callback);\n\n\tpublic void getRecentBackups(int backupType, int backupStatus,int top, AsyncCallback<RecoveryPointModel[]> callback);\n\t\n\tpublic void getRecentBackupsByServerTime(int backupType, int backupStatus, String serverBeginDate, String serverEndDate, boolean needCatalogStatus, AsyncCallback<RecoveryPointModel[]> callback);\n\t\n\tpublic void getVMRecentBackupsByServerTime(int backupType, int backupStatus, String serverBeginDate, String serverEndDate, boolean needCatalogStatus, BackupVMModel vmModel,AsyncCallback<RecoveryPointModel[]> callback);\n\t\n\tpublic void getBackupInforamtionSummary(AsyncCallback<BackupInformationSummaryModel> callback);\n\t\n\tpublic void updateProtectionInformation(AsyncCallback<ProtectionInformationModel[]> callback);\n\t\n\tpublic void getDestSizeInformation(BackupSettingsModel model,AsyncCallback<DestinationCapacityModel> callback);\n\t\n\tpublic void getNextScheduleEvent(int in_iJobType,AsyncCallback<NextScheduleEventModel> callback);\n\n\tpublic void getTrustHosts(\n\t\t\tAsyncCallback<TrustHostModel[]> callback);\n\n\tvoid becomeTrustHost(TrustHostModel trustHostModel,\n\t\t\tAsyncCallback<Boolean> callback);\n\n\tvoid checkBaseLicense(AsyncCallback<Boolean> callback);\n\n\tvoid getBackupInforamtionSummaryWithLicInfo(AsyncCallback<BackupInformationSummaryModel> callback);\n\t\n\tvoid getLocalHost(AsyncCallback<TrustHostModel> callback);\n\n\tvoid PMInstallPatch(PatchInfoModel in_patchinfoModel,\n\t\t\tAsyncCallback<Integer> callback);\n\t\n\tvoid PMInstallBIPatch(PatchInfoModel in_patchinfoModel,\n\t\t\tAsyncCallback<Integer> callback);//added by cliicy.luo\n\t\n\tvoid getVMBackupInforamtionSummaryWithLicInfo(BackupVMModel vm,\n\t\t\tAsyncCallback<BackupInformationSummaryModel> callback);\n\n\tvoid getVMBackupInforamtionSummary(BackupVMModel vm,\n\t\t\tAsyncCallback<BackupInformationSummaryModel> callback);\n\n\tvoid getVMProtectionInformation(BackupVMModel vmModel,\n\t\t\tAsyncCallback<ProtectionInformationModel[]> callback);\n\n\tvoid getVMNextScheduleEvent(BackupVMModel vmModel,\n\t\t\tAsyncCallback<NextScheduleEventModel> callback);\n\tpublic void getVMRecentBackups(int backupType, int backupStatus,int top,BackupVMModel vmModel, AsyncCallback<RecoveryPointModel[]> callback);\n\n\tvoid updateVMProtectionInformation(BackupVMModel vm,\n\t\t\tAsyncCallback<ProtectionInformationModel[]> callback);\n\n\tvoid getArchiveInfoSummary(AsyncCallback<ArchiveJobInfoModel> callback);\n\n\tvoid getLicInfo(AsyncCallback<LicInfoModel> callback);\n\n\tvoid getVMStatusModel(BackupVMModel vmModel,\n\t\t\tAsyncCallback<VMStatusModel[]> callback);\n\n\tvoid getConfiguredVM(AsyncCallback<BackupVMModel[]> callback);\n\n\tvoid getMergeJobMonitor(String vmInstanceUUID,\n\t\t\tAsyncCallback<MergeJobMonitorModel> callback);\n\n\tvoid pauseMerge(String vmInstanceUUID, AsyncCallback<Integer> callback);\n\n\tvoid resumeMerge(String vmInstanceUUID, AsyncCallback<Integer> callback);\n\n\tvoid getMergeStatus(String vmInstanceUUID,\n AsyncCallback<MergeStatusModel> callback);\n\n\tvoid getBackupSetInfo(String vmInstanceUUID, \n\t\t\tAsyncCallback<ArrayList<BackupSetInfoModel>> callback);\n\t\n\tpublic void getDataStoreStatus(String dataStoreUUID, AsyncCallback<DataStoreInfoModel> callback);\n\n\tvoid getVMDataStoreStatus(BackupVMModel vm, String dataStoreUUID,\n\t\t\tAsyncCallback<DataStoreInfoModel> callback);\n\t\n}", "private void callWebServiceData() {\r\n\r\n\t\tif(Utility.FragmentContactDataFetchedOnce){\r\n\t\t\tgetDataFromSharedPrefernce();\r\n\t\t} else {\r\n\t\t\t//Utility.startDialog(activity);\r\n\t\t\tnew GetDataAsynRegistration().execute();\r\n\t\t}\r\n\t}", "public interface BankOfficeGWTServiceAsync {\n\tpublic void findById(Integer id, AsyncCallback<BankOfficeDTO> callback);\n\tpublic void saveOrUpdate(BankOfficeDTO entity, AsyncCallback<Integer> callback);\n\tpublic void getMyOffice(AsyncCallback<BankOfficeDTO> callback);\n\tpublic void findByExternalId(Long midasId, AsyncCallback<BankOfficeDTO> callback);\n\tpublic void findAll(AsyncCallback<ArrayList<BankOfficeDTO>> callback);\n\tpublic void findAllShort(AsyncCallback<ArrayList<ListBoxDTO>> asyncCallback);\n}", "public PartnerAPICallbackHandler(Object clientData){\n this.clientData = clientData;\n }", "@Override\n\tpublic Response call() throws Exception {\n\t\tClientResponse response = callWebService(this.spaceEntry);\n\t\tthis.transId = (int) response.getEntity(Integer.class);\n\t\tresponse.close();\n\t\t/*wait for web service to provide tuple Object result*/\n\t\tawaitResult();\n\t\t\n\t\t/*return result*/\n\t\treturn result;\n\t}", "@Override\n\t\t\tpublic void onResponseReceived(Request request, Response response) {\n\t\t\t\t\n\t\t\t}", "Single<WebClientServiceResponse> whenComplete();", "Single<WebClientServiceResponse> whenComplete();", "public AsyncHttpCallback() {\n\t\tif(Looper.myLooper() != null) mHandler = new Handler(this);\n\t}", "public interface EPAsyncResponseListener {\n public void getJokesfromEndpoint(String result);\n}", "public UrbrWSServiceCallbackHandler(Object clientData){\r\n this.clientData = clientData;\r\n }", "public interface DepartmentCallBack {\n void getDepartmentList(List<Department> list, BmobException e);\n}", "public interface InternalAuditServiceAsync {\n\n\tvoid signIn(String userid, String password, AsyncCallback<Employee> callback);\n\n\tvoid fetchObjectiveOwners(AsyncCallback<ArrayList<Employee>> callback);\n\n\tvoid fetchDepartments(AsyncCallback<ArrayList<Department>> callback);\n\n\tvoid fetchRiskFactors(int companyID, AsyncCallback<ArrayList<RiskFactor>> callback);\n\n\tvoid saveStrategic(Strategic strategic, HashMap<String, String> hm, AsyncCallback<String> callback);\n\n\tvoid fetchStrategic(HashMap<String, String> hm, AsyncCallback<ArrayList<Strategic>> callback);\n\n\tvoid fetchRiskAssesment(HashMap<String, String> hm, AsyncCallback<ArrayList<RiskAssesmentDTO>> callback);\n\n\tvoid saveRiskAssesment(HashMap<String, String> hm, ArrayList<StrategicDegreeImportance> strategicRisks,\n\t\t\tArrayList<StrategicRiskFactor> arrayListSaveRiskFactors, float resultRating, AsyncCallback<String> callback);\n\n\tvoid sendBackStrategic(Strategic strategics, AsyncCallback<String> callback);\n\n\tvoid declineStrategic(int startegicId, AsyncCallback<String> callback);\n\n\tvoid fetchStrategicAudit(AsyncCallback<ArrayList<StrategicAudit>> callback);\n\n\tvoid fetchDashBoard(HashMap<String, String> hm, AsyncCallback<ArrayList<DashBoardDTO>> callback);\n\n\tvoid fetchFinalAuditables(AsyncCallback<ArrayList<Strategic>> callback);\n\n\tvoid checkDate(Date date, AsyncCallback<Boolean> callback);\n\n\tvoid fetchSchedulingStrategic(HashMap<String, String> hm, AsyncCallback<ArrayList<StrategicDTO>> callback);\n\n\tvoid fetchSkills(AsyncCallback<ArrayList<Skills>> callback);\n\n\tvoid saveJobTimeEstimation(JobTimeEstimationDTO entity, ArrayList<SkillUpdateData> updateForSkills,\n\t\t\tAsyncCallback<Boolean> callback);\n\n\tvoid fetchJobTime(int jobId, AsyncCallback<JobTimeEstimationDTO> callback);\n\n\tvoid fetchEmployees(AsyncCallback<ArrayList<Employee>> callback);\n\n\tvoid fetchResourceUseFor(int jobId, AsyncCallback<ArrayList<ResourceUse>> callback);\n\n\tvoid fetchEmployeesByDeptId(ArrayList<Integer> depIds, AsyncCallback<ArrayList<Employee>> asyncCallback);\n\n\tvoid saveJobAndAreaOfExpertiseState(ArrayList<JobAndAreaOfExpertise> state, AsyncCallback<Void> callback);\n\n\tvoid fetchCheckBoxStateFor(int jobId, AsyncCallback<ArrayList<JobAndAreaOfExpertise>> callback);\n\n\tvoid saveCreatedJob(JobCreationDTO job, AsyncCallback<String> callback);\n\n\tvoid fetchCreatedJobs(boolean getEmpRelation, boolean getSkillRelation,\n\t\t\tAsyncCallback<ArrayList<JobCreationDTO>> asyncCallback);\n\n\tvoid getEndDate(Date value, int estimatedWeeks, AsyncCallback<String> asyncCallback);\n\n\tvoid fetchEmployeesWithJobs(AsyncCallback<ArrayList<JobsOfEmployee>> callback);\n\n\tvoid updateEndDateForJob(int jobId, String startDate, String endDate, AsyncCallback<JobCreation> asyncCallback);\n\n\tvoid getMonthsInvolved(String string, String string2, AsyncCallback<int[]> callback);\n\n\tvoid fetchAllAuditEngagement(int loggedInEmployee, AsyncCallback<ArrayList<AuditEngagement>> callback);\n\n\tvoid fetchCreatedJob(int jobId, AsyncCallback<JobCreation> callback);\n\n\tvoid updateAuditEngagement(AuditEngagement e, String fieldToUpdate, AsyncCallback<Boolean> callback);\n\n\tvoid syncAuditEngagementWithCreatedJobs(int loggedInEmployee, AsyncCallback<Void> asyncCallback);\n\n\tvoid saveRisks(ArrayList<RiskControlMatrixEntity> records, AsyncCallback<Boolean> asyncCallback);\n\n\tvoid sendEmail(String body, String sendTo, AsyncCallback<Boolean> asyncCallback);\n\n\tvoid fetchAuditEngagement(int selectedJobId, AsyncCallback<AuditEngagement> asyncCallback);\n\n\tvoid fetchRisks(int auditEngId, AsyncCallback<ArrayList<RiskControlMatrixEntity>> asyncCallback);\n\n\t// void fetchEmpForThisJob(\n\t// int selectedJobId,\n\t// AsyncCallback<ArrayList<Object>> asyncCallback);\n\n\tvoid fetchEmployeeJobRelations(int selectedJobId, AsyncCallback<ArrayList<JobEmployeeRelation>> asyncCallback);\n\n\tvoid fetchJobs(AsyncCallback<ArrayList<JobCreation>> asyncCallback);\n\n\tvoid fetchEmployeeJobs(Employee loggedInEmployee, String reportingTab,\n\t\t\tAsyncCallback<ArrayList<JobCreation>> asyncCallback);\n\n\tvoid fetchJobExceptions(int jobId, AsyncCallback<ArrayList<Exceptions>> asyncCallbac);\n\n\tvoid fetchEmployeeExceptions(int employeeId, int jobId, AsyncCallback<ArrayList<Exceptions>> asyncCallbac);\n\n\tvoid sendException(Exceptions exception, Boolean sendMail, String selectedView, AsyncCallback<String> asyncCallbac);\n\n\tvoid saveAuditStepAndExceptions(AuditStep step, ArrayList<Exceptions> exs, AsyncCallback<Void> asyncCallback);\n\n\tvoid getSavedAuditStep(int selectedJobId, int auditWorkId, AsyncCallback<AuditStep> asyncCallback);\n\n\tvoid getSavedExceptions(int selectedJobId, AsyncCallback<ArrayList<Exceptions>> asyncCallback);\n\n\tvoid saveAuditWork(ArrayList<AuditWork> records, AsyncCallback<Void> asyncCallback);\n\n\tvoid updateKickoffStatus(int auditEngId, Employee loggedInUser, AsyncCallback<Void> asyncCallback);\n\n\tvoid fetchAuditHeadExceptions(int auditHeadId, int selectedJob, AsyncCallback<ArrayList<Exceptions>> asyncCallback);\n\n\tvoid fetchCreatedJob(int id, boolean b, boolean c, String string, AsyncCallback<JobCreationDTO> asyncCallback);\n\n\tvoid fetchAuditWorkRows(int selectedJobId, AsyncCallback<ArrayList<AuditWork>> asyncCallback);\n\n\tvoid fetchApprovedAuditWorkRows(int selectedJobId, AsyncCallback<ArrayList<AuditWork>> asyncCallback);\n\n\tvoid saveAuditNotification(int auditEngagementId, String message, String to, String cc, String refNo, String from,\n\t\t\tString subject, String filePath, String momoNo, String date, int status,\n\t\t\tAsyncCallback<String> asyncCallback);\n\n\tvoid logOut(AsyncCallback<String> asyncCallback);\n\n\tvoid selectYear(int year, AsyncCallback<Void> asyncCallback);\n\n\tvoid fetchNumberofPlannedJobs(AsyncCallback<Integer> asyncCallback);\n\n\tvoid fetchNumberofInProgressJobs(AsyncCallback<Integer> asyncCallback);\n\n\tvoid fetchNumberofCompletedJobs(AsyncCallback<Integer> asyncCallback);\n\n\tvoid fetchJobsKickOffWithInaWeek(AsyncCallback<ArrayList<String>> asyncCallback);\n\n\tvoid fetchNumberOfAuditObservations(AsyncCallback<Integer> asyncCallback);\n\n\tvoid fetchNumberOfExceptionsInProgress(AsyncCallback<Integer> asyncCallback);\n\n\tvoid fetchNumberOfExceptionsImplemented(AsyncCallback<Integer> asyncCallback);\n\n\tvoid fetchNumberOfExceptionsOverdue(AsyncCallback<Integer> asyncCallback);\n\n\tvoid fetchEmployeesAvilbleForNext2Weeks(AsyncCallback<ArrayList<String>> asyncCallback);\n\n\tvoid fetchStrategicDepartments(int strategicId, AsyncCallback<ArrayList<StrategicDepartments>> asyncCallback);\n\n\tvoid fetchResourceIds(int strategicId, AsyncCallback<ArrayList<Integer>> asyncCallback);\n\n\tvoid fetchJobSoftSkills(int strategicId, AsyncCallback<ArrayList<Integer>> asyncCallback);\n\n\tvoid fetchReportSearchResult(ArrayList<String> dept, ArrayList<String> domain, ArrayList<String> risk,\n\t\t\tArrayList<String> department, AsyncCallback<ArrayList<Strategic>> callback);\n\n\tvoid fetchReportWithResourcesSearchResult(ArrayList<String> dept, ArrayList<String> domain, ArrayList<String> risk,\n\t\t\tArrayList<String> resources, ArrayList<String> department, AsyncCallback<ArrayList<JobCreation>> callback);\n\n\tvoid fetchStrategicDepartmentsMultiple(ArrayList<Integer> ids,\n\t\t\tAsyncCallback<ArrayList<StrategicDepartments>> callback);\n\n\tvoid exportAuditPlanningReport(ArrayList<ExcelDataDTO> excelDataList, String btn, AsyncCallback<String> callback);\n\n\tvoid fetchReportAuditScheduling(ArrayList<String> dept, ArrayList<String> domain, ArrayList<String> jobStatus,\n\t\t\tArrayList<String> responsiblePerson, ArrayList<String> dep, AsyncCallback<ArrayList<Strategic>> callback);\n\n\tvoid approveFinalAuditable(Strategic strategic, AsyncCallback<String> callback);\n\n\tvoid declineFinalAuditable(Strategic strategic, AsyncCallback<String> asyncCallback);\n\n\tvoid saveUser(Employee employee, AsyncCallback<String> asyncCallback);\n\n\tvoid updateUser(int previousHours, Employee employee, AsyncCallback<String> asyncCallback);\n\n\tvoid getStartEndDates(AsyncCallback<ArrayList<Date>> asyncCallback);\n\n\tvoid fetchNumberOfDaysBetweenTwoDates(Date from, Date to, AsyncCallback<Integer> asyncCallback);\n\n\tvoid saveCompany(Company company, AsyncCallback<String> asyncCallback);\n\n\tvoid fetchCompanies(AsyncCallback<ArrayList<Company>> asyncCallback);\n\n\tvoid updateStrategic(Strategic strategic, AsyncCallback<String> asyncCallback);\n\n\tvoid deleteRisk(RiskControlMatrixEntity risk, AsyncCallback<String> asyncCallback);\n\n\tvoid deleteAuditWork(int auditWorkId, AsyncCallback<String> asyncCallback);\n\n\tvoid fetchCurrentYear(AsyncCallback<Integer> asyncCallback);\n\n\tvoid fetchEmployeesBySkillId(int jobId, AsyncCallback<ArrayList<Employee>> asyncCallback);\n\n\tvoid checkNoOfResourcesForSelectedSkill(int noOfResources, int skillId, AsyncCallback<String> asyncCallback);\n\n\tvoid deleteException(int exceptionId, AsyncCallback<String> asyncCallback);\n\n\tvoid approveScheduling(AsyncCallback<String> asyncCallback);\n\n\tvoid fetchSelectedEmployee(int employeeId, AsyncCallback<Employee> asyncCallback);\n\n\tvoid fetchExceptionReports(ArrayList<String> div, ArrayList<String> domain, ArrayList<String> risk,\n\t\t\tArrayList<String> resources, ArrayList<String> jobs, ArrayList<String> auditees,\n\t\t\tArrayList<String> exceptionStatus, ArrayList<String> department, AsyncCallback<ArrayList<Exceptions>> asyncCallback);\n\n\tvoid exportJobTimeAllocationReport(ArrayList<JobTimeAllocationReportDTO> excelDataList, String btn,\n\t\t\tAsyncCallback<String> callback);\n\n\tvoid exportAuditExceptionsReport(ArrayList<ExceptionsReportDTO> excelDataList, String btn,\n\t\t\tAsyncCallback<String> asyncCallback);\n\n\tvoid exportAuditSchedulingReport(ArrayList<AuditSchedulingReportDTO> excelDataList, String btn,\n\t\t\tAsyncCallback<String> asyncCallback);\n\n\tvoid isScheduleApproved(AsyncCallback<Boolean> asyncCallback);\n\n\tvoid fetchDashboard(HashMap<String, String> hm, AsyncCallback<DashBoardNewDTO> asyncCallback);\n\n\tvoid updateUploadedAuditStepFile(int auditStepId, AsyncCallback<String> asyncCallback);\n\n\tvoid saveSelectedAuditStepIdInSession(int auditStepId, AsyncCallback<String> asyncCallback);\n\n\tvoid submitFeedBack(Feedback feedBack, AsyncCallback<String> asyncCallback);\n\n\tvoid fetchProcessDTOs(AsyncCallback<ArrayList<ProcessDTO>> callback);\n\n\tvoid fetchSubProcess(int processId, AsyncCallback<ArrayList<SubProcess>> callback);\n\n\tvoid saveActivityObjectives(ArrayList<ActivityObjective> activityObjectives, int jobid, int status,\n\t\t\tAsyncCallback<String> callback);\n\n\tvoid saveRiskObjectives(ArrayList<RiskObjective> riskObjectives, int jobid, int status,\n\t\t\tAsyncCallback<String> callback);\n\n\tvoid saveExistingControls(ArrayList<SuggestedControls> suggestedControls, AsyncCallback<String> callback);\n\n\tvoid saveAuditWorkProgram(ArrayList<AuditProgramme> auditWorkProgramme, int selectedJobId,\n\t\t\tAsyncCallback<String> callback);\n\n\tvoid fetchApprovedAuditProgrammeRows(int selectedJobId, AsyncCallback<ArrayList<AuditProgramme>> asyncCallback);\n\n\tvoid deleteRiskObjective(int riskId, int jobId, AsyncCallback<String> asyncCallback);\n\n\tvoid fetchJobStatus(int jobId, AsyncCallback<JobStatusDTO> asyncCallback);\n\n\tvoid fetchDashBoardListBoxDTOs(AsyncCallback<ArrayList<DashboardListBoxDTO>> callback);\n\n\tvoid savetoDo(ToDo todo, AsyncCallback<String> callback);\n\n\tvoid saveinformationRequest(InformationRequestEntity informationrequest, String filepath,\n\t\t\tAsyncCallback<String> callback);\n\n\tvoid fetchEmailAttachments(AsyncCallback<ArrayList<String>> callback);\n\n\tvoid saveToDoLogs(ToDoLogsEntity toDoLogsEntity, AsyncCallback<String> callback);\n\n\tvoid saveInformationRequestLogs(InformationRequestLogEntity informationRequestLogEntity,\n\t\t\tAsyncCallback<String> callback);\n\n\tvoid fetchAuditStepExceptions(String id, AsyncCallback<ArrayList<String>> callback);\n\n\tvoid fetchAuditStepsProcerdure(String id, String mainFolder, AsyncCallback<ArrayList<String>> callback);\n\n\tvoid deleteAttachmentFile(String id, String mainFolder, String fileName, AsyncCallback<String> callback);\n\n\tvoid deleteUnsavedAttachemnts(String pathtodouploads, AsyncCallback<String> callback);\n\n\tvoid fetchAssignedFromToDos(AsyncCallback<ArrayList<ToDo>> callback);\n\n\tvoid fetchAssignedToToDos(AsyncCallback<ArrayList<ToDo>> callback);\n\n\tvoid fetchAssignedFromIRReLoad(AsyncCallback<ArrayList<InformationRequestEntity>> callback);\n\n\tvoid fetchJobExceptionWithImplicationRating(int jobId, int ImplicationRating,\n\t\t\tAsyncCallback<ArrayList<Exceptions>> callback);\n\n\tvoid fetchControlsForReport(int jobId, AsyncCallback<ArrayList<SuggestedControls>> callback);\n\n\tvoid fetchSelectedJob(int jobId, AsyncCallback<JobCreation> callback);\n\n\tvoid saveReportDataPopup(ArrayList<ReportDataEntity> listReportData12, AsyncCallback<String> callback);\n\n\tvoid fetchReportDataPopup(int jobId, AsyncCallback<ArrayList<ReportDataEntity>> callback);\n\n\tvoid saveAssesmentGrid(ArrayList<AssesmentGridEntity> listAssesment, int jobid, AsyncCallback<String> callback);\n\n\tvoid fetchAssesmentGrid(int jobId, AsyncCallback<ArrayList<AssesmentGridDbEntity>> callback);\n\n\tvoid deleteActivityObjective(int jobId, AsyncCallback<String> callback);\n\n\tvoid getNextYear(Date value, AsyncCallback<Date> asyncCallback);\n\n\tvoid readExcel(String subFolder, String mainFolder, AsyncCallback<ArrayList<SamplingExcelSheetEntity>> callback);\n\n\tvoid fetchAssignedToIRReLoad(AsyncCallback<ArrayList<InformationRequestEntity>> asyncCallback);\n\n\tvoid generateSamplingOutput(String populationSize, String samplingSize, String samplingMehod,\n\t\t\tArrayList<SamplingExcelSheetEntity> list, Integer auditStepId, AsyncCallback<ArrayList<SamplingExcelSheetEntity>> callback);\n\n\n\tvoid exportSamplingAuditStep(String samplingMehod, String reportFormat, ArrayList<SamplingExcelSheetEntity> list,\n\t\t\tInteger auditStepId, AsyncCallback<String> callback);\n\n\tvoid fetchDivision(AsyncCallback<ArrayList<Division>> asyncCallback);\n\n\tvoid fetchDivisionDepartments(int divisionID, AsyncCallback<ArrayList<Department>> asyncCallback);\n\n\tvoid fetchSavedSamplingReport(String folder, String auditStepId, AsyncCallback<String> callback);\n\n\tvoid fetchJobsAgainstSelectedDates(Date startDate, Date endDate, AsyncCallback<ArrayList<JobCreation>> callback);\n\n\tvoid fetchStrategicSubProcess(int id, AsyncCallback<StrategicSubProcess> asyncCallback);\n\n\tvoid fetchCompanyPackage(int companyId, AsyncCallback<String> asyncCallback);\n\n\tvoid fetchCompanyLogoPath(int companyID, AsyncCallback<String> asyncCallback);\n\n\tvoid updatePassword(Employee loggedInUser, AsyncCallback<String> asyncCallback);\n\n\tvoid validateRegisteredUserEmail(String emailID, AsyncCallback<Integer> asyncCallback);\n\n\tvoid sendPasswordResetEmail(String emailBody, String value, AsyncCallback<Boolean> asyncCallback);\n\n\tvoid resetPassword(Integer employeeID, String newPassword, AsyncCallback<String> asyncCallback);\n\n\tvoid upgradeSoftware(AsyncCallback<String> asyncCallback);\n\n\tvoid addDivision(String divisionName, AsyncCallback<String> asyncCallback);\n\n\tvoid addDepartment(int divisionID, String departmentName, AsyncCallback<String> asyncCallback);\n\n\tvoid editDivisionName(Division division, AsyncCallback<String> asyncCallback);\n\n\tvoid editDepartmentName(Department department, AsyncCallback<String> asyncCallback);\n\n\tvoid deleteDivision(int divisionID, AsyncCallback<String> asyncCallback);\n\n\tvoid deleteDepartment(int departmentID, AsyncCallback<String> asyncCallback);\n\n\tvoid uploadCompanyLogo(String fileName, int companyID, AsyncCallback<String> callback);\n\n\tvoid fetchDegreeImportance(int companyID, AsyncCallback<ArrayList<DegreeImportance>> asyncCallback);\n\n\tvoid saveDegreeImportance(ArrayList<DegreeImportance> arrayListDegreeImportance, AsyncCallback<ArrayList<DegreeImportance>> asyncCallback);\n\n\tvoid deleteDegreeImportance(int degreeID, AsyncCallback<ArrayList<DegreeImportance>> asyncCallback);\n\n\tvoid saveRiskFactor(ArrayList<RiskFactor> arrayListRiskFacrors, AsyncCallback<ArrayList<RiskFactor>> asyncCallback);\n\n\tvoid deleteRiskFactor(int riskID, AsyncCallback<ArrayList<RiskFactor>> asyncCallback);\n\n\tvoid removeStrategicDegreeImportance(int id, AsyncCallback<String> asyncCallback);\n\n\tvoid removeStrategicRiskFactor(int id, AsyncCallback<String> callback);\n\n\tvoid fetchStrategicDuplicate(Strategic strategic, AsyncCallback<ArrayList<Strategic>> asyncCallback);\n\n}", "public UserWSCallbackHandler(){\r\n this.clientData = null;\r\n }", "void onRecvObject(Object object);", "@Override\n public void run() {\n BeginTransactionMethodCall beginTransactionMethodCall = (BeginTransactionMethodCall) methodCall;\n long transactionTimeout = beginTransactionMethodCall.getTransactionTimeout();\n SpaceTransactionHolder spaceTransactionHolder = new SpaceTransactionHolder();\n spaceTransactionHolder.setSynchronizedWithTransaction( true );\n spaceTransactionHolder.setTimeoutInMillis( transactionTimeout );\n TransactionModificationContext mc = new TransactionModificationContext();\n mc.setProxyMode( true );\n spaceTransactionHolder.setModificationContext( mc );\n modificationContextFor( nodeRaised ).put( mc.getTransactionId(), spaceTransactionHolder );\n methodCall.setResponseBody( objectBuffer.writeObjectData( mc.getTransactionId() ) );\n }", "public interface AutoServiceRunningCallBack {\n void call();\n}", "public interface AsyncRpcCallback {\n\n void success(Object result);\n\n void fail(Exception e);\n\n}", "public interface ConnectionServiceAsync {\n void searchSynonyms(String input, AsyncCallback<List<String>> callback) throws IllegalArgumentException;;\n void callMaplabelsToSynonyms(AsyncCallback<Boolean> callback) throws IllegalArgumentException;;\n\n\n}", "@Override\n\t\tpublic void onServiceComplete(Boolean success, String jsonObj) {\n\n\t\t}", "public Object call() throws Exception {\n\t\t\t\t\tsynchronized (this) {\n\t\t\t\t\t\tif ( reference.asNativeRemoteFarReference().getTransmitting()){\n\t\t\t\t\t\t\t// if there is a thread transmitting a message for this reference:\n\t\t\t\t\t\t\t// resolve the future with a BlockingFuture to wait for the result of the transmission.\n\t\t\t\t\t\t\tBlockingFuture future = setRetractingFuture(reference);\n\t\t\t\t\t\t\treturn future.get();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// if there is no thread transmitting a message for this reference:\n\t\t\t\t\t\t\t// resolve the future immediately with the content of its oubox.\n\t\t\t\t\t\t\treturn reference.asNativeRemoteFarReference().impl_retractOutgoingLetters();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "public interface IOperationFinishWithDataCallback {\n\n void operationFinished(Object data);\n}", "@Override\n public void callSync() {\n\n }", "@Override\n\t\t\t\t\t\t public void run() {\n\t\t\t\t\t\t\t getResponse();\n\t\t\t\t\t\t }", "public RayTracerCallbackHandler(){\n this.clientData = null;\n }", "public interface AppServiceAsync {\r\n void addBookmark(Bookmark bookmark, AsyncCallback<Long> callback);\r\n\r\n void deleteBookmark(Long id, AsyncCallback<Void> callback);\r\n\r\n void getBookmarks(AsyncCallback<List<Bookmark>> callback);\r\n\r\n void isLogged(String location, AsyncCallback<String> callback);\r\n}", "public LoadBalanceCallbackHandler(Object clientData){\n this.clientData = clientData;\n }", "protected abstract void onFinishObject(T result);", "@Override\n\tpublic void invoke(final Request request, final AsyncCallback<Response> callback) {\n\t\tcallback.callback(CallbackBus.super.invoke(request));\n\t}", "public SendSmsServiceCallbackHandler(){\n this.clientData = null;\n }", "public interface APICallBack {\n public void run(JSONArray array);\n}", "void invoke(\n @NotNull T request,\n @NotNull AsyncProviderCallback<T> callback,\n @NotNull WebServiceContext context);", "public interface RequestCallBack {\n void succes(String json);\n void fail();\n}", "public interface CallBackData {\n\n public void getData(String data);\n\n}", "public interface AsyncDelegate {\n\n public void asyncComplete(boolean success);\n\n\n}", "public interface IRequestHeartBeatBiz {\n interface OnRequestListener{\n void success(List<UserInformationBean> userInformation);\n void failed();\n }\n void requestData(String uuid, OnRequestListener requestListener);\n}", "public interface ApplicationServletAsync {\r\n\r\n\tvoid sendRequest(Map<String, Serializable> requestParameters,\r\n\t\t\tMap<String, Serializable> responseParameters,\r\n\t\t\tAsyncCallback<Void> callback);\r\n}", "@Override\n public void onSuccess() {\n threadExchangeObject.value = true;\n }", "@Override\n\t\t\tpublic Integer call() throws Exception {\n\t\t\t\treturn null;\n\t\t\t}", "public Object call() throws Exception {\n\t\t\t\t\t\tProducerSimpleNettyResponseFuture future;\n\t\t\t\t\t\tProducerSimpleNettyResponse responseFuture;\n\t\t\t\t\t\tfuture = clientProxy.request(message);\n\t\t\t\t\t\tresponseFuture = future\n\t\t\t\t\t\t\t\t.get(3000, TimeUnit.MILLISECONDS);\n\t\t\t\t\t\treturn responseFuture.getResponse();\n\t\t\t\t\t}", "public interface API_CallBack {\n\n void ArrayData(ArrayList arrayList);\n\n void OnSuccess(String responce);\n\n void OnFail(String responce);\n\n\n}", "private CallResponse() {\n initFields();\n }", "public interface CallBacksss {\n public void Call();\n}", "@Override\n\t\tprotected Void doInBackground(Void... params) {\n\t\t\t getCallDetails();\n\t\t\treturn null;\n\t\t}", "public interface AcnServiceAsync {\r\n\t\r\n\tvoid ordernarSequencia(Integer num1, Integer num2, AsyncCallback<Integer[]> callback) throws Exception;\r\n\t\r\n\tvoid recuperarListaPessoa(int quantidade, AsyncCallback<Map<String, List<Pessoa>>> callback);\r\n\t\r\n}", "protected void doInvocation(){\n org.omg.CORBA.portable.Delegate delegate=StubAdapter.getDelegate(\n _target);\n // Initiate Client Portable Interceptors. Inform the PIHandler that\n // this is a DII request so that it knows to ignore the second\n // inevitable call to initiateClientPIRequest in createRequest.\n // Also, save the RequestImpl object for later use.\n _orb.getPIHandler().initiateClientPIRequest(true);\n _orb.getPIHandler().setClientPIInfo(this);\n InputStream $in=null;\n try{\n OutputStream $out=delegate.request(null,_opName,!_isOneWay);\n // Marshal args\n try{\n for(int i=0;i<_arguments.count();i++){\n NamedValue nv=_arguments.item(i);\n switch(nv.flags()){\n case ARG_IN.value:\n nv.value().write_value($out);\n break;\n case ARG_OUT.value:\n break;\n case ARG_INOUT.value:\n nv.value().write_value($out);\n break;\n }\n }\n }catch(Bounds ex){\n throw _wrapper.boundsErrorInDiiRequest(ex);\n }\n $in=delegate.invoke(null,$out);\n }catch(ApplicationException e){\n // REVISIT - minor code.\n // This is already handled in subcontract.\n // REVISIT - uncomment.\n //throw new INTERNAL();\n }catch(RemarshalException e){\n doInvocation();\n }catch(SystemException ex){\n _env.exception(ex);\n // NOTE: The exception should not be thrown.\n // However, JDK 1.4 and earlier threw the exception,\n // so we keep the behavior to be compatible.\n throw ex;\n }finally{\n delegate.releaseReply(null,$in);\n }\n }", "public interface TaskCallBack {\n\n void notifyTaskTheResultOfcallService(TaskEntity entity);\n}", "public interface AsyncResponse\n{\n void onAsyncJsonFetcherComplete(int mode, JSONArray json, boolean jsonException);\n}", "public Object consumeBloqueante();", "public interface RequestCallBack {\r\n void successCallback(String string);\r\n void failedCallback(String string);\r\n}", "public interface ServiceCallBack extends AppBaseServiceCallBack {\n void onSuccessLogout(JSONObject mJsonObject);\n}", "public interface ComCallBack {\n public void onCallBack(Object obj);\n}", "@Override\n\tpublic void callback() {\n\t}", "public interface CallBackInterface {\n}", "public abstract void onWait();", "public interface TreeServiceAsync {\r\n\tvoid getChild(String book, String id, ContextTreeItem input,\r\n\t\t\tAsyncCallback<List<ContextTreeItem>> callback)\r\n\t\t\tthrows IllegalArgumentException;\r\n\r\n\tvoid getText(String book, String id, ContextTreeItem item,\r\n\t\t\tAsyncCallback<String> asyncCallback)\r\n\t\t\tthrows IllegalArgumentException;\r\n\r\n}", "public interface Async {\n public void afterExec(JSONObject jsonObject);\n}", "public void deliver() {\n try {\n if (null != this.listener) {\n ContentObject pending = null;\n CCNInterestListener listener = null;\n synchronized (this) {\n if (null != this.data && null != this.listener) {\n pending = this.data;\n this.data = null;\n listener = (CCNInterestListener) this.listener;\n }\n }\n if (null != pending) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Interest callback (\" + pending + \" data) for: {0}\", this.interest.name());\n synchronized (this) {\n this.deliveryPending = false;\n }\n manager.unregisterInterest(this);\n Interest updatedInterest = listener.handleContent(pending, interest);\n if (null != updatedInterest) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Interest callback: updated interest to express: {0}\", updatedInterest.name());\n manager.expressInterest(this.owner, updatedInterest, listener);\n }\n } else {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Interest callback skipped (no data) for: {0}\", this.interest.name());\n }\n } else {\n synchronized (this) {\n if (null != this.sema) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Data consumes pending get: {0}\", this.interest.name());\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINEST)) Log.finest(Log.FAC_NETMANAGER, \"releasing {0}\", this.sema);\n this.sema.release();\n }\n }\n if (null == this.sema) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Interest callback skipped (not valid) for: {0}\", this.interest.name());\n }\n }\n } catch (Exception ex) {\n _stats.increment(StatsEnum.DeliverContentFailed);\n Log.warning(Log.FAC_NETMANAGER, \"failed to deliver data: {0}\", ex);\n Log.warningStackTrace(ex);\n }\n }", "public void callback() {\n showProgress(false);\n this.completed = true;\n if (!isActive()) {\n skip(this.url, this.result, this.status);\n } else if (this.callback != null) {\n Class[] clsArr = {String.class, this.type, AjaxStatus.class};\n AQUtility.invokeHandler(getHandler(), this.callback, true, true, clsArr, DEFAULT_SIG, this.url, this.result, this.status);\n } else {\n try {\n callback(this.url, this.result, this.status);\n } catch (Exception e) {\n AQUtility.report(e);\n }\n }\n filePut();\n if (!this.blocked) {\n this.status.close();\n }\n wake();\n AQUtility.debugNotify();\n }", "@Override\n\tpublic void replyOperationCompleted() { ; }", "public interface Callback {\n\n /**\n * A callback method the user should implement. This method will be called when the send to the server has\n * completed.\n * @param send The results of the call. This send is guaranteed to be completed so none of its methods will block.\n */\n public void onCompletion(RecordSend send);\n}", "public interface CallBackListadoPlantilla extends CallBackBase {\n void OnSuccess(ArrayList<SearchBoxItem> listadoPlantilla);\n}", "public interface WebServiceListener {\n\n /**\n * Callback method indicating start event of the service. Call it from your service class in order to give begin callback to the presenter layer.\n * @param taskCode : Web service task code against which service has began. This is used for web service type identification.\n */\n void onServiceBegin(int taskCode);\n\n /**\n * Callback method on service success. Call it from your service class in order to give success callback to the presenter layer.\n * @param masterResponse : Response model from the server API\n * @param taskCode : Web service task code against which response is taken. This is used for web service type identification.\n */\n\n void onServiceSuccess(MasterResponse masterResponse, int taskCode);\n\n /**\n * Callback method on service error. Call it from your service class in order to give error callback to the presenter layer.\n * @param message : Error message.\n * @param taskCode : Web service task code against which error is taken. This is used for web service type identification.\n * @param errorType : Error type.\n */\n void onServiceError(String message, int taskCode, int errorType);\n void onValidationError(ValidationError[] validationError, int taskCode);\n\n}", "void onResponseTaskCompleted(Request request, Response response, OHException ohex, Object data);", "public interface AsyncResponse {\n void processFinish(HttpJson output);\n}", "public void callback() {\n }", "void consumeWorkUnit();", "public interface CallBackListener\n{\n public void drawbackTexto0(String response);\n}", "public void tellJoke(){\n new EndpointAsyncTask().execute(this);\n }", "public OrderServiceImplServiceCallbackHandler(Object clientData){\n this.clientData = clientData;\n }", "public interface AsyncResponse {\n void processFinish(double calories, double date);\n}", "public interface GetRecoveryCallback {\n\n public abstract void done(RecoveryEx returnedRecovery);\n\n}", "@Override\n public void call(InterestResponse interestResponse) {\n if (interestResponse != null && interestResponse.details != null) {\n updateInterestsList(interestResponse.details);\n }\n\n mainHandler.post(new Runnable() {\n @Override\n public void run() {\n bus.post(new InterestUpdateEvent());\n\n\n// UIHelper.getInstance().dismissProgressDialog();\n }\n });\n\n }", "Request getGeneralData(AsyncCallback<GeneralData> callback);", "@Override\r\n \tpublic Object invoke(Object arg0, Method arg1, Object[] arg2)\r\n \t\t\tthrows Throwable {\n \t\tString urlfortheobject = baseUrl+methodToID(arg1);\r\n \t\t\r\n \t\t// Get the IRemoteRestCall object for this method...\r\n\t\tClientResource cr = new ClientResource(urlfortheobject);\r\n \t\tIRemoteRestCall resource = cr.wrap(IRemoteRestCall.class, arg1.getReturnType());\r\n \t\t\r\n \t\t// Call\r\n \t\tObject returnObject = resource.doCall(arg2);\r\n\t\tcr.release();\r\n \t\t\r\n \t\t// return\r\n \t\treturn returnObject;\r\n \t}", "@SuppressWarnings(\"WeakerAccess\")\n protected void makeRequest() {\n if (mCallback == null) {\n CoreLogger.logError(addLoaderInfo(\"mCallback == null\"));\n return;\n }\n\n synchronized (mWaitLock) {\n mWaitForResponse.set(true);\n }\n\n doProgressSafe(true);\n\n Utils.runInBackground(true, new Runnable() {\n @Override\n public void run() {\n try {\n CoreLogger.log(addLoaderInfo(\"makeRequest\"));\n makeRequest(mCallback);\n }\n catch (Exception exception) {\n CoreLogger.log(addLoaderInfo(\"makeRequest failed\"), exception);\n callbackHelper(false, wrapException(exception));\n }\n }\n });\n }", "protected AlarmRequestWithResponse(AlarmResponseListener<E> callBack ){\n\t\tthis.callBack = callBack;\n\t}" ]
[ "0.64293367", "0.6402706", "0.61141264", "0.60991734", "0.5992274", "0.5961651", "0.5958644", "0.59452814", "0.5887623", "0.5850609", "0.5829126", "0.57515115", "0.5735806", "0.57271636", "0.5722943", "0.5720711", "0.5714392", "0.5691786", "0.5663979", "0.56305665", "0.56305665", "0.5614696", "0.5609252", "0.5594761", "0.5577761", "0.55571187", "0.55451894", "0.55411273", "0.55297256", "0.5523333", "0.5523333", "0.5518057", "0.54813236", "0.5463682", "0.5461572", "0.5452832", "0.5452822", "0.5448358", "0.5435171", "0.54265255", "0.54157686", "0.5415625", "0.5407845", "0.5406054", "0.54010886", "0.539411", "0.5391711", "0.5389813", "0.537669", "0.5369589", "0.5368098", "0.5367865", "0.5350491", "0.5344064", "0.53421426", "0.53400755", "0.532098", "0.5318924", "0.5315129", "0.5314104", "0.5309003", "0.5307006", "0.5293708", "0.5292707", "0.5287785", "0.52854", "0.52851135", "0.52762926", "0.52744967", "0.5274397", "0.5274042", "0.52673537", "0.52666056", "0.52648133", "0.5261497", "0.52608865", "0.5259957", "0.525986", "0.52567303", "0.52563417", "0.5242646", "0.5233994", "0.52325004", "0.5228282", "0.52267003", "0.5225821", "0.52244425", "0.5220171", "0.5219965", "0.5219754", "0.52149135", "0.5213889", "0.5208292", "0.52045274", "0.5200641", "0.51978326", "0.5195449", "0.51937574", "0.5193564", "0.5190454" ]
0.55700076
25
Please use this constructor if you don't want to set any clientData
public ApplicationManagementServiceCallbackHandler(){ this.clientData = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Cliente() {\n\t\tsuper();\n\t}", "public ClientInformation(){\n clientList = new ArrayList<>();\n\n }", "public Client() {\r\n\t// TODO Auto-generated constructor stub\r\n\t \r\n }", "public Client() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "private CorrelationClient() { }", "public ServiceClient() {\n\t\tsuper();\n\t}", "public ClientDetailsEntity() {\n\t\t\n\t}", "public Cliente() {\n }", "public Client() {\n }", "public ClientData() {\n\n this.name = \"\";\n this.key = \"\";\n this.serverIpString = \"\";\n this.serverPort = 0;\n this.clientListenPort = 0;\n this.clientsSocketPort = 0;\n this.clientsLocalHostName = \"\";\n this.clientsLocalhostAddressStr = \"\";\n\n this.socket = new Socket();\n\n try {\n this.socket.bind(null);\n } catch (IOException ex) {\n ClientInterface.getjTextArea1().append(\"Error. Unable to load data and create client.\");\n }\n \n try {\n this.clientsLocalHostName = InetAddress.getLocalHost().getHostName();\n this.clientsLocalhostAddressStr = InetAddress.getLocalHost().getHostAddress();\n } catch (UnknownHostException ex) {\n ClientInterface.getjTextArea1().append(\"Error. Unable to load data and create client.\");\n }\n this.clientsSocketPort = socket.getLocalPort();\n\n parseClientConfigFile();\n\n //Initialize ServerSocket and bind to specific port.\n try {\n serverS = new ServerSocket(clientListenPort);\n } catch (IOException ex) {\n ClientInterface.getjTextArea1().append(\"Error. Unable to load data and create client.\");\n }\n }", "public Client() {}", "public EO_ClientsImpl() {\n }", "public Client(Client client) {\n\n }", "public QuestionsListRowClient() {\r\n }", "Cliente(){}", "public WebserviceCallbackHandler(Object clientData){\n this.clientData = clientData;\n }", "public Client() {\n _host_name = DEFAULT_SERVER;\n _port = PushCacheFilter.DEFAULT_PORT_NUM;\n }", "protected ClientStatus() {\n }", "public HGDClient() {\n \n \t}", "private ClientLoader() {\r\n }", "public Ctacliente() {\n\t}", "public InscriptionClient() {\n initComponents();\n }", "public GameClient() {\r\n super(new Client(Config.WRITE_BUFFER_SIZE, Config.OBJECT_BUFFER_SIZE), null, null);\r\n }", "public ClienteBean() {\n }", "public MySQLServiceEquipmentCallbackHandler(Object clientData) {\n this.clientData = clientData;\n }", "public LoadBalanceCallbackHandler(Object clientData){\n this.clientData = clientData;\n }", "public ClientView() {\n initComponents();\n }", "public DataInputClientProperties() throws IOException {\n this(null);\n }", "public ClientConfiguration() {\n serverIp = DEFAULT_SERVER_IP;\n serverPort = DEFAULT_SERVER_PORT;\n }", "public CreChqTrnValVerUVOClient() {\n }", "public frmClient() {\n initComponents();\n clientside=new Client(this);\n \n }", "public ClienteServicio() {\n }", "public TurnoVOClient() {\r\n }", "public LpsClient() {\n super();\n }", "public AbaloneClient() {\n server = new AbaloneServer();\n clientTUI = new AbaloneClientTUI();\n }", "private NotificationClient() { }", "public ClipsManager()\n {\n setClientAuth( m_clientId, m_clientSecret );\n setAuthToken( m_authToken );\n }", "public Client() {\n initComponents();\n setIcon();\n }", "public Cliente(){\r\n this.nome = \"\";\r\n this.email = \"\";\r\n this.endereco = \"\";\r\n this.id = -1;\r\n }", "protected RestClient() {\n }", "public ProductsVOClient() {\r\n }", "public SubscriberClientJson (SubscriberData subscriberData) {\n\t\tsuper(subscriberData.getSubscriberEndpoint(),\n\t\t\t\tsubscriberData.getMessageMap(),\n\t\t\t\tsubscriberData.getMessageIds()\n\t\t\t\t);\n\t}", "public ClientCredentials() {\n }", "public PartnerAPICallbackHandler(Object clientData){\n this.clientData = clientData;\n }", "private ClientController() {\n }", "public WebserviceCallbackHandler(){\n this.clientData = null;\n }", "public SampleModelDoctorImpl(Object client)\n {\n clientDoctor = (SampleClientDoctor) client;\n }", "public Object getClientData() {\n return clientData;\n }", "public Object getClientData() {\n return clientData;\n }", "public Object getClientData() {\n return clientData;\n }", "public Object getClientData() {\n return clientData;\n }", "public Object getClientData() {\n return clientData;\n }", "public Object getClientData() {\n return clientData;\n }", "public Object getClientData() {\n return clientData;\n }", "private Client buildClient() {\n\t\tClient client = new Client();\n\t\tclient.setName(clientNameTextBox.getValue());\n\t\tclient.setAddress(clientAddressTextBox.getValue());\n\t\tclient.setTelephone(clientTelephoneTextBox.getValue());\n\t\treturn client;\n\t}", "public MdrCreater()\n {\n super();\n client = new RawCdrAccess();\n }", "public PartnerAPICallbackHandler(){\n this.clientData = null;\n }", "public ClientInformationTest()\n {\n }", "public Client(int id, String name) {\n\t\tsuper(id, name);\n\t\tthis.jobs = new ArrayList<Job>();\n\t}", "private static Client createDummyClient() {\n\n PhoneNumber num1 = new PhoneNumber(\"Arnold Schubert\",\"0151234567\", \"Ehemann\");\n PhoneNumber num2 = new PhoneNumber(\"Helene Schubert\",\"0171234567\", \"Tochter\");\n ArrayList<PhoneNumber> phoneNumbers1 = new ArrayList<>();\n phoneNumbers1.add(num1);\n phoneNumbers1.add(num2);\n DummyVitalValues vital1 = new DummyVitalValues();\n\n ArrayList<Integer> pictograms1 = new ArrayList<>();\n\n DummyClientMedicine medicine1 = new DummyClientMedicine(DummyMedicine.ITEMS_PRESCRIBED_Erna, DummyMedicine.ITEMS_TEMPORARY, DummyMedicine.ITEMS_SELF_ORDERED);\n\n Client c = new Client(0,R.drawable.erna, \"Erna\",\"Schubert\",\"17.08.1943\",medicine1,DummyNotes.ITEMS_Erna, DummyFixedNotes.ITEMS_Erna, DummyToDos.ITEMS_Erna, vital1.vitalValues, \"Diabetes mellitus, Adipositas, Schilddrüsenunterfuntion\",1,\"Blankenfelder Str. 82, 13127 Berlin\",phoneNumbers1, pictograms1);\n\n return c;\n }", "protected AuctionServer()\n\t{\n\t}", "private MatterAgentClient() {}", "public Clientes() {\n initComponents();\n }", "public CadastroClientes() {\n initComponents();\n }", "public Factory() {\n this(getInternalClient());\n }", "public EchoCallbackHandler(Object clientData) {\n this.clientData = clientData;\n }", "public Object getClientData() {\r\n return clientData;\r\n }", "public Object getClientData() {\r\n return clientData;\r\n }", "public Object getClientData() {\r\n return clientData;\r\n }", "public client_settings_Fragment()\n {\n }", "public TestServiceClient(final ApiClient apiClient) {\n super(apiClient);\n }", "public Object getClientData() {\n return clientData;\n }", "public Object getClientData() {\n return clientData;\n }", "public Object getClientData() {\n return clientData;\n }", "public Object getClientData() {\n return clientData;\n }", "public BrowseOffenceAMClient() {\r\n }", "public Client(ClientConfiguration conf) {\n clientMessages = new Stack<>();\n serverMessages = new Stack<>();\n this.conf = conf;\n encryptionSessionHashMap = new HashMap<>();\n savedMessage = new HashMap<>();\n }", "public ApplicationManagementServiceCallbackHandler(Object clientData){\n this.clientData = clientData;\n }", "public ClientController() {\n }", "private APIClient() {\n }", "@Override\n\tpublic void createClient() {\n\t\t\n\t}", "@Override\n protected byte[] getClientData() {\n return (clientData + \" individual\").getBytes(StandardCharsets.UTF_8);\n }", "protected void setClient(Client _client) {\n\t\tclient = _client;\n\t}", "private void setClient(ClientImpl model) {\n if (client == null) {\n this.client = model;\n }\n }", "public DefaultHttpRequestBuilder (final DefaultHttpClient client) {\r\n\t\tif (client == null) {\r\n\t\t\tthrow new NullPointerException (\"client cannot be null\");\r\n\t\t}\r\n\t\t\r\n\t\tthis.client = client;\r\n\t}", "public MantClientesView() {\n initComponents();\n }", "private MyClientEndpoint(){\n // private to prevent anyone else from instantiating\n }", "public GerenciarCliente() {\n initComponents();\n }", "public LoadBalanceCallbackHandler(){\n this.clientData = null;\n }", "public UrbrWSServiceCallbackHandler(Object clientData){\r\n this.clientData = clientData;\r\n }", "@Override\n\tpublic void setClient(Client client) {\n\t\tlog.warn(\"setClient is not implemented\");\n\t}", "public JSipClient() {\n\t\tinitComponents();\n\t}", "public ClientEntity(final Entity e) {\r\n\t\tsuper(e);\r\n\t}", "public ClientServiceImpl() {\r\n\t}", "public TelaPesquisarClientes() {\n initComponents();\n }", "public Clientes() {\n\t\tclientes = new Cliente[MAX_CLIENTES];\n\t}", "public Client(String nom, String prenom, String adresse,CalculerTarif calculerTarif) {\n // Initialisation des données du client.\n this.nom = nom;\n this.prenom = prenom;\n this.adresse = adresse;\n this.calculerTarif = calculerTarif;\n this.listeVehicule = new ArrayList<Vehicule>();\n \n // On ajoute le client à la liste des clients du parking, car le client est forcément un client du parking.\n Parking.getInstance().addClient(this);\n }", "public GameServerClient(){\r\n\t\tinitComponents();\r\n\t\t}", "public ClientFrame() {\n\t\tinitComponents();\n\t}", "public OrderServiceImplServiceCallbackHandler(Object clientData){\n this.clientData = clientData;\n }", "public Cliente(String nome) {\n super(nome);\n }" ]
[ "0.72735673", "0.7223414", "0.7121049", "0.7111579", "0.69877034", "0.6964163", "0.6948256", "0.6853564", "0.6813052", "0.6755133", "0.6686205", "0.66802096", "0.66605365", "0.6640358", "0.66086304", "0.6602788", "0.660179", "0.65879667", "0.6579539", "0.6572639", "0.6559567", "0.6548179", "0.6533451", "0.6515335", "0.6506029", "0.6504094", "0.6501462", "0.6492965", "0.64881134", "0.6482343", "0.6458684", "0.6454392", "0.64449674", "0.64283067", "0.64199233", "0.6419009", "0.64172274", "0.6409924", "0.63829833", "0.6381593", "0.6377049", "0.6374191", "0.63668895", "0.63636553", "0.63555163", "0.6342899", "0.6339182", "0.63317853", "0.63317853", "0.63317853", "0.63317853", "0.63317853", "0.63317853", "0.63317853", "0.63306826", "0.6324174", "0.627663", "0.6274592", "0.62656695", "0.6264806", "0.6263581", "0.62624", "0.6239958", "0.6222735", "0.62194943", "0.6215007", "0.62033343", "0.62033343", "0.62033343", "0.6187971", "0.617882", "0.6161424", "0.6161424", "0.6161424", "0.6161424", "0.6161316", "0.61556333", "0.61554366", "0.61530715", "0.6152231", "0.6142316", "0.61422896", "0.614181", "0.6140824", "0.6140655", "0.6121976", "0.61161184", "0.6107445", "0.61067474", "0.6105005", "0.61047363", "0.6104089", "0.6096133", "0.6090932", "0.6087918", "0.60868293", "0.6085878", "0.6074744", "0.6043399", "0.6042654", "0.6023852" ]
0.0
-1
Get the client data
public Object getClientData() { return clientData; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getClientData() {\r\n return clientData;\r\n }", "public Object getClientData() {\r\n return clientData;\r\n }", "public Object getClientData() {\r\n return clientData;\r\n }", "public Object getClientData() {\n return clientData;\n }", "public Object getClientData() {\n return clientData;\n }", "public Object getClientData() {\n return clientData;\n }", "public Object getClientData() {\n return clientData;\n }", "public Object getClientData() {\r\n\t\treturn clientData;\r\n\t}", "public Object getClientData() {\n\t\treturn clientData;\n\t}", "@Override\n protected byte[] getClientData() {\n return (clientData + \" individual\").getBytes(StandardCharsets.UTF_8);\n }", "public static Dataclient GetData(){\n return RetrofitClient.getClient(Base_Url).create(Dataclient.class);\n }", "void getDataFromServer();", "public ObservableList<Cliente> getClienteData() {\r\n return clienteData;\r\n }", "Object getData() { /* package access */\n\t\treturn data;\n\t}", "public String getData(){\r\n\t\t// Creating register message\r\n\t\tmessageToServer = GET_DATA_KEYWORD \r\n\t\t\t\t+ SEPARATOR + controller.getModel().getAuthUser().getToken();\r\n\r\n\t\t// Sending message\t\t\t\t\r\n\t\tpw.println(messageToServer);\r\n\t\tpw.flush();\r\n\t\tSystem.out.println(\"Message sent to server: \" + messageToServer);\r\n\r\n\t\t// Reading the answer from server, processing the answer\r\n\t\tString data = null;\r\n\t\ttry {\r\n\r\n\t\t\tdata = br.readLine();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, e.toString(), \"Error\",\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t}\r\n\r\n\t\treturn data;\r\n\t}", "String readData() {\n if (getLog().isDebugEnabled()) {\n getLog().debug(\"Waiting for synapse unit test agent response\");\n }\n\n if (clientSocket != null) {\n try (InputStream inputStream = clientSocket.getInputStream();\n ObjectInputStream objectInputStream = new ObjectInputStream(inputStream)) {\n\n return (String) objectInputStream.readObject();\n } catch (Exception e) {\n getLog().error(\"Error in getting response from the synapse unit test agent\", e);\n }\n }\n\n return null;\n }", "public Object getData()\r\n\t\t{\r\n\t\t\treturn data;\r\n\t\t}", "public String getData()\n {\n return data;\n }", "public Object getData(){\n\t\treturn this.data;\n\t}", "public ClientInfo getClientInfo() {\n // Lazy initialization with double-check.\n ClientInfo c = this.clientInfo;\n if (c == null) {\n synchronized (this) {\n c = this.clientInfo;\n if (c == null) {\n this.clientInfo = c = new ClientInfo();\n }\n }\n }\n return c;\n }", "public BaseData[] getData()\n {\n return Cdata;\n }", "public ClientData() {\n\n this.name = \"\";\n this.key = \"\";\n this.serverIpString = \"\";\n this.serverPort = 0;\n this.clientListenPort = 0;\n this.clientsSocketPort = 0;\n this.clientsLocalHostName = \"\";\n this.clientsLocalhostAddressStr = \"\";\n\n this.socket = new Socket();\n\n try {\n this.socket.bind(null);\n } catch (IOException ex) {\n ClientInterface.getjTextArea1().append(\"Error. Unable to load data and create client.\");\n }\n \n try {\n this.clientsLocalHostName = InetAddress.getLocalHost().getHostName();\n this.clientsLocalhostAddressStr = InetAddress.getLocalHost().getHostAddress();\n } catch (UnknownHostException ex) {\n ClientInterface.getjTextArea1().append(\"Error. Unable to load data and create client.\");\n }\n this.clientsSocketPort = socket.getLocalPort();\n\n parseClientConfigFile();\n\n //Initialize ServerSocket and bind to specific port.\n try {\n serverS = new ServerSocket(clientListenPort);\n } catch (IOException ex) {\n ClientInterface.getjTextArea1().append(\"Error. Unable to load data and create client.\");\n }\n }", "public Object getData() {\r\n\t\t\treturn data;\r\n\t\t}", "public String getData()\n\t{\n\t\treturn data;\n\t}", "public String getData() {\n\treturn data;\n }", "public String getData() {\n return data;\n }", "public String getData() {\n return data;\n }", "public String getData() {\n return data;\n }", "public String getData() {\n return data;\n }", "public Object getData() {\n\t\treturn data;\n\t}", "private SOSCommunicationHandler getClient() {\r\n\t\treturn client;\r\n\t}", "Client getClient();", "@Override\n\tpublic HashMap<String, String> getData() {\n\t\treturn dataSourceApi.getData();\n\t}", "public synchronized Object getData() {\n return data;\n }", "public String getData() {\r\n\t\treturn data;\r\n\t}", "protected ScServletData getData()\n {\n return ScServletData.getLocal();\n }", "public String getData() {\r\n return this.data;\r\n }", "@RequestMapping(value = \"/clientData/{module}\", method = RequestMethod.GET)\n public @ResponseBody String getModuleClientData(@PathVariable String module, HttpServletResponse response) {\n return creatorService.getClientData(module);\n }", "double clientData(final int index, final int data);", "public java.lang.String getData() {\r\n return data;\r\n }", "public String getData() {\n\t\treturn data;\n\t}", "public String getData() {\n\t\treturn data;\n\t}", "public String getData() {\n\t\treturn data;\n\t}", "public String getData() {\n\t\treturn data;\n\t}", "@Override\n\tpublic void readClient(Client clt) {\n\t\t\n\t}", "@java.lang.Override\n public com.clarifai.grpc.api.Data getData() {\n return data_ == null ? com.clarifai.grpc.api.Data.getDefaultInstance() : data_;\n }", "public String getData() {\r\n\t\t\treturn data;\r\n\t\t}", "Object getData();", "Object getData();", "@Override\n public io.emqx.exhook.ClientInfo getClientinfo() {\n return clientinfo_ == null ? io.emqx.exhook.ClientInfo.getDefaultInstance() : clientinfo_;\n }", "String getData();", "public Object getData() \n {\n return data;\n }", "private Client readClient() {\n System.out.println(\"Read client {id,name,age,membership}\");\n\n BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in));\n try {\n Long id = Long.valueOf(bufferRead.readLine());// ...\n String name = bufferRead.readLine();\n int age = Integer.parseInt(bufferRead.readLine());\n String membership = bufferRead.readLine();\n\n Client client = new Client(name, age, membership);\n client.setId(id);\n\n return client;\n\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n return null;\n }", "public abstract Client getClient();", "public Data getData() {\n return data;\n }", "public Data getData() {\n return data;\n }", "public Object getData();", "public String getData() {\r\n return Data;\r\n }", "public String getData() {\r\n return Data;\r\n }", "public Object data() {\n return this.data;\n }", "public static DucktalesClient getClient() {\n \treturn client;\n }", "public io.emqx.exhook.ClientInfo getClientinfo() {\n if (clientinfoBuilder_ == null) {\n return clientinfo_ == null ? io.emqx.exhook.ClientInfo.getDefaultInstance() : clientinfo_;\n } else {\n return clientinfoBuilder_.getMessage();\n }\n }", "T getData() {\n\t\treturn data;\n\t}", "@java.lang.Override\n public godot.wire.Wire.Value getData() {\n return data_ == null ? godot.wire.Wire.Value.getDefaultInstance() : data_;\n }", "public void retrieveData(){\n\t\tloaderImage.loadingStart();\n\t\tJsonClient js = new JsonClient();\n\t\tjs.retrieveData(JSON_URL, this);\n\t}", "public String getData() {\n\t\treturn this.data;\n\t}", "public Client getClient() {\r\n\t\treturn this.client;\r\n\t}", "private JsonObject getServerData() {\n // Minecraft specific data\n int playerAmount = Server.getInstance().getOnlinePlayers().size();\n int onlineMode = Server.getInstance().getPropertyBoolean(\"xbox-auth\", true) ? 1 : 0;\n String softwareVersion = Server.getInstance().getApiVersion() + \" (MC: \" + Server.getInstance().getVersion().substring(1) + \")\";\n String softwareName = Server.getInstance().getName();\n \n // OS/Java specific data\n String javaVersion = System.getProperty(\"java.version\");\n String osName = System.getProperty(\"os.name\");\n String osArch = System.getProperty(\"os.arch\");\n String osVersion = System.getProperty(\"os.version\");\n int coreCount = Runtime.getRuntime().availableProcessors();\n \n JsonObject data = new JsonObject();\n \n data.addProperty(\"serverUUID\", serverUUID);\n \n data.addProperty(\"playerAmount\", playerAmount);\n data.addProperty(\"onlineMode\", onlineMode);\n data.addProperty(\"bukkitVersion\", softwareVersion);\n data.addProperty(\"bukkitName\", softwareName);\n \n data.addProperty(\"javaVersion\", javaVersion);\n data.addProperty(\"osName\", osName);\n data.addProperty(\"osArch\", osArch);\n data.addProperty(\"osVersion\", osVersion);\n data.addProperty(\"coreCount\", coreCount);\n \n return data;\n }", "public java.util.List getData() {\r\n return data;\r\n }", "public ArrayList<ClientHandler> getClientList()\n {\n return clientList;\n }", "public JSONRPC2Session getClient()\n {\n return client;\n }", "public HashMap<Long, String> getData() {\n\t\treturn data;\n\t}", "java.lang.String getData();", "public ClientList getClients() {\r\n return this.clients;\r\n }", "public List<Data> getData() {\n return data;\n }", "public ArrayList<Client> getClientList() {\n return this.clientList;\n }", "public Client getClient() {\n return client;\n }", "public Client getClient() {\n return client;\n }", "Collection getData();", "@Override\n public Object getData() {\n return devices;\n }", "private String readFromClient() throws IOException {\n final String request = inFromClient.readLine();\n return request;\n }", "@Override\n public io.emqx.exhook.ClientInfoOrBuilder getClientinfoOrBuilder() {\n return getClientinfo();\n }", "public Client getClient() {\n\t\treturn client;\n\t}", "public Client getClient() {\n\t\treturn client;\n\t}", "public Message getResponseData();", "public String GET(String name){\n return \"OK \" + this.clientData.get(name);\n }", "public T getData() {\r\n return data;\r\n }", "public ClientI getClient() {\n\t\treturn client;\n\t}", "public String data() {\n return this.data;\n }", "public T getData()\n\t{\n\t\treturn this.data;\n\t}", "public IData getData() {\n return data;\n }", "Object getRawData();", "byte[] getData() {\n return data;\n }", "public List<String> getData() {\r\n\t\treturn data;\r\n\t}" ]
[ "0.8409291", "0.8409291", "0.8409291", "0.8323055", "0.8323055", "0.8323055", "0.8323055", "0.82401776", "0.81847", "0.74992526", "0.69628304", "0.680502", "0.6677934", "0.6615067", "0.6538602", "0.6524495", "0.64575994", "0.6441616", "0.64179564", "0.63876045", "0.6369232", "0.6360863", "0.6359634", "0.6358457", "0.6356433", "0.6345929", "0.6345929", "0.6345929", "0.6345929", "0.6335512", "0.6335219", "0.6316682", "0.6314866", "0.63038594", "0.6299806", "0.6298956", "0.6297912", "0.6293939", "0.6276389", "0.6272706", "0.6266621", "0.6266621", "0.6266621", "0.6266621", "0.62665963", "0.6261964", "0.6250891", "0.62470305", "0.62470305", "0.6240372", "0.62357736", "0.6225704", "0.62202704", "0.621008", "0.61850524", "0.61850524", "0.6174334", "0.617054", "0.617054", "0.6170371", "0.6154192", "0.6142933", "0.6140557", "0.6139329", "0.613671", "0.61310685", "0.60961336", "0.6093664", "0.6085896", "0.60799456", "0.60639954", "0.6062463", "0.6055378", "0.60517293", "0.6049715", "0.6049412", "0.603162", "0.603162", "0.6024444", "0.60159254", "0.60157424", "0.60157406", "0.5996174", "0.5996174", "0.5994447", "0.5988703", "0.59871036", "0.598527", "0.5978218", "0.59765834", "0.5973817", "0.59653825", "0.5963054", "0.59546" ]
0.8388037
9
auto generated Axis2 call back method for updateRolesOfUserForApplication method override this method for handling normal response from updateRolesOfUserForApplication operation
public void receiveResultupdateRolesOfUserForApplication( boolean result ) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void receiveResultchangeUserRoleToAlumni(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.ChangeUserRoleToAlumniResponse result\r\n ) {\r\n }", "private void updatesRoles(final UserFormData formData, final Boolean checkAccess) {\n\t\tfinal AccessControlService acs = BEANS.get(AccessControlService.class);\n\t\tfinal UserFormData existingUserRoles = this.getRoles(formData.getUserId().getValue(), checkAccess);\n\n\t\tfinal Set<Long> addedRoles = this.getItemsAdded(existingUserRoles.getRolesBox().getValue(),\n\t\t\t\tformData.getRolesBox().getValue());\n\t\tfinal Set<Long> removedRoles = this.getItemsRemoved(existingUserRoles.getRolesBox().getValue(),\n\t\t\t\tformData.getRolesBox().getValue());\n\n\t\t// TODO Djer13 : for \"standard\" roles history is lost. Use something\n\t\t// similar to Subscriptions ? (How to add a \"role\" which discard the old\n\t\t// one ?)\n\t\tif (!addedRoles.isEmpty()) {\n\t\t\tLOG.info(new StringBuilder().append(\"Adding new roles : \").append(addedRoles).append(\" for User \")\n\t\t\t\t\t.append(formData.getUserId().getValue()).toString());\n\t\t\tSQL.update(SQLs.USER_ROLE_INSERT, new NVPair(\"userId\", formData.getUserId().getValue()),\n\t\t\t\t\tnew NVPair(\"rolesBox\", addedRoles));\n\t\t\tacs.clearUserCache(this.buildNotifiedUsers(formData));\n\t\t} else {\n\t\t\tif (LOG.isDebugEnabled()) {\n\t\t\t\tLOG.debug(\"No new roles to add for user \" + formData.getUserId().getValue());\n\t\t\t}\n\t\t}\n\t\tif (!removedRoles.isEmpty()) {\n\t\t\tLOG.info(new StringBuilder().append(\"Removing roles : \").append(removedRoles).append(\" for User \")\n\t\t\t\t\t.append(formData.getUserId().getValue()).toString());\n\t\t\tSQL.update(SQLs.USER_ROLE_REMOVE, new NVPair(\"userId\", formData.getUserId().getValue()),\n\t\t\t\t\tnew NVPair(\"rolesBox\", removedRoles));\n\t\t\tacs.clearUserCache(this.buildNotifiedUsers(formData));\n\t\t} else {\n\t\t\tif (LOG.isDebugEnabled()) {\n\t\t\t\tLOG.debug(\"No roles to remove for user \" + formData.getUserId().getValue());\n\t\t\t}\n\t\t}\n\t}", "public void receiveResultgetRolesOfUserPerApplication(\n java.lang.String[] result\n ) {\n }", "@Override\n\tpublic void update(UserRole vo) {\n\n\t}", "public void saveRoles(){\r\n\t\tif(roles == null)\r\n\t\t\treturn;\r\n\r\n\t\tif(!rolesTreeView.isValidRolesList())\r\n\t\t\treturn;\r\n\r\n\t\tList<Role> deletedRoles = rolesTreeView.getDeletedRoles();\r\n\t\tSaveAsyncCallback callback = new SaveAsyncCallback(MainViewControllerUtil.getDirtyCount(roles) + (deletedRoles != null ? deletedRoles.size() : 0),\r\n\t\t\t\tOpenXdataText.get(TextConstants.ROLES_SAVED_SUCCESSFULLY),OpenXdataText.get(TextConstants.PROBLEM_SAVING_ROLES),roles,deletedRoles,this);\r\n\r\n\t\t//Save new and modified roles.\r\n\t\tfor(Role role : roles) {\r\n\t\t\tif(!role.isDirty())\r\n\t\t\t\tcontinue;\r\n\t\t\telse{\r\n\t\t\t\tcallback.setCurrentItem(role);\r\n\t\t\t\tMainViewControllerUtil.setEditableProperties(role);\r\n\t\t\t}\r\n\r\n\t\t\tContext.getPermissionService().saveRole(role, callback);\r\n\t\t}\r\n\r\n\t\t//Save deleted roles.\r\n\t\tif(deletedRoles != null){\r\n\t\t\tfor(Role role : deletedRoles) {\r\n\t\t\t\tcallback.setCurrentItem(role);\r\n\t\t\t\tContext.getPermissionService().deleteRole(role, callback);\r\n\t\t\t}\r\n\t\t\tdeletedRoles.clear();\r\n\t\t}\r\n\t}", "public void receiveResultchangeUserRoleToOrganisation(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.ChangeUserRoleToOrganisationResponse result\r\n ) {\r\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\t@Transactional\n\tpublic ArrayList<ApplicationUserRole> getAllRoles() throws Exception {\n\t\tArrayList<ApplicationUserRole> roleList = null;\n\t\ttry {\n\t\t\tSession session = sessionFactory.getCurrentSession();\n\t\t\tQuery query = session.createQuery(\"from ApplicationUserRole\");\n\t\t\troleList = (ArrayList<ApplicationUserRole>) query.list();\n\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\tthrow e;\n\t\t}\n\t\treturn roleList;\n\t\t\n\t}", "LoggedUser changeRole(String roleId) throws IOException;", "void changeRole(User user, Role role, String token) throws AuthenticationException;", "@RequestMapping(value = \"/admin/getRoles\", method = RequestMethod.GET)\n\tpublic @ResponseBody Response getRoles() {\n\t \tResponse response = new Response();\n\t\tresponse.addCommand(new ClientCommand(ClientCommandType.PROPERTY,\"roles\", roleRepository.findAll() ));\n\t\treturn response;\n\t}", "@Override\r\n\tpublic String update(String userInfo, String updateJson) {\n\t\t DubboServiceResultInfo info=new DubboServiceResultInfo();\r\n\t\t try {\r\n\t\t\t StandardRole standardRole=JacksonUtils.fromJson(updateJson, StandardRole.class);\r\n\t\t\t StandardRole standardRoleOld=standardRoleService.getObjectById(standardRole.getId());\r\n\t\t\t Map<String,Object> map = new HashMap<String,Object>();\r\n\t\t\t map.put(\"delflag\", \"0\");\r\n\r\n\t\t\t //如果状态没有改变不更改下级\r\n\t\t\t if(!standardRole.getStatus().equals(standardRoleOld.getStatus())){\r\n\t\t\t\t //启用角色,并启用其上级目录\r\n\t\t\t\t if(standardRole.getStatus().equals(\"1\")){//启用角色,并启用其上级目录\r\n\t\t\t\t\t String prefixId=standardRoleOld.getPrefixId();\r\n\t\t\t\t\t String orgIds[]=prefixId.split(\"/\");\r\n\t\t\t\t\t map.put(\"roleIds\", orgIds);\r\n\t\t\t\t\t roleCatalogService.unLockRole(map);\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t //如果名称或者上级目录进行更改了,同时要更改全路径\r\n\t\t\t if(standardRoleOld.getCatalogId().equals(standardRole.getCatalogId()) || standardRoleOld.getName().equals(standardRole.getName())){\r\n\t\t\t\t RoleCatalog parentRoleCatalog = roleCatalogService.getObjectById(standardRole.getCatalogId());\r\n\t\t\t\t standardRole.setPrefixId(parentRoleCatalog.getPrefixId()+\"/\"+standardRole.getId());\r\n\t\t\t\t standardRole.setPrefixName(parentRoleCatalog.getPrefixName()+\"/\"+standardRole.getName());\r\n\t\t\t\t standardRole.setPrefixSort(parentRoleCatalog.getPrefixSort()+\"-\"+String.format(\"B%05d\", standardRole.getSort()));\r\n\t\t\t }\r\n\t\t\t //检查是否重名\r\n\t\t\t Map mapcon = new HashMap<>();\r\n\t\t\t mapcon.put(\"pId\", standardRole.getCatalogId());\r\n\t\t\t mapcon.put(\"name\", standardRole.getName());\r\n\t\t\t mapcon.put(\"type\", \"role\");\r\n\t\t\t mapcon.put(\"id\", standardRole.getId());\r\n\t\t\t\t\t \r\n\t\t\t Integer c=roleCatalogService.checkName(mapcon);\r\n\t\t\t\tif(c>0){\r\n\t\t\t\t\tthrow new InvalidCustomException(\"名称已存在,不可重复\");\r\n\t\t\t\t}\r\n\t\t\t int result= standardRoleService.update(standardRole);\r\n\t\t\t info.setResult(JacksonUtils.toJson(result));\r\n\t\t\t info.setSucess(true);\r\n\t\t\t info.setMsg(\"更新对象成功!\");\r\n\t\t } catch (Exception e) {\r\n\t\t\t log.error(\"更新对象失败!\"+e.getMessage());\r\n\t\t\t info.setSucess(false);\r\n\t\t\t info.setMsg(\"更新对象失败!\");\r\n\t\t\t info.setExceptionMsg(e.getMessage());\r\n\t\t }\r\n\t\t return JacksonUtils.toJson(info);\r\n\t}", "@RequestMapping(value=\"/{projectId}/users_manager\",method=RequestMethod.POST)\r\n\t @PreAuthorize(\"@userRoleService.isManager(#projectID)\")\r\n\t public ModelAndView changeRoles(@RequestParam HashMap<String,String> allRequestParams,@PathVariable(\"projectId\") int projectID){\r\n\t\t \tallRequestParams.remove(\"_csrf\");\r\n\t\t \r\n\t\t \tModelAndView model = new ModelAndView(\"usersmanager\");\r\n\t\t \r\n\t\t \tUser user1 = authenticationUserService.getCurrentUser();\r\n\t\t \tRole role=roleDAO.getRoleByUserIdAndProjectId(user1.getUserID(), projectID);\r\n\t \r\n\t //set of roles that exist (for the select)\r\n\t model.addObject(\"roles\",roles);\r\n\t \r\n\t //role of the actual user (to display or not deleted button)\r\n\t model.addObject(\"userrole\",role.getRole());\r\n\t \r\n\t \r\n\t\t \t//must as at less a manager\r\n\t\t \tif(allRequestParams.containsValue(\"MANAGER\")){\r\n\t\t\t \tfor(Map.Entry<String, String>node : allRequestParams.entrySet()){\r\n\t\t\t \t\tUser user=usersDAO.getUserByUsername(node.getKey());\r\n\t\t\t \t\tProject project=projectDAO.getProjectById(projectID);\r\n\t\t\t \t\t//user can be deleted\r\n\t\t\t \t\tif(node.getValue().equals(\"null\")|| node.getValue()==null){\r\n\t\t\t \t\t\troleDAO.deleteRole(user,project);\r\n\t\t\t \t\t}\r\n\t\t\t \t\t//user can be updated\r\n\t\t\t \t\telse{\r\n\t\t\t \t\t\troleDAO.updateRole(user, project, node.getValue());\r\n\t\t\t \t\t}\r\n\t\t\t \t}\r\n\t\t\t \tmodel.addObject(\"success\", \"The users have been updated.\");\r\n\r\n\t\t \t}\r\n\t\t \t//there isn't any manager \r\n\t\t \telse{\r\n\t\t \t\t//get the roles again\r\n\t\t \t\tmodel.addObject(\"error\", \"The project must have at less a manager.\");\r\n\t\r\n\t\t \t}\r\n\t\t \tList<User> listUsers = usersDAO.getAllUsersByProjectID(projectID);\r\n\t\t\tList<Role> listroles=new ArrayList<Role>();\r\n\t\t \tfor(User u :listUsers ){\r\n\t\t \t\tlistroles.add(roleDAO.getRoleByUserIdAndProjectId(u.getUserID(), projectID));\r\n\t\t \t}\r\n\t model.addObject(\"listUsers\", listUsers);\r\n\t\t\tmodel.addObject(\"projectId\",projectID);\r\n\t\t\tmodel.addObject(\"listRoles\",listroles);\r\n\t model.setViewName(\"usersmanager\");\r\n\t\t\treturn model;\r\n\t }", "List<SysRole> getUserRoles(int userId);", "@RequestMapping(value = \"/insertDetails\", method = RequestMethod.POST)\n\tpublic String roleApprovalListUpdate(ModelMap model, @ModelAttribute EndUserForm endUserForm,\n\t\t\tRedirectAttributes attributes) throws CustomException {\n\n\t\tEndUser endUser = new EndUser();\n\n\t\tTransaction transaction = new Transaction();\n\n\t\tendUser.setEmail(endUserForm.getEmail());\n\t\tendUser.setContactNo(endUserForm.getContactNo());\n\t\tendUser.setRole(endUserForm.getRole());\n\t\t// String users[] = endUserForm.getUserName().split(\",\");\n\t\tendUser.setUserName(endUserForm.getUserName());\n\t\tendUser.setDisplayName(endUserForm.getDisplayName());\n\t\tendUser.setBankId(endUserForm.getBankId());\n\t\tendUser.setDesignation(endUserForm.getDesignation());\n\t\t// endUser.setCurrentRole(endUserForm.getCurrentRole());\n\t\tendUser.setPrefferedLanguage(\"en\");\n\t\tendUser.setTheme(\"themeBlue\");\n\t\tendUser.setNotificationStatus(Constants.PENDING);\n\t\tendUser.setCurrentRole(endUserForm.getCurrentRole());\n\n\t\tString rolesIds = endUserForm.getRolesId();\n\t\tString splitsRoleIds[] = rolesIds.split(\",\");\n\t\tList<Role> roleList = new ArrayList<>();\n\t\tfor (String roleId : splitsRoleIds) {\n\t\t\tLong parseRoleId = Long.valueOf(roleId);\n\t\t\tendUser.setRole(Integer.valueOf(roleId));\n\t\t\tRole role = endUserDAOImpl.findById(parseRoleId);\n\t\t\troleList.add(role);\n\t\t}\n\t\tendUser.setRoles(roleList);\n\t\tendUser.setStatus(\"Approved\");\n\n\t\t/*\n\t\t * if (endUserForm.getCurrentRole().equals(\"ROLE_VP\")) {\n\t\t * \n\t\t * //Get Role Id's or roles String //Find Role Id's or roles String in Database\n\t\t * //set Roles List in EndUser roles method\n\t\t * \n\t\t * //endUser.setRoles();\n\t\t * \n\t\t * \n\t\t * endUser.setStatus(Constants.APPROVED); }else if\n\t\t * (endUserForm.getCurrentRole().equals(\"ROLE_APPROVALMNG\")) {\n\t\t * endUser.setStatus(Constants.APPROVED); } else {\n\t\t * endUser.setStatus(Constants.PENDING); }\n\t\t */\n\t\tendUser.setPassword(endUserForm.getPassword());\n\t\tendUser.setApprovallimit(endUserForm.getApprovallimit());\n\t\tendUser.setTransactionId(endUserForm.getTransactionId());\n\n\t\ttransaction.setTransactionId(endUserForm.getTransactionId());\n\t\ttransaction.setTransactionType(Constants.MODULEROLE);\n\t\ttransaction.setTransactionStatus(Constants.ROLEADDED);\n\t\tendUser.setPasswordFlag(0);\n\n\t\tString username = endUserForm.getUserName();\n\t\tString password = endUserForm.getPassword();\n\t\tString currentRole = endUserForm.getCurrentRole();\n\t\tString email = endUserForm.getEmail();\n\n\t\tString tex = Constants.BANKSUBJECT;\n\t\ttry {\n\t\t\tSimpleMailMessage emails = new SimpleMailMessage();\n\t\t\temails.setTo(email);\n\t\t\temails.setSubject(tex);\n\t\t\temails.setText(Constants.HELLO + username + Constants.BANKBODY1 + username + Constants.BANKBODY2 + password\n\t\t\t\t\t+ Constants.CURRENTROLE + currentRole + Constants.BANKSIGNATURE);\n\n\t\t\tmailSender.send(emails);\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t\tendUser.setStartDate(endUserForm.getStartDate());\n\t\tendUser.setAccExpiryDate(endUserForm.getAccExpiryDate());\n\n\t\tendUserDAOImpl.createUser(endUser);\n\t\ttransactionDAO.insertTransaction(transaction);\n\n\t\tattributes.addFlashAttribute(Constants.SUCCESS, Constants.SAVEDROLE);\n\n\t\tattributes.addFlashAttribute(\"endUserForm\", endUserForm);\n\n\t\treturn \"redirect:savedUserSuccess\";\n\n\t}", "@Override\n\tpublic int modifyUser(User_role newUser) throws Exception{\n\t\treturn userMapper.updateUser(newUser);\n\t}", "void resolveRoles(UserData user, ActionListener<Set<String>> listener);", "Set getRoles();", "@VisibleForTesting\n void updateRoles() {\n final String METHOD = \"updateRoles\";\n LOGGER.entering(CLASS_NAME, METHOD);\n\n NotesView connectorCrawlDatabaseView = null;\n NotesDocument connectorCrawlDatabaseDoc = null;\n try {\n connectorCrawlDatabaseView =\n connectorDatabase.getView(NCCONST.VIEWDATABASES);\n\n if (connectorCrawlDatabaseView == null) {\n return;\n }\n\n connectorCrawlDatabaseView.refresh();\n\n Set<String> replicaIds = new LinkedHashSet<String>();\n for (connectorCrawlDatabaseDoc =\n connectorCrawlDatabaseView.getFirstDocument();\n connectorCrawlDatabaseDoc != null;\n connectorCrawlDatabaseDoc = getNextDocument(\n connectorCrawlDatabaseView, connectorCrawlDatabaseDoc)) {\n NotesDatabase crawlDatabase = null;\n String databaseName = null;\n try {\n databaseName = connectorCrawlDatabaseDoc.getItemValueString(\n NCCONST.DITM_DBNAME);\n String replicaId = connectorCrawlDatabaseDoc.getItemValueString(\n NCCONST.DITM_REPLICAID);\n LOGGER.log(Level.FINE,\n \"Updating roles for database: {0}\", databaseName);\n replicaIds.add(replicaId);\n\n // TODO: is there anything that would cause us to skip\n // checking roles for this database? Or remove all\n // role-related records for this database?\n\n crawlDatabase = notesSession.getDatabase(null, null);\n crawlDatabase.openByReplicaID(\n connectorCrawlDatabaseDoc.getItemValueString(NCCONST.DITM_SERVER),\n replicaId);\n if (!crawlDatabase.isOpen()) {\n LOGGER.log(Level.FINE,\n \"Database could not be opened: {0}\", databaseName);\n continue;\n }\n updateRolesForDatabase(crawlDatabase, replicaId);\n } catch (Exception e) {\n LOGGER.log(Level.WARNING,\n \"Error updating roles for database: \" + databaseName, e);\n } finally {\n Util.recycle(crawlDatabase);\n }\n }\n checkDatabaseDeletions(replicaIds);\n } catch (Exception e) {\n LOGGER.log(Level.WARNING, \"Error updating roles\", e);\n } finally {\n Util.recycle(connectorCrawlDatabaseDoc);\n Util.recycle(connectorCrawlDatabaseView);\n LOGGER.exiting(CLASS_NAME, METHOD);\n }\n }", "List<RoleEntity> getSystemRoles();", "long addUserRole(UserRole userRole);", "private String getUserRoleListQuery() throws APIManagementException {\n StringBuilder rolesQuery = new StringBuilder();\n rolesQuery.append('(');\n rolesQuery.append(APIConstants.NULL_USER_ROLE_LIST);\n String[] userRoles = APIUtil.getListOfRoles(userNameWithoutChange);\n String skipRolesByRegex = APIUtil.getSkipRolesByRegex();\n if (StringUtils.isNotEmpty(skipRolesByRegex)) {\n List<String> filteredUserRoles = new ArrayList<>(Arrays.asList(userRoles));\n String[] regexList = skipRolesByRegex.split(\",\");\n for (int i = 0; i < regexList.length; i++) {\n Pattern p = Pattern.compile(regexList[i]);\n Iterator<String> itr = filteredUserRoles.iterator();\n while(itr.hasNext()) {\n String role = itr.next();\n Matcher m = p.matcher(role);\n if (m.matches()) {\n itr.remove();\n }\n }\n }\n userRoles = filteredUserRoles.toArray(new String[0]);\n }\n if (userRoles != null) {\n for (String userRole : userRoles) {\n rolesQuery.append(\" OR \");\n rolesQuery.append(ClientUtils.escapeQueryChars(APIUtil.sanitizeUserRole(userRole.toLowerCase())));\n }\n }\n rolesQuery.append(\")\");\n if(log.isDebugEnabled()) {\n \tlog.debug(\"User role list solr query \" + APIConstants.PUBLISHER_ROLES + \"=\" + rolesQuery.toString());\n }\n return APIConstants.PUBLISHER_ROLES + \"=\" + rolesQuery.toString();\n }", "public RoleList getRoles() {\n return roleList;\n }", "@RequestMapping(value = \"/roles\", method = RequestMethod.GET, produces = {MediaType.APPLICATION_JSON_VALUE, MediaType.APPLICATION_XML_VALUE})\n @ResponseBody\n public List<Role> getRoles() {\n List<Role> roleList = (List<Role>)roleService.getAll();\n if (roleList.isEmpty()){\n return null;\n }\n return roleList;\n }", "@Override\n\tpublic List<AccountUser> getRoles() {\n\t\treturn auMapper.getRoles();\n\t}", "public List<SecRole> getAllRoles();", "@Override\r\n public List<Role> getRoles() {\r\n return roles;\r\n }", "@Override\r\n\tpublic int updRole(Role role) {\n\t\treturn 0;\r\n\t}", "public List<AppUser> getAllUserByRolesAndApp(@Valid AppUser appUser) {\n\t\n\t\tList<Roles> role =(List<Roles>) appUserRepository.getRolesByAppuser();\n\t\tSystem.out.println(\"get roles by user \"+role);\n\t\tSet<Roles> hSet = new HashSet<Roles>(role); \n hSet.addAll(role); \n\t\tappUser.setRoles(hSet);\n\t\tApp app = appUser.getApp();\n\t\tSystem.out.println(\"app and roles \"+app+\"roles ==\"+role);\n\t\treturn appUserRepository.findByAppAndRolesIn(app, role);\n//\t\treturn null;\n\t}", "private Map<String, String> setRolesForCommand() {\n\t\tallRollesForCommand = new HashMap<String, String>();\n\t\tallRollesForCommand.put(ServiceParamConstant.ADMIN_ROLE, ServiceCommandConstant.ADMIN_COMMAND);\n\t\tallRollesForCommand.put(ServiceParamConstant.BOSS_ROLE, ServiceCommandConstant.BOSS_COMMAND);\n\t\tallRollesForCommand.put(ServiceParamConstant.HR_ROLE, ServiceCommandConstant.HR_COMMAND);\n\t\tallRollesForCommand.put(ServiceParamConstant.EMPLOYEE_ROLE, ServiceCommandConstant.EMPLOYEE_COMMAND);\n\t\treturn allRollesForCommand;\n\t}", "public abstract Collection getRoles();", "public void receiveResultmodifyUser(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.ModifyUserResponse result\r\n ) {\r\n }", "@Override\n public java.util.List<Role> getRolesList() {\n return roles_;\n }", "@Override\n public java.util.List<Role> getRolesList() {\n return roles_;\n }", "public interface UserRoleManager {\n\n Long add(@NotNull UserRequest userRequest) throws BusinessException;\n\n void modify(long id,@NotNull UserModifyRequest userRequest) throws BusinessException;\n\n List<String> findRolesByUserId(@NotNull String roleIds) throws BusinessException;\n}", "com.message.MessageInfo.RoleVO getRole();", "int updateByPrimaryKey(SystemRoleUserMapperMo record);", "@Override\r\n\tpublic boolean updateRole(RoleDTO role) {\n\t\tEpcRole epcRole = buildEpcRole(role);\r\n\t\t\r\n\t\tupdate(epcRole);\r\n\t\treturn true;\r\n\t}", "public boolean updateUserRole(String oldUserName, String oldRoleName, String newUserName, String newRoleName) {\n \tboolean updateResult = false;\n\tString sql = \"UPDATE users_roles SET user_name = ? , role_name = ? WHERE user_name = ? and role_name = ?\";\n \ttry {\t\t\t\n this.statement = connection.prepareStatement(sql);\n this.statement.setString(1, newUserName);\n this.statement.setString(2, newRoleName);\n this.statement.setString(3, oldUserName);\n this.statement.setString(4, oldRoleName);\n \n this.statement.executeUpdate();\n updateResult = true;\n this.statement.close();\n\t}\n catch(SQLException ex) {\n Logger.getLogger(UserDBManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n return updateResult; \n }", "@GetMapping(\"roles\")\n public List<ApplicationRoleClient> GetAllApplicationRole(){\n return applicationRoleBLL.GetAllApplicationRole();\n }", "private static JAXBElement<ArrayOfAPIRole> GetRolesForMeetingsListFromNodeList(Node node) {\n JAXBElement<ArrayOfAPIRole> roles = null;\n\n try {\n List rolesList = node.selectNodes(\"RolesForMeeting\");\n\n if (rolesList.size() > 0) {\n Node rolesNode = (Node) rolesList.get(0);\n\n List childNodes = rolesNode.selectNodes(\"API_Role\");\n\n if (childNodes.size() > 0) {\n\n ArrayOfAPIRole arrRoles = new ArrayOfAPIRole();\n for (int i = 0; i < childNodes.size(); i++) {\n\n Node childNode = (Node) childNodes.get(i);\n\n APIRole API_Role = new APIRole();\n API_Role.setIsBuiltIn(\"\".equals(childNode.valueOf(\"IsBuiltIn\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"IsBuiltIn\"), Boolean.class,\n Boolean.parseBoolean(childNode.valueOf(\"IsBuiltIn\"))));\n API_Role.setLastModified(\"\".equals(childNode.valueOf(\"LastModified\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"LastModified\"), XMLGregorianCalendar.class,\n DatatypeFactory.newInstance().newXMLGregorianCalendar(childNode.valueOf(\"LastModified\"))));\n API_Role.setNodeID(\"\".equals(childNode.valueOf(\"NodeID\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"NodeID\"), \"\".getClass(),\n childNode.valueOf(\"NodeID\")));\n API_Role.setNodeText(\"\".equals(childNode.valueOf(\"NodeText\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"NodeText\"), \"\".getClass(),\n childNode.valueOf(\"NodeText\")));\n API_Role.setRoleID(\"\".equals(childNode.valueOf(\"RoleID\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"RoleID\"), \"\".getClass(),\n childNode.valueOf(\"RoleID\")));\n API_Role.setRoleName(\"\".equals(childNode.valueOf(\"RoleName\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"RoleName\"), \"\".getClass(),\n childNode.valueOf(\"RoleName\")));\n\n API_Role.setContacts(GetRoleContactsListFromNodeList(childNode));\n API_Role.setOptions(GetRoleOptionsListFromNodeList(childNode));\n\n arrRoles.getAPIRole().add(API_Role);\n }\n\n roles = new JAXBElement<ArrayOfAPIRole>(\n new QName(API_Constants.NamespaceURI, \"RolesForMeeting\"), ArrayOfAPIRole.class, arrRoles);\n roles.setValue(arrRoles);\n\n }\n }\n } catch (Exception ex) {\n ApiLog.One.WriteException(ex);\n }\n return roles;\n }", "@Override\n\tpublic int updateRoleInfo(FRoleCustom fRoleCustom) throws Exception {\n\t\tDBContextHolder.setDBType(\"0\");\n\t\treturn froleMapper.updateRoleInfo(fRoleCustom);\n\t}", "@PermitAll\n @Override\n public List<Role> getCurrentUserRoles() {\n Map params = new HashMap<String, Object>();\n params.put(CommonSqlProvider.PARAM_QUERY, Role.QUERY_GET_ROLES_BY_USER_NAME);\n params.put(User.PARAM_USERNAME, this.getUserName());\n return getRepository().getEntityList(Role.class, params);\n }", "public Set<AppRole> getRoles() {\n return roles;\n }", "@Override\r\n\tpublic RolesListDto getAllRoles() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic List<VUserRoles> getUserRoleList(String vcAccount,String qUserName,\n\t\t\tInteger offset, Integer pageSize,Integer cFlag) {\n\t\tStringBuffer hql = new StringBuffer();\n\t\thql.append(\" select * from v_user_roles h where 1=1 \");\n\t\tif (qUserName != null && !qUserName.equals(\"\")) {\n\t\t\thql.append(\" and h.vcName like '%\" + qUserName + \"%' \");\n\t\t}\n\t\tif (vcAccount != null && !vcAccount.equals(\"\")) {\n\t\t\thql.append(\" and h.vcAccount like '%\" + vcAccount + \"%' \");\n\t\t}\n\t\tif (cFlag != null && cFlag!=99) {\n\t\t\thql.append(\" and h.cFlag =\"+cFlag+\" \");\n\t\t}\n\t\thql.append(\" order by h.vcEmployeeId \");\n\t\tQuery query = sessionFactory.getCurrentSession().createSQLQuery(hql.toString());\n\t\tif(offset !=null && pageSize != null){\n\t\t\tquery.setFirstResult(offset);\n\t\t\tquery.setMaxResults(pageSize);\n\t\t}\n\t\tList<VUserRoles> result = new ArrayList<VUserRoles>();\n\t\tList<Object[]> tempResult = query.list();\n\t\tfor(int i = 0; i < tempResult.size(); i++ ){\n\t\t\tObject[] tempObj = tempResult.get(i);\n\t\t\tVUserRoles entity = new VUserRoles();\n\t\t\tentity.setId(tempObj[0]==null?\"\":tempObj[0].toString());\n\t\t\tentity.setVcEmployeeID(tempObj[1]==null?\"\":tempObj[1].toString());\n\t\t\tentity.setVcName(tempObj[2]==null?\"\":tempObj[2].toString());\n\t\t\tentity.setVcFullName(tempObj[3]==null?\"\":tempObj[3].toString());\n\t\t\tentity.setVcAccount(tempObj[4]==null?\"\":tempObj[4].toString());\n\t\t\tentity.setRoleIds(tempObj[5]==null?\"\":tempObj[5].toString());\n\t\t\tentity.setRoleNames(tempObj[6]==null?\"\":tempObj[6].toString());\n\t\t\tentity.setcFlag(tempObj[7]==null?99:Integer.parseInt(tempObj[7].toString()));\n\t\t\tresult.add(entity);\n\t\t}\n\t\treturn result;\n\t}", "@Override\r\n\tpublic Object getRoles() throws DataAccessException, SQLException {\n\t\tlogger.info(\"start : getRoles UsersMngDaoImpl \");\r\n\t\t \r\n\t\tList<Roles> roleList = roleRepository.findAll();\r\n\t\tlogger.info(\"End : getRoles UsersMngDaoImpl \");\r\n\t\treturn roleList;\r\n\t}", "public List<Role> getAllRoles();", "public SecUserrole getNewSecUserrole();", "public void setRole(typekey.ECFParticipantFunction_Ext value) {\n __getInternalInterface().setFieldValue(ROLE_PROP.get(), value);\n }", "public void setUserRoles(List<UserRole> userRoles) {\n\t\tthis.userRoles = userRoles;\n\t}", "@Override\r\n\tpublic void setRole(Long accountId, List<Role> roles) throws ServiceException {\n\r\n\t}", "@ModelAttribute(\"allRoles\")\r\n\tpublic List<Role> getAllRoles(){\t\r\n\t\treturn roleService.findAdminRoles();\r\n\t\t\r\n\t}", "public void setRolesObservaciones(int row,String newValue) throws DataStoreException {\r\n setString(row,ROLES_OBSERVACIONES, newValue);\r\n }", "public void setRole(typekey.ECFParticipantFunction_Ext value) {\n __getInternalInterface().setFieldValue(ROLE_PROP.get(), value);\n }", "@Override\n\tpublic void setRoles(List<IRole> roles) {\n\t\tgetInnerObject().setRoles(roles);\n\t\t\n\t}", "List<Role> getRoles();", "public java.util.List<Role> getRolesList() {\n if (rolesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(roles_);\n } else {\n return rolesBuilder_.getMessageList();\n }\n }", "public java.util.List<Role> getRolesList() {\n if (rolesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(roles_);\n } else {\n return rolesBuilder_.getMessageList();\n }\n }", "@Override\n\tpublic int update(ShiroRolesPermissionsPoEntity entity) {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic void getAllRole() {\n\t\tSystem.out.println(roles);\r\n\t\t\r\n\t}", "@Override\n\tpublic void setRoles(List<IRole> arg0) {\n\t\t\n\t}", "public int editUserRoles(List<UUserRole> userRoles,String user_id) {\n\t\tint r=0;\n\n\t\ttry {\n\t\t\troleMapper.deleteUserRole(new String[]{user_id});\n\t\t\tif(userRoles!=null&&userRoles.size()>0){\n\t\t\t\troleMapper.insertUserRoles(userRoles);\n\t\t\t}\n\t\t\tr=2000;\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn r;\n\t}", "@PostMapping(value = \"/getUserRoles\")\n\tpublic RestResponse<List<GcmUserVendorRole>> getUserRoles(@RequestParam Long loggedInUserKey,@RequestParam Long vendorKey) {\t\n\t\tlogInfo(LOG, true, \"User key : {}\", loggedInUserKey);\n\t\tlogInfo(LOG, true, \"vendorKey : {}\", vendorKey);\n\t\t\n\t\tRestResponse<List<GcmUserVendorRole>> restResponse = new RestResponse<>(SUCCESS);\n\t\ttry {\n\t\t\tList<GcmUserVendorRole> userRoles = userCreationService.getUserRoles(loggedInUserKey, vendorKey);\n\t\t\trestResponse.setResult(userRoles);\n\t\t}catch(Exception e) {\n\t\t\tLOG.error(\"Exception : \", e);\n\t\t}\n\t\treturn restResponse;\t\t\n\t}", "public void setRolesObservaciones(String newValue) throws DataStoreException {\r\n setString(ROLES_OBSERVACIONES, newValue);\r\n }", "public List getSysRoles(SysRole sysRole);", "int updateByPrimaryKey(UsercontrollerRole record);", "public interface AclRoleService {\r\n\r\n /**\r\n * 新增角色\r\n *\r\n * @param aclRole\r\n * @throws RuntimeServiceException\r\n */\r\n public void addAclRole(String stationName, int responseUserId, String[] ids,int userid) throws RuntimeServiceException;\r\n\r\n /**\r\n * 删除角色\r\n *\r\n * @throws RuntimeServiceException\r\n */\r\n public void deleteAclRole(int roleId,int userid) throws RuntimeServiceException;\r\n\r\n /**\r\n * 查询角色\r\n *\r\n * @return\r\n * @throws RuntimeServiceException\r\n */\r\n public AclRole queryAclRole() throws RuntimeServiceException;\r\n\r\n /**\r\n * 更新角色\r\n *\r\n * @param aclRole\r\n * @throws RuntimeServiceException\r\n */\r\n public void modifyAclRole(int roleId, String stationName, int responseUserId, String[] ids,int userid) throws RuntimeServiceException;\r\n\r\n /**\r\n * 查询所有角色\r\n * 支持分页\r\n *\r\n * @return\r\n * @throws RuntimeServiceException\r\n */\r\n public PageInfo<AclRole> queryAllAclRole(int pageNum, int pageSize);\r\n\r\n /**\r\n * 根据角色名称查询角色\r\n * 支持模糊查询,支持分页\r\n *\r\n * @return\r\n * @throws RuntimeServiceException\r\n */\r\n public PageInfo<AclRole> queryByRoleName(String roleName, int pageNum, int pageSize);\r\n\r\n /**\r\n * 查看岗位权限--角色资源表\r\n *\r\n * @return\r\n * @throws RuntimeServiceException\r\n */\r\n public AclRoleSources queryRRDetailById(int id);\r\n\r\n /**\r\n * 查看岗位权限--角色表\r\n *\r\n * @return\r\n * @throws RuntimeServiceException\r\n */\r\n public AclRole queryRDetailById(int id);\r\n\r\n /**\r\n * 查询所有岗位\r\n *\r\n * @return\r\n * @throws RuntimeServiceException\r\n */\r\n public List<AclRole> queryAllRole();\r\n \r\n /**\r\n * 修改岗位信息\r\n *\r\n * @return\r\n * @throws RuntimeServiceException\r\n */\r\n public void updateByExampleSelective(@Param(\"record\") AclRole record);\r\n \r\n /**\r\n * 根据岗位id查询岗位信息\r\n * */\r\n public AclRole selectByPrimaryKey(Integer id);\r\n \r\n /**\r\n * 根据查询实体查询岗位列表\r\n * @param record 岗位查询实体\r\n * @return 岗位列表\r\n */\r\n public List<AclRole> queryRoleByEntity(AclRole record);\r\n\r\n}", "@Override\n public java.util.List<? extends RoleOrBuilder>\n getRolesOrBuilderList() {\n return roles_;\n }", "@Override\n public java.util.List<? extends RoleOrBuilder>\n getRolesOrBuilderList() {\n return roles_;\n }", "@Override\r\n\tpublic List<Role> getAllRoles() {\n\t\treturn null;\r\n\t}", "@Update({\n \"update A_USER_ROLE\",\n \"set user_id = #{userId,jdbcType=INTEGER},\",\n \"role_id = #{roleId,jdbcType=INTEGER}\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n int updateByPrimaryKey(AUserRole record);", "public void get__role( Boolean refresh, RestAdapter restAdapter, final ObjectCallback<Role> callback) {\n //Call the onBefore callback method..\n callback.onBefore();\n\n //Define methods here..\n final RoleMappingRepository roleMappingRepo = restAdapter.createRepository(RoleMappingRepository.class);\n \n \n \n \n \n\n\n\n roleMappingRepo.get__role( (String)that.getId(), refresh, new ObjectCallback<Role> (){\n \n\n \n @Override\n \n public void onSuccess(Role object) {\n if(object != null){\n //now add relation to this recipe.\n addRelation(object);\n //Also add relation to child type for two way communication..Removing two way communication for cyclic error\n //object.addRelation(that);\n callback.onSuccess(object);\n //Calling the finally..callback\n callback.onFinally();\n }else{\n callback.onSuccess(null);\n //Calling the finally..callback\n callback.onFinally();\n }\n\n }\n \n \n\n\n \n\n @Override\n public void onError(Throwable t) {\n //Now calling the callback\n callback.onError(t);\n //Calling the finally..callback\n callback.onFinally();\n }\n\n });\n }", "int updateByPrimaryKey(BsUserRole record);", "int updateByPrimaryKeySelective(SystemRoleUserMapperMo record);", "public ArrayList<Role> getRoles()\r\n {\r\n return this.securityInfo.getRoles();\r\n }", "void addRoleToUser(int userID,int roleID);", "@Override\n\t@Transactional\n\tpublic String addOrUpdateRole(ApplicationUserRole applicationUserRoleBean) {\n\t\tString ex=null;\n\t\ttry\n\t\t{\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tsession.merge(applicationUserRoleBean);\n\t\t}\n\t\tcatch(HibernateException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn ex;\n\t}", "int updateByPrimaryKey(SysRoleUser record);", "public interface RoleServiceI {\n\n\n List<Role> getAllRoles();\n\n List<Role> getRoleByUserId(Integer userId);\n\n\n void updateUserAndRole(Integer uid,int[] rid);\n\n PageInfo<Role> getPageRoles(Integer pageNum);\n\n\n\n\n}", "private void onAddRole() {\n\t\troleProxy.addRoleToUser(user, selectedRole);\n\t}", "List<String> getRoles();", "@Override\n\tpublic Role update(RoleForm roleForm, long id) {\n\t\treturn null;\n\t}", "@Override\n public int getRolesCount() {\n return roles_.size();\n }", "@Override\n public int getRolesCount() {\n return roles_.size();\n }", "public java.util.ArrayList getEditRoles() {\n\tjava.util.ArrayList roles = new java.util.ArrayList();\n\troles.add(\"ArendaMainEconomist\");\n\troles.add(\"ArendaEconomist\");\n\troles.add(\"administrator\");\n\treturn roles;\n}", "Role getRoles(int index);", "Role getRoles(int index);", "public Collection<Role> getRoles() {\n return this.roles;\n }", "List<Rol> obtenerRoles() throws Exception;", "@Override\n\tpublic void updateRole(Role role) {\n\t\tlogger.debug(\"RoleServiceImpl::updateRole Role = {}\", role.toString());\n\t\troleMapper.updateRole(role);\n\t}", "public String getRoles() {\n return roles;\n }", "public void setRolesRolId(int row,int newValue) throws DataStoreException {\r\n setInt(row,ROLES_ROL_ID, newValue);\r\n }", "java.util.List<Role>\n getRolesList();", "java.util.List<Role>\n getRolesList();", "public Boolean isRoleValid(String userName,String password, Vector roles)\n {\n try\n {\n UserEntityInterface userEntityInterface = UserEntityFactory.getInstance();\n UserInterface userInterface = userEntityInterface.getUser(userName);\n \n if(userInterface.getRole() == null)\n {\n if(org.allbinary.logic.communication.log.config.type.LogConfigTypes.LOGGING.contains(org.allbinary.logic.communication.log.config.type.LogConfigTypeFactory.getInstance().TAGHELPER))\n {\n LogUtil.put(LogFactory.getInstance(\"Role is null: \" + userInterface.getRole() +\n \" Valid Roles: \" + roles.toString(),\n this, \"isRoleValid()\"));\n }\n \n return Boolean.FALSE;\n }\n \n Iterator iter = roles.iterator();\n while(iter.hasNext())\n {\n BasicUserRole nextRole = (BasicUserRole) iter.next();\n if(userInterface.getRole().getBasicUserRole().equals(nextRole))\n {\n //role is verified\n \n //validate permissions to set session\n //this should be seperated into hasPermissions method\n \n /*if(userInterface.hasPermission(new RequestParams(this.request)))\n {\n userInterface.validateSession(weblisketSession,new RequestParams(this.request));\n }\n else\n {\n if(org.allbinary.logic.communication.log.config.type.LogConfigTypes.LOGGING.contains(org.allbinary.logic.communication.log.config.type.LogConfigTypeFactory.getInstance().TAGHELPER))\n {\n LogUtil.put(LogFactory.getInstance(\"Role is not valid: \" + userInterface.getRole() +\n \" Valid Roles: \" + roles.toString(),\n this,\"isRoleValid()\"));\n }\n \n return Boolean.FALSE;\n }\n */\n \n userInterface.validateSession((WeblisketSessionInterface) weblisketSession);\n \n this.request.removeAttribute(WeblisketSessionData.REMOVABLEUSERNAME);\n this.request.removeAttribute(WeblisketSessionData.REMOVABLEPASSWORD);\n return Boolean.TRUE;\n }\n }\n \n if(org.allbinary.logic.communication.log.config.type.LogConfigTypes.LOGGING.contains(org.allbinary.logic.communication.log.config.type.LogConfigTypeFactory.getInstance().TAGHELPER))\n {\n \t StringBuffer stringBuffer = new StringBuffer();\n \t \n \t stringBuffer.append(\"Role is not valid: \");\n \t stringBuffer.append(userInterface.getRole());\n \t stringBuffer.append(\" Valid Roles: \");\n \t stringBuffer.append(roles.toString());\n \t \n LogUtil.put(LogFactory.getInstance(stringBuffer.toString(), this, \"isRoleValid()\"));\n }\n //on userInterface.getRole() failure\n return Boolean.FALSE;\n }\n catch(Exception e)\n {\n String error = \"Failed to check if Role is valid\";\n if(org.allbinary.logic.communication.log.config.type.LogConfigTypes.LOGGING.contains(org.allbinary.logic.communication.log.config.type.LogConfigTypeFactory.getInstance().TAGHELPERERROR))\n {\n LogUtil.put(LogFactory.getInstance(error, this, \"isRoleValid()\", e));\n }\n return Boolean.FALSE;\n }\n }", "ISModifyProvidedRole createISModifyProvidedRole();", "@Override\n\tpublic List<IRole> getRoles() {\n\t\treturn getInnerObject().getRoles();\n\t}", "public void setRolesRolId(int newValue) throws DataStoreException {\r\n setInt(ROLES_ROL_ID, newValue);\r\n }", "int updateByPrimaryKey(User_Role record);", "public java.util.List<? extends RoleOrBuilder>\n getRolesOrBuilderList() {\n if (rolesBuilder_ != null) {\n return rolesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(roles_);\n }\n }" ]
[ "0.6621039", "0.6359524", "0.6253263", "0.6222112", "0.61641985", "0.61042184", "0.60941976", "0.59981287", "0.59886837", "0.59846294", "0.596745", "0.5933401", "0.5884627", "0.5881832", "0.58502066", "0.58097094", "0.5778361", "0.57652944", "0.5736159", "0.5717509", "0.5715958", "0.56954163", "0.5692283", "0.56809455", "0.5666054", "0.5649458", "0.5649432", "0.5626684", "0.5618326", "0.5615455", "0.5615086", "0.56109196", "0.56109196", "0.5605388", "0.5603471", "0.55941844", "0.55750304", "0.55651486", "0.5562786", "0.5555854", "0.55545694", "0.5528847", "0.5526352", "0.5515172", "0.5510984", "0.55069643", "0.5505998", "0.549975", "0.5497626", "0.54907846", "0.54895455", "0.5486936", "0.54634553", "0.545747", "0.54570645", "0.545508", "0.5447162", "0.5447162", "0.54373705", "0.5436511", "0.5428366", "0.5420313", "0.54111105", "0.54097", "0.5404338", "0.5381537", "0.5377458", "0.53762895", "0.53762895", "0.5375209", "0.53740597", "0.5373896", "0.537207", "0.53579533", "0.53533065", "0.5352598", "0.5350447", "0.5349673", "0.5334417", "0.5328112", "0.5325991", "0.5324822", "0.532476", "0.532476", "0.5321636", "0.53125215", "0.53125215", "0.531199", "0.5308193", "0.5302418", "0.52964157", "0.5294842", "0.52927834", "0.52927834", "0.52892154", "0.5286233", "0.5286006", "0.5284635", "0.52828723", "0.52797544" ]
0.7517459
0
No methods generated for meps other than inout auto generated Axis2 call back method for isApplicationIdAvailable method override this method for handling normal response from isApplicationIdAvailable operation
public void receiveResultisApplicationIdAvailable( boolean result ) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasUserAppId();", "boolean hasUserAppId();", "boolean hasMachineId();", "public abstract String getApplicationId();", "boolean hasReceiverid();", "boolean hasReceiverID();", "public boolean isSetApplicationInterfaceId() {\n return this.applicationInterfaceId != null;\n }", "public interface AppIdCallback {\n String getAppId();\n}", "boolean isSetIdVerificationResponseData();", "amdocs.iam.pd.pdwebservices.CheckProductEligibilityResponseDocument.CheckProductEligibilityResponse getCheckProductEligibilityResponse();", "boolean hasApikeyOpId();", "boolean hasResMineInstanceID();", "boolean hasRoutingAppID();", "boolean hasServerId();", "boolean hasParkingId();", "boolean hasParkingId();", "boolean hasParkingId();", "public String getApplicationId();", "boolean hasRpcId();", "boolean hasResMineID();", "public boolean isSetApp_id() {\n return this.app_id != null;\n }", "boolean hasRecognitionId();", "public boolean mo8981b() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.ads.identifier.internal.IAdvertisingIdService\");\n boolean z = true;\n obtain.writeInt(1);\n this.f7875a.transact(2, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() == 0) {\n z = false;\n }\n return z;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }", "boolean hasClientId();", "boolean hasClientId();", "@Test\n public void testCanSeeOwnApplication() throws Exception {\n Set<Id> appIds = ImmutableSet.of(Id.valueOf(5000));\n User user = User.builder()\n .withId(Id.valueOf(5000))\n .withApplicationIds(appIds)\n .withRole(Role.REGULAR)\n .build();\n UserAwareQueryContext context = new UserAwareQueryContext(ApplicationSources.defaults(), \n ActiveAnnotations.standard(),\n Optional.of(user));\n UserAwareQuery<Application> query = UserAwareQuery.singleQuery(Id.valueOf(5000), context);\n UserAwareQueryResult<Application> result = executor.execute(query);\n assertFalse(result.isListResult());\n assertEquals(result.getOnlyResource().getId(), Id.valueOf(5000));\n }", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean isSetServiceId();", "@Attribute(order = 200, validators = { RequiredValueValidator.class })\n\t\tString applicationId();", "@Override\r\n\tpublic void testInvalidId() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.testInvalidId();\r\n\t\t}\r\n\t}", "@Override\n\tpublic boolean supportsEngineIdDiscovery() {\n\t\treturn false;\n\t}", "boolean hasBidid();", "boolean hasAdId();", "boolean hasFromId();", "boolean hasSystemResponse();", "boolean hasPackageid();", "boolean hasPackageid();", "public abstract boolean isAvailable();", "public abstract boolean isAvailable();", "public static java.lang.String[] getAvailableIDs() { throw new RuntimeException(\"Stub!\"); }", "public boolean providesIdentifier() {\n\t\treturn false;\n\t}", "@Override\n public OAuthApplicationInfo mapOAuthApplication(OAuthAppRequest appInfoRequest)\n throws APIManagementException {\n\n //initiate OAuthApplicationInfo\n OAuthApplicationInfo oAuthApplicationInfo = appInfoRequest.getOAuthApplicationInfo();\n\n String consumerKey = oAuthApplicationInfo.getClientId();\n String tokenScope = (String) oAuthApplicationInfo.getParameter(\"tokenScope\");\n String[] tokenScopes = new String[1];\n tokenScopes[0] = tokenScope;\n String clientSecret = (String) oAuthApplicationInfo.getParameter(\"client_secret\");\n oAuthApplicationInfo.setClientSecret(clientSecret);\n //for the first time we set default time period.\n oAuthApplicationInfo.addParameter(ApplicationConstants.VALIDITY_PERIOD,\n getConfigurationParamValue(APIConstants.IDENTITY_OAUTH2_FIELD_VALIDITY_PERIOD));\n\n\n //check whether given consumer key and secret match or not. If it does not match throw an exception.\n org.wso2.carbon.apimgt.api.model.xsd.OAuthApplicationInfo info = null;\n try {\n info = getOAuthApplication(oAuthApplicationInfo.getClientId());\n if (!clientSecret.equals(info.getClientSecret())) {\n throw new APIManagementException(\"The secret key is wrong for the given consumer key \" + consumerKey);\n }\n\n } catch (Exception e) {\n handleException(\"Some thing went wrong while getting OAuth application for given consumer key \" +\n oAuthApplicationInfo.getClientId(), e);\n } \n if (info != null && info.getClientId() == null) {\n return null;\n }\n\n oAuthApplicationInfo.addParameter(\"tokenScope\", tokenScopes);\n oAuthApplicationInfo.setClientName(info.getClientName());\n oAuthApplicationInfo.setClientId(info.getClientId());\n oAuthApplicationInfo.setCallBackURL(info.getCallBackURL());\n oAuthApplicationInfo.setClientSecret(info.getClientSecret());\n oAuthApplicationInfo.setIsSaasApplication(info.getIsSaasApplication());\n\n try {\n JSONObject jsonObject = new JSONObject(info.getJsonString());\n\n if (jsonObject.has(ApplicationConstants.\n OAUTH_REDIRECT_URIS)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_REDIRECT_URIS, jsonObject.get(ApplicationConstants.OAUTH_REDIRECT_URIS));\n }\n\n if (jsonObject.has(ApplicationConstants.OAUTH_CLIENT_NAME)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_CLIENT_NAME, jsonObject.get(ApplicationConstants.OAUTH_CLIENT_NAME));\n }\n\n if (jsonObject.has(ApplicationConstants.OAUTH_CLIENT_GRANT)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_CLIENT_GRANT, jsonObject.get(ApplicationConstants.OAUTH_CLIENT_GRANT));\n }\n } catch (JSONException e) {\n handleException(\"Can not read information from the retrieved OAuth application\", e);\n }\n\n if (log.isDebugEnabled()) {\n log.debug(\"Creating semi-manual application for consumer id : \" + oAuthApplicationInfo.getClientId());\n }\n\n\n return oAuthApplicationInfo;\n }", "boolean hasApplicationProcessInstance();", "boolean hasDataPartner();", "public boolean isExist(int conId) throws AppException;", "public abstract String getResponseID();", "public int getApplicationId() {\r\n\t\tif (applicationId != null) {\r\n\t\t\treturn applicationId;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tJSONObject response = getJSonResponse(Unirest.get(url + NAMED_APPLICATION_API_URL)\r\n\t\t\t\t\t.queryString(\"name\", SeleniumTestsContextManager.getApplicationName()));\r\n\t\t\tapplicationId = response.getInt(\"id\");\r\n\t\t\treturn applicationId;\r\n\t\t} catch (UnirestException e) {\r\n\t\t\tthrow new ConfigurationException(String.format(\"Application %s does not exist in variable server, please create it\", SeleniumTestsContextManager.getApplicationName()));\r\n\t\t}\r\n\t}", "public static String[] getAvailableIDs();", "boolean hasSysID();", "boolean hasPokerId();", "com.clarifai.grpc.api.UserAppIDSet getUserAppId();", "com.clarifai.grpc.api.UserAppIDSet getUserAppId();", "boolean hasSendid();", "boolean hasMessageID();", "boolean hasMessageInfoID();", "boolean hasBidresponse();", "public static String getNeedKillAppId() {\n }", "public static boolean checkOauthIdAvailable(String id) {\n JSONObject obj = new JSONObject();\n try {\n obj.put(\"type\", \"checkOauthIdAvailable\");\n obj.put(\"id\", id);\n outWriter.println(obj);\n return Boolean.parseBoolean(inReader.readLine().toString());\n } catch (Exception exc) {\n //TODO: Raise exceptions through the ExceptionHandler class.\n System.out.println(\"Connection check id available error: \" + exc.toString());\n }\n return false;\n }", "public static boolean isECIDAvailable(Context context) {\n PackageManager pm = context.getPackageManager();\n\n if ( pm == null ) return false;\n\n try {\n pm.getPackageInfo(PROVIDER_NAME, 0);\n } catch (PackageManager.NameNotFoundException e) {\n return false;\n }\n return true;\n }", "public boolean isIdExist(int projectId) throws EmployeeManagementException;", "boolean hasPlayerId();", "boolean hasFriendId();", "public boolean containsApplication_Entitlement(long pk,\n long application_EntitlementPK)\n throws com.liferay.portal.kernel.exception.SystemException;", "public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.Application> getApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);", "public java.lang.String getApplicationId() {\r\n return applicationId;\r\n }", "boolean hasMerchantData();", "boolean hasMerchantData();", "amdocs.iam.pd.pdwebservices.CheckProductEligibilityResponseDocument.CheckProductEligibilityResponse addNewCheckProductEligibilityResponse();", "boolean hasAdvertisingPartner();", "public AppID getIdentifier () ;", "boolean hasListResponse();", "boolean hasBidrequest();", "boolean hasSecId();", "boolean isSetAlgIdExt();", "boolean hasResponseMessage();", "boolean hasQueryId();", "boolean hasQueryId();", "private void doWiperAvailabiltiyCheck()\n {\n // Hardcode for now to make sure WPS is not triggered\n bWiperAvailable = true;\n\n mWifi = (WifiManager)getSystemService(mContext.WIFI_SERVICE);\n\n if ((mWifi == null) || ( (locationManager == null)|| ((locationProvider = locationManager.getProvider(LocationManager.NETWORK_PROVIDER )) == null)))\n {\n Log.e(TAG,\" Disable wiper : No object for WPS / Wifi Scans \");\n bWiperAvailable = false;\n }\n\n\n // call native function to trigger RPC from A11-> A9\n // informing about WPS capability\n //\n native_notify_wiper_available(bWiperAvailable);\n\n if (Config.LOGV)\n {\n Log.v(TAG, \"Wiper: Availability Check \"+ bWiperAvailable);\n }\n }", "@Override\n\tpublic long getApplicationId() {\n\t\treturn _userSync.getApplicationId();\n\t}", "boolean hasDeviceId();", "boolean hasDeviceId();", "boolean isAvailable();", "boolean isAvailable();", "boolean isAvailable();", "boolean isAvailable();", "boolean hasRequestId();", "ApplicationId appId();", "boolean hasUnitId();", "public void setApplicationId(Integer applicationId) {\r\n\t\tthis.applicationId = applicationId;\r\n\t}", "@Override\n public int appEarlyNotResponding(String processName, int pid, String annotation) throws RemoteException {\n Log.i(TAG, String.format(\"Early warning about application %s (pid %d) not responding: %s\", processName, pid, annotation));\n return 0;\n }", "boolean hasExecId();", "boolean hasBusinessCircleId();", "boolean hasRegistrationResponse();", "boolean hasAccountLinkId();" ]
[ "0.61283135", "0.61283135", "0.60048056", "0.59695953", "0.59411746", "0.58912694", "0.5836444", "0.5779368", "0.5760786", "0.5748846", "0.5745783", "0.57049537", "0.57007825", "0.57004905", "0.56490713", "0.56490713", "0.56490713", "0.5618914", "0.55997694", "0.5549633", "0.5544795", "0.5518739", "0.55185324", "0.5506319", "0.5506319", "0.54965734", "0.5483192", "0.5483192", "0.5483192", "0.5483192", "0.5483192", "0.5483192", "0.5483192", "0.5462087", "0.5452735", "0.5446625", "0.544618", "0.54458886", "0.54420483", "0.5383208", "0.53713965", "0.5365683", "0.5365683", "0.5348504", "0.5348504", "0.5324639", "0.52930456", "0.52801406", "0.5277352", "0.52760214", "0.5271674", "0.5251525", "0.52479607", "0.5231277", "0.5231123", "0.52277493", "0.5199638", "0.5199638", "0.5198492", "0.51960194", "0.51948786", "0.51852036", "0.51793706", "0.51722103", "0.515595", "0.51348186", "0.5126525", "0.51190126", "0.51158196", "0.5110894", "0.51053643", "0.5101391", "0.5101391", "0.50943035", "0.50936794", "0.50933635", "0.50891674", "0.50813353", "0.5074834", "0.5074377", "0.50742984", "0.50701034", "0.50701034", "0.50684434", "0.50674766", "0.5066946", "0.5066946", "0.5057939", "0.5057939", "0.5057939", "0.5057939", "0.5055506", "0.5048565", "0.50431055", "0.50387555", "0.5032966", "0.5032517", "0.50253814", "0.50198466", "0.50180495" ]
0.74415475
0
auto generated Axis2 call back method for getUsersOfApplication method override this method for handling normal response from getUsersOfApplication operation
public void receiveResultgetUsersOfApplication( java.lang.String[] result ) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(path=\"/users\")\r\n\tpublic MappingJacksonValue getAllUsers() {\r\n\t\t\r\n\t\tList<AppUser> appUserList = appUserDaoService.getAllUsers();\r\n\t\t\r\n \t\tMappingJacksonValue mapping = new MappingJacksonValue(appUserList);\r\n \t\tmapping.setFilters(this.filters);\r\n\t\t\r\n\t\treturn mapping;\r\n\t}", "@GetMapping(path = \"\")\n\tpublic @ResponseBody Iterable<ApplicationUser> getAllUsers() {\n\t\treturn userService.getUsers();\n\t}", "public abstract void listKnownUsers(Call serviceCall, Response serviceResponse, CallContext messageContext);", "public ArrayList<UserDetail> gettingAllAvailableUsers() throws Exception;", "public List<AppUser> getAllAppUsers() {\n\t\tList<AppUser> appUserList = new ArrayList<>();\n\t\tappUserRepository.findAll()\n\t\t.forEach(r->appUserList.add(r));\n\t\treturn appUserList;\n\t}", "private List<ApplicationUser> getApplicationUsers() {\r\n List<ApplicationUser> appUsers = Lists.newArrayList(\r\n\r\n new ApplicationUser(\r\n STUDENT.getGrantedAuthorities(),\r\n passEncoder.encode(\"notthebees\"),\r\n \"mirajones\",\r\n true,\r\n true,\r\n true,\r\n true\r\n ),\r\n\r\n new ApplicationUser(\r\n ADMIN.getGrantedAuthorities(),\r\n passEncoder.encode(\"password123\"),\r\n \"linda\",\r\n true,\r\n true,\r\n true,\r\n true\r\n ),\r\n\r\n new ApplicationUser(\r\n ADMINTRAINEE.getGrantedAuthorities(),\r\n passEncoder.encode(\"thisisapass\"),\r\n \"tomtrainee\",\r\n true,\r\n true,\r\n true,\r\n true\r\n )\r\n );\r\n\r\n return appUsers;\r\n }", "public List<ApplicationUser> listApplicationUser()\n {\n List<ApplicationUser> result = this.getApplicationUserDao().listApplicationUser();\n\n return result;\n }", "private void listUsers(Request request, Response response) {\r\n\t\tList<UserBean> userList = null;\r\n\r\n\t\ttry {\r\n\t\t\tuserList = userService.findUsers();\r\n\t\t} catch (Exception e) {\r\n\t\t\tresponse.setStatus(Status.SERVER_ERROR_INTERNAL, e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t\tlog.error(e);\r\n\t\t} finally {\r\n\t\t\txmlSerializationService.generateXMLResponse(request, response,\r\n\t\t\t\t\tuserList);\r\n\t\t}\r\n\t}", "public List getAllUsers();", "@GET\r\n public List<EnterpriseUserDTO> getEnterpriseUserList(){\r\n List <EnterpriseUserEntity> enterpriseUsers = enterpriseUsersLogic.obtenerEnterpriseUsers();\r\n return EnterpriseUserDTO.toEnterpriseUserList(enterpriseUsers);\r\n }", "@Override\n public Response getUsers() throws NotFoundException {\n List<TechGalleryUser> userEntities = userDao.findAll();\n // if user list is null, return a not found exception\n if (userEntities == null) {\n throw new NotFoundException(OPERATION_FAILED);\n } else {\n UsersResponse response = new UsersResponse();\n List<UserResponse> innerList = new ArrayList<UserResponse>();\n\n for (int i = 0; i < userEntities.size(); i++) {\n TechGalleryUser user = userEntities.get(i);\n UserResponse userResponseItem = new UserResponse();\n userResponseItem.setId(user.getId());\n userResponseItem.setName(user.getName());\n userResponseItem.setEmail(user.getEmail());\n userResponseItem.setPhoto(user.getPhoto());\n innerList.add(userResponseItem);\n }\n\n response.setUsers(innerList);\n return response;\n }\n }", "public void receiveResultgetUserInfo(\n org.wso2.carbon.appfactory.application.mgt.service.xsd.UserInfoBean[] result\n ) {\n }", "public void getAllUsers() {\n\t\t\n\t}", "@GetMapping(\"/allusers\")\n\t@Secured({CommonConstants.ROLE_EMPLOYEE,CommonConstants.ROLE_ADMIN})\n\tpublic ResponseEntity<List<UserEntity>> fetchUsers(){\n\t\treturn new ResponseEntity<List<UserEntity>>(this.service.findAll(), HttpStatus.OK);\n\t}", "java.util.List<com.heroiclabs.nakama.api.User> \n getUsersList();", "@GET\n\t@Path(\"/allUsers\")\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n\tpublic Map<String, List<User>> getUser() throws JsonGenerationException, JsonMappingException, IOException {\n\t\t\n\t\tMap<String, List<User>> user = userDao.getUser();\n\t\t\n\t\treturn user; \n\t}", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<User> showUsers() throws JsonMappingException, JsonProcessingException {\n\n\t\tString url = \"http://localhost:8081/fundoouser/showall\";\n\t\t\n\t\tResponse userResponse = restTemplate.getForObject(url, Response.class);\n\t\t\n\t\tList<User> userList = (List<User>) userResponse.getData(); \n\t\t\n\t\treturn userList;\n\t}", "@ApiResponses(value = {\n\t\t\t@ApiResponse(responseContainer = \"List\", response = User.class, code = 200, message = \"接口正常\"),\n\t\t\t@ApiResponse(code = 401, message = \"\"), @ApiResponse(code = 405, message = \"权限有问题\"),\n\t\t\t@ApiResponse(code = 500, message = \"后台报错了\") })\n\t@ApiOperation(value = \"listUsers\", httpMethod = \"GET\", notes = \"查找用户列表\")\n\t@RequestMapping(value = \"/user/listUsers\", method = RequestMethod.GET)\n\t@ResponseBody\n\tpublic List<User> listUsers() {\n\t\tList<User> users = new ArrayList<User>();\n\t\tUser user01 = new User(100L, \"name 1\", \"pwd 1\", \"email 1\", \"telephone 1\", \"address 1\");\n\t\tUser user02 = new User(100L, \"name 2\", \"pwd 1\", \"email 1\", \"telephone 1\", \"address 1\");\n\n\t\tif (users.size() == 0) {\n\t\t\tlogger.error(\"没有用户数据\");\n\t\t}\n\t\tusers.add(user01);\n\t\tusers.add(user02);\n\t\treturn users;\n\t}", "@RequestMapping(value = {\"/users/list\"}, method = RequestMethod.GET)\n\tpublic ResponseEntity<List<User>> fetchUsers() {\n\t\t\tSystem.out.println(\"fetching users\");\n\t\t\tList<User> user = userDAO.list(\"APPROVED\");\n\t\t\tSystem.out.println(user);\n\t\t\treturn new ResponseEntity<List<User>>(user, HttpStatus.OK);\n\t\t}", "private void getAllUsers(){\n\t\t\n\t\tSystem.out.println(\"Retrieving Social Graph Data from tibbr...\"); \n\t\tDefaultHttpClient httpClient = new DefaultHttpClient();\n\n\t\tString params = \"?sort=firstNameAsc&fields=name,jive.username,-resources&count=5000&startIndex=0\"; \n\t\tHttpGet getRequest = new HttpGet(urlBase+\"/api/core/v3/people/@all\"+params);\n\t\t\n\n\t\t\t \n\t\tgetRequest.setHeader(\"Authorization\", \"Basic \" + this.auth);\n\t\t\n\t\t\t\n\t\ttry {\n\t\t\tHttpResponse response = httpClient.execute(getRequest);\n\t\t\tString jsonOut = readStream(response.getEntity().getContent());\n\t\t // Remove throwline if present\n\t\t\tjsonOut = removeThrowLine(jsonOut);\n\t\t getAllUserElements(jsonOut);\n\t\t \n\t \n\t\t} catch (ClientProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\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\t\n\t}", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n\t@RequestMapping(value = \"/users\", method = RequestMethod.GET)\n\tpublic List<AppUser> users() {\n\t\treturn appUserRepository.findAll();\n\t}", "public List<User> getUsers(Boolean enabled, Date startDate, Date endDate, int offset, int length) throws UserManagementException;", "@Override\r\n\tpublic List<User> users() {\r\n\t\tList<User> ris = new ArrayList<>();\r\n\t\tList< Map <String,String>> maps = getAll(SELECT_USERS);\r\n\t\tfor (Map<String, String> map : maps) {\r\n\t\t\tris.add(IMappable.fromMap(User.class, map));\r\n\t\t}\r\n\t\treturn ris;\r\n\t}", "@RequestMapping(value = \"/users\", method = RequestMethod.GET)\n public ResponseEntity getUsers() {\n logger.debug(\"HTTP GET /users called\");\n List<User> userList = userService.getUsers(0.00, 4000.00);\n\n return new ResponseEntity(new UserResponse(userList), HttpStatus.OK);\n }", "@RequestMapping(value = \"/user\", method = RequestMethod.GET)\n\t public ResponseEntity<List<Users>> listAllUsers() \n\t {\n\t List<Users> users = userService.findAllUsers();\n\t if(users.isEmpty())\n\t {\n\t return new ResponseEntity<List<Users>>(HttpStatus.NO_CONTENT);//You many decide to return HttpStatus.NOT_FOUND\n\t }\n\t else\n\t {\n\t \treturn new ResponseEntity<List<Users>>(users, HttpStatus.OK);\n\t }\n\t }", "public List<YuserVO> getAllUsers() {\n\t\tList<YuserVO> list = null;\n\t\t\ttry {\n\t\t\t\tlist = userDao.getAllUsers();\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.out.println(\"get users failed ..................................\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\treturn list;\n\t}", "public List getUsers(User user);", "@RequestMapping(value = \"/rest/application\", method = RequestMethod.GET,\n produces = \"application/json\")\n @Timed\n public List<Application> getAllForCurrentUser() {\n log.debug(\"REST request to get all Application\");\n try {\n User currentLoggedInUser = userRepository.getOne(SecurityUtils.getCurrentLogin());\n return applicationRepository.getAllForUser(currentLoggedInUser);\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n return null;\n }", "public List<User> getUsers();", "@Override\n\tpublic List<Epuser> getList() throws Exception {\n\t\treturn epuserMapper.list() ;\n\t}", "public static ArrayList<Userdatas> getAllUsersList() {\n\t\tRequestContent rp = new RequestContent();\n\t\trp.type = RequestType.GET_ALL_USERS;\n\t\tReceiveContent rpp = sendReceive(rp);\n\t\tArrayList<Userdatas> anagList = (ArrayList<Userdatas>) rpp.parameters[0];\n\t\treturn anagList;\n\t}", "@Override\n public Users getUsers() throws UserException {\n Users users = new Users();\n log.debug(\"getUsers\");\n User user = null;\n ResultSet result;\n Connection conn = null;\n PreparedStatement stm = null;\n try {\n conn = provider.getConnection();\n\n stm = conn.prepareStatement(GET_ALL_USERS);\n result = stm.executeQuery();\n\n while (result.next()) {\n user = buildUserFromResult(result);\n log.debug(\"User found {}\", user);\n users.add((DataUser) user);\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n throw new UserException(e.getMessage());\n\n } finally {\n try {\n stm.close();\n conn.close();\n } catch (Exception e) {\n\n e.printStackTrace();\n }\n }\n return users;\n }", "@RequestMapping(value = \"/getAll\", method = RequestMethod.GET)\n public ResponseEntity getAllUsers() {\n List<User> users = userService.getAllUsers();\n if (CollectionUtils.isEmpty(users)) {\n return new ResponseEntity(HttpStatus.NO_CONTENT);\n }\n return new ResponseEntity(users, HttpStatus.OK);\n }", "@Override\n\tpublic ApplicationResponse getUsers(String id) {\n\n\t\tList<UserResponse> responses = new ArrayList<>();\n\t\tif (!StringUtils.isEmpty(id)) {\n\t\t\tOptional<UserEntity> userEntity = repository.findById(id);\n\t\t\tif (userEntity.isPresent()) {\n\t\t\t\tUserEntity user = userEntity.get();\n\t\t\t\tUserResponse response = enitytomodel.apply(user);\n\t\t\t\tresponses.add(response);\n\t\t\t\treturn new ApplicationResponse(true, \"Success\", responses);\n\t\t\t}\n\t\t} else {\n\t\t\tList<UserEntity> list = repository.findAll();\n\t\t\tif (list.size() > 0) {\n\t\t\t\tfor (UserEntity user : list) {\n\t\t\t\t\tUserResponse response = enitytomodel.apply(user);\n\t\t\t\t\tresponses.add(response);\n\t\t\t\t}\n\t\t\t\treturn new ApplicationResponse(true, \"Success\", responses);\n\t\t\t}\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", null);\n\t}", "public User getCurrentUserInformation() throws ServiceProxyException { \n \n //get the authenticated user information (you cannot yet get the information of other users)\n String uri = USER_INFO_RELATIVE_URL +\"/~\";\n \n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Get user information for URI: \"+uri, this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n \n //prepare REST call\n MCSRequest requestObject = new MCSRequest(this.getMbe().getMbeConfiguration());\n requestObject.setConnectionName(this.getMbe().getMbeConfiguration().getMafRestConnectionName());\n requestObject.setHttpMethod(com.oracle.maf.sample.mcs.shared.mafrest.MCSRequest.HttpMethod.GET); \n\n requestObject.setRequestURI(uri);\n \n HashMap<String,String> httpHeaders = new HashMap<String,String>();\n //httpHeaders.put(HeaderConstants.ORACLE_MOBILE_BACKEND_ID,this.getMbe().getMbeConfiguration().getMobileBackendIdentifier());\n \n requestObject.setHttpHeaders(httpHeaders);\n //no payload needed for GET request\n requestObject.setPayload(\"\");\n\n try {\n MCSResponse mcsResponse = MCSRestClient.sendForStringResponse(requestObject);\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Successfully queried user information from MCS. Response Code: \"+mcsResponse.getHttpStatusCode()+\" Response Message: \"+mcsResponse.getMessage(), this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n \n //handle request success\n if (mcsResponse != null && mcsResponse.getHttpStatusCode() == STATUS_RESPONSE_OK) { \n User userObject = new User(); \n JSONObject jsonObject = new JSONObject((String) mcsResponse.getMessage()); \n populateUserObjectFromJsonObject(userObject, jsonObject); \n return userObject; \n } else if (mcsResponse != null){\n //if there is a mcsResponse, we pass it to the client to analyze the problem\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Returning onError because of MCS application error with Status Code: \"+mcsResponse.getHttpStatusCode()\n +\" and message: \"+mcsResponse.getMessage(), this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n throw new ServiceProxyException(mcsResponse.getHttpStatusCode(), (String) mcsResponse.getMessage(), mcsResponse.getHeaders());\n }\n } catch (Exception e) {\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Exception thrown. Class: \"+e.getClass().getSimpleName()+\", Message=\"+e.getMessage(), this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Delegating to exception handler\", this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n handleExceptions(e,uri); \n }\n //should not get here\n return null;\n }", "public static ObservableList<User> getUsers() throws SQLException {\n db.init();\n String q1 = \"{call [sp_retrieveUsers]}\";\n ObservableList<User> userList = FXCollections.observableArrayList();\n ResultSet rs = null;\n try {\n rs = db.callableStatementRs(q1);\n } catch (SQLException ex) {\n System.out.println(\"An error occured: \" + ex);\n }\n\n if (rs != null) {\n try {\n while (rs.next()) {\n User user = new User();\n user.setUserId(Integer.toString(rs.getInt(\"user_id\")));\n user.setFirstName(rs.getString(\"first_name\"));\n user.setLastName(rs.getString(\"last_name\"));\n user.setEmail(rs.getString(\"email\"));\n user.setUsername(rs.getString(\"username\"));\n user.setCrewId(Integer.toString(rs.getInt(\"crewId\")));\n\n userList.add(user);\n }\n } catch (SQLException ex) {\n System.out.println(\"An exception occured: \" + ex);\n log.error(ex.toString());\n }\n }\n return userList;\n }", "public String[] listUsers();", "@RequestMapping(value = \"/user\", method = RequestMethod.GET)\n @PreAuthorize(\"hasRole('ADMIN')\")\n public ResponseEntity<List<UserAccount>> listAllUsers() {\n List<UserAccount> users = userAccountDetailsService.findAllUsers();\n if (users.isEmpty()) {\n return new ResponseEntity<List<UserAccount>>(HttpStatus.NO_CONTENT);//You many decide to return HttpStatus.NOT_FOUND\n }\n return new ResponseEntity<List<UserAccount>>(users, HttpStatus.OK);\n }", "@Override\r\n\tpublic List<UserVO> userList() {\n\t\treturn adao.UserList();\r\n\t}", "public static List<User> getUsersList(){\n\t\tWSResponse response = null;\n\t\tList<User> resultList = new ArrayList<User>();\n\t\ttry{\n\t\tPromise<WSResponse> result = WS.url(Utils.getApiUrl()+Urls.GET_USERS_URL)\n\t\t\t\t\t\t\t\t\t\t.setContentType(Urls.CONTENT_TYPE_JSON)\n\t\t\t\t\t\t\t\t\t\t.get();\n\t\tresponse = result.get(10000);\n\t\tGson gson = new Gson();\n\t\tUser[] users = gson.fromJson(response.getBody(), User[].class);\n\t\tfor(int i=0; i<users.length; i++){\n\t\t\tresultList.add(users[i]);\n\t\t}\n\t\t} catch(Exception exception){\n\t\t\tController.flash(Messages.ERROR, Messages.CANT_LOAD_USERS + exception);\n\t\t}\n\t\treturn resultList;\n\t}", "public void startgetAllRegisteredUsersFacts(\r\n\r\n\r\n final usdl.Usdl_rupCallbackHandler callback)\r\n\r\n throws java.rmi.RemoteException {\r\n\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\r\n _operationClient.getOptions().setAction(\"urn:getAllRegisteredUsersFacts\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n\r\n addPropertyToOperationClient(_operationClient, org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, \"&\");\r\n\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n\r\n //Style is Doc.\r\n usdl.Usdl_rupStub.GetAllRegisteredUsersFacts dummyWrappedType = null;\r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n dummyWrappedType,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://ws.apache.org/axis2\",\r\n \"getAllRegisteredUsersFacts\")));\r\n\r\n // adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message context to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n\r\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\r\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\r\n\r\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\r\n usdl.Usdl_rupStub.GetAllRegisteredUsersFactsResponse.class,\r\n getEnvelopeNamespaces(resultEnv));\r\n callback.receiveResultgetAllRegisteredUsersFacts(\r\n getGetAllRegisteredUsersFactsResponse_return((usdl.Usdl_rupStub.GetAllRegisteredUsersFactsResponse) object));\r\n\r\n } catch (org.apache.axis2.AxisFault e) {\r\n callback.receiveErrorgetAllRegisteredUsersFacts(e);\r\n }\r\n }\r\n\r\n public void onError(java.lang.Exception error) {\r\n if (error instanceof org.apache.axis2.AxisFault) {\r\n org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt != null) {\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), \"getAllRegisteredUsersFacts\"))) {\r\n //make the fault by reflection\r\n try {\r\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), \"getAllRegisteredUsersFacts\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.Exception ex = (java.lang.Exception) exceptionClass.newInstance();\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), \"getAllRegisteredUsersFacts\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt, messageClass, null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex, new java.lang.Object[]{messageObject});\r\n\r\n\r\n callback.receiveErrorgetAllRegisteredUsersFacts(new java.rmi.RemoteException(ex.getMessage(), ex));\r\n } catch (java.lang.ClassCastException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetAllRegisteredUsersFacts(f);\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetAllRegisteredUsersFacts(f);\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetAllRegisteredUsersFacts(f);\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetAllRegisteredUsersFacts(f);\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetAllRegisteredUsersFacts(f);\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetAllRegisteredUsersFacts(f);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetAllRegisteredUsersFacts(f);\r\n }\r\n } else {\r\n callback.receiveErrorgetAllRegisteredUsersFacts(f);\r\n }\r\n } else {\r\n callback.receiveErrorgetAllRegisteredUsersFacts(f);\r\n }\r\n } else {\r\n callback.receiveErrorgetAllRegisteredUsersFacts(error);\r\n }\r\n }\r\n\r\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\r\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\r\n onError(fault);\r\n }\r\n\r\n public void onComplete() {\r\n try {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n } catch (org.apache.axis2.AxisFault axisFault) {\r\n callback.receiveErrorgetAllRegisteredUsersFacts(axisFault);\r\n }\r\n }\r\n });\r\n\r\n\r\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\r\n if (_operations[1].getMessageReceiver() == null && _operationClient.getOptions().isUseSeparateListener()) {\r\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\r\n _operations[1].setMessageReceiver(\r\n _callbackReceiver);\r\n }\r\n\r\n //admit the operation client\r\n _operationClient.execute(false);\r\n\r\n }", "@GetMapping(\"/users\")\n public List<UserDTO> getAllUsers() throws UserProductException {\n LOG.debug(\"in method getUserStatistics\");\n return userService.getAllUsers();\n }", "@GET\n @Path(\"/users\")\n @Produces(\"application/json\")\n public Response getUsersBatch() throws JsonProcessingException {\n LOG.info(\"Batch of users requested.\");\n @NotNull final List<UserEntity> loginUserList = DatabaseAccessLayer.getLoginUserList();\n return Response.ok(new UserBatchHolder(loginUserList).writeJson()).build();\n }", "java.lang.String getXUsersInfo();", "List<User> getUsers();", "List<User> getUsers();", "ResponseEntity<Response> users();", "@GetMapping(\"/users\")\n\tpublic ResponseEntity<List<User>> getUsers() {\n\t\tlog.debug(\"REST request to get all Users\");\n\t\treturn new ResponseEntity<List<User>>(userService.getAll(), HttpStatus.OK);\n\t}", "@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response find(@Context UriInfo ui, @Context HttpHeaders hh, @QueryParam(\"show\") JSONArray arrayShow,\n\t\t\t@QueryParam(\"query\") JSONObject query, @QueryParam(Const.RADIUS) String radiusStr,\n\t\t\t@QueryParam(Const.LAT) String latitudeStr, @QueryParam(Const.LONG) String longitudeStr,\n\t\t\t@QueryParam(Const.PAGE_NUMBER) String pageNumberStr, @QueryParam(Const.PAGE_SIZE) String pageSizeStr,\n\t\t\t@QueryParam(Const.ELEM_COUNT) String pageCount, @QueryParam(Const.ELEM_INDEX) String pageIndex,\n\t\t\t@QueryParam(Const.ORDER_BY) String orderByStr, @QueryParam(Const.ORDER_TYPE) String orderTypeStr) {\n\t\tDate startDate = Utils.getDate();\n\t\tQueryParameters qp = QueryParameters.getQueryParameters(appId, null, query, radiusStr, latitudeStr, longitudeStr, \n\t\t\t\tpageNumberStr, pageSizeStr, orderByStr, orderTypeStr, ModelEnum.users,pageCount,pageIndex);\n\t\tResponse response = null;\n\t\tString sessionToken = Utils.getSessionToken(hh);\n\t\tif (!sessionMid.checkAppForToken(sessionToken, appId)) {\n\t\t\treturn Response.status(Status.UNAUTHORIZED).entity(new Error(\"Action in wrong app: \"+appId)).build();\n\t\t}\n\t\tint code = Utils.treatParameters(ui, hh);\n\t\tif (code == 1) {\n\t\t\ttry {\n\t\t\t\tListResult res = usersMid.find(qp,arrayShow);\n\t\t\t\tresponse = Response.status(Status.OK).entity(res).build();\n\t\t\t\tDate endDate = Utils.getDate();\n\t\t\t\tLog.info(sessionToken, this, \"get users list\", \"Start: \" + Utils.printDate(startDate) + \" - Finish:\" + Utils.printDate(endDate) + \" - Time:\" + (endDate.getTime()-startDate.getTime()));\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.error(\"\", this, \"find\", \"********Find Users info************\", e);\n\t\t\t\tresponse = Response.status(Status.FORBIDDEN).entity(e.getMessage()).build();\n\t\t\t}\n\t\t} else if (code == -2) {\n\t\t\tresponse = Response.status(Status.FORBIDDEN).entity(\"Invalid Session Token.\").build();\n\t\t} else if (code == -1) {\n\t\t\tresponse = Response.status(Status.BAD_REQUEST).entity(\"Error handling the request.\").build();\n\t\t}\n\t\treturn response;\n\t}", "@GET\n @Path(\"userlist\")\n @Produces(MediaType.TEXT_PLAIN)\n public String getUserList(@QueryParam(\"jsonpcallback\") String jsonpcallback) {\n return jsonpcallback + \"(\" + us.getAllUsers().toJSONString() + \")\";\n }", "public List<String> getUserList() throws Exception {\n\t\tString result = null;\n\t\tArrayList<String> userList = new ArrayList<String>();\n\t\tString adminToken = this.loginAAA(this.adminUsername,\n\t\t\t\tthis.adminPassword);\n\t\tHttpURLConnection httpConn;\n\t\thttpConn = this.setHttpConnection(openAMLocation\n\t\t\t\t+ \"/json/users?_queryID=*\");\n\t\tthis.setHttpTokenInCookie(httpConn, adminToken);\n\t\tthis.setGetHttpConnection(httpConn);\n\n\t\tBufferedReader br = this.getHttpInputReader(httpConn);\n\t\tString str;\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\twhile ((str = br.readLine()) != null) {\n\t\t\tsb.append(str);\n\t\t}\n\n\t\tif (httpConn.getResponseCode() == 200) {\n\t\t\tresult = sb.toString();\n\t\t\tJSONObject JsonObj = new JSONObject(result);\n\t\t\tJSONArray userArray;\n\t\t\tif (JsonObj.has(\"result\")) {\n\t\t\t\tuserArray = JsonObj.getJSONArray(\"result\");\n\t\t\t\tif (userArray != null) {\n\n\t\t\t\t\tfor (int i = 0; i < userArray.length(); i++) {\n\t\t\t\t\t\tString userAccount = userArray.getString(i);\n\t\t\t\t\t\t// System.out.println(userAccount);\n\t\t\t\t\t\tif (!userAccount.equalsIgnoreCase(\"quanta\")\n\t\t\t\t\t\t\t\t&& !userAccount.equalsIgnoreCase(\"mcumanager\")\n\t\t\t\t\t\t\t\t&& !userAccount.equalsIgnoreCase(\"rtpproxy1\")\n\t\t\t\t\t\t\t\t&& !userAccount.equalsIgnoreCase(\"rtpproxy2\")\n\t\t\t\t\t\t\t\t&& !userAccount.equalsIgnoreCase(\"amAdmin\")\n\t\t\t\t\t\t\t\t&& !userAccount.equalsIgnoreCase(\"thcadmin\")\n\t\t\t\t\t\t\t\t&& !userAccount.equalsIgnoreCase(\"cmpadmin\")\n\t\t\t\t\t\t\t\t&& !userAccount.equalsIgnoreCase(\"anonymous\"))\n\t\t\t\t\t\t\tuserList.add(userAccount);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tlogger.error(\"read User List fail, response: {}\", sb.toString());\n\t\t}\n\t\tbr.close();\n\t\t\n\t\tif (adminToken != null) {\n\t\t\tthis.logoutAAA(adminToken);\n\t\t}\n\t\treturn userList;\n\n\t}", "com.heroiclabs.nakama.api.User getUsers(int index);", "@ApiOperation(value = \"View a list of available users\", response = Iterable.class)\n\t@ApiResponses(value = { @ApiResponse(code = 200, message = UserApplicationConstants.SUCCESS),\n\t\t\t@ApiResponse(code = 401, message = UserApplicationConstants.NOT_AUTHORIZED),\n\t\t\t@ApiResponse(code = 403, message = UserApplicationConstants.FORBIDDEN),\n\t\t\t@ApiResponse(code = 404, message = UserApplicationConstants.USER_NOT_FOUND) })\n\t@GetMapping(value = \"/\")\n\tpublic ResponseEntity<UserResponseWrapper<List<UserDto>>> getAll() {\n\t\treturn new ResponseEntity<UserResponseWrapper<List<UserDto>>>(\n\t\t\t\tnew UserResponseWrapper<List<UserDto>>(UserResponseStatus.SUCCESS, userService.findAll()),\n\t\t\t\tHttpStatus.OK);\n\t}", "@GetMapping\n public ResponseEntity<List<UserEntity>> getAllUsers() {\n return ResponseEntity.ok(uService.getAllUsers());\n }", "@GetMapping(\"/users\")\n @PreAuthorize(\"hasRole('Admin')\")\n public SuccessResponse<List<UserResponse>> getUsers() {\n if(!connectionService.isReachable()) {\n String exceptionMessage = \"Cannot connect to database.\";\n System.out.println(exceptionMessage);\n throw new DatabaseException(exceptionMessage);\n }\n\n final var users = userService\n .findAllUsers()\n .stream()\n .map(UserResponse::fromUser)\n .collect(Collectors.toList());\n return new SuccessResponse<>(users);\n }", "@RequestMapping(value=\"/user/all\",method=RequestMethod.GET)\n\t\t public @ResponseBody ResponseEntity<List<User>> getAllUsers(){\n\t\t\t List<User> user=(List<User>) userDAO.findAll();\n\t\t\t return new ResponseEntity<List<User>>(user,HttpStatus.OK);\n\t\t }", "@Override\n\tpublic List<ERS_USERS> getAll() {\n\t\treturn null;\n\t}", "abstract ArrayList<User> getAllUsers();", "public GetApplicationListResponse getApplicationList() {\n\n Iterable<ApplicationEntity> result = applicationRepository.findAll();\n\n GetApplicationListResponse response = new GetApplicationListResponse();\n\n for (Iterator<ApplicationEntity> iterator = result.iterator(); iterator.hasNext(); ) {\n ApplicationEntity application = (ApplicationEntity) iterator.next();\n GetApplicationListResponse.Applications app = new GetApplicationListResponse.Applications();\n app.setId(application.getId());\n app.setApplicationName(application.getName());\n response.getApplications().add(app);\n }\n\n return response;\n }", "@Override\r\n\tpublic User getAllUser() {\n\t\tList<User> list=null;\r\n\t\ttry {\r\n\t\t\tString sql = \"SELECT * FROM USER\";\r\n\t\t\treturn qr.query(sql, new BeanHandler<User>(User.class));\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\r\n public List<User> userfindAll() {\n return userMapper.userfindAll();\r\n }", "@Override\n\tpublic List<Object> getAllUsers() {\n\t\tList<Object> usersList = new ArrayList<Object>();\n\t\tList<TestUser> users = dao.getAll();\n\t\tSystem.out.println(dao.exists(5));\n\t\tfor(TestUser user : users){\n\t\t\tMap<String,Object> m = new HashMap<String,Object>();\n\t\t\tm.put(\"id\", user.getId());\n\t\t\tm.put(\"name\", user.getUsername());\n\t\t\tm.put(\"pwd\", user.getPassword());\n\t\t\tJSONObject j = new JSONObject(m);\n\t\t\tusersList.add(j);\n\t\t}\n\t\treturn usersList;\n\t}", "@Override\n public void onResponse(Call<List<User>> call, Response<List<User>> response) {\n\n\n }", "public List<AppUser> getAllUserByRolesAndApp(@Valid AppUser appUser) {\n\t\n\t\tList<Roles> role =(List<Roles>) appUserRepository.getRolesByAppuser();\n\t\tSystem.out.println(\"get roles by user \"+role);\n\t\tSet<Roles> hSet = new HashSet<Roles>(role); \n hSet.addAll(role); \n\t\tappUser.setRoles(hSet);\n\t\tApp app = appUser.getApp();\n\t\tSystem.out.println(\"app and roles \"+app+\"roles ==\"+role);\n\t\treturn appUserRepository.findByAppAndRolesIn(app, role);\n//\t\treturn null;\n\t}", "public List<User> getAllUsers();", "com.rpg.framework.database.Protocol.User getUsers(int index);", "com.rpg.framework.database.Protocol.User getUsers(int index);", "@PreAuthorize(\"hasRole('ROLE_EMPLOYEE')\")\n\t@GetMapping(\"/find\")\n\t@ApiOperation(value = \"Get all users\", notes = \"EMPLOYEE role required for this operation\")\n\tpublic ResponseEntity<List<AppUser>> findUsers(\n\t\t\t@ApiParam(value = \"Token for authentication passed in header\", required = true) @RequestHeader(\"Authorization\") final String token) {\n\t\tList<AppUser> createduser = new ArrayList<>();\n\t\tList<AppUser> findAll = userRepository.findAll();\n\t\tfindAll.forEach(emp -> createduser.add(emp));\n\t\tlog.info(\"All Users ----->{}\", findAll);\n\t\treturn new ResponseEntity<>(createduser, HttpStatus.CREATED);\n\n\t}", "@Override\n public ObservableList<User> getAllUsers() {\n return controller.getAllUsers();\n }", "public void receiveResultgetUserInfoBean(\n org.wso2.carbon.appfactory.application.mgt.service.xsd.UserInfoBean result\n ) {\n }", "com.google.ads.googleads.v6.resources.UserList getUserList();", "public List<User> getUsers()\r\n/* */ {\r\n/* 214 */ return this.users;\r\n/* */ }", "public List<UserDTO> getUsers();", "@Override\n\tpublic int findAllUser()throws Exception {\n\t\treturn userMapper.findAllUser();\n\t}", "@Override\n\tpublic List<User> getUserList() {\n\t\treturn userDao.queryUser();\n\t}", "@GET\n\t//@Compress //can be used only if you want to SELECTIVELY enable compression at the method level. By using the EncodingFilter everything is compressed now. \n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n\tpublic List<User> getUsers(\n\t\t\t@QueryParam(\"orderByInsertionDate\") String orderByInsertionDate,\n\t\t\t@QueryParam(\"numberDaysToLookBack\") Integer numberDaysToLookBack)\n\t\t\tthrows IOException,\tAppException {\n\t\t\n\t\tList<com.vforcore.model.aa.User> allModelUsers = userRepository.findAll();\n\t\t\n\t\tList<User> users = new ArrayList<User>();\n\t\tfor (com.vforcore.model.aa.User mu : allModelUsers) {\n\t\t\tUser user = new User(mu.getId(), mu.getCreated(), mu.getLastName(), mu.getLastName(), mu.getEmail(), mu.getUsername(), mu.isCredentialsNonExpired(), mu.isAccountNonLocked(), mu.isAccountNonExpired(), mu.isEnabled());\n\t\t\tusers.add(user);\n\t\t}\n\t\t\n\t\t\n\t\treturn users;\n\t}", "@Override\n\tpublic ArrayList<user> getAllUser() {\n\t\treturn null;\n\t}", "@SuppressWarnings(\"serial\")\n\tpublic ArrayList<String> getUsers() throws Exception{\n\t\treturn new ArrayList<String>(){{\n\t\t\tUserRegistry ur = UserRegistry.findOrCreate(doc);\n\t\t\tUsers users = Users.findOrCreate(ur);\n\t\t\tfor(User u:User.list(users))\n\t\t\t\tadd(u.getAttribute(\"name\"));\n\t\t}};\n\t}", "@Override\n\tpublic ResponseEntity<String> getAllUser() {\n\t\treturn null;\n\t}", "List<KingdomUser> getUsers();", "public abstract String getUser() throws DataServiceException;", "@Override\n\tpublic List<User> getallUserDetail() {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\t// select all from table user\n\t\tString sql = \"SELECT * FROM user\";\n\t\tList<User> listuser = jdbcTemplate.query(sql, new RowMapper<User>() {\n\n\t\t\t@Override\n\t\t\tpublic User mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\tUser user = new User();\n\t\t\t\t// set parameters\n\t\t\t\tuser.setUserid(rs.getLong(\"user_id\"));\n\t\t\t\tuser.setEmailid(rs.getString(\"emailid\"));\n\t\t\t\tuser.setAppversion(rs.getString(\"appversion\"));\n\t\t\t\tuser.setGcmregistartionkey(rs.getString(\"gcmregistartionkey\"));\n\t\t\t\tuser.setMobileno(rs.getString(\"mobileno\"));\n\t\t\t\tuser.setUuid(rs.getString(\"uuid\"));\n\t\t\t\tuser.setUsername(rs.getString(\"username\"));\n\t\t\t\tuser.setCreateddate(rs.getDate(\"createddate\"));\n\t\t\t\treturn user;\n\t\t\t}\n\n\t\t});\n\n\t\treturn listuser;\n\n\t}", "public usdl.Usdl_rupStub.Facts getAllRegisteredUsersFacts(\r\n\r\n )\r\n\r\n\r\n throws java.rmi.RemoteException\r\n\r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try {\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\r\n _operationClient.getOptions().setAction(\"urn:getAllRegisteredUsersFacts\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n\r\n addPropertyToOperationClient(_operationClient, org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, \"&\");\r\n\r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n usdl.Usdl_rupStub.GetAllRegisteredUsersFacts dummyWrappedType = null;\r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n dummyWrappedType,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://ws.apache.org/axis2\",\r\n \"getAllRegisteredUsersFacts\")));\r\n\r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //admit the operation client\r\n _operationClient.execute(true);\r\n\r\n\r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n\r\n\r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement(),\r\n usdl.Usdl_rupStub.GetAllRegisteredUsersFactsResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n\r\n return getGetAllRegisteredUsersFactsResponse_return((usdl.Usdl_rupStub.GetAllRegisteredUsersFactsResponse) object);\r\n\r\n } catch (org.apache.axis2.AxisFault f) {\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt != null) {\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), \"getAllRegisteredUsersFacts\"))) {\r\n //make the fault by reflection\r\n try {\r\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), \"getAllRegisteredUsersFacts\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.Exception ex = (java.lang.Exception) exceptionClass.newInstance();\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), \"getAllRegisteredUsersFacts\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt, messageClass, null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex, new java.lang.Object[]{messageObject});\r\n\r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n } catch (java.lang.ClassCastException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n } else {\r\n throw f;\r\n }\r\n } else {\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }", "public org.eclipse.stardust.engine.api.query.Users\n getAllUsers(org.eclipse.stardust.engine.api.query.UserQuery query)\n throws org.eclipse.stardust.common.error.WorkflowException;", "@Override\n\tpublic List<Map<String, Object>> getUserList() {\n\t\tList<Map<String, Object>> list = new ArrayList<Map<String,Object>>();\n\t\tString sql = \"select * from tp_users where userType = 2\";\n\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\tlist = joaSimpleDao.queryForList(sql, map);\n\t\treturn list;\n\t}", "@GetMapping(path=\"/all\",produces = MediaType.APPLICATION_JSON_VALUE)\r\n public @ResponseBody\r\n Iterable<UserEntity> getAllUsers() {\n return userService.getAllUsers();\r\n }", "@Override\r\n\tpublic List<User> getAllInvitateCode() {\n\t\treturn userMapper.getAllInvitateCode();\r\n\t}", "public List<User> getUserList()\r\n\t{\r\n\t//\tGet the user list\r\n\t//\r\n\t\treturn identificationService.loadUserList();\r\n\t}", "@RequestMapping(value = \"/users/list\", method = RequestMethod.GET)\n\tpublic @ResponseBody List<UsersDTO> findAllUsers() {\n\t\tlogger.info(\"Return All Users.\");\t\n\t\treturn (List<UsersDTO>) usersService.findAllUsers();\n\t}", "List<E> getAll(IApplicationUser user);", "List<User> getAllUsers();", "List<User> getAllUsers();", "private void getManagedUsers(Request request) {\n // LUA uuid/ManagedBy Id\n String uuid = (String) request.get(JsonKey.ID);\n\n boolean withTokens = Boolean.valueOf((String) request.get(JsonKey.WITH_TOKENS));\n\n Map<String, Object> searchResult =\n userClient.searchManagedUser(\n getActorRef(ActorOperations.USER_SEARCH.getValue()),\n request,\n request.getRequestContext());\n List<Map<String, Object>> userList = (List) searchResult.get(JsonKey.CONTENT);\n\n List<Map<String, Object>> activeUserList = null;\n if (CollectionUtils.isNotEmpty(userList)) {\n activeUserList =\n userList\n .stream()\n .filter(o -> !BooleanUtils.isTrue((Boolean) o.get(JsonKey.IS_DELETED)))\n .collect(Collectors.toList());\n }\n if (withTokens && CollectionUtils.isNotEmpty(activeUserList)) {\n // Fetch encrypted token from admin utils\n Map<String, Object> encryptedTokenList =\n userService.fetchEncryptedToken(uuid, activeUserList, request.getRequestContext());\n // encrypted token for each managedUser in respList\n userService.appendEncryptedToken(\n encryptedTokenList, activeUserList, request.getRequestContext());\n }\n Map<String, Object> responseMap = new HashMap<>();\n if (CollectionUtils.isNotEmpty(activeUserList)) {\n responseMap.put(JsonKey.CONTENT, activeUserList);\n responseMap.put(JsonKey.COUNT, activeUserList.size());\n } else {\n responseMap.put(JsonKey.CONTENT, new ArrayList<>());\n responseMap.put(JsonKey.COUNT, 0);\n }\n Response response = new Response();\n response.put(JsonKey.RESPONSE, responseMap);\n sender().tell(response, self());\n }", "@Override\r\n\tpublic List<?> getAllUser() {\n\t\treturn userQueryRepositoryImpl.getAllUser();\r\n\t}", "@Override\n public BlueUserContainer getUsers() {\n return users;\n }", "@Override\r\n\tpublic List<User> getUserList() throws MyUserException {\n\t\treturn userDao.getUserList();\r\n\t}", "@Override\r\n\tpublic List<User> getUsers() {\n\t\tList<User> userlist=dao.getUsers();\r\n\t\treturn userlist;\r\n\t}", "public void get_userslist(){\n minterface = ApiClient.getAPICLIENT().create(RetroInterface.class);\n Call<Userlists> mgetlist_user = minterface.mgetuser_list();\n mgetlist_user.enqueue(new Callback<Userlists>() {\n @Override\n public void onResponse(Call<Userlists> call, Response<Userlists> response) {\n if(response.isSuccessful()){\n if(response.code()==200){\n for(int i =0;i<response.body().getResults().size();i++){\n Resultss mresult = new Resultss();\n if(response.body().getResults().get(i).getStatus()==1) {\n mresult.setId(response.body().getResults().get(i).getId());\n mresult.setName(response.body().getResults().get(i).getName());\n mresult.setPicture(response.body().getResults().get(i).getPicture());\n Log.d(TAG, \"onResponse: pictures\" + response.body().getResults().get(i).getPicture());\n mresult.setStatus(response.body().getResults().get(i).getStatus());\n mresult.setUsername(response.body().getResults().get(i).getUsername());\n mgetlist.add(mresult);\n }\n\n }\n mpoepolelisadapter = new ListOfPeople_Adpater(mgetlist,getContext());\n mlistview_people.setAdapter(mpoepolelisadapter);\n\n }\n }\n }\n\n @Override\n public void onFailure(Call<Userlists> call, Throwable t) {\n Log.d(TAG, \"onFailure: failed\"+t.toString());\n\n }\n });\n }" ]
[ "0.7020216", "0.68882585", "0.6886287", "0.68119127", "0.6685045", "0.6654859", "0.66070884", "0.65937537", "0.6547971", "0.65090644", "0.6503996", "0.64851165", "0.6468641", "0.6452221", "0.64378893", "0.6436341", "0.640815", "0.63883394", "0.6383617", "0.63767445", "0.6374802", "0.6374361", "0.63585806", "0.63473874", "0.6328776", "0.63259447", "0.6308492", "0.62732124", "0.6272358", "0.62428325", "0.62071466", "0.6203248", "0.61917365", "0.6191004", "0.6183279", "0.6162715", "0.6154955", "0.6137725", "0.61361945", "0.61246103", "0.6112135", "0.6109631", "0.6100375", "0.60961956", "0.6093323", "0.60921526", "0.6091882", "0.6091882", "0.60890883", "0.60870254", "0.60812545", "0.6080912", "0.60763687", "0.60724723", "0.60690725", "0.6066215", "0.6058345", "0.6046777", "0.6044661", "0.60391885", "0.60359675", "0.6034532", "0.6029722", "0.6029007", "0.6023815", "0.6022447", "0.6016333", "0.60155845", "0.6015465", "0.6010082", "0.6004368", "0.59980965", "0.5988783", "0.59854835", "0.5980866", "0.5976321", "0.5975857", "0.5973392", "0.59705794", "0.59681743", "0.5962157", "0.5961367", "0.595704", "0.59469515", "0.59467727", "0.5934021", "0.59333146", "0.592645", "0.592522", "0.59218997", "0.5919383", "0.5918223", "0.59172964", "0.59172964", "0.5910234", "0.5905006", "0.589999", "0.58992314", "0.5896", "0.58913136" ]
0.66262895
6
auto generated Axis2 call back method for removeUserFromApplication method override this method for handling normal response from removeUserFromApplication operation
public void receiveResultremoveUserFromApplication( boolean result ) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeUser(\r\n registry.ClientRegistryStub.RemoveUser removeUser2\r\n\r\n ) throws java.rmi.RemoteException\r\n \r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n\r\n \r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\r\n _operationClient.getOptions().setAction(\"urn:removeUser\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n //Style is Doc.\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n removeUser2,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://registry\",\r\n \"removeUser\")),new javax.xml.namespace.QName(\"http://registry\",\r\n \"removeUser\"));\r\n \r\n\r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n _operationClient.execute(true);\r\n\r\n \r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n \r\n return;\r\n }", "int removeUser(User user);", "public void removeUser(Customer user) {}", "Integer removeUserByUserId(Integer user_id);", "public abstract void removeUserImages(Call serviceCall, Response serviceResponse, CallContext messageContext);", "@Override\n\tpublic void removeUser(int id) {\n\t\t\n\t}", "void onUserRemoved(@UserIdInt int userId);", "public void removeUser(int id) throws AdminPersistenceException {\n CallBackManager.invoke(CallBackManager.ACTION_BEFORE_REMOVE_USER, id, null,\n null);\n \n UserRow user = getUser(id);\n if (user == null)\n return;\n \n SynchroReport.info(\"UserTable.removeUser()\", \"Suppression de \" + user.login\n + \" des groupes dans la base\", null);\n GroupRow[] groups = organization.group.getDirectGroupsOfUser(id);\n for (int i = 0; i < groups.length; i++) {\n organization.group.removeUserFromGroup(id, groups[i].id);\n }\n \n SynchroReport.info(\"UserTable.removeUser()\", \"Suppression de \" + user.login\n + \" des rôles dans la base\", null);\n UserRoleRow[] roles = organization.userRole.getDirectUserRolesOfUser(id);\n for (int i = 0; i < roles.length; i++) {\n organization.userRole.removeUserFromUserRole(id, roles[i].id);\n }\n \n SynchroReport.info(\"UserTable.removeUser()\", \"Suppression de \" + user.login\n + \" en tant que manager d'espace dans la base\", null);\n SpaceUserRoleRow[] spaceRoles = organization.spaceUserRole\n .getDirectSpaceUserRolesOfUser(id);\n for (int i = 0; i < spaceRoles.length; i++) {\n organization.spaceUserRole.removeUserFromSpaceUserRole(id,\n spaceRoles[i].id);\n }\n \n SynchroReport.info(\"UserTable.removeUser()\", \"Delete \" + user.login\n + \" from user favorite space table\", null);\n UserFavoriteSpaceDAO ufsDAO = DAOFactory.getUserFavoriteSpaceDAO();\n if (!ufsDAO.removeUserFavoriteSpace(new UserFavoriteSpaceVO(id, -1))) {\n throw new AdminPersistenceException(\"UserTable.removeUser()\",\n SilverpeasException.ERROR, \"admin.EX_ERR_DELETE_USER\");\n }\n \n SynchroReport.debug(\"UserTable.removeUser()\", \"Suppression de \"\n + user.login + \" (ID=\" + id + \"), requête : \" + DELETE_USER, null);\n \n // updateRelation(DELETE_USER, id);\r\n // Replace the login by a dummy one that must be unique\r\n user.login = \"???REM???\" + Integer.toString(id);\n user.accessLevel = \"R\";\n user.specificId = \"???REM???\" + Integer.toString(id);\n updateRow(UPDATE_USER, user);\n }", "@Override\r\n public void clientRemoveUser(User user) throws RemoteException, SQLException\r\n {\r\n gameListClientModel.clientRemoveUser(user);\r\n }", "public void removeUser(User user) throws UserManagementException;", "@Override\r\n public void userRemovedOnServer(User user) throws RemoteException, SQLException\r\n {\r\n property.firePropertyChange(\"userRemoved\", null, user);\r\n }", "private void removeUser(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tPreferenceDB.removePreferencesUser(Long.parseLong(req.getParameter(Constants.USER_IDENTIFIER)));\n\t\t\tif (UserDB.getnameOfUser(Long.parseLong(req.getParameter(Constants.USER_IDENTIFIER))) == null)\n\t\t\t\tout.print(\"ok\");\n\t\t\tUserDB.removeUser(Long.parseLong(req.getParameter(Constants.USER_IDENTIFIER)));\n\t\t\tout.print(\"ok\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tres.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t}", "public void receiveResultdeleteUser(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.DeleteUserResponse result\r\n ) {\r\n }", "@Override\n public void removeAddedBy(CsldUser toRemove) {\n }", "@Override\n\tpublic ResponseEntity<String> deleteUser() {\n\t\treturn null;\n\t}", "public void deleteAppUser(AppUserTO appUser) {\n\t\ttry {\n\t\t\tthis.jdbcTemplate.update(\"delete from carbon_app_user where id=?\",\n\t\t\t\t\tappUser.getId());\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Error in AppUserDAO: deleteAppUser\", e);\n\t\t}\n\t}", "public boolean removeRegisteredUsersFact(\r\n\r\n java.lang.String args017)\r\n\r\n\r\n throws java.rmi.RemoteException\r\n\r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try {\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());\r\n _operationClient.getOptions().setAction(\"urn:removeRegisteredUsersFact\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n\r\n addPropertyToOperationClient(_operationClient, org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, \"&\");\r\n\r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n usdl.Usdl_rupStub.RemoveRegisteredUsersFact dummyWrappedType = null;\r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n args017,\r\n dummyWrappedType,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://ws.apache.org/axis2\",\r\n \"removeRegisteredUsersFact\")));\r\n\r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //admit the operation client\r\n _operationClient.execute(true);\r\n\r\n\r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n\r\n\r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement(),\r\n usdl.Usdl_rupStub.RemoveRegisteredUsersFactResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n\r\n return getRemoveRegisteredUsersFactResponse_return((usdl.Usdl_rupStub.RemoveRegisteredUsersFactResponse) object);\r\n\r\n } catch (org.apache.axis2.AxisFault f) {\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt != null) {\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), \"removeRegisteredUsersFact\"))) {\r\n //make the fault by reflection\r\n try {\r\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), \"removeRegisteredUsersFact\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.Exception ex = (java.lang.Exception) exceptionClass.newInstance();\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), \"removeRegisteredUsersFact\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt, messageClass, null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex, new java.lang.Object[]{messageObject});\r\n\r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n } catch (java.lang.ClassCastException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n } else {\r\n throw f;\r\n }\r\n } else {\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }", "public void removeUser(String username);", "@RequestMapping(\n value = \"/accounts/{userid}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE\n )\n public ResponseEntity<?> removeUserAccount(\n @PathVariable(name=\"userid\", required=true) String userId) {\n ResponseEntity<?> response = null;\n\n try {\n accountManagementService.removeUser((userId));\n response = new ResponseEntity<>(new Message(Message.Status.SUCCESS, \"Removed\"), HttpStatus.OK);\n } catch (UserAccountNotFoundException e) {\n response = new ResponseEntity<>(new Message(Message.Status.ERROR, e.getMessage()), HttpStatus.NOT_FOUND);\n }\n\n return response;\n }", "@Override\n\tpublic void removeMember(User user) throws Exception {\n\n\t}", "public String deleteUser(){\n\t\tusersservice.delete(usersId);\n\t\treturn \"Success\";\n\t}", "void removeUser(String uid);", "@WebMethod(action = \"http://mglsi.local/soap#supprimerUser\")\n @WebResult(partName = \"return\")\n public String supprimerUser(\n @WebParam(name = \"id\", partName = \"id\")\n int id);", "void removeUser(Long id);", "public void startremoveRegisteredUsersFact(\r\n\r\n java.lang.String args017,\r\n\r\n final usdl.Usdl_rupCallbackHandler callback)\r\n\r\n throws java.rmi.RemoteException {\r\n\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());\r\n _operationClient.getOptions().setAction(\"urn:removeRegisteredUsersFact\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n\r\n addPropertyToOperationClient(_operationClient, org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, \"&\");\r\n\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n\r\n //Style is Doc.\r\n usdl.Usdl_rupStub.RemoveRegisteredUsersFact dummyWrappedType = null;\r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n args017,\r\n dummyWrappedType,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://ws.apache.org/axis2\",\r\n \"removeRegisteredUsersFact\")));\r\n\r\n // adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message context to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n\r\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\r\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\r\n\r\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\r\n usdl.Usdl_rupStub.RemoveRegisteredUsersFactResponse.class,\r\n getEnvelopeNamespaces(resultEnv));\r\n callback.receiveResultremoveRegisteredUsersFact(\r\n getRemoveRegisteredUsersFactResponse_return((usdl.Usdl_rupStub.RemoveRegisteredUsersFactResponse) object));\r\n\r\n } catch (org.apache.axis2.AxisFault e) {\r\n callback.receiveErrorremoveRegisteredUsersFact(e);\r\n }\r\n }\r\n\r\n public void onError(java.lang.Exception error) {\r\n if (error instanceof org.apache.axis2.AxisFault) {\r\n org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt != null) {\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), \"removeRegisteredUsersFact\"))) {\r\n //make the fault by reflection\r\n try {\r\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), \"removeRegisteredUsersFact\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.Exception ex = (java.lang.Exception) exceptionClass.newInstance();\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), \"removeRegisteredUsersFact\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt, messageClass, null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex, new java.lang.Object[]{messageObject});\r\n\r\n\r\n callback.receiveErrorremoveRegisteredUsersFact(new java.rmi.RemoteException(ex.getMessage(), ex));\r\n } catch (java.lang.ClassCastException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveRegisteredUsersFact(f);\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveRegisteredUsersFact(f);\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveRegisteredUsersFact(f);\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveRegisteredUsersFact(f);\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveRegisteredUsersFact(f);\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveRegisteredUsersFact(f);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveRegisteredUsersFact(f);\r\n }\r\n } else {\r\n callback.receiveErrorremoveRegisteredUsersFact(f);\r\n }\r\n } else {\r\n callback.receiveErrorremoveRegisteredUsersFact(f);\r\n }\r\n } else {\r\n callback.receiveErrorremoveRegisteredUsersFact(error);\r\n }\r\n }\r\n\r\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\r\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\r\n onError(fault);\r\n }\r\n\r\n public void onComplete() {\r\n try {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n } catch (org.apache.axis2.AxisFault axisFault) {\r\n callback.receiveErrorremoveRegisteredUsersFact(axisFault);\r\n }\r\n }\r\n });\r\n\r\n\r\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\r\n if (_operations[4].getMessageReceiver() == null && _operationClient.getOptions().isUseSeparateListener()) {\r\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\r\n _operations[4].setMessageReceiver(\r\n _callbackReceiver);\r\n }\r\n\r\n //admit the operation client\r\n _operationClient.execute(false);\r\n\r\n }", "void remove(User user) throws AccessControlException;", "public void deleteUser(ExternalUser userMakingRequest, String userId);", "String removeAccount(String userName);", "@Override\n\tpublic void deleteUser() {\n\t\tLog.d(\"HFModuleManager\", \"deleteUser\");\n\t}", "void remove(User user) throws SQLException;", "public HiveRemoveUserFromInitiative(Context context){\n this.context = context;\n }", "public void removeUser(){\n googleId_ = User.getDeletedUserGoogleID();\n this.addToDB(DBUtility.get().getDb_());\n }", "@Override\n\tpublic String deleteUser(UserKaltiaControlVO userKaltiaControl) {\n\t\treturn null;\n\t}", "public void deleteUser(User userToDelete) throws Exception;", "public String deleteUserDetails() {\n\r\n EntityManager em = CreateEntityManager.getEntityManager();\r\n EntityTransaction etx = em.getTransaction(); \r\n\r\n try { \r\n etx.begin(); \r\n if (golfUserDetails.getUserId() != null) {\r\n em.remove(em.merge(golfUserDetails));\r\n }\r\n etx.commit();\r\n em.close();\r\n } catch (Exception ex) {\r\n System.out.println(\"deleteCourseDetails - remove : Exception : \" + ex.getMessage());\r\n }\r\n \r\n return displayHomePage();\r\n }", "@Override\n\tpublic void deleteUser(user theUser) {\n\t\t\n\t}", "@Override\r\n public void userdelete(Integer[] u_id) {\n userMapper.userdelete(u_id);\r\n }", "@Test\n public void testAuthorizedRemoveUser() throws IOException {\n testUserId2 = createTestUser();\n grantUserManagementRights(testUserId2);\n\n String userId = createTestUser();\n\n Credentials creds = new UsernamePasswordCredentials(testUserId2, \"testPwd\");\n\n String getUrl = String.format(\"%s/system/userManager/user/%s.json\", baseServerUri, userId);\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_OK, null); //make sure the profile request returns some data\n\n String postUrl = String.format(\"%s/system/userManager/user/%s.delete.html\", baseServerUri, userId);\n List<NameValuePair> postParams = new ArrayList<>();\n assertAuthenticatedPostStatus(creds, postUrl, HttpServletResponse.SC_OK, postParams, null);\n\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_NOT_FOUND, null); //make sure the profile request returns some data\n }", "User canceledUserRegistration(User user) throws LogicException;", "public UserItem getUserItemByIdsForRemove(UserItem ui);", "@Override\n public void removeUser(Project project, Developer developer) {\n TracCommand removeUserFromRoleCommand = new TracRemoveUserFromRoleCommand(configuration, developer.getId(), project);\n TracCommand removeUserCommand = new TracRemoveUserCommand(developer, configuration, project);\n try {\n executor.addCommand(removeUserFromRoleCommand);\n executor.addCommand(removeUserCommand);\n success = executor.executeBatch();\n } catch (Exception e) {\n // TODO Auto-generated catch block\n logger.error(e.getMessage(), e);\n }\n }", "@Override\n\tpublic ApplicationResponse deleteUser(String id) {\n\t\tOptional<UserEntity> userEntity = repository.findById(id);\n\t\tif (userEntity.isPresent()) {\n\t\t\trepository.deleteById(id);\n\t\t\treturn new ApplicationResponse(true, \"Success\", null);\n\t\t} else {\n\t\t\tthrow new UserNotFoundException(\"User not found\");\n\t\t}\n\t}", "public void removeByUserId(long userId);", "public void removeByUserId(long userId);", "@Override\n\tpublic void delUser(String[] id) {\n\n\t}", "public void deleteUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk deleteUser\");\r\n\t}", "@Override\n\tpublic Boolean deleteUser(User user) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void deleteUser(User user)\n\t{\n\n\t}", "@DeleteMapping(\"/p-v-app-users/{id}\")\n @Timed\n public ResponseEntity<Void> deletePVAppUser(@PathVariable String id) {\n log.debug(\"REST request to delete PVAppUser : {}\", id);\n pVAppUserRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id)).build();\n }", "public void receiveResultmodifyUser(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.ModifyUserResponse result\r\n ) {\r\n }", "@Override\r\n\tpublic int deleteUser(Users user) {\n\t\treturn 0;\r\n\t}", "ResponseMessage deleteUser(final String username);", "void removePushApplication(LoggedInUser account, PushApplication pushApp);", "@Override\n\tpublic int delUser(Integer id)throws Exception {\n\t\treturn userMapper.delUser(id);\n\t}", "public static void deleteUser() {\n try {\n buildSocket();\n ClientService.sendMessageToServer(connectionToServer, ClientService.deleteUser());\n closeSocket();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public String remove(User u) {\n userRepository.delete(u);\n return \"/user-list.xhml?faces-redirect=true\";\n }", "public void removeFilesFromUser(\r\n registry.ClientRegistryStub.RemoveFilesFromUser removeFilesFromUser6\r\n\r\n ) throws java.rmi.RemoteException\r\n \r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n\r\n \r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());\r\n _operationClient.getOptions().setAction(\"urn:removeFilesFromUser\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n //Style is Doc.\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n removeFilesFromUser6,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://registry\",\r\n \"removeFilesFromUser\")),new javax.xml.namespace.QName(\"http://registry\",\r\n \"removeFilesFromUser\"));\r\n \r\n\r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n _operationClient.execute(true);\r\n\r\n \r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n \r\n return;\r\n }", "public void unregister(boolean userRequest)\n throws OperationFailedException\n {\n this.unregister();\n }", "@Override\n\tpublic String userDelete(Map<String, Object> reqs, Map<String, Object> conds) {\n\t\treturn null;\n\t}", "@RolesAllowed(\"admin\")\n @DELETE\n public Response delete() {\n synchronized (Database.users) {\n User user = Database.users.remove(username);\n if (user == null) {\n return Response.status(404).\n type(\"text/plain\").\n entity(\"User '\" + username + \"' not found\\r\\n\").\n build();\n } else {\n Database.usersUpdated = new Date();\n synchronized (Database.contacts) {\n Database.contacts.remove(username);\n }\n }\n }\n return Response.ok().build();\n }", "@DefaultMessage(\"This action will remove all the permissions for this user and make it inactive. The user itself will not be removed.\")\n @Key(\"systemUser.deleteUserMessage\")\n String systemUser_deleteUserMessage();", "@Override\r\n\tpublic int delete(User user) {\n\t\treturn 0;\r\n\t}", "public void removeUser(String uusername) {\n\n try {\n openConnection();\n\n CallableStatement callStmt = getConnection().prepareCall(\"{ call removeUser(?) }\");\n\n callStmt.setString(1, uusername);\n\n callStmt.execute();\n\n closeAll();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "private ServerCommand processDeleteUserCommand(RoMClient client, DeleteUserClientCommand deleteUserCommand) {\r\n \t\tboolean success = false;\r\n \r\n \t\t// Check if user is admin\r\n \t\tif (client.getIsAdmin()) {\r\n \t\t\t// Check if user is online\r\n \t\t\tRoMClient clientToDelete = this.clients.getClientByUsername(deleteUserCommand.getUserName());\r\n \r\n \t\t\tif (clientToDelete == null) {\r\n \t\t\t\tsuccess = this.dataLayer.deleteUser(deleteUserCommand.getUserName());\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\tServerCommand serverResponseCommand = new DeleteUserServerCommand(success, deleteUserCommand);\r\n \r\n \t\treturn serverResponseCommand;\r\n \t}", "public String deleteUser(){\n\t\ttry{\n\t\t\tnew UtenteDao().deleteUser(utente_target);\n\t\t\treturn \"Utente eliminato con successo!\";\n\t\t}\n\t\tcatch(SQLException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, registry.ClientRegistryStub.RemoveUser param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\r\n throws org.apache.axis2.AxisFault{\r\n\r\n \r\n try{\r\n\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody().addChild(param.getOMElement(registry.ClientRegistryStub.RemoveUser.MY_QNAME,factory));\r\n return emptyEnvelope;\r\n } catch(org.apache.axis2.databinding.ADBException e){\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n \r\n\r\n }", "private static ErrorType handleDelUser(String username) {\n\t\tUser user = VersionControlDb.findUser(username); \n\t\tif (user == null) {\n\t\t\treturn ErrorType.USER_NOT_FOUND;\n\t\t}\n\t\telse {\n\t\t\tVersionControlDb.delUser(user);\n\t\t\treturn ErrorType.SUCCESS;\n\t\t}\n\t}", "public void handleUserRemoved(int removedUserId) {\n synchronized (this.mLock) {\n for (int i = this.mRunAnyRestrictedPackages.size() - 1; i >= 0; i--) {\n if (UserHandle.getUserId(((Integer) this.mRunAnyRestrictedPackages.valueAt(i).first).intValue()) == removedUserId) {\n this.mRunAnyRestrictedPackages.removeAt(i);\n }\n }\n cleanUpArrayForUser(this.mActiveUids, removedUserId);\n cleanUpArrayForUser(this.mForegroundUids, removedUserId);\n this.mExemptedPackages.remove(removedUserId);\n }\n }", "@Override\n public void valueUnbound(HttpSessionBindingEvent arg0) {\n System.out.println(\"在session中移除LoginUser对象(name = \"+ this.getName() +\"), sessionid = \" + arg0.getSession().getId());\n }", "@Test\n public void removeUser() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n assertTrue(userResource.removeUser(\"dummy\"));\n }", "@Override\n\tpublic void deleteUser(String userId) {\n\t\t\n\t}", "public boolean removeUser(User willBeRemovedUser){\n \n try {\n for (int i = 0; i < getUserListInCourse().size(); ++i) {\n if (getUserInUserCourseList(i).getUserName() == willBeRemovedUser.getUserName()) {\n getUserListInCourse().remove(i);\n return true;\n }\n }\n throw new Exception();\n } catch (Exception exception) {\n System.err.println(willBeRemovedUser.getUserName() + \"is not registered!\");\n return false;\n\n }\n }", "@Override\n\tpublic boolean removeUser(int userId){\n\t\ttry {\n\t\t\torderService.removeAllOrderOfAnUser(userId);\n\t\t}catch (BookException e) {\n\t\t\t\n\t\t}\n\t\ttry {\n\t\t\tuserRepository.deleteById(userId);\n\t\t\treturn true;\n\t\t}catch(EmptyResultDataAccessException erdae) {\n\t\t\tthrow new BookException(HttpStatus.NOT_FOUND,\"Invalid User\");\n\t\t}\n\t}", "public void unregisterApplication(String internalAppId){\n\t\tString webServiceUrl = serviceProfile.getServiceApiUrl()+\"/\"+internalAppId;\n\t\tlogger.info(\"unregistering application \"+ webServiceUrl);\n\t\t\n\t\tResponseEntity<Void> response = restTemplate.exchange(webServiceUrl, HttpMethod.DELETE,\n null, Void.class);\n\t\tVoid body = response.getBody();\n\t}", "@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n @RequestMapping(value = \"/user/delete\", method = RequestMethod.POST)\n public ModelAndView processUserDeletion(User user, BindingResult result, Model model)\n throws RosettaUserException {\n logger.debug(\"Processing delete user request.\");\n // Delete the user.\n userManager.deleteUser(user.getEmailAddress());\n // Get the remaining available users and redirect to the list of users view.\n List<User> users = userManager.getUsers();\n model.addAttribute(\"action\", \"listUsers\");\n model.addAttribute(\"users\", users);\n return new ModelAndView(new RedirectView(\"/user\", true));\n }", "@Path(\"{userId}\")\n\t@DELETE\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response deleteUser(@PathParam(Const.USER_ID) String userId,\n\t\t\t@Context UriInfo ui, @Context HttpHeaders hh) {\n\t\tDate startDate = Utils.getDate();\n\t\tResponse response = null;\n\t\tif (!sessionMid.checkAppForToken(Utils.getSessionToken(hh), appId))\n\t\t\treturn Response.status(Status.UNAUTHORIZED).entity(new Error(\"Action in wrong app: \"+appId)).build();\n\t\tint code = Utils.treatParameters(ui, hh);\n\t\tif (code == 1) {\n\t\t\tString sessionToken = Utils.getSessionToken(hh);\n\t\t\tLog.debug(\"\", this, \"deleteUser\", \"*Deleting User(setting as inactive)*\");\n\t\t\tboolean sucess = usersMid.deleteUserInApp(appId, userId);\n\t\t\tif (sucess){\n\t\t\t\tresponse = Response.status(Status.OK).entity(userId).build();\n\t\t\t\tDate endDate = Utils.getDate();\n\t\t\t\tLog.info(sessionToken, this, \"delete user\", \"Start: \" + Utils.printDate(startDate) + \" - Finish:\" + Utils.printDate(endDate) + \" - Time:\" + (endDate.getTime()-startDate.getTime()));\n\t\t\t}\n\t\t\telse\n\t\t\t\tresponse = Response.status(Status.NOT_FOUND).entity(userId).build();\n\t\t} else if (code == -2) {\n\t\t\tresponse = Response.status(Status.FORBIDDEN).entity(\"Invalid Session Token.\").build();\n\t\t} else if (code == -1)\n\t\t\tresponse = Response.status(Status.BAD_REQUEST).entity(\"Error handling the request.\").build();\n\t\treturn response;\n\t}", "@Override\n\tpublic void remove(Long id) throws ApplicationException {\n\n\t}", "void deleteUser(String deleteUserId);", "@Override\r\n\tpublic int deleteUser(Integer[] ids, String userName) {\n\t\treturn 0;\r\n\t}", "@DeleteMapping(\"/deleteUser\")\n public ResponseEntity<String> deleteUser(HttpServletRequest request, HttpServletResponse response) {\n // send an HTTP 403 response if there is currently not a session\n HttpSession session = request.getSession(false);\n if (session == null) {\n return ResponseEntity.status(HttpStatus.FORBIDDEN).body(null);\n }\n\n // get the logged in user from the current session\n String username = (String) session.getAttribute(\"user\");\n User user = userRepo.findByUserName(username);\n\n //remove deleted user from all followers lists\n List<User> followers = userRepo.findUsersFollowingUserByUser(user);\n followers.forEach(user1 -> user1.unfollowUser(user));\n userRepo.save(followers);\n\n // remove the user's sensitive info and mark as deleted\n user.delete();\n\n // save the deletion of the account into the repository\n userRepo.save(user);\n\n // invalidate the user session, since the user no longer exists\n session.invalidate();\n\n // add the clearUser cookie so that it deletes the browsers cookie\n response.addCookie(CookieManager.getClearUserCookie());\n\n // send an HTTP 204 response to signify successful deletion\n return ResponseEntity.status(HttpStatus.NO_CONTENT).body(null);\n }", "public User delete(String user);", "public void removeByU_S(long userId, int status);", "@Override\n\t\tpublic void onUserListDeletion(User arg0, UserList arg1) {\n\t\t\t\n\t\t}", "public registry.ClientRegistryStub.AddUserResponse addUser(\r\n\r\n registry.ClientRegistryStub.AddUser addUser4)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\r\n _operationClient.getOptions().setAction(\"urn:addUser\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n addUser4,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://registry\",\r\n \"addUser\")), new javax.xml.namespace.QName(\"http://registry\",\r\n \"addUser\"));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n registry.ClientRegistryStub.AddUserResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (registry.ClientRegistryStub.AddUserResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addUser\"))){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addUser\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addUser\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }", "@Override\n\tpublic void deleteUser(String id) throws Exception {\n\t\t\n\t}", "void DeleteCompteUser(int id);", "@Override\n\tpublic String delete(User user) {\n\t\treturn null;\n\t}", "@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n\t@RequestMapping(value = \"/users/{id}\", method = RequestMethod.DELETE)\n\tpublic ResponseEntity<AppUser> deleteUser(@PathVariable Long id) {\n\t\tAppUser appUser = appUserRepository.findOne(id);\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\tString loggedUsername = auth.getName();\n\t\tif (appUser == null) {\n\t\t\treturn new ResponseEntity<AppUser>(HttpStatus.NO_CONTENT);\n\t\t} else if (appUser.getUsername().equalsIgnoreCase(loggedUsername)) {\n\t\t\tthrow new RuntimeException(\"You cannot delete your account\");\n\t\t} else {\n\t\t\tappUserRepository.delete(appUser);\n\t\t\treturn new ResponseEntity<AppUser>(appUser, HttpStatus.OK);\n\t\t}\n\n\t}", "private void removePrivilegedUser(ActionEvent actionEvent) {\n if (removeUserMenu.getSelectionModel().getSelectedItem() != null) {\n for (User user : server.getUser()) {\n if (user.getName().equals(removeUserMenu.getSelectionModel().getSelectedItem())) {\n selectedRemoveUser = user;\n }\n }\n // remove selected user from channel as privileged\n channel.withoutPrivilegedUsers(selectedRemoveUser);\n // update removeMenu\n removeUserMenu.getItems().clear();\n for (User user : server.getUser()) {\n if (user.getPrivileged().contains(channel)) {\n removeUserMenu.getItems().add(user.getName());\n }\n }\n // update addMenu\n addUserMenu.getItems().clear();\n for (User user : server.getUser()) {\n if (!user.getPrivileged().contains(channel)) {\n addUserMenu.getItems().add(user.getName());\n }\n }\n channelPrivilegedUserUpdate();\n }\n }", "@Override\n\t\tpublic void onUserListMemberDeletion(User arg0, User arg1, UserList arg2) {\n\t\t\t\n\t\t}", "public void deletetask(UserDto user);", "public void remove() {\n session.removeAttribute(\"remoteUser\");\n session.removeAttribute(\"authCode\");\n setRemoteUser(\"\");\n setAuthCode(AuthSource.DENIED);\n }", "@ApiImplicitParams({\n @ApiImplicitParam(name = \"userId\", value = \"用户 ID\", dataType = \"int\",required = true, paramType = \"query\")\n })\n @GetMapping(value={\"/delAdminUser\"})\n public ResponseBean<Void> delAdminUser(\n @RequestParam(value = \"userId\") Integer userId\n ) {\n return userService.delAdminUser(userId);\n }", "@RequestMapping(\"/deleteAppusers\")\n\tpublic String deleteAppusers(@RequestParam Integer appuseridKey) {\n\t\tAppusers appusers = appusersDAO.findAppusersByPrimaryKey(appuseridKey);\n\t\tappusersService.deleteAppusers(appusers);\n\t\treturn \"forward:/indexAppusers\";\n\t}", "private void removeUser(int index) {\n ensureUserIsMutable();\n user_.remove(index);\n }", "@Override\n\t\tpublic void onUserListUnsubscription(User arg0, User arg1, UserList arg2) {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic boolean delUser(user user) {\n\t\tif(userdao.deleteByPrimaryKey(user.gettUserid())==1){\r\n\t\t\treturn true;}else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t}", "@Override\n public boolean deleteUser(User user) {\n return false;\n }", "public static RemoveUser parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\r\n RemoveUser object =\r\n new RemoveUser();\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 (!\"removeUser\".equals(type)){\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\r\n return (RemoveUser)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\r\n \r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n \r\n\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(\"http://registry\",\"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\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 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\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 }", "@Override\n\tpublic ResponseEntity<String> updateUser() {\n\t\treturn null;\n\t}" ]
[ "0.71787226", "0.6861053", "0.6691883", "0.6670206", "0.66194415", "0.65360093", "0.65017074", "0.64594924", "0.64548105", "0.6450232", "0.64461434", "0.6385713", "0.6299317", "0.62950474", "0.62596", "0.6237515", "0.62166464", "0.62079215", "0.62074155", "0.6200248", "0.61806303", "0.6164871", "0.6140831", "0.61397326", "0.61161375", "0.60902226", "0.60872245", "0.60849285", "0.6079964", "0.6070049", "0.6065464", "0.602566", "0.600439", "0.59980035", "0.5992287", "0.5985836", "0.59850734", "0.5957265", "0.59510666", "0.59455657", "0.5927274", "0.5926499", "0.5923531", "0.5923531", "0.59031", "0.5892087", "0.5882961", "0.5878349", "0.58779645", "0.5869952", "0.58686954", "0.58406", "0.5834864", "0.5832888", "0.58264256", "0.58108807", "0.58037853", "0.58037746", "0.57969165", "0.5796114", "0.57960945", "0.5792566", "0.5788512", "0.5784773", "0.5771377", "0.57686764", "0.5765237", "0.5755631", "0.57439995", "0.5743951", "0.5743156", "0.57401174", "0.5729486", "0.5725379", "0.57110554", "0.57076424", "0.5705862", "0.56885403", "0.5688094", "0.5687091", "0.5685826", "0.56844413", "0.5681675", "0.5679155", "0.5673341", "0.5665375", "0.566425", "0.56641227", "0.56608117", "0.5658033", "0.5656017", "0.56476295", "0.56447285", "0.5643412", "0.56390476", "0.5637561", "0.5637375", "0.5633691", "0.5630306", "0.562985" ]
0.74559563
0
auto generated Axis2 call back method for getUserInfoBean method override this method for handling normal response from getUserInfoBean operation
public void receiveResultgetUserInfoBean( org.wso2.carbon.appfactory.application.mgt.service.xsd.UserInfoBean result ) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void receiveResultgetUserInfo(\n org.wso2.carbon.appfactory.application.mgt.service.xsd.UserInfoBean[] result\n ) {\n }", "public abstract void retrieveUserInfo(Call serviceCall, Response serviceResponse, CallContext messageContext);", "public User getCurrentUserInformation() throws ServiceProxyException { \n \n //get the authenticated user information (you cannot yet get the information of other users)\n String uri = USER_INFO_RELATIVE_URL +\"/~\";\n \n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Get user information for URI: \"+uri, this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n \n //prepare REST call\n MCSRequest requestObject = new MCSRequest(this.getMbe().getMbeConfiguration());\n requestObject.setConnectionName(this.getMbe().getMbeConfiguration().getMafRestConnectionName());\n requestObject.setHttpMethod(com.oracle.maf.sample.mcs.shared.mafrest.MCSRequest.HttpMethod.GET); \n\n requestObject.setRequestURI(uri);\n \n HashMap<String,String> httpHeaders = new HashMap<String,String>();\n //httpHeaders.put(HeaderConstants.ORACLE_MOBILE_BACKEND_ID,this.getMbe().getMbeConfiguration().getMobileBackendIdentifier());\n \n requestObject.setHttpHeaders(httpHeaders);\n //no payload needed for GET request\n requestObject.setPayload(\"\");\n\n try {\n MCSResponse mcsResponse = MCSRestClient.sendForStringResponse(requestObject);\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Successfully queried user information from MCS. Response Code: \"+mcsResponse.getHttpStatusCode()+\" Response Message: \"+mcsResponse.getMessage(), this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n \n //handle request success\n if (mcsResponse != null && mcsResponse.getHttpStatusCode() == STATUS_RESPONSE_OK) { \n User userObject = new User(); \n JSONObject jsonObject = new JSONObject((String) mcsResponse.getMessage()); \n populateUserObjectFromJsonObject(userObject, jsonObject); \n return userObject; \n } else if (mcsResponse != null){\n //if there is a mcsResponse, we pass it to the client to analyze the problem\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Returning onError because of MCS application error with Status Code: \"+mcsResponse.getHttpStatusCode()\n +\" and message: \"+mcsResponse.getMessage(), this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n throw new ServiceProxyException(mcsResponse.getHttpStatusCode(), (String) mcsResponse.getMessage(), mcsResponse.getHeaders());\n }\n } catch (Exception e) {\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Exception thrown. Class: \"+e.getClass().getSimpleName()+\", Message=\"+e.getMessage(), this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Delegating to exception handler\", this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n handleExceptions(e,uri); \n }\n //should not get here\n return null;\n }", "private void getUserInfo() {\n\t}", "private void getUserInfo() {\n httpClient.get(API.LOGIN_GET_USER_INFO, new JsonHttpResponseHandler(){\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n super.onSuccess(statusCode, headers, response);\n callback.onLoginSuccess(response.optJSONObject(Constant.OAUTH_RESPONSE_USER_INFO));\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n super.onFailure(statusCode, headers, responseString, throwable);\n callback.onLoginFailed(throwable.getMessage(), ErrorCode.ERROR_CODE_SERVER_EXCEPTION);\n }\n });\n }", "public abstract void listKnownUsers(Call serviceCall, Response serviceResponse, CallContext messageContext);", "java.lang.String getXUsersInfo();", "@WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/getUserProfile\",\n operationName=\"getUserProfile\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"getUserProfile\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"getUserProfileResponse\")\n @WebResult(name=\"result\")\n @CallbackMethod(exclude=true)\n String getUserProfile(@WebParam(mode = WebParam.Mode.IN, name=\"profileInformation\")\n String profileInformation) throws ServiceException;", "com.lxd.protobuf.msg.result.user.User.User_ getUser();", "@Override\n\tpublic Map<String, Object> getUserInfoDetail(Map<String, Object> reqs) {\n\t\treturn joaSimpleDao.retrieve(\"tp_users\", reqs);\n\t}", "public void getServiceInfo(java.lang.String unregisteredUserEmail, java.lang.String userID, java.lang.String password, com.strikeiron.www.holders.SIWsOutputOfSIWsResultArrayOfServiceInfoRecordHolder getServiceInfoResult, com.strikeiron.www.holders.SISubscriptionInfoHolder SISubscriptionInfo) throws java.rmi.RemoteException;", "public interface OnUserInfoResponse {\n\n public void onSuccess(UserBean bean);\n\n public void onFailed();\n}", "public abstract String getUser() throws DataServiceException;", "public User getResponseUserData()\n {\n return responseUserData;\n }", "@ApiOperation(value = \"get user details web service end point\",\n notes = \"This web service end point returns user details. Use public user id in the path\")\n //Api Implicit Params is for swagger to add authroization as an input field\n @ApiImplicitParams(\n @ApiImplicitParam(name = \"authorization\", value = \"${userController.authorizationHeader.description}\", paramType = \"header\"))\n @GetMapping(produces = {MediaType.APPLICATION_XML_VALUE, MediaType.APPLICATION_JSON_VALUE})\n // to mention from where we allow cross origins\n @CrossOrigin(origins = {\"http://localhost:8080\", \"http://localhost:8081\"})\n public List<UserRest> getUserList(@RequestParam(value = \"page\", defaultValue = \"1\") int page,\n @RequestParam(value = \"limit\", defaultValue = \"10\") int limit) {\n List<UserRest> returnList = new ArrayList<>();\n List<UserDto> userDtoList = userService.getUserList(page, limit);\n UserRest userRest;\n for (UserDto userDto : userDtoList) {\n userRest = new UserRest();\n BeanUtils.copyProperties(userDto, userRest);\n returnList.add(userRest);\n }\n return returnList;\n }", "@Override\n public void onResponse(Call<List<User>> call, Response<List<User>> response) {\n\n\n }", "@Override\n\tpublic SpaceUserVO getUserInfo(String id) throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tprotected Object handleUserinfoEndpointRequest(String requestId) {\n\t\tif(!receivedRefreshRequest) {\n\t\t\t//we don't want the test to be marked as completed if the client sends a userinfo\n\t\t\t//request before sending a refresh request\n\t\t\t//this is not the userinfo request we are looking for\n\t\t\treceivedUserinfoRequest = false;\n\t\t}\n\t\treturn super.handleUserinfoEndpointRequest(requestId);\n\t}", "@Override\n\tpublic UserInfo getUserInfo() {\n\t\tHttpSession session = RpcContext.getHttpSession();\n String auth = (String)session.getAttribute(\"auth\");\n UserInfo ui = null;\n if (auth != null) {\n\t switch(AuthType.valueOf(auth)) {\n\t\t case Database: {\n\t\t String username = (String)session.getAttribute(\"username\");\n\t\t \t\tui = _uim.select(username);\n\t\t \t\tbreak;\n\t\t }\n\t\t case OAuth: {\n\t\t \t\tString googleid = (String)session.getAttribute(\"googleid\");\n\t\t \t\tui = _uim.selectByGoogleId(googleid);\n\t\t \t\tbreak;\n\t\t }\n\t }\n }\n\t\treturn ui;\n\t}", "@Override\r\n\tpublic MemberBean getInfo(String user) throws Exception {\n\t\tSystem.out.println(\"MemberService:getInfo\");\r\n\t\tMemberBean bean = null;\r\n\t\tbean = memberdao.getMember(user);\r\n\t\treturn bean;\r\n\t}", "@Override\n\tpublic UserInfoVO inquireUserInfoService(String userName) {\n\t\tuserInfo.setUserName(userName);\n\t\treturn userInfo.convertToVO();\n\t}", "UserInfo getUserInfo();", "@RequestMapping(value = \"/user/{id}\", method = RequestMethod.GET)\n public ResponseEntity<String> getUserInformationEndpoint(@PathVariable(value = \"id\") String id) {\n Response response = new Response(\"Get User Information\");\n HttpStatus httpStatus = HttpStatus.ACCEPTED;\n\n UserData userData = adminUserService.getUserInfo(id);\n if (userData != null) {\n response.addBodyElement(\"userData\", userData.toJsonObject());\n }\n else {\n response.actionFailed();\n response.setMessage(Messages.Failure.GET_USER_INFO);\n }\n\n return ResponseEntity\n .status(httpStatus)\n .contentType(MediaType.APPLICATION_JSON)\n .body(response.toJson());\n }", "@Override\n public User getUserInfo() {\n return User.AUTHORIZED_USER;\n }", "@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}", "public UserInfo getUserInfo() {\r\n return userInfo;\r\n }", "com.google.protobuf.ByteString\n getXUsersInfoBytes();", "private void retrieveBasicUserInfo() {\n //TODO: Check out dagger here. New retrofit interface here every time currently.\n UserService service = ServiceFactory.getInstagramUserService();\n service.getUser(mAccessToken)\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new Subscriber<Response<MediaResponse<User>>>() {\n @Override\n public void onCompleted() {\n }\n\n @Override\n public void onError(Throwable e) {\n Log.e(MY_USER_FRAGMENT, e.getLocalizedMessage());\n }\n\n @Override\n public void onNext(Response<MediaResponse<User>> response) {\n // Looks for instagram error response.\n ResponseBody errorBody = response.errorBody();\n if (!response.isSuccessful() && errorBody != null) {\n try {\n Converter<ResponseBody, MediaResponse> errorConverter = ServiceFactory.getRetrofit().responseBodyConverter(MediaResponse.class, new Annotation[0]);\n MediaResponse mediaError = errorConverter.convert(response.errorBody());\n Toast.makeText(getContext(), mediaError.getMeta().getErrorMessage(), Toast.LENGTH_LONG).show();\n\n if (mediaError.getMeta().getErrorType().equals(getString(R.string.o_auth_error))) {\n oauthEventFired = true;\n EventBus.getDefault().post(new ExpiredOAuthEvent(true));\n }\n } catch (IOException e) {\n Log.e(MY_USER_FRAGMENT, \"There was a problem parsing the error response.\");\n }\n } else {\n showUserInfo(response.body().getData());\n }\n }\n });\n }", "public UserInfo getUserInfo() {\n return userInfo;\n }", "public interface UserInfoView {\n\n void onGetUserData(List<UserBean> followings);\n\n\n\n}", "@Override\n public ModelAndView getUserInfo(String userName, @PathVariable String email,\n HttpServletRequest req, HttpServletResponse res, ModelMap model) {\n return null;\n }", "@Override\n\tpublic List<UserInfo> getUserInfos(int userright, String sex, int id) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic UserInfo getUserInfo(int id) {\n\t\treturn userInfo;\r\n\t}", "@Override\n\tpublic Map<String, Object> getUserAccountInfo(String userId) {\n\t\tString sql = \"select userId,userName,realName where userId=:userId\";\n\t\tMap<String, Object> params = new HashMap<String, Object>();\n\t\tparams.put(\"userId\", userId);\n\t\treturn joaSimpleDao.queryForList(sql, params).get(0);\n\t}", "private void getUserDetailApi() {\n RetrofitService.getOtpData(new Dialog(mContext), retrofitApiClient.getUserDetail(strUserId), new WebResponse() {\n @Override\n public void onResponseSuccess(Response<?> result) {\n UserDataMainModal mainModal = (UserDataMainModal) result.body();\n if (mainModal != null) {\n AppPreference.setBooleanPreference(mContext, Constant.IS_PROFILE_UPDATE, true);\n Gson gson = new GsonBuilder().setLenient().create();\n String data = gson.toJson(mainModal);\n AppPreference.setStringPreference(mContext, Constant.USER_DATA, data);\n User.setUser(mainModal);\n }\n }\n\n @Override\n public void onResponseFailed(String error) {\n Alerts.show(mContext, error);\n }\n });\n }", "public String getUserProfileAction()throws Exception{\n\t\tMap<String, Object> response=null;\n\t\tString responseStr=\"\";\n\t\tString userName=getSession().get(\"username\").toString();\n\t\tresponse = getService().getUserMgmtService().getUserProfile(userName);\n\t\tresponseStr=response.get(\"username\").toString()+\"|\"+response.get(\"firstname\").toString()+\"|\"+response.get(\"lastname\").toString()+\"|\"+response.get(\"emailid\")+\"|\"+response.get(\"role\");\n\t\tgetAuthBean().setResponse(responseStr);\n\t\tgetSession().putAll(response);\n\t\tinputStream = new StringBufferInputStream(responseStr);\n\t\tinputStream.close();\n\t\treturn SUCCESS;\n\t}", "User getUserInfo(String userId) {\r\n\r\n // build headers\r\n HttpHeaders headers = new HttpHeaders();\r\n headers.setContentType(MediaType.APPLICATION_FORM_URLENCODED);\r\n headers.set(\"Authorization\", \"Bearer \" + accessToken);\r\n HttpEntity entity = new HttpEntity(headers);\r\n\r\n // build GET URL\r\n UriComponentsBuilder builder = UriComponentsBuilder\r\n .fromUriString(\"https://slack.com/api/users.info\")\r\n .queryParam(\"token\", accessToken)\r\n .queryParam(\"user\", userId);\r\n\r\n // Send request\r\n RestTemplate rt = new RestTemplate();\r\n ResponseEntity<String> response = rt.exchange(builder.toUriString(), HttpMethod.GET, entity, String.class);\r\n\r\n // good response\r\n if(response.toString().contains(\"\\\"ok\\\":true\")) {\r\n Gson gson = new Gson();\r\n UserResponse ur = gson.fromJson(response.getBody(), UserResponse.class);\r\n return ur.user;\r\n }\r\n\r\n // bad response\r\n return null;\r\n }", "private void getUserData() {\n TwitterApiClient twitterApiClient = TwitterCore.getInstance().getApiClient();\n AccountService statusesService = twitterApiClient.getAccountService();\n Call<User> call = statusesService.verifyCredentials(true, true, true);\n call.enqueue(new Callback<User>() {\n @Override\n public void success(Result<User> userResult) {\n //Do something with result\n\n //parse the response\n String name = userResult.data.name;\n String email = userResult.data.email;\n String description = userResult.data.description;\n String pictureUrl = userResult.data.profileImageUrl;\n String bannerUrl = userResult.data.profileBannerUrl;\n String language = userResult.data.lang;\n long id = userResult.data.id;\n\n }\n\n public void failure(TwitterException exception) {\n //Do something on failure\n }\n });\n }", "public String getUserinfo() {\n return m_userinfo;\n }", "private void getUserInfo(boolean checkAccessTokenResult, final AccessToken accessToken) {\n if (!checkAccessTokenResult) {\n //access token is not valid refresh\n RequestParams params = new RequestParams(WeChatManager.getRefreshAccessTokenUrl(sURLRefreshAccessToken, accessToken));\n x.http().request(HttpMethod.GET, params, new Callback.CommonCallback<String>() {\n @Override\n public void onSuccess(String result) {\n parseRefreshAccessTokenResult(result);\n }\n\n @Override\n public void onError(Throwable ex, boolean isOnCallback) {\n }\n\n @Override\n public void onCancelled(CancelledException cex) {\n }\n\n @Override\n public void onFinished() {\n }\n });\n }\n\n showLoading();\n //get userinfo\n RequestParams requestParams = new RequestParams(WeChatManager.getUserInfoUrl(sURLUserInfo, accessToken));\n x.http().request(HttpMethod.GET, requestParams, new Callback.CommonCallback<String>() {\n @Override\n public void onSuccess(String result) {\n userinfo = new Gson().fromJson(result, UserInfoWX.class);\n\n String device_id= JPushInterface.getRegistrationID(LoginActivity.this);\n RequestParams entity = new RequestParams(Configurations.URL_THIRD_PARTY_LOGIN);\n entity.addParameter(Configurations.OPEN_ID, userinfo.getUnionid());\n entity.addParameter(Configurations.NICKNAME, userinfo.getNickname());\n entity.addParameter(Configurations.AVATOR, userinfo.getHeadimgurl());\n entity.addParameter(\"from\", \"wx\");\n entity.addParameter(Configurations.REG_ID,device_id);\n\n\n long timeStamp= TimeUtil.getCurrentTime();\n entity.addParameter(Configurations.TIMESTAMP, String.valueOf(timeStamp));\n entity.addParameter(Configurations.DEVICE_ID,device_id );\n\n Map<String,String> map=new TreeMap<>();\n map.put(Configurations.OPEN_ID, userinfo.getUnionid());\n map.put(Configurations.NICKNAME, userinfo.getNickname());\n map.put(Configurations.AVATOR, userinfo.getHeadimgurl());\n map.put(\"from\", \"wx\");\n map.put(Configurations.REG_ID,device_id);\n entity.addParameter(Configurations.SIGN, SignUtils.createSignString(device_id,timeStamp,map));\n\n\n x.http().request(HttpMethod.POST, entity, new CommonCallback<String>() {\n @Override\n public void onSuccess(String result) {\n LogUtil.d(TAG, result);\n hideLoading();\n\n try {\n JSONObject object = new JSONObject(result);\n if (object.getInt(Configurations.STATUSCODE) == 200) {\n User user = JSON.parseObject(object.getJSONObject(\"results\").getString(\"user\"), User.class);\n SharedPrefUtil.loginSuccess(SharedPrefUtil.LOGIN_VIA_WECHAT);\n UserUtils.saveUserInfo(user);\n\n MobclickAgent.onProfileSignIn(\"WeChat\", user.getNickname());\n finish();\n } else {\n ToastUtil.showShort(LoginActivity.this, object.getString(Configurations.STATUSMSG));\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }\n\n @Override\n public void onError(Throwable ex, boolean isOnCallback) {\n hideLoading();\n }\n\n @Override\n public void onCancelled(CancelledException cex) {\n }\n\n @Override\n public void onFinished() {\n }\n });\n\n\n }\n\n @Override\n public void onError(Throwable ex, boolean isOnCallback) {\n }\n\n @Override\n public void onCancelled(CancelledException cex) {\n }\n\n @Override\n public void onFinished() {\n }\n });\n }", "UserDisplayDto getUserInfo(String login);", "private org.json.JSONObject getUserInfo(String url, String token) throws Exception {\n log.info(\"Entering getUserInfo\");\n RestTemplate restTemplateWithInterceptors = new RestTemplate();\n HttpStatus status = null;\n org.json.JSONObject body = null;\n String message = null;\n\n if(!token.substring(0, 7).equals(\"Bearer \")) {\n token = \"Bearer \" + token;\n }\n log.info(\"Just added Bearer as token prefix\");\n\n try {\n List<ClientHttpRequestInterceptor> interceptors = restTemplateWithInterceptors.getInterceptors();\n if (CollectionUtils.isEmpty(interceptors)) {\n interceptors = new ArrayList<>();\n }\n\n interceptors.add(new XCIJVUserInfoHeaderInjectorInterceptor(token));\n restTemplateWithInterceptors.setInterceptors(interceptors);\n log.info(\"Just set interceptor to list\");\n HttpHeaders headers = new HttpHeaders();\n HttpEntity<?> entityUserInfo = new HttpEntity<>(headers);\n log.info(\"HttpEntity<?> entityUserInfo: {}\", entityUserInfo);\n log.info(\"getUserInfo: url: {}\", url);\n HttpEntity<String> response = restTemplateWithInterceptors.exchange(url, HttpMethod.GET, entityUserInfo, String.class);\n log.info(\"Just did carrier userinfo REST call using userinfo_endpoint\");\n body = new org.json.JSONObject(response.getBody());\n\n } catch (RestClientResponseException e) {\n\n if (e.getRawStatusCode() == 401) {\n status = HttpStatus.UNAUTHORIZED;\n message = \"Unauthorized token\";\n log.error(\"HTTP 401: \" + message);\n throw new OauthException(message, status);\n }\n\n if (e.getResponseBodyAsByteArray().length > 0) {\n message = new String(e.getResponseBodyAsByteArray());\n } else {\n message = e.getMessage();\n }\n status = HttpStatus.BAD_REQUEST;\n log.error(\"HTTP 400: \" + message);\n throw new OauthException(message, status);\n\n } catch (Exception e) {\n message = \"Error in calling Bank app end point\" + e.getMessage();\n status = HttpStatus.INTERNAL_SERVER_ERROR;\n log.error(\"HTTP 500: \" + message);\n throw new OauthException(message, status);\n }\n log.info(\"Leaving getUserInfo\");\n\n return body;\n }", "User getUserInformation(Long user_id);", "void getUser(String uid, final UserResult result);", "com.lxd.protobuf.msg.result.user.User.User_OrBuilder getUserOrBuilder();", "@PostMapping\n public GenericResponse getUserInfos(@Valid @RequestBody FbDownloadRq fbDownloadRq) throws UnsupportedEncodingException {\n String userId = userService.getUserInfo(fbDownloadRq.fbId, fbDownloadRq.accessToken);\n return new GenericResponse(HttpStatus.OK, \"All good. User ID: \" + userId);\n }", "@Override\r\npublic UserDetailsResponseDto getUserDetailBasedOnUid(List<String> userId) {\n\treturn null;\r\n}", "@Override\n public void success(Result<User> userResult) {\n String name = userResult.data.name;\n String email = userResult.data.email;\n String description = userResult.data.description;\n String pictureUrl = userResult.data.profileImageUrl;\n String bannerUrl = userResult.data.profileBannerUrl;\n String language = userResult.data.lang;\n long id = userResult.data.id;\n\n }", "public void populateUserInformation()\n {\n ViewInformationUser viewInformationUser = new ViewFXInformationUser();\n\n viewInformationUser.buildViewProfileInformation(clientToRegisteredClient((Client) user), nameLabel, surnameLabel, phoneLabel, emailLabel, addressVbox);\n }", "@Override\n\tpublic List<UserManageEntity> getUserInfo(Map<String, Object> param) {\n\t\treturn userManageDao.getUserInfo(param);\n\t}", "public interface ShowCurUserInfo {\n\n void showUserInformation(MyUserBean userBean);\n\n}", "@WebService(name = \"GetUser\", targetNamespace = \"http://Eshan/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface GetUser {\n\n\n /**\n * \n * @param userID\n * @return\n * returns java.util.List<java.lang.Object>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUser\", targetNamespace = \"http://Eshan/\", className = \"eshan.GetUser_Type\")\n @ResponseWrapper(localName = \"getUserResponse\", targetNamespace = \"http://Eshan/\", className = \"eshan.GetUserResponse\")\n @Action(input = \"http://Eshan/GetUser/getUserRequest\", output = \"http://Eshan/GetUser/getUserResponse\")\n public List<Object> getUser(\n @WebParam(name = \"UserID\", targetNamespace = \"\")\n int userID);\n\n}", "public User updateCurrentUserInformation( HashMap<String,String> userPropertiesAndValues) throws ServiceProxyException, IllegalArgumentException{\n\n if(userPropertiesAndValues == null){\n throw new IllegalArgumentException(\"MCSCallback object and/or userPropertiesAndValues cannot be null in call to updateCurrentUserInformation method in UserInfo\");\n }\n \n MCSResponse mcsResponse = null;\n \n //Open JSON object\n StringBuffer jsonString = new StringBuffer(\"{\");\n Set keys = userPropertiesAndValues.entrySet();\n for (Object key : keys){\n \n //add delimiting comma if String buffer is not empty\n if(jsonString.length() >1){\n jsonString.append(\",\");\n }\n \n Object propertyValue = userPropertiesAndValues.get((String) key);\n //add \"key\":\"value\" or \"key\":object\n jsonString.append(\"\\\"\"+key+\"\\\":\"+(propertyValue instanceof String? \"\\\"\"+propertyValue+\"\\\"\" : propertyValue)); \n }\n \n //close JSON object\n jsonString.append(\"}\");\n \n String uri = USER_INFO_RELATIVE_URL +\"/\"+this.getMbe().getMbeConfiguration().getAuthenticatedUsername();\n \n \n //prepare REST call\n MCSRequest requestObject = new MCSRequest(this.getMbe().getMbeConfiguration());\n requestObject.setConnectionName(this.getMbe().getMbeConfiguration().getMafRestConnectionName());\n \n requestObject.setHttpMethod(com.oracle.maf.sample.mcs.shared.mafrest.MCSRequest.HttpMethod.PUT); \n\n requestObject.setRequestURI(uri);\n \n HashMap<String,String> httpHeaders = new HashMap<String,String>();\n //httpHeaders.put(HeaderConstants.ORACLE_MOBILE_BACKEND_ID,this.getMbe().getMbeConfiguration().getMobileBackendIdentifier()); \n requestObject.setHttpHeaders(httpHeaders);\n \n requestObject.setPayload(jsonString.toString());\n\n try { \n mcsResponse = MCSRestClient.sendForStringResponse(requestObject);\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Success! Response Code: \"+mcsResponse.getHttpStatusCode()+\". message: \"+mcsResponse.getMessage(), this.getClass().getSimpleName(), \"updateCurrentUserInformation\");\n if (mcsResponse != null && mcsResponse.getHttpStatusCode() == STATUS_UPDATE_OK) {\n \n User userObject = new User(); \n JSONObject jsonObject = new JSONObject((String) mcsResponse.getMessage()); \n populateUserObjectFromJsonObject(userObject, jsonObject); \n return userObject; \n \n } else {\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"MCS application error reported back to MCS: \"+mcsResponse.getHttpStatusCode()+\". message: \"+mcsResponse.getMessage(), this.getClass().getSimpleName(), \"updateCurrentUserInformation\");\n throw new ServiceProxyException(mcsResponse.getHttpStatusCode(), (String) mcsResponse.getMessage(), mcsResponse.getHeaders());\n } \n }\n catch(Exception e){\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Exception thrown. Class: \"+e.getClass().getSimpleName()+\", Message=\"+e.getMessage(), this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Delegating to exception handler\", this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n this.handleExceptions(e, uri);\n }\n //we should not get here\n return null;\n }", "@Override\n\tpublic List<UserInfo> getUserInfos() {\n\t\treturn null;\n\t}", "public JsonNode callInfoService(User user, String service);", "@Override\n public ResponseResult transformResponseData(\n JsonElement responseData)\n throws ServiceResponseTransformException\n {\n final ResponseResult result =\n checkResultFromAuthService(responseData);\n LogError(\"getUserWithCompletion\", result);\n\n final JsonElement response =\n getResponseFromJson(responseData);\n if (response != null && response.isJsonObject())\n {\n final JsonObject responseJson =\n response.getAsJsonObject();\n final JsonObject image =\n getJsonObjectFromJson(responseJson, \"image\");\n\n final JsonObject locations =\n getJsonObjectFromJson(image, \"locations\");\n\n String uri = getStringFromJson(image, URI);\n String url = getStringFromJson(locations, \"SIZE_60x60\");\n\n String completeUrl = String.format(\"https:%s\", url);\n Bitmap avatar = null;\n\n if (completeUrl != null)\n {\n try\n {\n final URL avatarUrl = new URL(completeUrl);\n if(!avatarUrl.toString().equalsIgnoreCase(\"https:null\"))\n {\n avatar =\n BitmapFactory.decodeStream(avatarUrl\n .openConnection().getInputStream());\n }\n }\n catch (final MalformedURLException me)\n {\n// Crashlytics.logException(me);\n }\n catch (final UnknownHostException ue)\n {\n// Crashlytics.logException(ue);\n }\n catch (final IOException ie)\n {\n// Crashlytics.logException(ie);\n }\n }\n\n final HashMap<String, Object> parameters =\n new HashMap<String, Object>(3);\n parameters.put(URL, completeUrl);\n parameters.put(URI, uri);\n parameters.put(AVATAR, avatar);\n\n result.parameters = parameters;\n }\n return result;\n }", "public User getUserData();", "@Override\n\tpublic ResponseEntity<String> getUser() {\n\t\treturn null;\n\t}", "public getUserInfoByUserName_result(getUserInfoByUserName_result other) {\n if (other.isSetSuccess()) {\n this.success = new UserInfo(other.success);\n }\n }", "@Override\n public User getUserInfo(String userName) {\n Map params = new HashMap<String, Object>();\n params.put(CommonSqlProvider.PARAM_WHERE_PART, User.QUERY_WHERE_USERNAME);\n params.put(User.PARAM_USERNAME, userName);\n return getRepository().getEntity(User.class, params);\n }", "@Override\n public void onResponse(Call<UserProfileResponse> call, retrofit2.Response<UserProfileResponse> response) {\n BOAPI.gUserInfo = response.body().getResults().get(0).getUserinfo().get(0);\n BOAPI.gUserPreferences = response.body().getResults().get(0).getPreferences();\n BOAPI.gUserStats = response.body().getResults().get(0).getStats();\n BOAPI.gUserVehicles = response.body().getResults().get(0).getVehicles();\n BOAPI.gUserNotifications = response.body().getResults().get(0).getNotifications();\n\n // Set up basic information on the view\n setUpUserProfile();\n //set up Vehicles\n vehiclePager.setAdapter(new VehicleAdapter(Main.this));\n //Show alerts icon if we have notifiactions\n showAlert = !BOAPI.gUserNotifications.isEmpty();\n //close spinner\n SpinnerAlert.dismiss(Main.this);\n\n }", "@GET\n\t@Path(\"/allUsers\")\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n\tpublic Map<String, List<User>> getUser() throws JsonGenerationException, JsonMappingException, IOException {\n\t\t\n\t\tMap<String, List<User>> user = userDao.getUser();\n\t\t\n\t\treturn user; \n\t}", "@Override\n\tpublic UserInfo getUser(String sessionId) throws HFModuleException {\n\t\tLog.d(\"HFModuleManager\", \"getUser\");\n//\t\tif (!isCloudChannelLive()) {\n//\t\t\tthrow new HFModuleException(HFModuleException.ERR_USER_OFFLINE,\n//\t\t\t\t\t\"User is not online\");\n//\t\t}\n\t\t\n\t\tUserGetRequest request = new UserGetRequest();\n\t\trequest.setSessionId(sessionId);\n\t\ttry {\n\t\t\tUserResponse response = cloudSecurityManager.getUser(request);\n\t\t\tUserPayload payload = response.getPayload();\n\t\t\t\n//\t\t\tUserInfo userInfo = new UserInfo();\n//\t\t\tuserInfo.setAccessKey(HFConfigration.accessKey);\n//\t\t\tuserInfo.setCellPhone(payload.getCellPhone());\n//\t\t\tuserInfo.setCreateTime(payload.getCreateTime());\n//\t\t\tuserInfo.setDisplayName(payload.getDisplayName());\n//\t\t\tuserInfo.setEmail(payload.getEmail());\n//\t\t\tuserInfo.setIdNumber(payload.getIdNumber());\n//\t\t\tuserInfo.setUserName(payload.getUserName());\n\t\t\t\n\t\t\tUserInfo userInfo = userInfoDao.getUserInfoByToken(sessionId);\n\t\t\tif (userInfo == null) {\n\t\t\t\tuserInfo = new UserInfo();\n\t\t\t}\n\t\t\tuserInfo.setAccessKey(HFConfigration.accessKey);\n\t\t\tuserInfo.setCellPhone(payload.getCellPhone());\n\t\t\tuserInfo.setCreateTime(payload.getCreateTime());\n\t\t\tuserInfo.setDisplayName(payload.getDisplayName());\n\t\t\tuserInfo.setEmail(payload.getEmail());\n\t\t\tuserInfo.setIdNumber(payload.getIdNumber());\n\t\t\tuserInfo.setUserName(payload.getUserName());\n\t\t\t\n\t\t\tuserInfoDao.saveUserInfo(userInfo);\n\t\t\t\n\t\t\treturn userInfo;\n\t\t} catch (CloudException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t\tthrow new HFModuleException(e1.getErrorCode(), e1.getMessage());\n\t\t}\n\t\t\n//\t\tString req = \"{'CID':10231,'SID':'#SID#'} \";\n//\t\treq = req.replaceAll(\"#SID#\", getsid());\n//\t\tString rsp = HttpProxy.reqByHttpPost(req);\n//\t\tJSONObject json;\n//\t\ttry {\n//\t\t\tjson = new JSONObject(rsp);\n//\t\t\tif (json.getInt(\"RC\") == 1) {\n//\n//\t\t\t\tJSONObject joRsp = json.getJSONObject(\"PL\");\n//\t\t\t\tUserInfo result = new UserInfo();\n//\n//\t\t\t\tif (!joRsp.isNull(\"id\"))\n//\t\t\t\t\tresult.setId(joRsp.getString(\"id\"));\n//\t\t\t\tif (!joRsp.isNull(\"displayName\")) {\n//\t\t\t\t\tresult.setDisplayName(joRsp.getString(\"displayName\"));\n//\t\t\t\t\tHFLocalSaveHelper.getInstence().getMainUserInfoHelper()\n//\t\t\t\t\t\t\t.setUserNickName(result.getDisplayName());\n//\t\t\t\t\tHFConfigration.cloudUserNickName = result.getDisplayName();\n//\t\t\t\t}\n//\t\t\t\tif (!joRsp.isNull(\"userName\")) {\n//\t\t\t\t\tresult.setUserName(joRsp.getString(\"userName\"));\n//\t\t\t\t\tHFLocalSaveHelper.getInstence().getMainUserInfoHelper()\n//\t\t\t\t\t\t\t.setUserName(result.getUserName());\n//\t\t\t\t\tHFConfigration.cloudUserName = result.getUserName();\n//\t\t\t\t}\n//\t\t\t\tif (!joRsp.isNull(\"cellPhone\")) {\n//\t\t\t\t\tresult.setCellPhone(joRsp.getString(\"cellPhone\"));\n//\t\t\t\t\tHFLocalSaveHelper.getInstence().getMainUserInfoHelper()\n//\t\t\t\t\t\t\t.setPhone(result.getCellPhone());\n//\t\t\t\t\tHFConfigration.cloudUserPhone = result.getCellPhone();\n//\t\t\t\t}\n//\t\t\t\tif (!joRsp.isNull(\"email\")) {\n//\t\t\t\t\tresult.setEmail(joRsp.getString(\"email\"));\n//\t\t\t\t\tHFLocalSaveHelper.getInstence().getMainUserInfoHelper()\n//\t\t\t\t\t\t\t.setEmail(result.getEmail());\n//\t\t\t\t\tHFConfigration.cloudUserEmail = result.getEmail();\n//\t\t\t\t}\n//\t\t\t\tif (!joRsp.isNull(\"idNumber\")) {\n//\t\t\t\t\tresult.setIdNumber(joRsp.getString(\"idNumber\"));\n//\t\t\t\t}\n//\t\t\t\tif (!joRsp.isNull(\"createTime\")) {\n//\t\t\t\t\tresult.setCreateTime(joRsp.getString(\"createTime\"));\n//\t\t\t\t}\n//\t\t\t\treturn result;\n//\t\t\t} else {\n//\t\t\t\tthrow new HFModuleException(HFModuleException.ERR_GET_USER,\n//\t\t\t\t\t\t\"can not get user\");\n//\t\t\t}\n//\t\t} catch (JSONException e) {\n//\t\t\t// TODO Auto-generated catch block\n//\t\t\tthrow new HFModuleException(HFModuleException.ERR_GET_USER,\n//\t\t\t\t\t\"can not get user\");\n//\t\t}\n\n\t}", "@Override\n\tpublic Map<String, List<FacebookUser>> userdetailwithhistoryservice() throws FacebookException {\n\t\treturn id.userdetailwithhistorydao();\n\t}", "@Override\n public String getUserPersonalInfo(String user_id)\n {\n String returnVal = null; \n Connection conn = null;\n Statement stmt = null;\n try \n {\n db_controller.setClass();\n conn = db_controller.getConnection();\n stmt = conn.createStatement();\n String sql;\n \n sql = \"SELECT information from user_personal_information where user_id = '\" + user_id + \"'\";\n \n ResultSet rs = stmt.executeQuery(sql);\n \n \n while(rs.next())\n {\n returnVal = rs.getString(\"information\");\n }\n \n stmt.close();\n conn.close();\n \n } \n catch (SQLException ex) { ex.printStackTrace(); return null;} \n catch (ClassNotFoundException ex) { ex.printStackTrace(); return null;} \n return returnVal;\n }", "@Override\n\tpublic Map<String, Object> getUserDetail(Map<String, Object> reqs) {\n\t\treturn null;\n\t}", "@RequestMapping(\"/getUserInfo\")\n public UserInfo getUserInfo(@CookieValue(value = \"userInfo\", defaultValue = \"\") String userCookie){\n User userObj = null;\n if(userCookie != null && !userCookie.equals(\"\")){\n String user = userCookie.split(\"~~~\")[0];\n String pass = userCookie.split(\"~~~\")[1];\n String valid = userCookie.split(\"~~~\")[2];\n if(Boolean.valueOf(valid)){\n userObj = userService.getUser(user, pass);\n }\n }\n return userObj != null ? new UserInfo(userObj.getUserName(), userObj.getFirstName(), userObj.getLastName(),\n userObj.getEmailAddress(), userObj.getAddress(), userObj.getTelephoneNumber()) : null;\n }", "public abstract String getUser();", "@Override\r\n\tpublic List<CallVO> getUserList(HashMap<String, Object> map) throws Exception{\n\t\t\r\n\t\tList<CallVO> list = sqlSessionTemplat.selectList(\"admin.getUserList\",map);\r\n\t\treturn list;\r\n\t}", "public usdl.Usdl_rupStub.Facts getAllRegisteredUsersFacts(\r\n\r\n )\r\n\r\n\r\n throws java.rmi.RemoteException\r\n\r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try {\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\r\n _operationClient.getOptions().setAction(\"urn:getAllRegisteredUsersFacts\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n\r\n addPropertyToOperationClient(_operationClient, org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, \"&\");\r\n\r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n usdl.Usdl_rupStub.GetAllRegisteredUsersFacts dummyWrappedType = null;\r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n dummyWrappedType,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://ws.apache.org/axis2\",\r\n \"getAllRegisteredUsersFacts\")));\r\n\r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //admit the operation client\r\n _operationClient.execute(true);\r\n\r\n\r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n\r\n\r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement(),\r\n usdl.Usdl_rupStub.GetAllRegisteredUsersFactsResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n\r\n return getGetAllRegisteredUsersFactsResponse_return((usdl.Usdl_rupStub.GetAllRegisteredUsersFactsResponse) object);\r\n\r\n } catch (org.apache.axis2.AxisFault f) {\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt != null) {\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), \"getAllRegisteredUsersFacts\"))) {\r\n //make the fault by reflection\r\n try {\r\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), \"getAllRegisteredUsersFacts\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.Exception ex = (java.lang.Exception) exceptionClass.newInstance();\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), \"getAllRegisteredUsersFacts\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt, messageClass, null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex, new java.lang.Object[]{messageObject});\r\n\r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n } catch (java.lang.ClassCastException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n } else {\r\n throw f;\r\n }\r\n } else {\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }", "@WebMethod public Account getUser(String user);", "@Override\r\n\tpublic void onSuccess(JSONObject result) {\n\t\tswitch(api.getType()) {\r\n\t\tcase GetUserInfo:\r\n\t\t\tUserInfo user = new UserInfo();\r\n\t\t\tuser.fromJSONObject(result);\r\n\t\t\tdisplay.setUserInfo(user);\r\n\t\t\tfinishLoading();\r\n\t\t\tbreak;\r\n\t\tcase SetUserInfo:\r\n\t\t\tif (wantToFinish)\r\n\t\t\t\ttree.next(Actions.Finish);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "private usdl.Usdl_rupStub.Fact getGetRegisteredUsersFactResponse_return(\r\n usdl.Usdl_rupStub.GetRegisteredUsersFactResponse wrappedType) {\r\n\r\n return wrappedType.get_return();\r\n\r\n }", "public void getUserFromResponce(String reply) {\r\n\t\tGson gson = new Gson();\r\n\t\tJSONObject myResponse;\r\n\t\ttry {\r\n\t\t\tmyResponse = new JSONObject(reply);\r\n\t\t\tthis.getResponce = gson.fromJson(myResponse.toString(), InfoResponce.class);\r\n\r\n\t\t\tif (this.getResponce.error == null) {\r\n\t\t\t\tthis.user = getResponce.user;\r\n\t\t\t\tthis.profile = user.profile;\r\n\t\t\t} else {\r\n\t\t\t\tString str = getResponce.error;\r\n\t\t\t\t// for what I'm doing the switch isnt needed\r\n\t\t\t\t// but i could potentially handle them differently if I wanted to\r\n\t\t\t\tswitch (str) {\r\n\t\t\t\tcase \"not_authed\":\r\n\t\t\t\t\tthrow new Exception(str);\r\n\t\t\t\tcase \"invalid_auth\":\r\n\t\t\t\t\tthrow new Exception(str);\r\n\t\t\t\tcase \"user_not_found\":\r\n\t\t\t\t\tthrow new Exception(str);\r\n\t\t\t\tcase \"user_not_visible\":\r\n\t\t\t\t\tthrow new Exception(str);\r\n\t\t\t\tcase \"account_inactive\":\r\n\t\t\t\t\tthrow new Exception(str);\r\n\t\t\t\tcase \"token_revoked\":\r\n\t\t\t\t\tthrow new Exception(str);\r\n\t\t\t\tcase \"no_permission\":\r\n\t\t\t\t\tthrow new Exception(str);\r\n\t\t\t\tcase \"org_login_required\":\r\n\t\t\t\t\tthrow new Exception(str);\r\n\t\t\t\tcase \"ekm_access_denied\":\r\n\t\t\t\t\tthrow new Exception(str);\r\n\t\t\t\tcase \"request_timeout\":\r\n\t\t\t\t\tthrow new Exception(str);\r\n\t\t\t\tcase \"fatal_error\":\r\n\t\t\t\t\tthrow new Exception(str);\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tthrow new Exception(\"no_match\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (JSONException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (Exception E) {\r\n\t\t\t// System.out.println(E.getMessage());\r\n\t\t}\r\n\r\n\t}", "public List<UserBean> getUser() {\n\t\tSystem.out.println(\"=========================\");\n\t\treturn userMapper.getUser();\n\t}", "@GetMapping(path = \"/{userId}\",\n produces =\n {MediaType.APPLICATION_XML_VALUE,\n MediaType.APPLICATION_JSON_VALUE\n })\n public ResponseEntity<UserRest> getUserById(@PathVariable String userId) {\n if (true) throw new UserServiceException(\"A user service exception is thrown\");\n /* String firstName=null;\n int firstNameLength=firstName.length();*/\n\n if (users.containsKey(userId)) {\n return new ResponseEntity<>(users.get(userId), HttpStatus.OK);\n } else {\n return new ResponseEntity<>(HttpStatus.NO_CONTENT);\n }\n }", "protected void refreshUserInfo(UserInfo userInfo) {}", "public UserInfo() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "public MutableLiveData<UserDetailBean> getUserResponseLiveData() {\n return userDetailBeanMutableLiveData;\n }", "BaseResponse<?> test(@InfoAnnotation String userId);", "public void startgetAllRegisteredUsersFacts(\r\n\r\n\r\n final usdl.Usdl_rupCallbackHandler callback)\r\n\r\n throws java.rmi.RemoteException {\r\n\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\r\n _operationClient.getOptions().setAction(\"urn:getAllRegisteredUsersFacts\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n\r\n addPropertyToOperationClient(_operationClient, org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, \"&\");\r\n\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n\r\n //Style is Doc.\r\n usdl.Usdl_rupStub.GetAllRegisteredUsersFacts dummyWrappedType = null;\r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n dummyWrappedType,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://ws.apache.org/axis2\",\r\n \"getAllRegisteredUsersFacts\")));\r\n\r\n // adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message context to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n\r\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\r\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\r\n\r\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\r\n usdl.Usdl_rupStub.GetAllRegisteredUsersFactsResponse.class,\r\n getEnvelopeNamespaces(resultEnv));\r\n callback.receiveResultgetAllRegisteredUsersFacts(\r\n getGetAllRegisteredUsersFactsResponse_return((usdl.Usdl_rupStub.GetAllRegisteredUsersFactsResponse) object));\r\n\r\n } catch (org.apache.axis2.AxisFault e) {\r\n callback.receiveErrorgetAllRegisteredUsersFacts(e);\r\n }\r\n }\r\n\r\n public void onError(java.lang.Exception error) {\r\n if (error instanceof org.apache.axis2.AxisFault) {\r\n org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt != null) {\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), \"getAllRegisteredUsersFacts\"))) {\r\n //make the fault by reflection\r\n try {\r\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), \"getAllRegisteredUsersFacts\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.Exception ex = (java.lang.Exception) exceptionClass.newInstance();\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), \"getAllRegisteredUsersFacts\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt, messageClass, null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex, new java.lang.Object[]{messageObject});\r\n\r\n\r\n callback.receiveErrorgetAllRegisteredUsersFacts(new java.rmi.RemoteException(ex.getMessage(), ex));\r\n } catch (java.lang.ClassCastException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetAllRegisteredUsersFacts(f);\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetAllRegisteredUsersFacts(f);\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetAllRegisteredUsersFacts(f);\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetAllRegisteredUsersFacts(f);\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetAllRegisteredUsersFacts(f);\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetAllRegisteredUsersFacts(f);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetAllRegisteredUsersFacts(f);\r\n }\r\n } else {\r\n callback.receiveErrorgetAllRegisteredUsersFacts(f);\r\n }\r\n } else {\r\n callback.receiveErrorgetAllRegisteredUsersFacts(f);\r\n }\r\n } else {\r\n callback.receiveErrorgetAllRegisteredUsersFacts(error);\r\n }\r\n }\r\n\r\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\r\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\r\n onError(fault);\r\n }\r\n\r\n public void onComplete() {\r\n try {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n } catch (org.apache.axis2.AxisFault axisFault) {\r\n callback.receiveErrorgetAllRegisteredUsersFacts(axisFault);\r\n }\r\n }\r\n });\r\n\r\n\r\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\r\n if (_operations[1].getMessageReceiver() == null && _operationClient.getOptions().isUseSeparateListener()) {\r\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\r\n _operations[1].setMessageReceiver(\r\n _callbackReceiver);\r\n }\r\n\r\n //admit the operation client\r\n _operationClient.execute(false);\r\n\r\n }", "@Override\n\tpublic User getUserInfoById(String idUser) {\n\t\treturn userRepository.getUserInfoById(idUser);\n\t}", "public static AddUserResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\r\n AddUserResponse object =\r\n new AddUserResponse();\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 (!\"addUserResponse\".equals(type)){\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\r\n return (AddUserResponse)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\r\n \r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n \r\n\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(\"http://registry\",\"return\").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 throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"return\" +\" cannot be null\");\r\n }\r\n \r\n\r\n java.lang.String content = reader.getElementText();\r\n \r\n object.set_return(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\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 object.set_return(java.lang.Integer.MIN_VALUE);\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\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 }", "@Override\n public void onPromptAndCollectUserInformationResponse(PromptAndCollectUserInformationResponse arg0) {\n\n }", "@Override\r\n\tpublic UserDTO getNSCustomerDetails(int nsCustomerID){\r\n\t\treturn jobPostDelegate.getNSCustomerDetails(nsCustomerID);\r\n\t}", "@Override\n\t\t\t\t\tpublic void onResponse(BaseBean arg0) {\n\t\t\t\t\t\tif (arg0 != null) {\n\t\t\t\t\t\t\tif (\"1\".equals(arg0.getCode())) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tSharePerfUtil.saveLinkMan(edt_name.getText().toString());\n//\t\t\t\t\t\t\t\tSharePerfUtil.savePersonHead(url)\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\tToast.makeText(GetPersonalInfoActivity.this,\n\t\t\t\t\t\t\t\t\t\targ0.getMsg(), 1000).show();\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tToast.makeText(GetPersonalInfoActivity.this,\n\t\t\t\t\t\t\t\t\t\targ0.getMsg(), 1000).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToast.makeText(GetPersonalInfoActivity.this, \"暂无数据!\",\n\t\t\t\t\t\t\t\t\t1000).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@RequestMapping(method = RequestMethod.GET, headers = \"Accept=application/json\")\n\tpublic @ResponseBody\n\tResult getUser(HttpServletRequest request) {\n\t\tString userId = cred2UserId(getParamCred(request));\n\t\tWlsUser user = userService.getUser(userId);\n\t\tResult result = new Result();\n\t\tif (user != null) {\n\t\t\tresult.setData(user).setCount(1, 1);\n\t\t} else {\n\t\t\tresult.setSuccess(false);\n\t\t\tresult.setErrMsg(\"用户不存在。\");\n\t\t}\n\t\treturn result;\n\t}", "@Override\n\tprotected void initData() {\n\t\trequestUserInfo();\n\t}", "@Override\r\n\t\t\t\t\tpublic <T> void sucess(Type type, ResponseResult<T> arg0) {\n\t\t\t\t\t\tif ( arg0.getModel() != null) {\r\n\t\t\t\t\t\t\tuserinfo = arg0.getModel();\r\n\t\t\t\t\t\t\theadIcon.setImageUrl(userinfo.getUserinfo()\r\n\t\t\t\t\t\t\t\t\t.getAvatar(),HttpRequest.getInstance().imageLoader);\r\n\t\t\t\t\t\t\tuserName.setText(userinfo.getUserinfo().getNickname());\r\n\t\t\t\t\t\t\tlookNum.setText(userinfo.getUserinfo()\r\n\t\t\t\t\t\t\t\t\t.getWatchtotal());\r\n\t\t\t\t\t\t\tmovieType.setText(userinfo.getUserinfo()\r\n\t\t\t\t\t\t\t\t\t.getMovietype());\r\n\t\t\t\t\t\t\tsignature_tv.setText(userinfo.getUserinfo()\r\n\t\t\t\t\t\t\t\t\t.getSignature());\r\n\t\t\t\t\t\t\tmovieHouse.setText(userinfo.getUserinfo().getCinema());\r\n\t\t\t\t\t\t\tuserId.setText(\"ID: \"+ userid);\r\n\t\t\t\t\t\t\tisAttention=userinfo.getUserinfo().isIsattention();\r\n\t\t\t\t\t\t\t selectorStyle();\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}", "@GetMapping(path =\"/{id}\",\n\t\t\t\tproduces = {MediaType.APPLICATION_XML_VALUE,MediaType.APPLICATION_JSON_VALUE}\n\t\t\t)\n\tpublic ResponseEntity<UserResponse> getUser(@PathVariable(\"id\") String id) {\n\t\tUserDto userdto = userService.getUserById(id);\n\t\tModelMapper modelMapper = new ModelMapper();\n\t\tUserResponse userResponse=modelMapper.map(userdto, UserResponse.class);\n\t\treturn new ResponseEntity<UserResponse>(userResponse,HttpStatus.OK);\n\t}", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<User> showUsers() throws JsonMappingException, JsonProcessingException {\n\n\t\tString url = \"http://localhost:8081/fundoouser/showall\";\n\t\t\n\t\tResponse userResponse = restTemplate.getForObject(url, Response.class);\n\t\t\n\t\tList<User> userList = (List<User>) userResponse.getData(); \n\t\t\n\t\treturn userList;\n\t}", "@Override\n\tpublic void onUserInfoGet(AirContact user)\n\t{\n\t\tif (user != null)\n\t\t{\n\t\t\ttvUserName.setText(user.getDisplayName());\n\t\t}\n\t}", "public User getUser(){return this.user;}", "public void getStatusCodesForMethod(java.lang.String unregisteredUserEmail, java.lang.String userID, java.lang.String password, java.lang.String methodname, com.strikeiron.www.holders.SIWsOutputOfMethodStatusRecordHolder getStatusCodesForMethodResult, com.strikeiron.www.holders.SISubscriptionInfoHolder SISubscriptionInfo) throws java.rmi.RemoteException;", "private void populateUserInfo() {\n User user = Session.getInstance().getUser();\n labelDisplayFirstname.setText(user.getFirstname());\n labelDisplayLastname.setText(user.getLastname());\n lblEmail.setText(user.getEmail());\n lblUsername.setText(user.getUsername());\n }", "@Override\n\tpublic List<Map<String, Object>> getUserList() {\n\t\tList<Map<String, Object>> list = new ArrayList<Map<String,Object>>();\n\t\tString sql = \"select * from tp_users where userType = 2\";\n\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\tlist = joaSimpleDao.queryForList(sql, map);\n\t\treturn list;\n\t}", "public List<UserInfo> resultUserList(PageBean pBean) {\n\t\treturn adminSearchDao.resultUserList(pBean);\n\t}", "@GetMapping(\"/my-info\")\n\t@Secured({Roles.ADMIN, Roles.BOSS, Roles.WORKER})\n\tpublic ResponseEntity<EmployeeDto> getMyInfo() {\n\t\tLogStepIn();\n\n\t\t// Gets the currently logged in user's name\n\t\tString username = SecurityContextHolder.getContext().getAuthentication().getName();\n\n\t\tEmployee employee = userRepository.findByName(username).getEmployee();\n\t\treturn LogStepOut(ResponseEntity.ok(toDto(employee)));\n\t}", "public static GetRegisteredUsersFactResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception {\r\n GetRegisteredUsersFactResponse object =\r\n new GetRegisteredUsersFactResponse();\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 (!\"getRegisteredUsersFactResponse\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\r\n return (GetRegisteredUsersFactResponse) 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(\"\", \"return\").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.set_return(null);\r\n reader.next();\r\n\r\n reader.next();\r\n\r\n } else {\r\n\r\n object.set_return(Fact.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 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 }", "@Override\n\tpublic IUser getUser() {\n\t\treturn getInnerObject().getUser();\n\t}" ]
[ "0.7474514", "0.7191338", "0.68041503", "0.6719458", "0.66366583", "0.65787977", "0.6397098", "0.6288297", "0.6273467", "0.62166595", "0.61874443", "0.61698574", "0.6159541", "0.6158251", "0.61497885", "0.613223", "0.61259204", "0.6125167", "0.61248213", "0.6105546", "0.608731", "0.60413647", "0.6031559", "0.603017", "0.6023505", "0.60223", "0.60178053", "0.6009403", "0.59994173", "0.59834445", "0.5973262", "0.59691584", "0.5958894", "0.594642", "0.5940628", "0.5939942", "0.59267986", "0.59173805", "0.5896611", "0.5892574", "0.58815354", "0.5866695", "0.5857579", "0.58430487", "0.5832116", "0.58182716", "0.58133775", "0.5812809", "0.5809121", "0.5805706", "0.58019286", "0.5800655", "0.5796392", "0.5794795", "0.5779733", "0.5767971", "0.57525706", "0.575155", "0.5735201", "0.5716005", "0.57128084", "0.5707085", "0.57051414", "0.5703457", "0.5700979", "0.56963325", "0.5680655", "0.56710345", "0.5663498", "0.56499714", "0.5639814", "0.56349045", "0.56325984", "0.56152433", "0.5606641", "0.5606296", "0.5600053", "0.5587485", "0.55862737", "0.5584081", "0.5575785", "0.55719936", "0.5570132", "0.5565726", "0.55646604", "0.55581594", "0.55568546", "0.55554765", "0.55546755", "0.5553662", "0.5551163", "0.5546646", "0.5533766", "0.5532915", "0.5530919", "0.5519498", "0.55138344", "0.5513233", "0.5510765", "0.55081886" ]
0.76970315
0
auto generated Axis2 call back method for addUserToApplication method override this method for handling normal response from addUserToApplication operation
public void receiveResultaddUserToApplication( boolean result ) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ResponseMessage addUser(User user);", "public registry.ClientRegistryStub.AddUserResponse addUser(\r\n\r\n registry.ClientRegistryStub.AddUser addUser4)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\r\n _operationClient.getOptions().setAction(\"urn:addUser\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n addUser4,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://registry\",\r\n \"addUser\")), new javax.xml.namespace.QName(\"http://registry\",\r\n \"addUser\"));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n registry.ClientRegistryStub.AddUserResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (registry.ClientRegistryStub.AddUserResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addUser\"))){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addUser\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addUser\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }", "public Boolean addUser(User user) throws ApplicationException;", "@Override\r\n\tpublic String addUser(taskPojo addUser,HttpServletRequest request, HttpServletResponse response) {\n\t\treturn dao.addUser(addUser,request,response);\r\n\t}", "@Override\n\tpublic ResponseEntity<String> addUser() {\n\t\treturn null;\n\t}", "public void startaddUser(\r\n\r\n registry.ClientRegistryStub.AddUser addUser4,\r\n\r\n final registry.ClientRegistryCallbackHandler callback)\r\n\r\n throws java.rmi.RemoteException{\r\n\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\r\n _operationClient.getOptions().setAction(\"urn:addUser\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env=null;\r\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n //Style is Doc.\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n addUser4,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://registry\",\r\n \"addUser\")), new javax.xml.namespace.QName(\"http://registry\",\r\n \"addUser\"));\r\n \r\n // adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message context to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n\r\n \r\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\r\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\r\n \r\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\r\n registry.ClientRegistryStub.AddUserResponse.class,\r\n getEnvelopeNamespaces(resultEnv));\r\n callback.receiveResultaddUser(\r\n (registry.ClientRegistryStub.AddUserResponse)object);\r\n \r\n } catch (org.apache.axis2.AxisFault e) {\r\n callback.receiveErroraddUser(e);\r\n }\r\n }\r\n\r\n public void onError(java.lang.Exception error) {\r\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\r\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\r\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\r\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addUser\"))){\r\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\r\n\t\t\t\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addUser\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addUser\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t callback.receiveErroraddUser(new java.rmi.RemoteException(ex.getMessage(), ex));\r\n } catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErroraddUser(f);\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErroraddUser(f);\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErroraddUser(f);\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErroraddUser(f);\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErroraddUser(f);\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErroraddUser(f);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErroraddUser(f);\r\n }\r\n\t\t\t\t\t\t\t\t\t } else {\r\n\t\t\t\t\t\t\t\t\t\t callback.receiveErroraddUser(f);\r\n\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t callback.receiveErroraddUser(f);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t callback.receiveErroraddUser(error);\r\n\t\t\t\t\t\t\t\t}\r\n }\r\n\r\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\r\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\r\n onError(fault);\r\n }\r\n\r\n public void onComplete() {\r\n try {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n } catch (org.apache.axis2.AxisFault axisFault) {\r\n callback.receiveErroraddUser(axisFault);\r\n }\r\n }\r\n });\r\n \r\n\r\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\r\n if ( _operations[3].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\r\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\r\n _operations[3].setMessageReceiver(\r\n _callbackReceiver);\r\n }\r\n\r\n //execute the operation client\r\n _operationClient.execute(false);\r\n\r\n }", "public void receiveResultaddAlumniUser(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.AddAlumniUserResponse result\r\n ) {\r\n }", "@Override\n\tpublic void addResult(User user) {\n\n\t}", "public void receiveResultaddOrganisationUser(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.AddOrganisationUserResponse result\r\n ) {\r\n }", "public void receiveResultaddInwentAlumniUser(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.AddInwentAlumniUserResponse result\r\n ) {\r\n }", "public void addAppUser(AppUser appUser) {\n\t\tappUserRepository.save(appUser);\t\t\n\t\t\n\t}", "public com.outlook.octavio.armenta.ws.SOAPServiceStub.CreateUserResponse createUser(\n com.outlook.octavio.armenta.ws.SOAPServiceStub.CreateUser createUser6)\n throws java.rmi.RemoteException {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n try {\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\n _operationClient.getOptions()\n .setAction(\"http://tempuri.org/ISOAPService/CreateUser\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n addPropertyToOperationClient(_operationClient,\n org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\n \"&\");\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n\n env = toEnvelope(getFactory(_operationClient.getOptions()\n .getSoapVersionURI()),\n createUser6,\n optimizeContent(\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\n \"createUser\")),\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\n \"CreateUser\"));\n\n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n\n java.lang.Object object = fromOM(_returnEnv.getBody()\n .getFirstElement(),\n com.outlook.octavio.armenta.ws.SOAPServiceStub.CreateUserResponse.class);\n\n return (com.outlook.octavio.armenta.ws.SOAPServiceStub.CreateUserResponse) object;\n } catch (org.apache.axis2.AxisFault f) {\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n\n if (faultElt != null) {\n if (faultExceptionNameMap.containsKey(\n new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"CreateUser\"))) {\n //make the fault by reflection\n try {\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"CreateUser\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\n //message class\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"CreateUser\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,\n messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[] { messageClass });\n m.invoke(ex, new java.lang.Object[] { messageObject });\n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n } catch (java.lang.ClassCastException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n } else {\n throw f;\n }\n } else {\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender()\n .cleanup(_messageContext);\n }\n }\n }", "@Override\n\tpublic int AddUser(UserBean userbean) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void addUser(User user) {\n mapper.addUser(user);\n\t}", "Integer addUser(ServiceUserEntity user);", "public Integer addOrUpdate(LoginResponse user);", "@POST\n @Path( \"/\" )\n @Consumes( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )\n @Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )\n public String addUpdateUser( User user ){\n if( user.getId() == null ){\n System.out.println( \"adding user \" + user );\n api.addUser( user );\n }else{\n System.out.println( \"updating user \" + user );\n api.updateUser( user.getId(), user );\n }\n return user.getId();\n }", "@Override\n\tpublic Boolean addWxappUser(String openid, String wxnickname, String headimgurl, String sex, String unionid, String phone) {\n\t\treturn createdbUser(wxnickname,headimgurl,sex,phone,openid,null,null,unionid,wxnickname);\n\t}", "public void addUser(\n\t\t\tActionRequest request, ActionResponse response) \n\t\t\tthrows Exception {\n\t\t\n\t\tString firstName = ParamUtil.getString(request, \"firstName\");\n\t\tString lastName = ParamUtil.getString(request, \"lastName\");\n\t\tString email = ParamUtil.getString(request, \"email\");\n\t\tString username = ParamUtil.getString(request, \"username\");\n\t\t\n\t\t//Determine gender\n\t\tString gender = ParamUtil.getString(request, \"male\");\n\t\tboolean male = true;\n\t\tif (gender.contains(\"Female\"))\n\t\t\tmale = false;\n\t\t\n\t\tString birthday = ParamUtil.getString(request, \"birthday\"); //update validation to account for date being a STRING now\n\t\tString password1 = ParamUtil.getString(request, \"password1\");\n\t\tString password2 = ParamUtil.getString(request, \"password2\");\n\n\t\tString homePhone = ParamUtil.getString(request, \"homePhone\");\n\t\tString mobilePhone = ParamUtil.getString(request, \"mobilePhone\");\n\t\t\n\t\tString address1 = ParamUtil.getString(request, \"address1\");\n\t\tString address2 = ParamUtil.getString(request, \"address2\");\n\t\tString city = ParamUtil.getString(request, \"city\");\n\t\tString state = ParamUtil.getString(request, \"state\");\n\t\tString zip = ParamUtil.getString(request, \"zip\");\n\t\t\n\t\tString secQuestion = ParamUtil.getString(request, \"secQuestion\");\n\t\tString secAnswer = ParamUtil.getString(request, \"secAnswer\");\n\t\t\n\t\tString terms = ParamUtil.getString(request, \"termsOfUse\");\n\t\tboolean tOU = false;\n\t\tif (terms.equals(\"accepted\")) {\n\t\t\ttOU = true;\n\t\t}\n\n\t\ttry {\n\t\t\t_userLocalService.registerUser(firstName, lastName, email, username, male, birthday, password1, password2, homePhone,\n\t\t\tmobilePhone, address1, address2, city, state, zip, secQuestion, secAnswer, tOU);\n\t\t\t\n\t\t\tSessionMessages.add(request, \"userAdded\");\n\t\t\t\n\t\t\tsendRedirect(request, response);\n\t\t}\n\t\tcatch(UserValidationException ave) {\n\t\t\tave.getErrors().forEach(key -> SessionErrors.add(request, key));\n\t\t\tresponse.setRenderParameter(\"\", \"registration/user/add\");\n\t\t}\n\t\tcatch(PortalException pe) {\n\t\t\tSessionErrors.add(request, \"serviceErrorDetails\", pe);\n\t\t\tresponse.setRenderParameter(\"\", \"registration/user/add\");\n\t\t}\n\t}", "@Override\r\n\tpublic int addUser(User user) {\n\t\treturn userMapper.addUser(user);\r\n\t}", "@Override\r\n\tpublic ResponseEntity<User> addEmployee(User user, String authToken) throws ManualException {\r\n\t\t\r\n\t\tfinal Session session=sessionFactory.openSession();\r\n\t\tResponseEntity<User> responseEntity = new ResponseEntity<User>(HttpStatus.BAD_REQUEST);\r\n\t\t\r\n\t\ttry{\r\n\t\t\tString characters = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@_$!#\";\r\n\t\t\tString password = RandomStringUtils.random( 15, characters );\r\n\t\t\t\r\n\t\t\tuser.getUserCredential().setPassword(Encrypt.encrypt(password));\r\n\t\t\t\r\n\t\t\t/* check for authToken of admin */\r\n\t\t\tsession.beginTransaction();\r\n\t\t\tAuthTable authtable=session.get(AuthTable.class, authToken);\r\n\t\t\tUser adminUser=session.get(User.class, authtable.getUser().getEmpId());\r\n\t\r\n\t\t\t/* Adding skills to user object */\r\n\t\t\tList<Skill> skills = new ArrayList<Skill>();\r\n\t\t\tfor(Skill s:user.getSkills()){\r\n\t\t\t\tString h=\"from skill where skillName='\"+s.getSkillName()+\"'\";\r\n\t\t\t\tQuery q=session.createQuery(h);\r\n\t\t\t\tif(!q.list().isEmpty())\r\n\t\t\t\t\tskills.addAll(q.list());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* Adding department to user object */\r\n\t\t\tif(user.getDepartment()!=null){\r\n\t\t\t\tString h=\"from department where departmentName='\"+user.getDepartment().getDepartmentName()+\"'\";\r\n\t\t\t\tQuery q=session.createQuery(h);\r\n\t\t\t\tif(!q.list().isEmpty())\r\n\t\t\t\t\tuser.setDepartment(((Department)q.list().get(0)));\r\n\t\t\t\telse\r\n\t\t\t\t\tuser.setDepartment(null);\r\n\t\t\t}\r\n\t\r\n\t\t\t\r\n\t\t\t/* Adding project to user object */\r\n\t\t\tif(user.getProject()!=null){\r\n\t\t\t\tString h=\"from project where projectName='\"+user.getProject().getProjectName()+\"'\";\r\n\t\t\t\tQuery q=session.createQuery(h);\r\n\t\t\t\tif(!q.list().isEmpty())\r\n\t\t\t\t\tuser.setProject(((Project)q.list().get(0)));\r\n\t\t\t\telse\r\n\t\t\t\t\tuser.setProject(null);\r\n\t\t\t}\r\n\t\t\r\n\t\t\tuser.setSkills(skills);\r\n\t\r\n\t\t\tif(adminUser.getUsertype().equals(\"Admin\")){\r\n\t\t\t\tif(user==null||user.getUserCredential()==null){\r\n\t\t\t\t\tresponseEntity= new ResponseEntity<User>(HttpStatus.BAD_REQUEST);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t/* Stores user and UserCredential in database */\r\n\t\t\t\t\tsession.persist(user);\r\n\t\t\t\t\t\r\n\t\t\t\t\tString msg=env.getProperty(\"email.welcome.message\")+\"\\n\\nUsername: \"+user.getUserCredential().getUsername()+\"\\n\\nPassword: \"+password;\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t/* sends Welcome Email */\r\n\t\t\t\t\temail.sendEmail(user.getEmail(), \"Welcome\" , msg);\r\n\t\t\t\t\tresponseEntity= new ResponseEntity<User>(HttpStatus.OK);\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* entry in operation table */\r\n\t\t\t\t\tOperationImpl operationImpl= new OperationImpl();\r\n\t\t\t\t\toperationImpl.addOperation(session, adminUser, \"Added Employee \"+user.getName());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tresponseEntity= new ResponseEntity<User>(HttpStatus.UNAUTHORIZED);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tresponseEntity= new ResponseEntity<User>(HttpStatus.BAD_REQUEST);\r\n\t\t}\r\n\t\tfinally{\r\n\t\t\tsession.getTransaction().commit();\r\n\t\t\tsession.close();\r\n\t\t\treturn responseEntity;\r\n\t\t}\r\n\t}", "@PostMapping(value = \"/users\")\n\tpublic <T> ResponseEntity<?> registerProcess(@RequestBody User user) {\t\n\t\tLoginResponse registerResponse = new LoginResponse();\n\t\ttry {\n\n\t\t\tuser.setUserId(userDelegate.fetchUserId(user.getEmail()));\n\t\t\tregisterResponse = userDelegate.register(user);\n\t\t\treturn responseUtil.successResponse(registerResponse);\n\t\t\t\n\t\t} catch(ApplicationException e){\t\n\t\treturn responseUtil.errorResponse(e);\n\t}\n\t\t\n\t}", "@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n\t@RequestMapping(value = \"/users\", method = RequestMethod.POST)\n\tpublic ResponseEntity<AppUser> createUser(@RequestBody AppUser appUser) {\n\t\tif (appUserRepository.findOneByUsername(appUser.getUsername()) != null) {\n\t\t\tthrow new RuntimeException(\"Username already exist\");\n\t\t}\n\t\treturn new ResponseEntity<AppUser>(appUserRepository.save(appUser), HttpStatus.CREATED);\n\t}", "E add(IApplicationUser user, C createDto);", "public Long addUser(User transientUser) throws Exception;", "@Override\n\tpublic int addUser(User_role user) throws Exception{\n\t\treturn userMapper.insertByUser(user);\n\t}", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\t@RequestMapping(value=\"/users/add\",method = RequestMethod.POST)\n\tpublic ResponseEntity<?> addUser( @RequestBody @Valid UsersDTO user, BindingResult result) {\t\n\t\tif(result.hasErrors()){\n\t\t\tlogger.error(\"Post Request For Add Or Update User With This {} User And Error {}\", user, result.getAllErrors());\n\t\t\treturn new ResponseEntity(user, HttpStatus.BAD_REQUEST);\n\t\t}\n\t\ttry {\n\t\t\tif(user.getId().equals(null) || user.getId() ==\"\"){\n\t\t\t\tusersService.createUser(user);\n\t\t\t\tlogger.info(\"Post Request For Add User With This {} User.\", user);\t}\n\t\t\telse{\t\t\t\t\t\n\t\t\t\tusersService.update(user);\n\t\t\t\tlogger.info(\"Post Request For Update User With This {} User.\", user);}\n\t\t\treturn new ResponseEntity(user, HttpStatus.OK);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Post Request For Add Or User Update With This {} User And Error {}\", user, e.toString());\n\t\t\treturn new ResponseEntity(user, HttpStatus.BAD_REQUEST);\n\t\t}\t\t\n\t\t\n\t}", "public void addUser() {\r\n PutItemRequest request = new PutItemRequest().withTableName(\"IST440Users\").withReturnConsumedCapacity(\"TOTAL\");\r\n PutItemResult response = client.putItem(request);\r\n }", "public boolean addUser(UserDTO user);", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, registry.ClientRegistryStub.AddUser param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\r\n throws org.apache.axis2.AxisFault{\r\n\r\n \r\n try{\r\n\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody().addChild(param.getOMElement(registry.ClientRegistryStub.AddUser.MY_QNAME,factory));\r\n return emptyEnvelope;\r\n } catch(org.apache.axis2.databinding.ADBException e){\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n \r\n\r\n }", "@POST(\"/api/users\")\n public void addUser(@Body User User,Callback<User> callback);", "@Override\n\tpublic String addUser(Map<String, Object> reqs) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void add() {\n\n\t\tSystem.out.println(\"UserServiceImpl....\");\n\t\tthis.repository.respository();\n\n\t}", "public String addUser() {\n\t\t\t\treturn null;\r\n\t\t\t}", "public static AddUserResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\r\n AddUserResponse object =\r\n new AddUserResponse();\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 (!\"addUserResponse\".equals(type)){\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\r\n return (AddUserResponse)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\r\n \r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n \r\n\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(\"http://registry\",\"return\").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 throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"return\" +\" cannot be null\");\r\n }\r\n \r\n\r\n java.lang.String content = reader.getElementText();\r\n \r\n object.set_return(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\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 object.set_return(java.lang.Integer.MIN_VALUE);\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\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 }", "@WebMethod\n public String addUser(\n @WebParam(name = \"access_token\") String access_token,\n @WebParam(name = \"user\") String user) {\n return ProfileHandler.doAddUser(access_token, user);\n }", "boolean addUser(int employeeId, String name, String password, String role);", "public void addUser(User user) {\n\t\t\r\n\t}", "@WebMethod public void addUser(String name, String lastName, String email, String nid, String user, String password);", "@PostMapping(path = \"/online-sales-service/registerUser\")\n\tpublic ResponseEntity<?> createUser(@RequestBody final ActiveDirectory user, final HttpServletRequest request,\n\t\t\tfinal HttpServletResponse response) {\n\t\tResponseEntity<?> responseEntity;\n\t\tActiveDirectory thisUser = null;\n\t\ttry {\n\t\t\tthisUser = activeDirectoryService.createNewUser(user);\n\t\t} catch (Exception e) {\n\t\t\tresponseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.NOT_FOUND);\n\t\t}\n\t\tresponseEntity = new ResponseEntity<ActiveDirectory>(thisUser, HttpStatus.OK);\n\t\treturn responseEntity;\n\t}", "@Override\r\n\tpublic Utilisateur addUser() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic void add(User user) {\n\r\n\t}", "@GET\n @Path(\"/addUsers\")\n public Response addToUserTable(\n //@QueryParam(\"userTable\") String userTable,\n @QueryParam(\"facebookID\") String facebookID,\n @QueryParam(\"firstName\") String firstName,\n @QueryParam(\"lastName\") String lastName\n ) throws UnsupportedEncodingException {\n\n List<String> missing = new ArrayList<String>();\n\n //if (userTable == null) missing.add(\"user table\");\n if (facebookID == null) missing.add(\"facebookID key \");\n if (firstName == null) missing.add(\"firstname \");\n if (lastName == null) missing.add(\"lastname \");\n\n if (!missing.isEmpty()) {\n String msg = \"Missing parameters: \" + missing.toString();\n System.out.println(msg);\n Logging.getLOG().debug(\"users first login to app, but error occurred, missing params: \" + missing.toString());\n return Response.status(Response.Status.BAD_REQUEST)\n .entity(msg)\n .build();\n }\n\n start();\n\n UserTable userTable = UserTable.openTable(USER_TABLE, dbConnector);\n\n String decodedFBID = \"\";\n try {\n decodedFBID = URLDecoder.decode(facebookID, \"UTF-8\");\n }catch (Exception e){\n e.printStackTrace();\n }\n\n //if the item exists in the userTable DB\n if(userTable.getItemWithAttribute(\"facebookID\", facebookID) != null)\n {\n Logging.getLOG().debug(\"user has logged in before, FBID: \" + facebookID + \" firstName: \" + firstName + \"lastName: \" + lastName);\n return Response.ok(\"Success\").build();\n }\n else //if the user does not exist in the DB, then add\n {\n Logging.getLOG().debug(\"user hasn't logged in before, FBID: \" + facebookID + \" firstName: \" + firstName + \"lastName: \" + lastName);\n Item newUser = new Item()\n .withPrimaryKey(UserTable.getKeyColumn(), facebookID)\n .withString(UserTable.getFirstNameColumn(), firstName)\n .withString(UserTable.getLastNameColumn(), lastName)\n .withLong(UserTable.getAlgoNumColumn(), 0)\n .withLong(UserTable.getSdNumColumn(), 0)\n .withLong(UserTable.getDsNumColumn(), 0);\n userTable.put(newUser);\n return Response.ok(\"Success\").build();\n }\n\n\n }", "boolean addUser(String userName, AsyncResultHandler handler);", "@Override\n\tpublic boolean addUser(User user) {\n\t\tObject object = null;\n\t\tboolean flag = false;\n\t\ttry {\n\t\t\tobject = client.insert(\"addUser\", user);\n\t\t\tSystem.out.println(\"添加学生信息的返回值:\" + object);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (object != null) {\n\t\t\tflag = true;\n\t\t}\n\t\treturn flag;\n\t}", "public void receiveResultmodifyUser(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.ModifyUserResponse result\r\n ) {\r\n }", "@Override\r\n\tpublic String addUser(String userName, String password, String emailAddress, String phoneNumber,String firstName,String lastName) {\n\t\tString status = objUserRegistrationDao.addUser(userName, password, emailAddress, phoneNumber,firstName,lastName);\r\n\t\t\r\n\t\tif(status.equals(\"Success\"))\r\n\t\t\tEmailUtility.sendEmail(emailAddress, userName);\r\n\t\t\r\n\t\treturn status;\r\n\t\t\r\n\t}", "public void addUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk addUser\");\r\n\t}", "public void addUser(User user);", "@PostMapping(value = \"/users-admin\")\n\tpublic <T> ResponseEntity<?> registerAdminProcess(@RequestBody User user) {\n\t\tLoginResponse registerResponse = new LoginResponse();\n\t\ttry {\n\t\t\t\n\t\t\tregisterResponse = userDelegate.registerAsAdmin(user);\n\t\t\treturn responseUtil.successResponse(registerResponse);\t\n\t\t} \n\t\tcatch(ApplicationException e){\t\n\t\t\treturn responseUtil.errorResponse(e);\n\t\t}\n\t\t\t\t\t\n\t}", "@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}", "public com.outlook.octavio.armenta.ws.SOAPServiceStub.UpdateUserResponse updateUser(\n com.outlook.octavio.armenta.ws.SOAPServiceStub.UpdateUser updateUser4)\n throws java.rmi.RemoteException {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n try {\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());\n _operationClient.getOptions()\n .setAction(\"http://tempuri.org/ISOAPService/UpdateUser\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n addPropertyToOperationClient(_operationClient,\n org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\n \"&\");\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n\n env = toEnvelope(getFactory(_operationClient.getOptions()\n .getSoapVersionURI()),\n updateUser4,\n optimizeContent(\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\n \"updateUser\")),\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\n \"UpdateUser\"));\n\n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n\n java.lang.Object object = fromOM(_returnEnv.getBody()\n .getFirstElement(),\n com.outlook.octavio.armenta.ws.SOAPServiceStub.UpdateUserResponse.class);\n\n return (com.outlook.octavio.armenta.ws.SOAPServiceStub.UpdateUserResponse) object;\n } catch (org.apache.axis2.AxisFault f) {\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n\n if (faultElt != null) {\n if (faultExceptionNameMap.containsKey(\n new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"UpdateUser\"))) {\n //make the fault by reflection\n try {\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"UpdateUser\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\n //message class\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"UpdateUser\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,\n messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[] { messageClass });\n m.invoke(ex, new java.lang.Object[] { messageObject });\n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n } catch (java.lang.ClassCastException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n } else {\n throw f;\n }\n } else {\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender()\n .cleanup(_messageContext);\n }\n }\n }", "public String prepareToAddApplication() {\r\n\t\tSystem.out.println(\"aaa\");\r\n\t\t// TODO Auto-generated method stub\r\n\t\ttry {\r\n\t\t\tuserRole = (Employee) request.getSession().getAttribute(\"user\");\r\n\t\t\tif(userRole.isApprover()){\r\n\t\t\t\tallapprover = ied.getApproversForApproveer(userRole.getEmpName());\r\n\t\t\t\talladmin = ied.getAllAdmins();\r\n\t\t\t\treturn \"prepare_approver_success\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tallapprover = ied.getAllApprovers();\r\n\t\t\talladmin = ied.getAllAdmins();\r\n\t\t return \"success\";\r\n\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"error\";\r\n\t }\r\n\t}", "@RequestMapping(value = \"/admin/saveUsers\", method = RequestMethod.POST)\n\tpublic @ResponseBody Response saveUsers(@RequestBody UserBean userBean ){\n\t\tResponse response = new Response();\n\t\t \n\t\tif(!RoleType.ROLE_ADMIN.equals(securityService.getCurrentRole().getRoleType() )) {\n\t \t\tLOG.warn(securityService.getCurrentUser() + \" attempted to access admin screens.\");\n\t\t \tresponse.addCommand(new ClientCommand(ClientCommandType.METHOD, \"addMessage\"\n\t\t\t\t\t, new Message(\"Failure!\",\"Only Admins are allowed to this view.\", Message.STYLE_ERROR)));\n \t\t\treturn response;\n \t\t}else { \n \t\t\ttry{ \n\t\t\t\tString returnMessage=\" \";\n\t\t\t\tif (polstUserService.isCurrentUser(userBean.getUserName())){\n\t\t\t\t\treturnMessage=\"Existing User \" + userBean.getDisplayName() + \" was successfully updated.\";\n\t\t\t\t\tresponse.addCommand(new ClientCommand(ClientCommandType.METHOD, \"addMessage\" , new Message(\"Update Success!\",returnMessage, Message.STYLE_SUCCESS)));\n\t\t\t\t}else{\n\t\t\t\t\treturnMessage=\"New User \" + userBean.getDisplayName() + \" was successfully saved.\";\n\t\t\t\t\tresponse.addCommand(new ClientCommand(ClientCommandType.METHOD, \"addMessage\" , new Message(\"Insert Success!\",returnMessage, Message.STYLE_SUCCESS)));\n\t\t\t\t }\n\t\t\t \tuserBean = polstUserService.saveUser(userBean);\n\t\t\t \tresponse.addCommand(new ClientCommand(ClientCommandType.METHOD, \"onUserSaved\", \tuserBean));\n\t\t\t\n\t\t\t}catch(Exception e){\n\t\t\t\tLOG.error(\"Exception caught saving user.\", e);\n\t\t\t\tresponse.addCommand(new ClientCommand(ClientCommandType.METHOD, \"onUserSaved\", \tuserBean));\n\t\t\t\tresponse.addCommand(new ClientCommand(ClientCommandType.METHOD, \"addMessage\" , new Message(\"Failure!\",\"Issue was encountered saving user.\", Message.STYLE_ERROR)));\n\t\t\t}\t\n \t\t}\n\t\treturn response;\n\t }", "@PostMapping(value=\"/addUser\")\n\t\t@Consumes({\"application/json\"})\n\t\t@ResponseBody\n\t\tpublic ResponseEntity<User> createUser(@RequestBody User user) throws TaskTrackerException{\n\t\t\tboolean isCreated = false;\n\t\t\ttry {\n\t\t\t\tisCreated = userService.createUser(user);\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new TaskTrackerException(\"usernot created, Check if Parent task exists!\",e);\n\t\t\t}\n\t\t\t\n\t\t\tif(isCreated){\n\t\t\t\treturn new ResponseEntity<User>(HttpStatus.CREATED);\n\t\t\t} else {\n//\t\t\t\treturn new ResponseEntity<Product>(HttpStatus.OK);\n\t\t\t\t\n\t\t\t\treturn ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).header(\"message\", \"User not created, Check if User exists!\").build();\n\t\t\t}\n\t\t}", "public void addUser() {\n\t\tUser user = dataManager.findCurrentUser();\r\n\t\tif (user != null) {\r\n\t\t\tframeManager.addUser(user);\r\n\t\t\tpesquisar();\r\n\t\t} else {\r\n\t\t\tAlertUtils.alertSemPrivelegio();\r\n\t\t}\r\n\t}", "@Override\n\tpublic int addUser(TbUser user) {\n\t\treturn new userDaoImpl().addUser(user);\n\t}", "@Override\n\tpublic boolean addNewUser() {\n\t\treturn false;\n\t}", "@RequestMapping(value=\"\", method=RequestMethod.POST, consumes=MediaType.MULTIPART_FORM_DATA_VALUE, produces = \"application/json\")\n\tpublic @ResponseBody Object createUser(@RequestParam String userName, @RequestParam String userPassword, @RequestParam String userFirstName, \n\t\t\t@RequestParam String userLastName, @RequestParam String userPicURL,@RequestParam String userEmail, @RequestParam String userEmployer,\n\t\t\t@RequestParam String userDesignation, @RequestParam String userCity, @RequestParam String userState, @RequestParam(required=false) String programId, \n\t\t\t@RequestParam long updatedBy, @RequestParam String userExpertise, @RequestParam String userRoleDescription,\n\t\t\t@RequestParam String userPermissionCode, @RequestParam String userPermissionDescription, HttpServletRequest request, HttpServletResponse response) {\n\t\treturn userService.createUser(userName, userPassword, userFirstName, userLastName, userPicURL, userEmail, userEmployer, userDesignation, userCity, userState, programId, updatedBy, userExpertise, userRoleDescription, userPermissionCode, userPermissionDescription, request, response);\n\t}", "boolean addUser(User userToAdd, BankEmployee employee) {\n if(employee.isBankEmployee()){\n listOfUsers.add(userToAdd);\n return true;\n }else\n return false;\n }", "public void receiveResultgetUserInfo(\n org.wso2.carbon.appfactory.application.mgt.service.xsd.UserInfoBean[] result\n ) {\n }", "public void addUser(Customer user) {}", "@Override\n public TechGalleryUser addUser(final TechGalleryUser user) throws BadRequestException {\n if (!userDataIsValid(user)) {\n throw new BadRequestException(i18n.t(\"User's email cannot be blank.\"));\n } else {\n userDao.add(user);\n UserProfileServiceImpl.getInstance().createProfile(user);\n return user;\n }\n }", "private void updateUserLogin() {\n\t\tSessionManager sessionManager = new SessionManager(\n\t\t\t\tMyApps.getAppContext());\n\n\t\tRequestParams params = new RequestParams();\n\t\tparams.add(\"user_id\", sessionManager.getUserDetail().getUserID());\n\n\t\tLog.d(\"EL\", \"userID: \" + sessionManager.getUserDetail().getUserID());\n\n\t\tKraveRestClient.post(WebServiceConstants.AV_UPDATE_USER_PROFILE_DATA_1,\n\t\t\t\tparams, new JsonHttpResponseHandler() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\n\t\t\t\t\t\t\tJSONObject response) {\n\n\t\t\t\t\t\tsuper.onSuccess(statusCode, headers, response);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tLog.d(\"EL\", \"response: \" + response.toString(2));\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\tThrowable throwable, JSONObject errorResponse) {\n\n\t\t\t\t\t\tsuper.onFailure(statusCode, headers, throwable,\n\t\t\t\t\t\t\t\terrorResponse);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "public eu.aladdin_project.xsd.User addNewUser()\n {\n synchronized (monitor())\n {\n check_orphaned();\n eu.aladdin_project.xsd.User target = null;\n target = (eu.aladdin_project.xsd.User)get_store().add_element_user(USER$0);\n return target;\n }\n }", "public AppUser register(AppUser newUser) {\n\n if (!isUserValid(newUser)) {\n System.out.println(\"Invalid user data provided!\");\n throw new InvalidRequestException(\"Invalid user data provided!\");\n }\n\n if (userRepo.findUserByUsername(newUser.getUsername()) != null) {\n System.out.println(\"Provided username is already taken!\");\n throw new ResourcePersistenceException(\"Provided username is already taken!\");\n }\n\n if (userRepo.findUserByEmail(newUser.getEmail()) != null) {\n System.out.println(\"Provided username is already taken!\");\n throw new ResourcePersistenceException(\"Provided username is already taken!\");\n }\n\n return userRepo.save(newUser);\n\n }", "@Override\n public boolean addUser(User user) {\n return controller.addUser(user);\n }", "@Override\n\tpublic void addUser(User user) {\n\t\tuserMapper.addUser(user);\n\t}", "void addUser(User user, AsyncCallback<User> callback);", "void AddUserListener(String uid, final UserResult result);", "@Override\r\n\tpublic boolean addNewUser(User user) {\n\t\treturn false;\r\n\t}", "@ApiOperation(value = \"Add a User\")\n @RequestMapping(value = \"/create-user\", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)\n @CrossOrigin(origins = \"http://localhost:4200\")\n public UserResponse AddUser(@RequestBody User user) {\n logger.info(\"user:\" + user.toString());\n User DBUser = userService.saveObject(user);\n return new UserResponse(DBUser.getId(),DBUser.getUsername(),DBUser.getEmail(),DBUser.getPhonenumber());\n }", "void addUser(User user);", "void addUser(User user);", "@Override\n protected void onActivityResult(\n final int requestCode,\n final int resultCode,\n final Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode != FRAMEWORK_REQUEST_CODE) {\n return;\n }\n\n final String toastMessage;\n final AccountKitLoginResult loginResult = AccountKit.loginResultWithIntent(data);\n if (loginResult == null || loginResult.wasCancelled())\n {\n toastMessage = \"Cancelled\";\n Toast.makeText(RegisterUser.this,toastMessage,Toast.LENGTH_SHORT).show();\n }\n else if (loginResult.getError() != null) {\n Toast.makeText(RegisterUser.this,\"Error\",Toast.LENGTH_SHORT).show();\n } else {\n final AccessToken accessToken = loginResult.getAccessToken();\n if (accessToken != null) {\n\n AccountKit.getCurrentAccount(new AccountKitCallback<Account>() {\n @Override\n public void onSuccess(final Account account) {\n String phoneNumber = account.getPhoneNumber().toString();\n\n if(phoneNumber.length()==14)\n phoneNumber = phoneNumber.substring(3);\n\n newUserRegistration(phoneNumber);\n progressBar.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onError(final AccountKitError error) {\n }\n });\n } else {\n toastMessage = \"Unknown response type\";\n Toast.makeText(RegisterUser.this, toastMessage, Toast.LENGTH_SHORT).show();\n }\n }\n }", "public ResponseEntity<String> processAddingAPerson(AddPeopleRequest addPeopleRequest) {\n // check if person being added already exists\n if (personAlreadyExists(addPeopleRequest)) {\n // return user already exists\n logger.info(\"user already exists\");\n return new ResponseEntity(Utils.result(Constants.USER_ALREADY_EXISTS), HttpStatus.BAD_REQUEST);\n } else {\n // record should be saved..\n this.addPersonRequestMongoRepository.save(addPeopleRequest);\n return new ResponseEntity(Utils.result(Constants.RECEIVED), HttpStatus.OK);\n }\n }", "@Transactional\n public ResponseEntity<Object> addUser(User user) {\n\n User newUser = new User();\n newUser.setFirstName(user.getFirstName());\n newUser.setLastName(user.getLastName());\n newUser.setEmail(user.getEmail());\n newUser.setMobile(user.getMobile());\n\n user.setRole(user.getRole());\n User savedUser = userRepository.save(newUser);\n if (userRepository.findById(savedUser.getId()).isPresent()) {\n return ResponseEntity.accepted().body(\"Successfully Created Role and Users\");\n } else\n return ResponseEntity.unprocessableEntity().body(\"Failed to Create specified Role\");\n }", "public void addUserBtn(){\n\t\t\n\t\t// TODO: ERROR CHECK\n\t\t\n\t\tUserEntry user = new UserEntry(nameTF.getText(), (String)usertypeCB.getValue(), emailTF.getText());\n\t\tAdminController.userEntryList.add(user);\n\t\t\n\t\t\n\t\t// Create a UserEntry and add it to the observable list\n\t\tAdminController.userList.add(user);\t\t\n\t\t\n\t //AdminController.adminTV.setItems(AdminController.userList);\n\t\t\n\t\t//Close current stage\n\t\tAdminController.addUserStage.close();\n\t\t\n\t}", "public String addEmployee() {\n\t\t\t//logger.info(\"addEmployee method called\");\n\t\t\t//userGroupBO.save(userGroup);;\n\t\t\treturn SUCCESS;\n\t\t}", "private void createUser(Request request, Response response) {\r\n\t\tUserBean userBean = new UserBean();\r\n\t\tRESTfulSession session = null;\r\n\r\n\t\ttry {\r\n\t\t\tBeanHelper.populateUserBeanFromRequest(request, userBean);\r\n\t\t\tString username = userBean.getUsername();\r\n\t\t\tString password = userBean.getPassword();\r\n\t\t\tString email = userBean.getEmail();\r\n\r\n\t\t\tif (StringHelper.isNullOrNullString(username)\r\n\t\t\t\t\t|| StringHelper.isNullOrNullString(password)\r\n\t\t\t\t\t|| StringHelper.isNullOrNullString(email)) {\r\n\t\t\t\tthrow new InvalidInputException();\r\n\t\t\t}\r\n\r\n\t\t\tsession = userService.createUser(userBean);\r\n\t\t} catch (InvalidInputException e) {\r\n\t\t\tresponse.setStatus(Status.CLIENT_ERROR_BAD_REQUEST, e.getMessage());\r\n\t\t} catch (Exception e) {\r\n\t\t\tresponse.setStatus(Status.SERVER_ERROR_INTERNAL, e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t\tlog.error(e);\r\n\t\t} finally {\r\n\t\t\t// generate response XML\r\n\t\t\txmlSerializationService.generateXMLResponse(request, response,\r\n\t\t\t\t\tsession);\r\n\t\t}\r\n\t}", "@RequestMapping(value = \"/reg.htm\",method = RequestMethod.POST)\r\n\tpublic String register(User user,BindingResult result,ModelMap map,HttpSession session,HttpServletResponse response) throws IOException {\r\n\t\t\r\n\t\t\tuserService.addUser(user);\r\n\t\t\treturn \"regSuccess\";\t\r\n\t\t}", "Boolean registerNewUser(User user);", "private ServerCommand processCreateUserCommand(RoMClient client, CreateUserClientCommand createUserCommand) {\r\n \t\tboolean success = false;\r\n \r\n \t\t// Check if user is admin\r\n \t\tif (client.getIsAdmin()) {\r\n \t\t\tsuccess = this.dataLayer.addUser(createUserCommand.getNewUserName(), createUserCommand.getSHA1EncryptedPassword());\r\n \t\t}\r\n \r\n \t\tServerCommand serverResponseCommand = new CreateUserServerCommand(success, createUserCommand);\r\n \r\n \t\treturn serverResponseCommand;\r\n \t}", "@RequestMapping(value = \"/users\", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.PUT)\n\t@Transactional\n\tpublic @ResponseBody MMDHResponse addUser(@RequestBody MMDHUser user) throws RecordExistsException,\n\t\t\tRecordNotFoundException, InvalidUserIdNameCombinationException, MissingMandatoryDataException {\n\n\t\tvalidateUserExistance(\"ADD_USER\", user);\n\n\t\t// validate mandatory fields are supplied\n\t\tif (StringUtils.isEmpty(user.getFirstName()) || StringUtils.isEmpty(user.getLastName())) {\n\t\t\tthrow new MissingMandatoryDataException(\"MISSING_MANDATORY_DATA\",\n\t\t\t\t\t\"FirstName and LastName both the mandatory fields\");\n\t\t}\n\n\t\t// verify and associate child objects i.e. Org, Role and PasswordProfile\n\t\tassociateChildObjects(user);\n\t\t// save the user\n\t\tMMDHUser addedUser = userRepo.save(user);\n\t\t// also initialize PasswordProfile\n\t\tpasswordProfileRepo.save(new PasswordProfile(addedUser.getUserId()));\n\t\t// now publish the event for sending an email to the user for email\n\t\t// validation\n\t\tif (addedUser != null) {\n\t\t\teventPublisher.publishEvent(new OnRegistrationCompleteEvent(addedUser, LocaleContextHolder.getLocale()));\n\t\t}\n\t\treturn new MMDHResponse(\"USER_CREATED\", \"User is created successfully\").success();\n\t}", "@PostMapping\n public ResponseEntity<UUID> saveUser(@RequestBody CompleteUsers newUser) throws Exception {\n return ResponseEntity.ok().body(userService.save(newUser));\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if (CREATE_USER_REQUEST_CODE == requestCode && RESULT_OK == resultCode){\n if (data != null) {\n String username = data.getStringExtra(UserCreationActivity.BUNDLE_NEW_USER_NAME);\n\n User user = new User(username, User.EMPTY_CASE, User.EMPTY_CASE);\n\n createUser(user);\n }\n }\n }", "public Long createAndStoreApplicationUser(ApplicationUser applicationUser, Long userID)\n throws ApplicationUserSaveException\n {\n \tLong returnValue = Long.valueOf(0);\n \n\t\ttry\n\t\t{\n returnValue = this.getApplicationUserDao().createAndStoreApplicationUser(applicationUser, userID);\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t throw new ApplicationUserSaveException(\"ApplicationUserEntityDataManager::createAndStoreApplicationUser\", ex);\n\t\t}\t\t\n\t\t\n\t\treturn returnValue;\n }", "@RequestMapping(value = \"/addUser\", method = RequestMethod.POST)\n public String addUser(@Valid @ModelAttribute(\"user\") User user, BindingResult result) {\n if (result.hasErrors()) {\n return \"admin/addUser\";\n }\n\n String userPassword =user.getPassword();\n String hashUserPassword = encoder.encode(userPassword);\n user.setPassword(hashUserPassword);\n \n //All users that get added will be at least a guest and a user, only the ADMIN can add SUPER_USER via a checkbox.\n user.addPermission(Permission.GUEST);\n user.addPermission(Permission.USER);\n if (user.getPermissionId() == 2) {\n user.addPermission(Permission.SUPER_USER);\n }\n try{\n userDao.addUser(user);\n }catch(DuplicateKeyException dke){\n result.rejectValue(\"userName\", \"userName.notvalid\",\"Username Taken!\");\n return \"admin/addUser\";\n }\n return \"redirect:manageUsers\";\n }", "@Override\n\t@Transactional\n\tpublic int addUser(User user) {\n\t\t// Add record to user table\n\t\tSimpleJdbcInsert empInsert = new SimpleJdbcInsert(this.dataSource).withTableName(\"user\")\n\t\t\t\t.usingGeneratedKeyColumns(\"USER_ID\");\n\t\tMap<String, Object> params = new HashMap<>();\n\t\tPasswordEncoder encoder = new BCryptPasswordEncoder();\n\t\tString hashPass = encoder.encode(user.getPassword());\n\t\tparams.put(\"NAME\", WordUtils.capitalizeFully(user.getName()));\n\t\tparams.put(\"USERNAME\", user.getUsername().toLowerCase());\n\t\tparams.put(\"PASSWORD\", hashPass);\n\t\tparams.put(\"ACTIVE\", true);\n\t\tparams.put(\"EXPIRED\", false);\n\t\tparams.put(\"EXPIRES_ON\", DateUtils.getOffsetFromCurrentDateObject(DateUtils.IST, 60));\n\t\tparams.put(\"FAILED_ATTEMPTS\", 0);\n\t\tCustomUserDetails curUser = ((CustomUserDetails) SecurityContextHolder.getContext().getAuthentication()\n\t\t\t\t.getPrincipal());\n\t\tif (curUser.hasBusinessFunction(\"ROLE_BF_OUTSIDE_ACCESS\")) {\n\t\t\tparams.put(\"OUTSIDE_ACCESS\", user.isOutsideAccess());\n\t\t} else {\n\t\t\tparams.put(\"OUTSIDE_ACCESS\", false);\n\t\t}\n\t\tparams.put(\"CREATED_BY\", curUser.getUserId());\n\t\tparams.put(\"LAST_MODIFIED_BY\", curUser.getUserId());\n\t\tDate dt = DateUtils.getCurrentDateObject(DateUtils.IST);\n\t\tparams.put(\"CREATED_DATE\", dt);\n\t\tparams.put(\"LAST_MODIFIED_DATE\", dt);\n\n\t\tint userId = 0;\n\t\ttry {\n\t\t\tuserId = empInsert.executeAndReturnKey(params).intValue();\n\t\t} catch (Exception m) {\n\t\t\treturn userId;\n\t\t}\n\t\tparams.clear();\n\t\t// add record to user_role table\n\t\tString sqlString = \"INSERT INTO user_role (USER_ID, ROLE_ID) VALUES(:userId, :roleId)\";\n\t\tparams.put(\"userId\", userId);\n\t\tparams.put(\"roleId\", user.getRole().getRoleId());\n\t\tthis.namedParameterJdbcTemplate.update(sqlString, params);\n\t\treturn userId;\n\t}", "public void receiveResultgetUserInfoBean(\n org.wso2.carbon.appfactory.application.mgt.service.xsd.UserInfoBean result\n ) {\n }", "public void addUser(UserModel user);", "@POST(\"/AddUser\")\n\tint addUser(@Body User user);", "void onUserAdded();", "@POST\n @Path(\"/users/register\")\n public Response register(\n @Context HttpServletRequest request \n ,@Context HttpServletResponse response\n ,@Context ServletContext servletContext\n ,String raw\n ){\n try{\n log.debug(\"/register called\");\n// String raw=IOUtils.toString(request.getInputStream());\n mjson.Json x=mjson.Json.read(raw);\n \n Database2 db=Database2.get();\n for (mjson.Json user:x.asJsonList()){\n String username=user.at(\"username\").asString();\n \n if (db.getUsers().containsKey(username))\n db.getUsers().remove(username); // remove so we can overwrite the user details\n \n Map<String, String> userInfo=new HashMap<String, String>();\n for(Entry<String, Object> e:user.asMap().entrySet())\n userInfo.put(e.getKey(), (String)e.getValue());\n \n userInfo.put(\"level\", LevelsUtil.get().getBaseLevel().getRight());\n userInfo.put(\"levelChanged\", new SimpleDateFormat(\"yyyy-MM-dd\").format(new Date()));// nextLevel.getRight());\n \n db.getUsers().put(username, userInfo);\n log.debug(\"New User Registered (via API): \"+Json.newObjectMapper(true).writeValueAsString(userInfo));\n db.getScoreCards().put(username, new HashMap<String, Integer>());\n \n db.addEvent(\"New User Registered (via API)\", username, \"\");\n }\n \n db.save();\n return Response.status(200).entity(\"{\\\"status\\\":\\\"DONE\\\"}\").build();\n }catch(IOException e){\n e.printStackTrace();\n return Response.status(500).entity(\"{\\\"status\\\":\\\"ERROR\\\",\\\"message\\\":\\\"\"+e.getMessage()+\"\\\"}\").build(); \n }\n \n }", "@Override\n public OAuthApplicationInfo createApplication(OAuthAppRequest oauthAppRequest) throws APIManagementException {\n OAuthApplicationInfo oAuthApplicationInfo = oauthAppRequest.getOAuthApplicationInfo();\n\n // Subscriber's name should be passed as a parameter, since it's under the subscriber the OAuth App is created.\n String userId = (String) oAuthApplicationInfo.getParameter(ApplicationConstants.\n OAUTH_CLIENT_USERNAME);\n String applicationName = oAuthApplicationInfo.getClientName();\n String keyType = (String) oAuthApplicationInfo.getParameter(ApplicationConstants.APP_KEY_TYPE);\n String callBackURL = (String) oAuthApplicationInfo.getParameter(ApplicationConstants.APP_CALLBACK_URL);\n if (keyType != null) {\n applicationName = applicationName + '_' + keyType;\n }\n\n if (log.isDebugEnabled()) {\n log.debug(\"Trying to create OAuth application :\" + applicationName);\n }\n\n String tokenScope = (String) oAuthApplicationInfo.getParameter(\"tokenScope\");\n String[] tokenScopes = new String[1];\n tokenScopes[0] = tokenScope;\n\n org.wso2.carbon.apimgt.api.model.xsd.OAuthApplicationInfo info = null;\n\n try {\n org.wso2.carbon.apimgt.api.model.xsd.OAuthApplicationInfo applicationToCreate =\n new org.wso2.carbon.apimgt.api.model.xsd.OAuthApplicationInfo();\n applicationToCreate.setIsSaasApplication(oAuthApplicationInfo.getIsSaasApplication());\n applicationToCreate.setCallBackURL(callBackURL);\n applicationToCreate.setClientName(applicationName);\n applicationToCreate.setAppOwner(userId);\n applicationToCreate.setJsonString(oAuthApplicationInfo.getJsonString());\n applicationToCreate.setTokenType(oAuthApplicationInfo.getTokenType());\n info = createOAuthApplicationbyApplicationInfo(applicationToCreate);\n } catch (Exception e) {\n handleException(\"Can not create OAuth application : \" + applicationName, e);\n } \n\n if (info == null || info.getJsonString() == null) {\n handleException(\"OAuth app does not contains required data : \" + applicationName,\n new APIManagementException(\"OAuth app does not contains required data\"));\n }\n\n oAuthApplicationInfo.addParameter(\"tokenScope\", tokenScopes);\n oAuthApplicationInfo.setClientName(info.getClientName());\n oAuthApplicationInfo.setClientId(info.getClientId());\n oAuthApplicationInfo.setCallBackURL(info.getCallBackURL());\n oAuthApplicationInfo.setClientSecret(info.getClientSecret());\n oAuthApplicationInfo.setIsSaasApplication(info.getIsSaasApplication());\n\n try {\n JSONObject jsonObject = new JSONObject(info.getJsonString());\n\n if (jsonObject.has(ApplicationConstants.\n OAUTH_REDIRECT_URIS)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_REDIRECT_URIS, jsonObject.get(ApplicationConstants.OAUTH_REDIRECT_URIS));\n }\n\n if (jsonObject.has(ApplicationConstants.OAUTH_CLIENT_NAME)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_CLIENT_NAME, jsonObject.get(ApplicationConstants.OAUTH_CLIENT_NAME));\n }\n\n if (jsonObject.has(ApplicationConstants.OAUTH_CLIENT_GRANT)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_CLIENT_GRANT, jsonObject.get(ApplicationConstants.OAUTH_CLIENT_GRANT));\n }\n } catch (JSONException e) {\n handleException(\"Can not retrieve information of the created OAuth application\", e);\n }\n\n return oAuthApplicationInfo;\n\n }", "UserDTO addNewData(UserDTO userDTO);", "public long wsadd_user( UserWS user)\r\n\t\t{ \r\n\t\t\t\r\n\t\t\tlong id = 0; //id de la tabla user (único) \r\n\t\t\t\r\n\t\t \r\n\t\t User userH = new User(user.getLogin(),user.getPassword(),user.getRole(),user.getName(),user.getPhone(),user.getDepartment());\r\n\t\t \r\n\t\t //User cliente1 = new User(\"[email protected]\", \"gutie33\", 1, \"Luis\",\"677899876\", \"Informatica\"); \r\n\t\t \r\n\t\t try \r\n\t\t { \r\n\t\t iniciaOperacion(); \r\n\t\t \r\n\t\t id= (Long) sesion.createQuery(\"SELECT u.id_company FROM Company u WHERE u.company_name ='\"+user.getName_company()+\"'\").uniqueResult();\r\n\t\t Company x = (Company) sesion.load(Company.class, id);\r\n\t\t x.addUsuario(userH);\r\n\t\t \r\n\t\t\t userH.setCompany(x);\r\n\t\t \r\n\t\t //sesion.update(compx);\r\n\t\t \r\n\t\t \r\n\t\t //metodo para guardar cliente (del objeto hibernate.sesion) \r\n\t\t tx.commit(); \r\n\t\t }catch(HibernateException he) \r\n\t\t { \r\n\t\t manejaExcepcion(he);\r\n\t\t throw he; \r\n\t\t }finally \r\n\t\t { \r\n\t\t \t//Busqueda del id con qu elo ha introducido a la BBDD\r\n\t\t \tid= (Long) sesion.createQuery(\"SELECT u.id_user FROM User u WHERE u.mail ='\"+user.getLogin()+\"'\").uniqueResult();\r\n\t\t sesion.close(); \r\n\t\t } \r\n\t\t return id; \r\n\t\t}", "public ManResponseBean registerUser(UserRegisterForm bean) throws Exception {\n String url = \"/services/RegisterUser\";\n /*\n * UserId SecurePassword SecurePin PinPayment PinAmount PinMenu PinPG\n * PinPGRate Name LeadId EmailNotify etc ReturnUrl TermsAgree Email\n * Language\n */\n NameValuePair[] params = {\n new NameValuePair(\"UserId\", bean.getUserId()),\n new NameValuePair(\"SecurePassword\", bean.getSecurePassword()),\n new NameValuePair(\"SecurePin\", bean.getSecurePin()),\n new NameValuePair(\"PinPayment\", bean.getPinPayment()),\n new NameValuePair(\"PinAmount\", bean.getPinAmount()),\n new NameValuePair(\"PinMenu\", bean.getPinMenu()),\n new NameValuePair(\"PinPG\", bean.getPinPG()),\n new NameValuePair(\"PinPGRate\", bean.getPinPGRate()),\n new NameValuePair(\"FirstName\", bean.getFirstName()),\n new NameValuePair(\"LastName\", bean.getLastName()),\n new NameValuePair(\"Name\", bean.getFirstName() + \" \"\n + bean.getLastName()),\n new NameValuePair(\"LeadId\", bean.getLeadId()),\n new NameValuePair(\"EmailNotify\", bean.getEmailNotify()),\n new NameValuePair(\"etc\", bean.getEtc()),\n new NameValuePair(\"ReturnUrl\", bean.getReturnUrl()),\n new NameValuePair(\"TermsAgree\", bean.getTermsAgree()),\n new NameValuePair(\"Question\", bean.getQuestion()),\n new NameValuePair(\"Answer\", bean.getAnswer()),\n new NameValuePair(\"Language\", bean.getLanguage()),\n new NameValuePair(\"Email\", bean.getEmail()) };\n ManResponseBean response = handlePOSTRequest(url, params, null);\n return response;\n }", "public void startcreateUser(\n com.outlook.octavio.armenta.ws.SOAPServiceStub.CreateUser createUser6,\n final com.outlook.octavio.armenta.ws.SOAPServiceCallbackHandler callback)\n throws java.rmi.RemoteException {\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\n _operationClient.getOptions()\n .setAction(\"http://tempuri.org/ISOAPService/CreateUser\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n addPropertyToOperationClient(_operationClient,\n org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\n \"&\");\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n //Style is Doc.\n env = toEnvelope(getFactory(_operationClient.getOptions()\n .getSoapVersionURI()),\n createUser6,\n optimizeContent(\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\n \"createUser\")),\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\n \"CreateUser\"));\n\n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(\n org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n\n java.lang.Object object = fromOM(resultEnv.getBody()\n .getFirstElement(),\n com.outlook.octavio.armenta.ws.SOAPServiceStub.CreateUserResponse.class);\n callback.receiveResultcreateUser((com.outlook.octavio.armenta.ws.SOAPServiceStub.CreateUserResponse) object);\n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorcreateUser(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n if (error instanceof org.apache.axis2.AxisFault) {\n org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n\n if (faultElt != null) {\n if (faultExceptionNameMap.containsKey(\n new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"CreateUser\"))) {\n //make the fault by reflection\n try {\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(),\n \"CreateUser\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\n //message class\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(),\n \"CreateUser\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,\n messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[] { messageClass });\n m.invoke(ex,\n new java.lang.Object[] { messageObject });\n\n callback.receiveErrorcreateUser(new java.rmi.RemoteException(\n ex.getMessage(), ex));\n } catch (java.lang.ClassCastException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorcreateUser(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorcreateUser(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorcreateUser(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorcreateUser(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorcreateUser(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorcreateUser(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorcreateUser(f);\n }\n } else {\n callback.receiveErrorcreateUser(f);\n }\n } else {\n callback.receiveErrorcreateUser(f);\n }\n } else {\n callback.receiveErrorcreateUser(error);\n }\n }\n\n public void onFault(\n org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender()\n .cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorcreateUser(axisFault);\n }\n }\n });\n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n\n if ((_operations[3].getMessageReceiver() == null) &&\n _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[3].setMessageReceiver(_callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n }", "public void add_return(User param){\r\n if (local_return == null){\r\n local_return = new User[]{};\r\n }\r\n\r\n \r\n //update the setting tracker\r\n local_returnTracker = true;\r\n \r\n\r\n java.util.List list =\r\n org.apache.axis2.databinding.utils.ConverterUtil.toList(local_return);\r\n list.add(param);\r\n this.local_return =\r\n (User[])list.toArray(\r\n new User[list.size()]);\r\n\r\n }" ]
[ "0.6913729", "0.6741313", "0.6601715", "0.6597518", "0.65712035", "0.6524673", "0.6523746", "0.6497743", "0.63365346", "0.6320545", "0.62902844", "0.62418354", "0.6236004", "0.6181963", "0.61812824", "0.61458296", "0.6108935", "0.60738236", "0.6067333", "0.6056691", "0.60401785", "0.5984715", "0.5982812", "0.5951575", "0.5942791", "0.59309065", "0.5930592", "0.5917026", "0.59141827", "0.59138584", "0.59004146", "0.58983594", "0.5890175", "0.586639", "0.586528", "0.5851298", "0.5847198", "0.5844157", "0.58351666", "0.5820253", "0.5816986", "0.581665", "0.5813016", "0.5806696", "0.58035445", "0.5803448", "0.5801937", "0.57854605", "0.5782141", "0.5775073", "0.5768112", "0.5765679", "0.5763216", "0.5759916", "0.5741221", "0.57347053", "0.5731712", "0.57284135", "0.5727216", "0.5704226", "0.56977427", "0.5696117", "0.56938", "0.567321", "0.5665964", "0.5657016", "0.56451136", "0.56427604", "0.5641117", "0.56274754", "0.56270945", "0.56269795", "0.5615683", "0.5615683", "0.5613058", "0.5612387", "0.56110996", "0.56030035", "0.5595042", "0.55833083", "0.5582788", "0.5579025", "0.5568847", "0.55684686", "0.5561185", "0.55602354", "0.55596757", "0.55580616", "0.55565035", "0.5556057", "0.5554462", "0.5552829", "0.55457354", "0.5544738", "0.55357206", "0.55273765", "0.55266345", "0.55199355", "0.5512911", "0.5508436" ]
0.66223127
2
auto generated Axis2 call back method for revokeApplication method override this method for handling normal response from revokeApplication operation
public void receiveResultrevokeApplication( boolean result ) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void revoke();", "public void unregisterApplication(String internalAppId){\n\t\tString webServiceUrl = serviceProfile.getServiceApiUrl()+\"/\"+internalAppId;\n\t\tlogger.info(\"unregistering application \"+ webServiceUrl);\n\t\t\n\t\tResponseEntity<Void> response = restTemplate.exchange(webServiceUrl, HttpMethod.DELETE,\n null, Void.class);\n\t\tVoid body = response.getBody();\n\t}", "@Override\n protected void onPlusClientRevokeAccess() {\n }", "@Override\n protected void onPlusClientRevokeAccess() {\n }", "public com.google.protobuf.Empty deleteApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);", "public void deleteApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver);", "public void receiveResultremoveUserFromApplication(\n boolean result\n ) {\n }", "@Override\n public OAuthApplicationInfo mapOAuthApplication(OAuthAppRequest appInfoRequest)\n throws APIManagementException {\n\n //initiate OAuthApplicationInfo\n OAuthApplicationInfo oAuthApplicationInfo = appInfoRequest.getOAuthApplicationInfo();\n\n String consumerKey = oAuthApplicationInfo.getClientId();\n String tokenScope = (String) oAuthApplicationInfo.getParameter(\"tokenScope\");\n String[] tokenScopes = new String[1];\n tokenScopes[0] = tokenScope;\n String clientSecret = (String) oAuthApplicationInfo.getParameter(\"client_secret\");\n oAuthApplicationInfo.setClientSecret(clientSecret);\n //for the first time we set default time period.\n oAuthApplicationInfo.addParameter(ApplicationConstants.VALIDITY_PERIOD,\n getConfigurationParamValue(APIConstants.IDENTITY_OAUTH2_FIELD_VALIDITY_PERIOD));\n\n\n //check whether given consumer key and secret match or not. If it does not match throw an exception.\n org.wso2.carbon.apimgt.api.model.xsd.OAuthApplicationInfo info = null;\n try {\n info = getOAuthApplication(oAuthApplicationInfo.getClientId());\n if (!clientSecret.equals(info.getClientSecret())) {\n throw new APIManagementException(\"The secret key is wrong for the given consumer key \" + consumerKey);\n }\n\n } catch (Exception e) {\n handleException(\"Some thing went wrong while getting OAuth application for given consumer key \" +\n oAuthApplicationInfo.getClientId(), e);\n } \n if (info != null && info.getClientId() == null) {\n return null;\n }\n\n oAuthApplicationInfo.addParameter(\"tokenScope\", tokenScopes);\n oAuthApplicationInfo.setClientName(info.getClientName());\n oAuthApplicationInfo.setClientId(info.getClientId());\n oAuthApplicationInfo.setCallBackURL(info.getCallBackURL());\n oAuthApplicationInfo.setClientSecret(info.getClientSecret());\n oAuthApplicationInfo.setIsSaasApplication(info.getIsSaasApplication());\n\n try {\n JSONObject jsonObject = new JSONObject(info.getJsonString());\n\n if (jsonObject.has(ApplicationConstants.\n OAUTH_REDIRECT_URIS)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_REDIRECT_URIS, jsonObject.get(ApplicationConstants.OAUTH_REDIRECT_URIS));\n }\n\n if (jsonObject.has(ApplicationConstants.OAUTH_CLIENT_NAME)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_CLIENT_NAME, jsonObject.get(ApplicationConstants.OAUTH_CLIENT_NAME));\n }\n\n if (jsonObject.has(ApplicationConstants.OAUTH_CLIENT_GRANT)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_CLIENT_GRANT, jsonObject.get(ApplicationConstants.OAUTH_CLIENT_GRANT));\n }\n } catch (JSONException e) {\n handleException(\"Can not read information from the retrieved OAuth application\", e);\n }\n\n if (log.isDebugEnabled()) {\n log.debug(\"Creating semi-manual application for consumer id : \" + oAuthApplicationInfo.getClientId());\n }\n\n\n return oAuthApplicationInfo;\n }", "@Transactional\n @DeleteMapping(\"/{name}/quantum-applications/{applicationName}\")\n public ResponseEntity<EntityModel<EventTriggerDto>> unregisterQuantumApplication(@PathVariable String name, @PathVariable String applicationName) {\n return new ResponseEntity<>(linkAssembler.toModel(service.unregisterApplication(name, applicationName), EventTriggerDto.class), HttpStatus.OK);\n }", "java.util.concurrent.Future<StopApplicationResult> stopApplicationAsync(StopApplicationRequest stopApplicationRequest);", "Result deleteApp(String app);", "@Override\n public OAuthApplicationInfo createApplication(OAuthAppRequest oauthAppRequest) throws APIManagementException {\n OAuthApplicationInfo oAuthApplicationInfo = oauthAppRequest.getOAuthApplicationInfo();\n\n // Subscriber's name should be passed as a parameter, since it's under the subscriber the OAuth App is created.\n String userId = (String) oAuthApplicationInfo.getParameter(ApplicationConstants.\n OAUTH_CLIENT_USERNAME);\n String applicationName = oAuthApplicationInfo.getClientName();\n String keyType = (String) oAuthApplicationInfo.getParameter(ApplicationConstants.APP_KEY_TYPE);\n String callBackURL = (String) oAuthApplicationInfo.getParameter(ApplicationConstants.APP_CALLBACK_URL);\n if (keyType != null) {\n applicationName = applicationName + '_' + keyType;\n }\n\n if (log.isDebugEnabled()) {\n log.debug(\"Trying to create OAuth application :\" + applicationName);\n }\n\n String tokenScope = (String) oAuthApplicationInfo.getParameter(\"tokenScope\");\n String[] tokenScopes = new String[1];\n tokenScopes[0] = tokenScope;\n\n org.wso2.carbon.apimgt.api.model.xsd.OAuthApplicationInfo info = null;\n\n try {\n org.wso2.carbon.apimgt.api.model.xsd.OAuthApplicationInfo applicationToCreate =\n new org.wso2.carbon.apimgt.api.model.xsd.OAuthApplicationInfo();\n applicationToCreate.setIsSaasApplication(oAuthApplicationInfo.getIsSaasApplication());\n applicationToCreate.setCallBackURL(callBackURL);\n applicationToCreate.setClientName(applicationName);\n applicationToCreate.setAppOwner(userId);\n applicationToCreate.setJsonString(oAuthApplicationInfo.getJsonString());\n applicationToCreate.setTokenType(oAuthApplicationInfo.getTokenType());\n info = createOAuthApplicationbyApplicationInfo(applicationToCreate);\n } catch (Exception e) {\n handleException(\"Can not create OAuth application : \" + applicationName, e);\n } \n\n if (info == null || info.getJsonString() == null) {\n handleException(\"OAuth app does not contains required data : \" + applicationName,\n new APIManagementException(\"OAuth app does not contains required data\"));\n }\n\n oAuthApplicationInfo.addParameter(\"tokenScope\", tokenScopes);\n oAuthApplicationInfo.setClientName(info.getClientName());\n oAuthApplicationInfo.setClientId(info.getClientId());\n oAuthApplicationInfo.setCallBackURL(info.getCallBackURL());\n oAuthApplicationInfo.setClientSecret(info.getClientSecret());\n oAuthApplicationInfo.setIsSaasApplication(info.getIsSaasApplication());\n\n try {\n JSONObject jsonObject = new JSONObject(info.getJsonString());\n\n if (jsonObject.has(ApplicationConstants.\n OAUTH_REDIRECT_URIS)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_REDIRECT_URIS, jsonObject.get(ApplicationConstants.OAUTH_REDIRECT_URIS));\n }\n\n if (jsonObject.has(ApplicationConstants.OAUTH_CLIENT_NAME)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_CLIENT_NAME, jsonObject.get(ApplicationConstants.OAUTH_CLIENT_NAME));\n }\n\n if (jsonObject.has(ApplicationConstants.OAUTH_CLIENT_GRANT)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_CLIENT_GRANT, jsonObject.get(ApplicationConstants.OAUTH_CLIENT_GRANT));\n }\n } catch (JSONException e) {\n handleException(\"Can not retrieve information of the created OAuth application\", e);\n }\n\n return oAuthApplicationInfo;\n\n }", "public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);", "public void cancelInvitionUser() {\n\n }", "public void receiveResultupdateRolesOfUserForApplication(\n boolean result\n ) {\n }", "@ApiOperation(value=\"Login\", notes=\"Login action\")\n @RequestMapping(value=\"/user/unregister\",method= RequestMethod.POST)\n @ResponseBody\n public RetObject unregisterHomeconnect(@ApiParam(value = \"account unregister\", required = true)@RequestHeader(value = \"PlatID\", required = true) String platID,@RequestHeader(value = \"AppID\", required = false) String appID,\n @RequestHeader HttpHeaders httpHeaders,\n @RequestBody(required = false) BSHDeviceReqVO body){\n String url = \"/v1/user/unregister\";\n RetObject result = RetObject.tokenError();\n Map<String,String> headerMap = new HashedMap();\n headerMap.put(\"PlatID\", platID);\n headerMap.put(\"AppID\", appID);\n String headers = getJSONString(headerMap);\n String bodyText = getJSONString(body);\n Error headerError = validateHeaders(platID,appID);\n Error bodyError = validateRequestBodyUserID(body);\n if (bodyError == null && headerError == null){\n result = RetObject.success();\n }\n return result;\n}", "public void invalidateApplication(Object reason) {\n for (MemberImpl member : getNodeEngine().getClusterService().getMemberImpls()) {\n if (!member.localMember()) {\n YarnPacket yarnPacket = new YarnPacket(\n getApplicationName().getBytes(),\n toBytes(reason)\n );\n\n yarnPacket.setHeader(YarnPacket.HEADER_YARN_INVALIDATE_APPLICATION);\n ((NodeEngineImpl) this.getNodeEngine()).getNode().getConnectionManager().transmit(yarnPacket, member.getAddress());\n } else {\n executeApplicationInvalidation(reason);\n }\n }\n }", "Mono<RestartApplicationResponse> restart(RestartApplicationRequest request);", "@RequestMapping(value = \"/rest/application/{id}\", method = RequestMethod.DELETE,\n produces = \"application/json\")\n @Timed\n public void delete(@PathVariable String id, HttpServletResponse response) {\n log.debug(\"REST request to delete application : {}\", id);\n try {\n Application application = applicationRepository.findOne(id);\n if (application == null) {\n response.setStatus(HttpServletResponse.SC_NOT_FOUND);\n } else {\n deployer.delete(application);\n applicationRepository.delete(id);\n }\n } catch (CloudezzDeployException e) {\n log.error(\"Failed during delete app cfg\", e);\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n }\n\n }", "@ApiOperation(value=\"Unbind\", notes=\"Unbind action\")\n @RequestMapping(value=\"/user/unbindDevices\",method = RequestMethod.POST)\n @ResponseBody\n public RetObject unbindDevice(@ApiParam(value=\"unbind device\", required = true)@RequestHeader(value = \"PlatID\", required = true) String platID, @RequestHeader(value = \"AppID\", required = false) String appID,\n @RequestHeader HttpHeaders httpHeaders,\n @ApiParam(name=\"Object\",value = \"RequestObject\",required = true)\n @RequestBody(required = false) BSHDeviceReqVO body){\n String url = \"/api/translator/user/unbindDevices\";\n RetObject result = RetObject.deviceNotExist();\n Map<String,String> headerMap = new HashedMap();\n headerMap.put(\"AppID\", appID);\n\theaderMap.put(\"PlatID\", platID);\n String headers = getJSONString(headerMap);\n String bodyText = getJSONString(body);\n\tError headerError = validateHeaders(platID,appID);\n Error bodyError = validateRequestBodyUserID(body);\n if (bodyError == null && headerError == null && body.getDeviceID() != null){\n try{\n String s = udeviceIdConvert.decode(body.getDeviceID());\n if (s != null){\n result = RetObject.success();\n }else{\n result = RetObject.fail();\n}\n}catch (Error error){result = RetObject.fail();}catch (Exception exception){exception.printStackTrace();}\n}\n return result;\n}", "@Override\n public void onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation) {\n }", "public sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlementPrecheckResponse helloAuthenticatedWithEntitlementPrecheck(\n\n sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlementPrecheck helloAuthenticatedWithEntitlementPrecheck2)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\n _operationClient.getOptions().setAction(\"helloAuthenticatedWithEntitlementPrecheck\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n helloAuthenticatedWithEntitlementPrecheck2,\n optimizeContent(new javax.xml.namespace.QName(\"http://ws.sample/\",\n \"helloAuthenticatedWithEntitlementPrecheck\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlementPrecheckResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlementPrecheckResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }", "public void starthelloAuthenticatedWithEntitlementPrecheck(\n\n sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlementPrecheck helloAuthenticatedWithEntitlementPrecheck2,\n\n final sample.ws.HelloWorldWSCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\n _operationClient.getOptions().setAction(\"helloAuthenticatedWithEntitlementPrecheck\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n helloAuthenticatedWithEntitlementPrecheck2,\n optimizeContent(new javax.xml.namespace.QName(\"http://ws.sample/\",\n \"helloAuthenticatedWithEntitlementPrecheck\")));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlementPrecheckResponse.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResulthelloAuthenticatedWithEntitlementPrecheck(\n (sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlementPrecheckResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorhelloAuthenticatedWithEntitlementPrecheck(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(faultElt.getQName())){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Exception ex=\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t(java.lang.Exception) exceptionClass.newInstance();\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorhelloAuthenticatedWithEntitlementPrecheck(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorhelloAuthenticatedWithEntitlementPrecheck(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorhelloAuthenticatedWithEntitlementPrecheck(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorhelloAuthenticatedWithEntitlementPrecheck(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorhelloAuthenticatedWithEntitlementPrecheck(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorhelloAuthenticatedWithEntitlementPrecheck(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorhelloAuthenticatedWithEntitlementPrecheck(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorhelloAuthenticatedWithEntitlementPrecheck(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorhelloAuthenticatedWithEntitlementPrecheck(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorhelloAuthenticatedWithEntitlementPrecheck(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorhelloAuthenticatedWithEntitlementPrecheck(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorhelloAuthenticatedWithEntitlementPrecheck(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[1].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[1].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "@Override\n public void onCancel(Platform arg0, int arg1) {\n Log.d(TAG, \"onCancel: ============授权取消\");\n }", "public void revoke() {\n WebsitePreferenceBridge.nativeRevokeUsbPermission(mOrigin, mEmbedder, mObject);\n }", "public void revokeAuthorization(\n String clientId,\n String code,\n AuthorizationRevokeSpec request) throws InternalException {\n Client client = database.findClientById(clientId);\n if (client == null) {\n throw new ClientNotFoundException(clientId);\n }\n\n if (client.getSecret() != null &&\n !client.getSecret().equals(request.getClientSecret())) {\n throw new ClientUnauthorizedException(clientId);\n }\n\n AuthorizationTicket ticket = database.findAuthorizationTicketByCodeAndClientId(code, clientId);\n if (ticket == null) {\n throw new AuthorizationTicketNotFoundError(clientId, code);\n }\n\n database.removeAuthorizationTicket(clientId, code);\n }", "public RevokePermissionSystemResponse revokePermissionSystem(RevokePermissionSystemRequest request) throws GPUdbException {\n RevokePermissionSystemResponse actualResponse_ = new RevokePermissionSystemResponse();\n submitRequest(\"/revoke/permission/system\", request, actualResponse_, false);\n return actualResponse_;\n }", "void stop(SignedObject accessToken) throws RemoteException, rmi.AuthenticationException;", "void unsetIdVerificationResponseData();", "public void resendOTP() {\n ApiInterface apiInterface = RestClient.getApiInterface();\n apiInterface.userResendOTP(\"bearer\" + \" \" + CommonData.getAccessToken())\n .enqueue(new ResponseResolver<CommonResponse>(OtpActivity.this, true, true) {\n @Override\n public void success(final CommonResponse commonResponse) {\n Log.d(\"debug\", commonResponse.getMessage());\n Toast.makeText(OtpActivity.this, \"New OTP Sent\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void failure(final APIError error) {\n Log.d(\"debug\", error.getMessage());\n\n }\n });\n\n\n }", "private void releaseAndDeauthorize(final boolean deauthorizeNow, final int resultCode, boolean closeSocket)\n {\n synchronized(lock)\n {\n if (currentState == STATE_STOPPED)\n {\n if (log.isInfoEnabled())\n {\n log.info(\"ignoring releaseAndDeauthorize when already stopped\");\n }\n return;\n }\n //don't change state here\n }\n\n if (log.isInfoEnabled()) \n {\n log.info(\"releaseAndDeauthorize - now: \" + deauthorizeNow + \" - id: \" + connectionId + \", url: \" + url);\n }\n HNServerSessionManager.getInstance().release(this, closeSocket);\n if (deauthorizeNow)\n {\n HNServerSessionManager.getInstance().deauthorize(this, resultCode);\n }\n else\n {\n HNServerSessionManager.getInstance().scheduleDeauthorize(this, resultCode);\n }\n }", "void remove(String installedAppId);", "public void startrequestAppointment(\n\n org.pahospital.www.radiologyservice.RadiologyServiceStub.Appointment appointment2,\n\n final org.pahospital.www.radiologyservice.RadiologyServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\n _operationClient.getOptions().setAction(\"http://www.PAHospital.org/RadiologyService/RequestAppointment\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n appointment2,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\",\n \"requestAppointment\")), new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\",\n \"requestAppointment\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n org.pahospital.www.radiologyservice.RadiologyServiceStub.Appointment.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultrequestAppointment(\n (org.pahospital.www.radiologyservice.RadiologyServiceStub.Appointment)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorrequestAppointment(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"RequestAppointment\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"RequestAppointment\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"RequestAppointment\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorrequestAppointment(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorrequestAppointment(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorrequestAppointment(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorrequestAppointment(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorrequestAppointment(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorrequestAppointment(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorrequestAppointment(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorrequestAppointment(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorrequestAppointment(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorrequestAppointment(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorrequestAppointment(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorrequestAppointment(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[0].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[0].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "public org.pahospital.www.radiologyservice.RadiologyServiceStub.Appointment requestAppointment(\n\n org.pahospital.www.radiologyservice.RadiologyServiceStub.Appointment appointment2)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\n _operationClient.getOptions().setAction(\"http://www.PAHospital.org/RadiologyService/RequestAppointment\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n appointment2,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\",\n \"requestAppointment\")), new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\",\n \"requestAppointment\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n org.pahospital.www.radiologyservice.RadiologyServiceStub.Appointment.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (org.pahospital.www.radiologyservice.RadiologyServiceStub.Appointment)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"RequestAppointment\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"RequestAppointment\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"RequestAppointment\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "protected Application breakWithChainCodeInvokerByChangeRequest(HfgwUserContext userContext, String applicationId, String changeRequestId, String [] tokensExpr)\n\t\t throws Exception{\n\t\t\t\n\t\t\t//TODO add check code here\n\t\t\t\n\t\t\tApplication application = loadApplication(userContext, applicationId, allTokens());\n\n\t\t\tsynchronized(application){ \n\t\t\t\t//Will be good when the thread loaded from this JVM process cache.\n\t\t\t\t//Also good when there is a RAM based DAO implementation\n\t\t\t\t\n\t\t\t\tapplicationDaoOf(userContext).planToRemoveChainCodeInvokerListWithChangeRequest(application, changeRequestId, this.emptyOptions());\n\n\t\t\t\tapplication = saveApplication(userContext, application, tokens().withChainCodeInvokerList().done());\n\t\t\t\treturn application;\n\t\t\t}\n\t}", "public void removeApplication(ApplicationId applicationId) {\n synchronized (delegationTokens) {\n Iterator<DelegationTokenToRenew> it = delegationTokens.iterator();\n while(it.hasNext()) {\n DelegationTokenToRenew dttr = it.next();\n if (dttr.applicationId.equals(applicationId)) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Removing delegation token for appId=\" + applicationId + \n \"; token=\" + dttr.token.getService());\n }\n\n // cancel the timer\n if(dttr.timerTask!=null)\n dttr.timerTask.cancel();\n\n // cancel the token\n cancelToken(dttr);\n\n it.remove();\n }\n }\n }\n }", "void restart(SignedObject accessToken) throws RemoteException, rmi.AuthenticationException;", "@RequestMapping(value = \"/token/revoke\", method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)\n public ResponseEntity<?> revokeToken(\n @RequestHeader(value = HttpHeaders.AUTHORIZATION, required = false) String authorization)\n throws ServletRequestBindingException {\n if (!authorization.startsWith(String.format(\"%s \", BEARER_TYPE))) {\n throw new ServletRequestBindingException(\"Invalid access token\");\n }\n String accessToken = authorization.substring(BEARER_TYPE.length()).trim();\n Token token = tokenService.loadToken(accessToken);\n tokenService.revokeToken(token);\n return new ResponseEntity<String>(\"\", HttpStatus.NO_CONTENT);\n }", "@Override\r\n\tpublic void onCloseApplication() {\n\t}", "private native void destruirAplicacionNativa();", "protected MessageBody cancel() {\n\t\tPlatformMessage msg = cancelRequest(incidentAddress).getMessage();\n\t\talarm.cancel(context, msg);\n\t\treturn msg.getValue();\n\t}", "public void revokeOffer(OfferMgmtVO offerMgmtVO) throws MISPException {\n\n\t\tlogger.entering(\"revokeOffer\", offerMgmtVO);\n\n\t\ttry {\n\n\t\t\tthis.customerSubsManager.revokeOffer(offerMgmtVO);\n\n\t\t} catch (DBException exception) {\n\t\t\tlogger.error(\"An exception occured while revoking Offer.\",\n\t\t\t\t\texception);\n\t\t\tthrow new MISPException(exception);\n\n\t\t}\n\n\t\tlogger.exiting(\"revokeOffer\");\n\n\t}", "@Override\n\tpublic void sendCancelledLeaveApp(Long companyId,\n\t\t\tMap<String, Long> leaveCategoryMap, String baseURL, String apiKey) {\n\n\t\tSimpleClientHttpRequestFactory requestFactory = new SimpleClientHttpRequestFactory();\n\n\t\tsetInternalProxy(requestFactory);\n\n\t\tCompany companyVO = companyDAO.findById(companyId);\n\n\t\t// Find All Leave which is not send(Sync) to KeyPay\n\t\tList<KeyPayIntLeaveApplication> keyPayIntLeaveAppList = keyPayIntLeaveApplicationDAO\n\t\t\t\t.findByCondition(\n\t\t\t\t\t\tPayAsiaConstants.PAYASIA_KEYPAY_INT_LEAVE_SYNC_STATUS_SUCCESS,\n\t\t\t\t\t\tPayAsiaConstants.LEAVE_TRANSACTION_TYPE_LEAVE_CANCELLED,\n\t\t\t\t\t\tcompanyId);\n\n\t\tMap<String, String> empNumExternalIdMap = new HashMap<String, String>();\n\t\tif (!keyPayIntLeaveAppList.isEmpty()) {\n\t\t\tHRISPreference hrisPreferenceVO = hrisPreferenceDAO\n\t\t\t\t\t.findByCompanyId(companyId);\n\t\t\tif (hrisPreferenceVO != null\n\t\t\t\t\t&& hrisPreferenceVO.getExternalId() != null) {\n\t\t\t\tList<Object[]> keyPayEmpExternalIdList = getKeyPayExternalIdList(\n\t\t\t\t\t\thrisPreferenceVO.getExternalId(), companyId,\n\t\t\t\t\t\tcompanyVO.getDateFormat(), null);\n\t\t\t\tfor (Object[] extIdObj : keyPayEmpExternalIdList) {\n\t\t\t\t\tif (extIdObj != null && extIdObj[0] != null\n\t\t\t\t\t\t\t&& extIdObj[1] != null) {\n\t\t\t\t\t\tempNumExternalIdMap.put(String.valueOf(extIdObj[1]),\n\t\t\t\t\t\t\t\tString.valueOf(extIdObj[0]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (KeyPayIntLeaveApplication keyPayIntLeaveApplication : keyPayIntLeaveAppList) {\n\t\t\t\tif (empNumExternalIdMap.get(keyPayIntLeaveApplication\n\t\t\t\t\t\t.getEmployeeNumber()) == null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tString leaveRequestId = \"\";\n\t\t\t\tKeyPayIntLeaveApplication leaveApplication = keyPayIntLeaveApplicationDAO\n\t\t\t\t\t\t.findByLeaveAppId(\n\t\t\t\t\t\t\t\tcompanyId,\n\t\t\t\t\t\t\t\tkeyPayIntLeaveApplication\n\t\t\t\t\t\t\t\t\t\t.getCancelLeaveApplicationId(),\n\t\t\t\t\t\t\t\tPayAsiaConstants.LEAVE_TRANSACTION_TYPE_LEAVE_CANCELLED);\n\t\t\t\tif (leaveApplication != null\n\t\t\t\t\t\t&& leaveApplication.getExternalLeaveRequestId() != null) {\n\t\t\t\t\tleaveRequestId = String.valueOf(leaveApplication\n\t\t\t\t\t\t\t.getExternalLeaveRequestId());\n\t\t\t\t} else {\n\t\t\t\t\tleaveRequestId = getLeaveRequestForEmployee(\n\t\t\t\t\t\t\tempNumExternalIdMap.get(keyPayIntLeaveApplication\n\t\t\t\t\t\t\t\t\t.getEmployeeNumber()),\n\t\t\t\t\t\t\tkeyPayIntLeaveApplication, leaveCategoryMap,\n\t\t\t\t\t\t\tbaseURL, apiKey);\n\t\t\t\t}\n\n\t\t\t\tif (StringUtils.isNotBlank(leaveRequestId)) {\n\t\t\t\t\tRestTemplate restTemplate = new RestTemplate(requestFactory);\n\t\t\t\t\tString url = baseURL\n\t\t\t\t\t\t\t+ \"/employee/\"\n\t\t\t\t\t\t\t+ empNumExternalIdMap.get(keyPayIntLeaveApplication\n\t\t\t\t\t\t\t\t\t.getEmployeeNumber()) + \"/leaverequest/\"\n\t\t\t\t\t\t\t+ leaveRequestId;\n\n\t\t\t\t\tHttpHeaders headers = new HttpHeaders();\n\t\t\t\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\t\t\t\theaders.add(\"Authorization\", \"Basic \" + apiKey);\n\n\t\t\t\t\tMap<String, String> params = new HashMap<String, String>();\n\t\t\t\t\tHttpEntity<Map> entity = new HttpEntity<Map>(params,\n\t\t\t\t\t\t\theaders);\n\n\t\t\t\t\trestTemplate.getMessageConverters().add(\n\t\t\t\t\t\t\tnew StringHttpMessageConverter());\n\n\t\t\t\t\tJSONObject jsonObj;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tResponseEntity<String> response1 = restTemplate\n\t\t\t\t\t\t\t\t.exchange(url, HttpMethod.DELETE, entity,\n\t\t\t\t\t\t\t\t\t\tString.class);\n\n\t\t\t\t\t\t// System.out.println(\"response>>>\");\n\t\t\t\t\t\t// System.out.println(response1.getBody());\n\t\t\t\t\t\tjsonObj = new JSONObject(response1.getBody());\n\t\t\t\t\t\tif (jsonObj.getString(\"status\") != null\n\t\t\t\t\t\t\t\t&& jsonObj\n\t\t\t\t\t\t\t\t\t\t.getString(\"status\")\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\t\t\t\tPayAsiaConstants.LEAVE_TRANSACTION_TYPE_LEAVE_CANCELLED)) {\n\t\t\t\t\t\t\tkeyPayIntLeaveApplication\n\t\t\t\t\t\t\t\t\t.setExternalLeaveRequestId(jsonObj\n\t\t\t\t\t\t\t\t\t\t\t.getLong(\"id\"));\n\t\t\t\t\t\t\tkeyPayIntLeaveApplication\n\t\t\t\t\t\t\t\t\t.setSyncStatus(PayAsiaConstants.PAYASIA_KEYPAY_INT_LEAVE_SYNC_STATUS_SUCCESS);\n\t\t\t\t\t\t\tkeyPayIntLeaveApplicationDAO\n\t\t\t\t\t\t\t\t\t.update(keyPayIntLeaveApplication);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tkeyPayIntLeaveApplication\n\t\t\t\t\t\t\t\t.setSyncStatus(PayAsiaConstants.PAYASIA_KEYPAY_INT_LEAVE_SYNC_STATUS_FAILED);\n\t\t\t\t\t\tkeyPayIntLeaveApplicationDAO\n\t\t\t\t\t\t\t\t.update(keyPayIntLeaveApplication);\n\t\t\t\t\t\tLOGGER.error(e.getMessage(), e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void revokePermission(String objectId, User user, List<String> actions) throws UserManagementException;", "public ApplicationManagementServiceCallbackHandler(){\n this.clientData = null;\n }", "@Override\n\tprotected Object handleTokenEndpointRequest(String requestId) {\n\t\tenv.removeObject(\"client_authentication\");\n\t\treturn super.handleTokenEndpointRequest(requestId);\n\t}", "private void removeApplication(ApplicationId applicationId) {\n if (duperModel.infraApplicationIsActive(applicationId)) {\n NestedTransaction nestedTransaction = new NestedTransaction();\n provisioner.remove(nestedTransaction, applicationId);\n nestedTransaction.commit();\n duperModel.infraApplicationRemoved(applicationId);\n }\n }", "void transactTo_uninstallPackage(int code, String transactName, ComponentName who, String packageName, boolean keepData, int userId) {\n int i = 1;\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n IBinder binder = ServiceManager.getService(\"device_policy\");\n if (binder != null) {\n if (HWFLOW) {\n Log.i(TAG, \"Transact:\" + transactName + \"to device policy manager service.\");\n }\n _data.writeInterfaceToken(ConstantValue.DESCRIPTOR);\n if (who != null) {\n _data.writeInt(1);\n who.writeToParcel(_data, 0);\n } else {\n _data.writeInt(0);\n }\n _data.writeString(packageName);\n if (!keepData) {\n i = 0;\n }\n _data.writeInt(i);\n _data.writeInt(userId);\n binder.transact(code, _data, _reply, 0);\n _reply.readException();\n }\n _reply.recycle();\n _data.recycle();\n } catch (RemoteException localRemoteException) {\n Log.e(TAG, \"transactTo \" + transactName + \" failed: \" + localRemoteException.getMessage());\n } catch (Throwable th) {\n _reply.recycle();\n _data.recycle();\n }\n }", "@Override\n\tpublic void revoke(User subject, Permission permission)\n\t{\n\t\t//TODO figure out how to implement since we're using role based permissions\n\t}", "@Test\n public void revokeRevoked() {\n var uid = UID.apply();\n var user = UserAuthorization.random();\n var granted = Instant.now();\n var privilege = DatasetPrivilege.CONSUMER;\n var executor = UserId.random();\n\n var grant = DatasetGrant.createApproved(\n uid, user, privilege,\n executor, granted, Markdown.lorem());\n\n /*\n * When\n */\n DatasetGrant firstRevoked = grant.revoke(UserId.random(), Instant.now(), Markdown.lorem());\n DatasetGrant secondRevoked = firstRevoked.revoke(UserId.random(), Instant.now(), Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(firstRevoked)\n .as(\"The request is closed and not active after it is revoked\")\n .satisfies(g -> {\n assertThat(g.asDatasetMember()).isNotPresent();\n assertThat(g.isOpen()).isFalse();\n assertThat(g.isActive()).isFalse();\n assertThat(g.isClosed()).isTrue();\n })\n .isEqualTo(secondRevoked);\n }", "public void disconnectCallAppAbility() {\n HiLog.info(LOG_LABEL, \"disconnectCallAppAbility\", new Object[0]);\n Context context = this.mContext;\n if (context == null) {\n HiLog.error(LOG_LABEL, \"disconnectCallAppAbility: no context.\", new Object[0]);\n return;\n }\n try {\n AbilityUtils.disconnectAbility(context, this.mServiceConnection);\n } catch (IllegalArgumentException unused) {\n HiLog.error(LOG_LABEL, \"disconnectCallAppAbility got IllegalArgumentException.\", new Object[0]);\n }\n }", "@Test\n public void revokeRequested() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n /*\n * When\n */\n DatasetGrant revoked = grant.revoke(UserId.random(), Instant.now(), Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(revoked)\n .as(\"The request is closed and not active after it is revoked\")\n .satisfies(g -> {\n assertThat(g.asDatasetMember()).isNotPresent();\n assertThat(g.isOpen()).isFalse();\n assertThat(g.isActive()).isFalse();\n assertThat(g.isClosed()).isTrue();\n });\n }", "public LoanApplicationResponse rejectLoanRequest() {\n return new LoanApplicationResponse(this, false);\n }", "@SuppressWarnings(\"unused\")\n private CreateOrUpdateApplicationResult() {\n }", "@Test\n public void clearAppPermissionsTest() throws ApiException {\n String appId = null;\n Boolean naked = null;\n // api.clearAppPermissions(appId, naked);\n\n // TODO: test validations\n }", "@Test\n public void modifyLoanApplicationTest() throws ApiException {\n Long loanId = null;\n PutSelfLoansLoanIdRequest body = null;\n PutSelfLoansLoanIdResponse response = api.modifyLoanApplication(loanId, body);\n\n // TODO: test validations\n }", "public abstract void revokeMembership(String nickname);", "public void unbindApp(RifidiApp app, Dictionary<String, String> parameters) {\n\t\t//System.out.println(\"UNBIND APP: \" + app);\n\t\tInteger appIDToRemove = null;\n\t\tsynchronized (apps) {\n\t\t\tfor (Integer i : apps.keySet()) {\n\t\t\t\tif (apps.get(i).equals(app)) {\n\t\t\t\t\tappIDToRemove = i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (appIDToRemove != null) {\n\t\t\t\tstopApp(appIDToRemove);\n\t\t\t\tapps.remove(appIDToRemove);\n\t\t\t}\n\t\t}\n\n\t}", "public org.tempuri.HISWebServiceStub.AppNoListResponse appNoList(\r\n org.tempuri.HISWebServiceStub.AppNoList appNoList10)\r\n throws java.rmi.RemoteException {\r\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n try {\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());\r\n _operationClient.getOptions()\r\n .setAction(\"http://tempuri.org/AppNoList\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n addPropertyToOperationClient(_operationClient,\r\n org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\r\n \"&\");\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n\r\n env = toEnvelope(getFactory(_operationClient.getOptions()\r\n .getSoapVersionURI()),\r\n appNoList10,\r\n optimizeContent(\r\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\r\n \"appNoList\")),\r\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\r\n \"AppNoList\"));\r\n\r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n\r\n java.lang.Object object = fromOM(_returnEnv.getBody()\r\n .getFirstElement(),\r\n org.tempuri.HISWebServiceStub.AppNoListResponse.class);\r\n\r\n return (org.tempuri.HISWebServiceStub.AppNoListResponse) object;\r\n } catch (org.apache.axis2.AxisFault f) {\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n\r\n if (faultElt != null) {\r\n if (faultExceptionNameMap.containsKey(\r\n new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(), \"AppNoList\"))) {\r\n //make the fault by reflection\r\n try {\r\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(), \"AppNoList\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(), \"AppNoList\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,\r\n messageClass);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[] { messageClass });\r\n m.invoke(ex, new java.lang.Object[] { messageObject });\r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n } catch (java.lang.ClassCastException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n } else {\r\n throw f;\r\n }\r\n } else {\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender()\r\n .cleanup(_messageContext);\r\n }\r\n }\r\n }", "java.util.concurrent.Future<DeleteApplicationResult> deleteApplicationAsync(DeleteApplicationRequest deleteApplicationRequest);", "void authorizeApplication(@Nullable String scope, @Nullable ResponseCallback<ApplicationAccessToken> callback);", "@ApiOperation(value=\"Login\", notes=\"Login action\")\n @RequestMapping(value=\"/user/logout\",method= RequestMethod.POST)\n @ResponseBody\n public RetObject logoutHomeconnect(@ApiParam(value = \"account logout\", required = true)@RequestHeader(value = \"PlatID\", required = true) String platID,@RequestHeader(value = \"AppID\", required = false) String appID,\n @RequestHeader HttpHeaders httpHeaders,\n\t\t\t\t\t@RequestHeader(value = \"AccessToken\", required = true) String AccessToken,\n @RequestBody(required = false) LoginReqVO body){\n String url = \"/api/translator/user/logout\";\n RetObject result = RetObject.fail();\n Map<String,String> headerMap = new HashedMap();\n headerMap.put(\"PlatID\", platID);\n headerMap.put(\"AppID\", appID);\n String headers = getJSONString(headerMap);\n String bodyText = getJSONString(body);\n Error headerError = validateHeaders(platID,appID);\n Error bodyError = validateLoginBodyError(body);\n if (bodyError == null && headerError == null){\n result = RetObject.success();\n }\n return result;\n}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tPlatform weibo=ShareSDK.getPlatform(SinaWeibo.NAME);\n\t\tweibo.removeAccount();\n\t\tShareSDK.removeCookieOnAuthorize(true);\n\t\tLog.i(\"tag\", \"onActivityResult\");\n\t}", "User canceledUserRegistration(User user) throws LogicException;", "public AppIDDELETEResponse() {\n }", "protected void destroyApp(boolean arg0) throws MIDletStateChangeException {\n\r\n\t}", "@Override\n\t\t\t\t public void onCancel() {\n\t\t\t\t\t errorMessage = \"You cancelled Operation\";\n\t\t\t\t\t getResponse();\n\t\t\t\t }", "private void clearChangePasswordRsp() {\n if (rspCase_ == 15) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }", "protected void retirePreviousAuthorizations() {\n List<Document> relatedDocs = getTravelDocumentService().getDocumentsRelatedTo(this, TravelDocTypes.TRAVEL_AUTHORIZATION_DOCUMENT,\n TravelDocTypes.TRAVEL_AUTHORIZATION_AMEND_DOCUMENT);\n\n //updating the related's document appDocStatus to be retired\n final DocumentAttributeIndexingQueue documentAttributeIndexingQueue = KewApiServiceLocator.getDocumentAttributeIndexingQueue();\n try {\n for (Document document : relatedDocs){\n if (!document.getDocumentNumber().equals(this.getDocumentNumber())) {\n ((TravelAuthorizationDocument) document).updateAndSaveAppDocStatus(TravelAuthorizationStatusCodeKeys.RETIRED_VERSION);\n documentAttributeIndexingQueue.indexDocument(document.getDocumentNumber());\n }\n }\n }\n catch (WorkflowException we) {\n throw new RuntimeException(\"Workflow document exception while updating related documents\", we);\n }\n }", "@Test\n public void testRevokeAffectsWholeGroup_part2() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CALENDAR));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CALENDAR));\n }", "@Override\r\n\tpublic void cancelRole(String idList, String companyId) {\n\t\t\r\n\t}", "@Test\n public void creditDenied() throws Exception {\n Application app = new Application();\n app.setName(\"bill whatwhatwhat\");\n app.setCreditScore(400);\n Offer offer = new Offer();\n offer.setApplication(app);\n\n Application result = service.operation(\"checkCredit\").sendInOut(offer).getContent(Application.class);\n\n // validate the results\n Assert.assertFalse(result.isApproved());\n }", "public void cancelRehearsal(String sessionID) throws RemoteException;", "private void revokeGplusAccess() {\n if (mGoogleApiClient.isConnected()) {\n Plus.AccountApi.clearDefaultAccount(mGoogleApiClient);\n Plus.AccountApi.revokeAccessAndDisconnect(mGoogleApiClient)\n .setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(Status arg0) {\n Log.e(TAG, \"User access revoked!\");\n mGoogleApiClient.connect();\n updateUI(false);\n }\n });\n }\n }", "public abstract void revokeModerator(String nickname);", "public com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.DoControlResponse doControl(\n\n com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.DoControl doControl)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());\n _operationClient.getOptions().setAction(\"urn:doControl\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n doControl,\n optimizeContent(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\n \"doControl\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.DoControlResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.DoControlResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }", "public void revokeRole(String roleName, User user) throws UserManagementException;", "void reject(int errorCode) throws ImsException;", "@Test\n public void testRevokePropagatedOnUpgradeNewToNewModel_part1() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CALENDAR));\n\n // Request the permission and allow it\n BasePermissionActivity.Result thirdResult = requestPermissions(new String[] {\n Manifest.permission.READ_CALENDAR}, REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class, () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Make sure the permission is granted\n assertPermissionRequestResult(thirdResult, REQUEST_CODE_PERMISSIONS,\n new String[] {Manifest.permission.READ_CALENDAR}, new boolean[] {true});\n }", "@Override\n\t\t\tpublic void invoke (boolean requiresKeychainWipe, NSError error) {\n\t\t\t\tif (requiresKeychainWipe) {\n\t\t\t\t\ts.signOut();\n\t\t\t\t}\n\t\t\t\ts.authenticate();\n\t\t\t}", "public void setApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.Application request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver);", "public void syncApprovedApplicantsFromErp() {\n\t\tList<String> allErpCodes = applicationDao.getAllProcessedApplicationFileNos();\r\n\t\t// List<String> allErpCodes = Arrays.asList(\"C/20293\", \"C/20292\",\r\n\t\t// \"C/20390\");\r\n\t\tList<ApplicationSyncPayLoad> syncedApplicants = new ArrayList<>();\r\n\t\tint successCounter = 0;\r\n\t\tint totalToBeSynced = 0;\r\n\t\tif (!allErpCodes.isEmpty()) {\r\n\t\t\ttotalToBeSynced = allErpCodes.size();\r\n\t\t\tJSONArray mJSONArray = new JSONArray(allErpCodes);\r\n\r\n\t\t\t// Send this to ERP\r\n\t\t\ttry {\r\n\t\t\t\tString results = postErpCodesToERP(mJSONArray);\r\n\t\t\t\tif (results.equals(\"null\")) {\r\n\t\t\t\t\tlogger.error(\" ===>>><<<< === NO REPLY FROM ERP ===>><<<>>== \");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tJSONArray jo = null;\r\n\t\t\t\t\tjo = new JSONArray(results);\r\n\t\t\t\t\tfor (int i = 0; i < jo.length(); i++) {\r\n\t\t\t\t\t\tJSONObject jObject = null;\r\n\t\t\t\t\t\tjObject = jo.getJSONObject(i);\r\n\t\t\t\t\t\tApplicationSyncPayLoad syncPayLoad = new ApplicationSyncPayLoad();\r\n\t\t\t\t\t\tsyncPayLoad.setApplicationNo_(jObject.getString(\"Application No_\"));\r\n\t\t\t\t\t\tsyncPayLoad.setEmail(jObject.getString(\"email\"));\r\n\t\t\t\t\t\tsyncPayLoad.setReg_no(jObject.getString(\"reg_no\"));\r\n\t\t\t\t\t\tsyncedApplicants.add(syncPayLoad);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tfor (ApplicationSyncPayLoad appSync : syncedApplicants) {\r\n\t\t\t\t\t\t// Update this Applications\r\n\t\t\t\t\t\tlogger.info(\"Finding application:\" + appSync.getApplicationNo_());\r\n\t\t\t\t\t\tList<ApplicationFormHeader> applications = applicationDao\r\n\t\t\t\t\t\t\t\t.findByErpCode(appSync.getApplicationNo_());\r\n\r\n\t\t\t\t\t\tApplicationFormHeader application = null;\r\n\t\t\t\t\t\tif (applications.size() > 0) {\r\n\t\t\t\t\t\t\tapplication = applications.get(0);\r\n\t\t\t\t\t\t\tif (application != null) {\r\n\t\t\t\t\t\t\t\t// Find the User and Member Object and User\r\n\t\t\t\t\t\t\t\tif (application.getUserRefId() != null) {\r\n\t\t\t\t\t\t\t\t\tlogger.info(\"marking this application as approved:\" + application.getRefId());\r\n\t\t\t\t\t\t\t\t\tapplication.setApplicationStatus(ApplicationStatus.APPROVED);\r\n\t\t\t\t\t\t\t\t\tUser user = userDao.findByUserId(application.getUserRefId(), false);\r\n\t\t\t\t\t\t\t\t\tMember m = null;\r\n\t\t\t\t\t\t\t\t\tif (user != null) {\r\n\t\t\t\t\t\t\t\t\t\tuser.setMemberNo(appSync.getReg_no());\r\n\t\t\t\t\t\t\t\t\t\tuserDao.deleteAllRolesForCurrentUser(user.getId());\r\n\t\t\t\t\t\t\t\t\t\tRole role = roleDao.getByName(\"MEMBER\");\r\n\t\t\t\t\t\t\t\t\t\tif (role != null) {\r\n\t\t\t\t\t\t\t\t\t\t\tuser.addRole(role);\r\n\t\t\t\t\t\t\t\t\t\t\tlogger.info(\"Changing the user role from basic_member to member.\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (user.getMember() != null) {\r\n\t\t\t\t\t\t\t\t\t\t\tm = user.getMember();\r\n\t\t\t\t\t\t\t\t\t\t\tm.setMemberNo(appSync.getReg_no());\r\n\t\t\t\t\t\t\t\t\t\t\tm.setRegistrationDate(application.getCreated());\r\n\t\t\t\t\t\t\t\t\t\t\tm.setUserRefId(user.getRefId());\r\n\t\t\t\t\t\t\t\t\t\t\tm.setMemberShipStatus(MembershipStatus.ACTIVE);\r\n\t\t\t\t\t\t\t\t\t\t\tm.setMemberQrCode(m.getRefId());\r\n\t\t\t\t\t\t\t\t\t\t\tuserDao.save(m);\r\n\t\t\t\t\t\t\t\t\t\t\tlogger.info(\"Updating member record.\");\r\n\t\t\t\t\t\t\t\t\t\t\t// Save all this parameters\r\n\t\t\t\t\t\t\t\t\t\t\t// Applicant, Member, User\r\n\t\t\t\t\t\t\t\t\t\t\tapplicationDao.save(application);\r\n\t\t\t\t\t\t\t\t\t\t\tuserDao.save(user);\r\n\t\t\t\t\t\t\t\t\t\t\tlogger.info(\"Updating user record.\");\r\n\t\t\t\t\t\t\t\t\t\t\tsuccessCounter = successCounter + 1;\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tlogger.info(\"Member Record is Null for user with memberNo:\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ user.getMemberNo()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \". Checking if the member record exist or create a new record.\");\r\n\t\t\t\t\t\t\t\t\t\t\t// Check if there was a previous\r\n\t\t\t\t\t\t\t\t\t\t\t// member\r\n\t\t\t\t\t\t\t\t\t\t\t// Record created\r\n\t\t\t\t\t\t\t\t\t\t\tMember member = null;\r\n\t\t\t\t\t\t\t\t\t\t\tmember = memberDao.findByMemberNo(appSync.getReg_no());\r\n\t\t\t\t\t\t\t\t\t\t\tif (member == null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tmember = new Member();\r\n\t\t\t\t\t\t\t\t\t\t\t\tlogger.info(\"Member doesn't exist. Creating new MemberRecord\");\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\tlogger.info(\"Member already exist. Just ammending it.\");\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tmember.setMemberNo(appSync.getReg_no());\r\n\t\t\t\t\t\t\t\t\t\t\tmember.setRegistrationDate(application.getCreated());\r\n\t\t\t\t\t\t\t\t\t\t\tmember.setUserRefId(user.getRefId());\r\n\t\t\t\t\t\t\t\t\t\t\tmember.setMemberShipStatus(MembershipStatus.ACTIVE);\r\n\t\t\t\t\t\t\t\t\t\t\tmember.setMemberQrCode(member.getRefId());\r\n\t\t\t\t\t\t\t\t\t\t\tuserDao.save(member);\r\n\t\t\t\t\t\t\t\t\t\t\tuser.setMember(member);\r\n\t\t\t\t\t\t\t\t\t\t\t// Save all this parameters\r\n\t\t\t\t\t\t\t\t\t\t\t// Applicant, Member, User\r\n\t\t\t\t\t\t\t\t\t\t\tapplicationDao.save(application);\r\n\t\t\t\t\t\t\t\t\t\t\tuserDao.save(user);\r\n\t\t\t\t\t\t\t\t\t\t\tlogger.info(\"Updating user record.\");\r\n\t\t\t\t\t\t\t\t\t\t\tsuccessCounter = successCounter + 1;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tSystem.err.println(\"Total To Be Synced:\" + totalToBeSynced + \"\\n\");\r\n\t\t\t\t\tSystem.err.println(\"Total Success:\" + successCounter + \"\\n\");\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (URISyntaxException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (JSONException 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\t\t}\r\n\t}", "@Override\r\n\tpublic String authorizationCode() throws OAuthSystemException {\n\t\treturn null;\r\n\t}", "public org.tempuri.GetUserAccessRightResponseGetUserAccessRightResult getUserAccessRight(java.lang.String msg, java.lang.String systemCode, java.lang.String companyCode) throws java.rmi.RemoteException;", "public void rejectApplication(PersonalLoanApplication application, Applicant applicant, String message) throws SQLException, MessagingException {\r\n\t\tapplicationDao.updateLoanApplicationStatus(\"R\", application.getApplicationId());\r\n\t\tsendApplicationRejectedMail(application, applicant, message);\r\n\t}", "void removePushApplication(LoggedInUser account, PushApplication pushApp);", "public void removeAppRestriction(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: cm.android.mdm.manager.PackageManager2.removeAppRestriction(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: cm.android.mdm.manager.PackageManager2.removeAppRestriction(int):void\");\n }", "private void resetWebService(){\n apiInterface = APIClient.getInterface();\n String strEmail = SharedPrefrenceManager.getInstance(ResetPasswordActivity.this).getForgotEmail();\n Call<ServerResponse> call = apiInterface.reset_password(strEmail,strResetPassword);\n call.enqueue(new Callback<ServerResponse>() {\n @Override\n public void onResponse(Call<ServerResponse> call, Response<ServerResponse> response) {\n mProgressDialog.dismiss();\n ServerResponse responseData = response.body();\n if(responseData.getCode().toString().equals(\"1\")){\n SharedPrefrenceManager.getInstance(ResetPasswordActivity.this).deleteForgotEmail();\n\n Intent intent = new Intent(ResetPasswordActivity.this, LoginActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n intent.putExtra(\"message\",responseData.getMessage().toString());\n finish();\n startActivity(intent);\n }else{\n CommonUtils.showAlertMessage(ResetPasswordActivity.this,getString(R.string.error),getString(R.string.error),responseData.getMessage(),getString(R.string.ok));\n }\n //Log.e(\"Gopal Web Service \",responseData.getCode()+' '+ responseData.getMessage());\n }\n\n @Override\n public void onFailure(Call<ServerResponse> call, Throwable t) {\n t.printStackTrace();\n mProgressDialog.dismiss();\n call.cancel();\n }\n });\n }", "public void rejectApplication(MortgageApplication application, Applicant applicant, String message) throws SQLException, MessagingException {\r\n\t\tapplicationDao.updateMortgageApplicationStatus(\"R\", application.getApplicationId());\r\n\t\tsendApplicationRejectedMail(application, applicant, message);\r\n\t}", "@Override\n protected void appStop() {\n }", "@SuppressWarnings(\"unused\")\n private void revokeGplusAccess() {\n if (mGoogleApiClient.isConnected()) {\n Plus.AccountApi.clearDefaultAccount(mGoogleApiClient);\n Plus.AccountApi.revokeAccessAndDisconnect(mGoogleApiClient).setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(Status arg0) {\n Log.e(TAG, \"User access revoked!\");\n mGoogleApiClient.connect();\n updateUI(false);\n }\n });\n }\n }", "public RevokeRoleResponse revokeRole(RevokeRoleRequest request) throws GPUdbException {\n RevokeRoleResponse actualResponse_ = new RevokeRoleResponse();\n submitRequest(\"/revoke/role\", request, actualResponse_, false);\n return actualResponse_;\n }", "default void onResendRequestSatisfied(SessionID sessionID, int beginSeqNo, int endSeqNo) {\n }", "private void unbindQueue2Exchange(RoutingContext routingContext) {\n LOGGER.debug(\"Info: unbindQueue2Exchange method started;\");\n JsonObject requestJson = routingContext.getBodyAsJson();\n HttpServerRequest request = routingContext.request();\n HttpServerResponse response = routingContext.response();\n String instanceID = request.getHeader(HEADER_HOST);\n JsonObject authenticationInfo = new JsonObject();\n authenticationInfo.put(API_ENDPOINT, \"/management/unbind\");\n requestJson.put(JSON_INSTANCEID, instanceID);\n if (request.headers().contains(HEADER_TOKEN)) {\n authenticationInfo.put(HEADER_TOKEN, request.getHeader(HEADER_TOKEN));\n authenticator.tokenInterospect(requestJson.copy(), authenticationInfo, authHandler -> {\n if (authHandler.succeeded()) {\n Future<JsonObject> brokerResult =\n managementApi.unbindQueue2Exchange(requestJson, databroker);\n brokerResult.onComplete(brokerResultHandler -> {\n if (brokerResultHandler.succeeded()) {\n LOGGER.info(\"Success: Unbinding queue to exchange\");\n handleSuccessResponse(response, ResponseType.Created.getCode(),\n brokerResultHandler.result().toString());\n } else if (brokerResultHandler.failed()) {\n LOGGER.error(\"Fail: Bad request;\" + brokerResultHandler.cause().getMessage());\n processBackendResponse(response, brokerResultHandler.cause().getMessage());\n }\n });\n } else if (authHandler.failed()) {\n LOGGER.error(\"Fail: Unauthorized;\" + authHandler.cause().getMessage());\n handleResponse(response, ResponseType.AuthenticationFailure);\n }\n });\n } else {\n LOGGER.error(\"Fail: Unauthorized\");\n handleResponse(response, ResponseType.AuthenticationFailure);\n }\n }", "private void revokeGooglePlusAccess() {\n if (mGoogleApiClient.isConnected()) {\n Plus.AccountApi.clearDefaultAccount(mGoogleApiClient);\n Plus.AccountApi.revokeAccessAndDisconnect(mGoogleApiClient)\n .setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(Status arg0) {\n Log.e(TAG, \"User access revoked!\");\n mGoogleApiClient.connect();\n }\n\n });\n }\n }", "@Test\n public void revokeApproved() {\n var uid = UID.apply();\n var user = UserAuthorization.random();\n var granted = Instant.now();\n var privilege = DatasetPrivilege.CONSUMER;\n var executor = UserId.random();\n\n var grant = DatasetGrant.createApproved(\n uid, user, privilege,\n executor, granted, Markdown.lorem());\n\n /*\n * When\n */\n DatasetGrant revoked = grant.revoke(UserId.random(), Instant.now(), Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(revoked)\n .as(\"The request is closed and not active after it is revoked\")\n .satisfies(g -> {\n assertThat(g.asDatasetMember()).isNotPresent();\n assertThat(g.isOpen()).isFalse();\n assertThat(g.isActive()).isFalse();\n assertThat(g.isClosed()).isTrue();\n });\n }", "public interface DirectPreApprovalCancellation {\n\n /**\n * Get Direct Pre Approval Code\n *\n * @return Direct Pre Approval Code\n */\n String getCode();\n\n}", "public interface ApplicationsV3 {\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#create-an-app\">Create Application</a> request\n *\n * @param request the Create Application request\n * @return the response from the Create Application request\n */\n Mono<CreateApplicationResponse> create(CreateApplicationRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#delete-an-app\">Delete Application</a> request\n *\n * @param request the Delete Application request\n * @return the response from the Delete Application request\n */\n Mono<String> delete(DeleteApplicationRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#get-an-app\">Get Application</a> request\n *\n * @param request the Get Application request\n * @return the response from the Get Application request\n */\n Mono<GetApplicationResponse> get(GetApplicationRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#get-current-droplet\">Get Current Droplet</a> request\n *\n * @param request the Get Current Droplet request\n * @return the response from the Get Current Droplet request\n */\n Mono<GetApplicationCurrentDropletResponse> getCurrentDroplet(GetApplicationCurrentDropletRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#get-current-droplet-association-for-an-app\">Get Current Droplet Relationship</a> request\n *\n * @param request the Get Current Droplet Relationship request\n * @return the response from the Get Current Droplet Relationship request\n */\n Mono<GetApplicationCurrentDropletRelationshipResponse> getCurrentDropletRelationship(GetApplicationCurrentDropletRelationshipRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#get-environment-for-an-app\">Get Application Environment</a> request\n *\n * @param request the Get Application Environment request\n * @return the response from the Get Application Environment request\n */\n Mono<GetApplicationEnvironmentResponse> getEnvironment(GetApplicationEnvironmentRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#get-environment-variables-for-an-app\">Get Application Environment Variables</a> request\n *\n * @param request the Get Application Environment Variables request\n * @return the response from the Get Application Environment Variables request\n */\n Mono<GetApplicationEnvironmentVariablesResponse> getEnvironmentVariables(GetApplicationEnvironmentVariablesRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.88.0/index.html#get-an-app-feature\">Get Application Feature</a> request\n *\n * @param request the Get Application Feature request\n * @return the response from the Get Application Feature request\n */\n Mono<GetApplicationFeatureResponse> getFeature(GetApplicationFeatureRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.90.0/#get-permissions\">Get permissions for an Application</a> request\n *\n * @param request the Get Permissions for an Application request\n * @return the response from the Get Permissions for an Application request\n */\n Mono<GetApplicationPermissionsResponse> getPermissions(GetApplicationPermissionsRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/#get-a-process\">Get Application Process</a> request\n *\n * @param request the Get Application Process request\n * @return the response from the Get Application Process request\n */\n Mono<GetApplicationProcessResponse> getProcess(GetApplicationProcessRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/#get-stats-for-a-process\">Get Statistics for a Process for an Application</a> request\n *\n * @param request the Get Statistics for a Process for an Application request\n * @return the response from the Get Statistics for a Process for an Application request\n */\n Mono<GetApplicationProcessStatisticsResponse> getProcessStatistics(GetApplicationProcessStatisticsRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.90.0/#get-ssh-enabled-for-an-app\">Get SSH enabled for an Application</a> request\n *\n * @param request the Get SSH enabled for an Application request\n * @return the response from the Get SSH enabled for an Application request\n */\n Mono<GetApplicationSshEnabledResponse> getSshEnabled(GetApplicationSshEnabledRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#list-apps\">List Applications</a> request\n *\n * @param request the List Applications request\n * @return the response from the List Applications request\n */\n Mono<ListApplicationsResponse> list(ListApplicationsRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.47.0/#list-builds-for-an-app\">List Application Builds</a> request\n *\n * @param request the List Application Builds request\n * @return the response from the List Application Builds request\n */\n Mono<ListApplicationBuildsResponse> listBuilds(ListApplicationBuildsRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#list-droplets-for-an-app\">List Application Droplets</a> request\n *\n * @param request the List Application Droplets request\n * @return the response from the List Application Droplets request\n */\n Mono<ListApplicationDropletsResponse> listDroplets(ListApplicationDropletsRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.88.0/index.html#list-app-features\">List Application Features</a> request\n *\n * @param request the List Application Features request\n * @return the response from the List Application Features request\n */\n Mono<ListApplicationFeaturesResponse> listFeatures(ListApplicationFeaturesRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/#list-packages-for-an-app\">List Application Packages</a> request\n *\n * @param request the List Application Packages request\n * @return the response from the List Application Packages request\n */\n Mono<ListApplicationPackagesResponse> listPackages(ListApplicationPackagesRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/#list-processes-for-app\">List Application Processes</a> request\n *\n * @param request the List Application Processes request\n * @return the response from the List Application Processes request\n */\n Mono<ListApplicationProcessesResponse> listProcesses(ListApplicationProcessesRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.77.0/index.html#list-routes-for-an-app\">List Application Routes</a> request\n *\n * @param request the List Application Routes request\n * @return the response from the List Application Routes request\n */\n Mono<ListApplicationRoutesResponse> listRoutes(ListApplicationRoutesRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#list-tasks-for-an-app\">List Application Tasks</a> request\n *\n * @param request the List Application Tasks request\n * @return the response from the List Application Tasks request\n */\n Mono<ListApplicationTasksResponse> listTasks(ListApplicationTasksRequest request);\n\n /**\n * Makes the Restart Application request\n *\n * @param request the Restart Application request\n * @return the response from the Restart Application request\n */\n Mono<RestartApplicationResponse> restart(RestartApplicationRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/#scale-a-process\">Scale Application</a> request\n *\n * @param request the Scale Application request\n * @return the response from the Scale Application request\n */\n Mono<ScaleApplicationResponse> scale(ScaleApplicationRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#set-current-droplet\">Set Current Droplet</a> request\n *\n * @param request the Set Current Droplet request\n * @return the response from the Set Current Droplet request\n */\n Mono<SetApplicationCurrentDropletResponse> setCurrentDroplet(SetApplicationCurrentDropletRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#start-an-app\">Start Application</a> request\n *\n * @param request the Start Application request\n * @return the response from the Start Application request\n */\n Mono<StartApplicationResponse> start(StartApplicationRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#stop-an-app\">Stop Application</a> request\n *\n * @param request the Stop Application request\n * @return the response from the Stop Application request\n */\n Mono<StopApplicationResponse> stop(StopApplicationRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/#terminate-a-process-instance\">Delete Application Process</a> request\n *\n * @param request the Delete Application Process Instance request\n * @return the response from the Delete Application Process Instance request\n */\n Mono<Void> terminateInstance(TerminateApplicationInstanceRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#update-an-app\">Update Application</a> request\n *\n * @param request the Update Application request\n * @return the response from the Update Application request\n */\n Mono<UpdateApplicationResponse> update(UpdateApplicationRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#update-environment-variables-for-an-app\">Update Application Environment Variables</a> request\n *\n * @param request the Update Application Environment Variables request\n * @return the response from the Update Application Environment Variables request\n */\n Mono<UpdateApplicationEnvironmentVariablesResponse> updateEnvironmentVariables(UpdateApplicationEnvironmentVariablesRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.88.0/index.html#update-an-app-feature\">Update Application Feature</a> request\n *\n * @param request the Update Application Feature request\n * @return the response from the Update Application Feature request\n */\n Mono<UpdateApplicationFeatureResponse> updateFeature(UpdateApplicationFeatureRequest request);\n\n}", "public DeleteApplicationResponse deleteApplicationWithOptions(DeleteApplicationRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {\n com.aliyun.teautil.Common.validateModel(request);\n java.util.Map<String, Object> body = new java.util.HashMap<>();\n if (!com.aliyun.teautil.Common.isUnset(request.applicationId)) {\n body.put(\"ApplicationId\", request.applicationId);\n }\n\n if (!com.aliyun.teautil.Common.isUnset(request.resourceGroupId)) {\n body.put(\"ResourceGroupId\", request.resourceGroupId);\n }\n\n com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(\n new TeaPair(\"body\", com.aliyun.openapiutil.Client.parseToMap(body))\n ));\n com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(\n new TeaPair(\"action\", \"DeleteApplication\"),\n new TeaPair(\"version\", \"2021-09-31\"),\n new TeaPair(\"protocol\", \"HTTPS\"),\n new TeaPair(\"pathname\", \"/\"),\n new TeaPair(\"method\", \"POST\"),\n new TeaPair(\"authType\", \"AK\"),\n new TeaPair(\"style\", \"RPC\"),\n new TeaPair(\"reqBodyType\", \"formData\"),\n new TeaPair(\"bodyType\", \"json\")\n ));\n return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteApplicationResponse());\n }", "@Test\n\tpublic void testRevokeRefreshToken0() throws Throwable {\n\t\tTokenController testedObject = new TokenController();\n\t\tString result = testedObject.revokeRefreshToken(\"Str 1.2 #\");\n\t\tassertEquals(\"Str 1.2 #\", result); \n\t\t// No exception thrown\n\t\t\n\t}" ]
[ "0.63364875", "0.6315036", "0.5933555", "0.5933555", "0.58193266", "0.5788248", "0.5725027", "0.5663411", "0.5585721", "0.5471804", "0.541385", "0.53974193", "0.53628427", "0.5293989", "0.5280218", "0.5275415", "0.5271749", "0.5247997", "0.5222019", "0.51849526", "0.5159552", "0.51374793", "0.51295495", "0.51240826", "0.5116873", "0.51046216", "0.509438", "0.50692034", "0.5065374", "0.50614935", "0.5057287", "0.5047266", "0.50430554", "0.5029947", "0.5028013", "0.5024361", "0.501686", "0.5015051", "0.50136745", "0.5012504", "0.50070035", "0.49909082", "0.49884206", "0.49824148", "0.49729288", "0.49689984", "0.49592906", "0.49470016", "0.4939845", "0.4937728", "0.49237904", "0.49090856", "0.4908604", "0.490817", "0.49066135", "0.49059033", "0.4895668", "0.4889401", "0.48878983", "0.4875243", "0.48557028", "0.48499957", "0.48419988", "0.48280016", "0.4815543", "0.48054633", "0.48020828", "0.47986424", "0.4791507", "0.47898948", "0.478564", "0.47849777", "0.47754365", "0.4771565", "0.47670576", "0.47666448", "0.47662264", "0.4764615", "0.47556192", "0.4751741", "0.47505525", "0.47481486", "0.47428015", "0.47392496", "0.47351915", "0.47287598", "0.47254723", "0.47223088", "0.47194526", "0.47167835", "0.47131827", "0.47086585", "0.47057813", "0.47057623", "0.4703973", "0.4694022", "0.4678121", "0.46734428", "0.46666425", "0.46628144" ]
0.7532598
0
No methods generated for meps other than inout auto generated Axis2 call back method for getUserInfo method override this method for handling normal response from getUserInfo operation
public void receiveResultgetUserInfo( org.wso2.carbon.appfactory.application.mgt.service.xsd.UserInfoBean[] result ) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void retrieveUserInfo(Call serviceCall, Response serviceResponse, CallContext messageContext);", "private void getUserInfo() {\n\t}", "public void receiveResultgetUserInfoBean(\n org.wso2.carbon.appfactory.application.mgt.service.xsd.UserInfoBean result\n ) {\n }", "public User getCurrentUserInformation() throws ServiceProxyException { \n \n //get the authenticated user information (you cannot yet get the information of other users)\n String uri = USER_INFO_RELATIVE_URL +\"/~\";\n \n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Get user information for URI: \"+uri, this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n \n //prepare REST call\n MCSRequest requestObject = new MCSRequest(this.getMbe().getMbeConfiguration());\n requestObject.setConnectionName(this.getMbe().getMbeConfiguration().getMafRestConnectionName());\n requestObject.setHttpMethod(com.oracle.maf.sample.mcs.shared.mafrest.MCSRequest.HttpMethod.GET); \n\n requestObject.setRequestURI(uri);\n \n HashMap<String,String> httpHeaders = new HashMap<String,String>();\n //httpHeaders.put(HeaderConstants.ORACLE_MOBILE_BACKEND_ID,this.getMbe().getMbeConfiguration().getMobileBackendIdentifier());\n \n requestObject.setHttpHeaders(httpHeaders);\n //no payload needed for GET request\n requestObject.setPayload(\"\");\n\n try {\n MCSResponse mcsResponse = MCSRestClient.sendForStringResponse(requestObject);\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Successfully queried user information from MCS. Response Code: \"+mcsResponse.getHttpStatusCode()+\" Response Message: \"+mcsResponse.getMessage(), this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n \n //handle request success\n if (mcsResponse != null && mcsResponse.getHttpStatusCode() == STATUS_RESPONSE_OK) { \n User userObject = new User(); \n JSONObject jsonObject = new JSONObject((String) mcsResponse.getMessage()); \n populateUserObjectFromJsonObject(userObject, jsonObject); \n return userObject; \n } else if (mcsResponse != null){\n //if there is a mcsResponse, we pass it to the client to analyze the problem\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Returning onError because of MCS application error with Status Code: \"+mcsResponse.getHttpStatusCode()\n +\" and message: \"+mcsResponse.getMessage(), this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n throw new ServiceProxyException(mcsResponse.getHttpStatusCode(), (String) mcsResponse.getMessage(), mcsResponse.getHeaders());\n }\n } catch (Exception e) {\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Exception thrown. Class: \"+e.getClass().getSimpleName()+\", Message=\"+e.getMessage(), this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Delegating to exception handler\", this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n handleExceptions(e,uri); \n }\n //should not get here\n return null;\n }", "private void getUserInfo() {\n httpClient.get(API.LOGIN_GET_USER_INFO, new JsonHttpResponseHandler(){\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n super.onSuccess(statusCode, headers, response);\n callback.onLoginSuccess(response.optJSONObject(Constant.OAUTH_RESPONSE_USER_INFO));\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n super.onFailure(statusCode, headers, responseString, throwable);\n callback.onLoginFailed(throwable.getMessage(), ErrorCode.ERROR_CODE_SERVER_EXCEPTION);\n }\n });\n }", "public abstract void listKnownUsers(Call serviceCall, Response serviceResponse, CallContext messageContext);", "public abstract String getUser() throws DataServiceException;", "com.lxd.protobuf.msg.result.user.User.User_ getUser();", "@Override\n\tpublic SpaceUserVO getUserInfo(String id) throws Exception {\n\t\treturn null;\n\t}", "UserInfo getUserInfo();", "@Override\n\tpublic List<UserInfo> getUserInfos(int userright, String sex, int id) {\n\t\treturn null;\n\t}", "public void getServiceInfo(java.lang.String unregisteredUserEmail, java.lang.String userID, java.lang.String password, com.strikeiron.www.holders.SIWsOutputOfSIWsResultArrayOfServiceInfoRecordHolder getServiceInfoResult, com.strikeiron.www.holders.SISubscriptionInfoHolder SISubscriptionInfo) throws java.rmi.RemoteException;", "java.lang.String getXUsersInfo();", "@Override\n\tprotected Object handleUserinfoEndpointRequest(String requestId) {\n\t\tif(!receivedRefreshRequest) {\n\t\t\t//we don't want the test to be marked as completed if the client sends a userinfo\n\t\t\t//request before sending a refresh request\n\t\t\t//this is not the userinfo request we are looking for\n\t\t\treceivedUserinfoRequest = false;\n\t\t}\n\t\treturn super.handleUserinfoEndpointRequest(requestId);\n\t}", "@Override\n public User getUserInfo() {\n return User.AUTHORIZED_USER;\n }", "@Override\n\tpublic Map<String, Object> getUserInfoDetail(Map<String, Object> reqs) {\n\t\treturn joaSimpleDao.retrieve(\"tp_users\", reqs);\n\t}", "@Override\n\tpublic UserInfoVO inquireUserInfoService(String userName) {\n\t\tuserInfo.setUserName(userName);\n\t\treturn userInfo.convertToVO();\n\t}", "@Override\n\tpublic UserInfo getUserInfo() {\n\t\tHttpSession session = RpcContext.getHttpSession();\n String auth = (String)session.getAttribute(\"auth\");\n UserInfo ui = null;\n if (auth != null) {\n\t switch(AuthType.valueOf(auth)) {\n\t\t case Database: {\n\t\t String username = (String)session.getAttribute(\"username\");\n\t\t \t\tui = _uim.select(username);\n\t\t \t\tbreak;\n\t\t }\n\t\t case OAuth: {\n\t\t \t\tString googleid = (String)session.getAttribute(\"googleid\");\n\t\t \t\tui = _uim.selectByGoogleId(googleid);\n\t\t \t\tbreak;\n\t\t }\n\t }\n }\n\t\treturn ui;\n\t}", "@Override\n\tpublic List<UserInfo> getUserInfos() {\n\t\treturn null;\n\t}", "@ApiOperation(value = \"get user details web service end point\",\n notes = \"This web service end point returns user details. Use public user id in the path\")\n //Api Implicit Params is for swagger to add authroization as an input field\n @ApiImplicitParams(\n @ApiImplicitParam(name = \"authorization\", value = \"${userController.authorizationHeader.description}\", paramType = \"header\"))\n @GetMapping(produces = {MediaType.APPLICATION_XML_VALUE, MediaType.APPLICATION_JSON_VALUE})\n // to mention from where we allow cross origins\n @CrossOrigin(origins = {\"http://localhost:8080\", \"http://localhost:8081\"})\n public List<UserRest> getUserList(@RequestParam(value = \"page\", defaultValue = \"1\") int page,\n @RequestParam(value = \"limit\", defaultValue = \"10\") int limit) {\n List<UserRest> returnList = new ArrayList<>();\n List<UserDto> userDtoList = userService.getUserList(page, limit);\n UserRest userRest;\n for (UserDto userDto : userDtoList) {\n userRest = new UserRest();\n BeanUtils.copyProperties(userDto, userRest);\n returnList.add(userRest);\n }\n return returnList;\n }", "@Override\n public ModelAndView getUserInfo(String userName, @PathVariable String email,\n HttpServletRequest req, HttpServletResponse res, ModelMap model) {\n return null;\n }", "@Override\r\n\tpublic UserInfo getUserInfo(int id) {\n\t\treturn userInfo;\r\n\t}", "private void getUserDetailApi() {\n RetrofitService.getOtpData(new Dialog(mContext), retrofitApiClient.getUserDetail(strUserId), new WebResponse() {\n @Override\n public void onResponseSuccess(Response<?> result) {\n UserDataMainModal mainModal = (UserDataMainModal) result.body();\n if (mainModal != null) {\n AppPreference.setBooleanPreference(mContext, Constant.IS_PROFILE_UPDATE, true);\n Gson gson = new GsonBuilder().setLenient().create();\n String data = gson.toJson(mainModal);\n AppPreference.setStringPreference(mContext, Constant.USER_DATA, data);\n User.setUser(mainModal);\n }\n }\n\n @Override\n public void onResponseFailed(String error) {\n Alerts.show(mContext, error);\n }\n });\n }", "User getUserInfo(String userId) {\r\n\r\n // build headers\r\n HttpHeaders headers = new HttpHeaders();\r\n headers.setContentType(MediaType.APPLICATION_FORM_URLENCODED);\r\n headers.set(\"Authorization\", \"Bearer \" + accessToken);\r\n HttpEntity entity = new HttpEntity(headers);\r\n\r\n // build GET URL\r\n UriComponentsBuilder builder = UriComponentsBuilder\r\n .fromUriString(\"https://slack.com/api/users.info\")\r\n .queryParam(\"token\", accessToken)\r\n .queryParam(\"user\", userId);\r\n\r\n // Send request\r\n RestTemplate rt = new RestTemplate();\r\n ResponseEntity<String> response = rt.exchange(builder.toUriString(), HttpMethod.GET, entity, String.class);\r\n\r\n // good response\r\n if(response.toString().contains(\"\\\"ok\\\":true\")) {\r\n Gson gson = new Gson();\r\n UserResponse ur = gson.fromJson(response.getBody(), UserResponse.class);\r\n return ur.user;\r\n }\r\n\r\n // bad response\r\n return null;\r\n }", "@RequestMapping(value = \"/user/{id}\", method = RequestMethod.GET)\n public ResponseEntity<String> getUserInformationEndpoint(@PathVariable(value = \"id\") String id) {\n Response response = new Response(\"Get User Information\");\n HttpStatus httpStatus = HttpStatus.ACCEPTED;\n\n UserData userData = adminUserService.getUserInfo(id);\n if (userData != null) {\n response.addBodyElement(\"userData\", userData.toJsonObject());\n }\n else {\n response.actionFailed();\n response.setMessage(Messages.Failure.GET_USER_INFO);\n }\n\n return ResponseEntity\n .status(httpStatus)\n .contentType(MediaType.APPLICATION_JSON)\n .body(response.toJson());\n }", "private void retrieveBasicUserInfo() {\n //TODO: Check out dagger here. New retrofit interface here every time currently.\n UserService service = ServiceFactory.getInstagramUserService();\n service.getUser(mAccessToken)\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new Subscriber<Response<MediaResponse<User>>>() {\n @Override\n public void onCompleted() {\n }\n\n @Override\n public void onError(Throwable e) {\n Log.e(MY_USER_FRAGMENT, e.getLocalizedMessage());\n }\n\n @Override\n public void onNext(Response<MediaResponse<User>> response) {\n // Looks for instagram error response.\n ResponseBody errorBody = response.errorBody();\n if (!response.isSuccessful() && errorBody != null) {\n try {\n Converter<ResponseBody, MediaResponse> errorConverter = ServiceFactory.getRetrofit().responseBodyConverter(MediaResponse.class, new Annotation[0]);\n MediaResponse mediaError = errorConverter.convert(response.errorBody());\n Toast.makeText(getContext(), mediaError.getMeta().getErrorMessage(), Toast.LENGTH_LONG).show();\n\n if (mediaError.getMeta().getErrorType().equals(getString(R.string.o_auth_error))) {\n oauthEventFired = true;\n EventBus.getDefault().post(new ExpiredOAuthEvent(true));\n }\n } catch (IOException e) {\n Log.e(MY_USER_FRAGMENT, \"There was a problem parsing the error response.\");\n }\n } else {\n showUserInfo(response.body().getData());\n }\n }\n });\n }", "User getUserInformation(Long user_id);", "@Override\n public void onPromptAndCollectUserInformationResponse(PromptAndCollectUserInformationResponse arg0) {\n\n }", "@Override\r\n\tpublic MemberBean getInfo(String user) throws Exception {\n\t\tSystem.out.println(\"MemberService:getInfo\");\r\n\t\tMemberBean bean = null;\r\n\t\tbean = memberdao.getMember(user);\r\n\t\treturn bean;\r\n\t}", "public interface OnUserInfoResponse {\n\n public void onSuccess(UserBean bean);\n\n public void onFailed();\n}", "@Override\n\tpublic UserInfo getUser(String sessionId) throws HFModuleException {\n\t\tLog.d(\"HFModuleManager\", \"getUser\");\n//\t\tif (!isCloudChannelLive()) {\n//\t\t\tthrow new HFModuleException(HFModuleException.ERR_USER_OFFLINE,\n//\t\t\t\t\t\"User is not online\");\n//\t\t}\n\t\t\n\t\tUserGetRequest request = new UserGetRequest();\n\t\trequest.setSessionId(sessionId);\n\t\ttry {\n\t\t\tUserResponse response = cloudSecurityManager.getUser(request);\n\t\t\tUserPayload payload = response.getPayload();\n\t\t\t\n//\t\t\tUserInfo userInfo = new UserInfo();\n//\t\t\tuserInfo.setAccessKey(HFConfigration.accessKey);\n//\t\t\tuserInfo.setCellPhone(payload.getCellPhone());\n//\t\t\tuserInfo.setCreateTime(payload.getCreateTime());\n//\t\t\tuserInfo.setDisplayName(payload.getDisplayName());\n//\t\t\tuserInfo.setEmail(payload.getEmail());\n//\t\t\tuserInfo.setIdNumber(payload.getIdNumber());\n//\t\t\tuserInfo.setUserName(payload.getUserName());\n\t\t\t\n\t\t\tUserInfo userInfo = userInfoDao.getUserInfoByToken(sessionId);\n\t\t\tif (userInfo == null) {\n\t\t\t\tuserInfo = new UserInfo();\n\t\t\t}\n\t\t\tuserInfo.setAccessKey(HFConfigration.accessKey);\n\t\t\tuserInfo.setCellPhone(payload.getCellPhone());\n\t\t\tuserInfo.setCreateTime(payload.getCreateTime());\n\t\t\tuserInfo.setDisplayName(payload.getDisplayName());\n\t\t\tuserInfo.setEmail(payload.getEmail());\n\t\t\tuserInfo.setIdNumber(payload.getIdNumber());\n\t\t\tuserInfo.setUserName(payload.getUserName());\n\t\t\t\n\t\t\tuserInfoDao.saveUserInfo(userInfo);\n\t\t\t\n\t\t\treturn userInfo;\n\t\t} catch (CloudException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t\tthrow new HFModuleException(e1.getErrorCode(), e1.getMessage());\n\t\t}\n\t\t\n//\t\tString req = \"{'CID':10231,'SID':'#SID#'} \";\n//\t\treq = req.replaceAll(\"#SID#\", getsid());\n//\t\tString rsp = HttpProxy.reqByHttpPost(req);\n//\t\tJSONObject json;\n//\t\ttry {\n//\t\t\tjson = new JSONObject(rsp);\n//\t\t\tif (json.getInt(\"RC\") == 1) {\n//\n//\t\t\t\tJSONObject joRsp = json.getJSONObject(\"PL\");\n//\t\t\t\tUserInfo result = new UserInfo();\n//\n//\t\t\t\tif (!joRsp.isNull(\"id\"))\n//\t\t\t\t\tresult.setId(joRsp.getString(\"id\"));\n//\t\t\t\tif (!joRsp.isNull(\"displayName\")) {\n//\t\t\t\t\tresult.setDisplayName(joRsp.getString(\"displayName\"));\n//\t\t\t\t\tHFLocalSaveHelper.getInstence().getMainUserInfoHelper()\n//\t\t\t\t\t\t\t.setUserNickName(result.getDisplayName());\n//\t\t\t\t\tHFConfigration.cloudUserNickName = result.getDisplayName();\n//\t\t\t\t}\n//\t\t\t\tif (!joRsp.isNull(\"userName\")) {\n//\t\t\t\t\tresult.setUserName(joRsp.getString(\"userName\"));\n//\t\t\t\t\tHFLocalSaveHelper.getInstence().getMainUserInfoHelper()\n//\t\t\t\t\t\t\t.setUserName(result.getUserName());\n//\t\t\t\t\tHFConfigration.cloudUserName = result.getUserName();\n//\t\t\t\t}\n//\t\t\t\tif (!joRsp.isNull(\"cellPhone\")) {\n//\t\t\t\t\tresult.setCellPhone(joRsp.getString(\"cellPhone\"));\n//\t\t\t\t\tHFLocalSaveHelper.getInstence().getMainUserInfoHelper()\n//\t\t\t\t\t\t\t.setPhone(result.getCellPhone());\n//\t\t\t\t\tHFConfigration.cloudUserPhone = result.getCellPhone();\n//\t\t\t\t}\n//\t\t\t\tif (!joRsp.isNull(\"email\")) {\n//\t\t\t\t\tresult.setEmail(joRsp.getString(\"email\"));\n//\t\t\t\t\tHFLocalSaveHelper.getInstence().getMainUserInfoHelper()\n//\t\t\t\t\t\t\t.setEmail(result.getEmail());\n//\t\t\t\t\tHFConfigration.cloudUserEmail = result.getEmail();\n//\t\t\t\t}\n//\t\t\t\tif (!joRsp.isNull(\"idNumber\")) {\n//\t\t\t\t\tresult.setIdNumber(joRsp.getString(\"idNumber\"));\n//\t\t\t\t}\n//\t\t\t\tif (!joRsp.isNull(\"createTime\")) {\n//\t\t\t\t\tresult.setCreateTime(joRsp.getString(\"createTime\"));\n//\t\t\t\t}\n//\t\t\t\treturn result;\n//\t\t\t} else {\n//\t\t\t\tthrow new HFModuleException(HFModuleException.ERR_GET_USER,\n//\t\t\t\t\t\t\"can not get user\");\n//\t\t\t}\n//\t\t} catch (JSONException e) {\n//\t\t\t// TODO Auto-generated catch block\n//\t\t\tthrow new HFModuleException(HFModuleException.ERR_GET_USER,\n//\t\t\t\t\t\"can not get user\");\n//\t\t}\n\n\t}", "com.lxd.protobuf.msg.result.user.User.User_OrBuilder getUserOrBuilder();", "public abstract String getUser();", "@Override\n\tpublic Map<String, Object> getUserDetail(Map<String, Object> reqs) {\n\t\treturn null;\n\t}", "private void getUserInfo(boolean checkAccessTokenResult, final AccessToken accessToken) {\n if (!checkAccessTokenResult) {\n //access token is not valid refresh\n RequestParams params = new RequestParams(WeChatManager.getRefreshAccessTokenUrl(sURLRefreshAccessToken, accessToken));\n x.http().request(HttpMethod.GET, params, new Callback.CommonCallback<String>() {\n @Override\n public void onSuccess(String result) {\n parseRefreshAccessTokenResult(result);\n }\n\n @Override\n public void onError(Throwable ex, boolean isOnCallback) {\n }\n\n @Override\n public void onCancelled(CancelledException cex) {\n }\n\n @Override\n public void onFinished() {\n }\n });\n }\n\n showLoading();\n //get userinfo\n RequestParams requestParams = new RequestParams(WeChatManager.getUserInfoUrl(sURLUserInfo, accessToken));\n x.http().request(HttpMethod.GET, requestParams, new Callback.CommonCallback<String>() {\n @Override\n public void onSuccess(String result) {\n userinfo = new Gson().fromJson(result, UserInfoWX.class);\n\n String device_id= JPushInterface.getRegistrationID(LoginActivity.this);\n RequestParams entity = new RequestParams(Configurations.URL_THIRD_PARTY_LOGIN);\n entity.addParameter(Configurations.OPEN_ID, userinfo.getUnionid());\n entity.addParameter(Configurations.NICKNAME, userinfo.getNickname());\n entity.addParameter(Configurations.AVATOR, userinfo.getHeadimgurl());\n entity.addParameter(\"from\", \"wx\");\n entity.addParameter(Configurations.REG_ID,device_id);\n\n\n long timeStamp= TimeUtil.getCurrentTime();\n entity.addParameter(Configurations.TIMESTAMP, String.valueOf(timeStamp));\n entity.addParameter(Configurations.DEVICE_ID,device_id );\n\n Map<String,String> map=new TreeMap<>();\n map.put(Configurations.OPEN_ID, userinfo.getUnionid());\n map.put(Configurations.NICKNAME, userinfo.getNickname());\n map.put(Configurations.AVATOR, userinfo.getHeadimgurl());\n map.put(\"from\", \"wx\");\n map.put(Configurations.REG_ID,device_id);\n entity.addParameter(Configurations.SIGN, SignUtils.createSignString(device_id,timeStamp,map));\n\n\n x.http().request(HttpMethod.POST, entity, new CommonCallback<String>() {\n @Override\n public void onSuccess(String result) {\n LogUtil.d(TAG, result);\n hideLoading();\n\n try {\n JSONObject object = new JSONObject(result);\n if (object.getInt(Configurations.STATUSCODE) == 200) {\n User user = JSON.parseObject(object.getJSONObject(\"results\").getString(\"user\"), User.class);\n SharedPrefUtil.loginSuccess(SharedPrefUtil.LOGIN_VIA_WECHAT);\n UserUtils.saveUserInfo(user);\n\n MobclickAgent.onProfileSignIn(\"WeChat\", user.getNickname());\n finish();\n } else {\n ToastUtil.showShort(LoginActivity.this, object.getString(Configurations.STATUSMSG));\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }\n\n @Override\n public void onError(Throwable ex, boolean isOnCallback) {\n hideLoading();\n }\n\n @Override\n public void onCancelled(CancelledException cex) {\n }\n\n @Override\n public void onFinished() {\n }\n });\n\n\n }\n\n @Override\n public void onError(Throwable ex, boolean isOnCallback) {\n }\n\n @Override\n public void onCancelled(CancelledException cex) {\n }\n\n @Override\n public void onFinished() {\n }\n });\n }", "@Override\n public void onResponse(Call<List<User>> call, Response<List<User>> response) {\n\n\n }", "public JsonNode callInfoService(User user, String service);", "void getUser(String uid, final UserResult result);", "public UserInfo getUserInfo() {\r\n return userInfo;\r\n }", "@WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/getUserProfile\",\n operationName=\"getUserProfile\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"getUserProfile\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"getUserProfileResponse\")\n @WebResult(name=\"result\")\n @CallbackMethod(exclude=true)\n String getUserProfile(@WebParam(mode = WebParam.Mode.IN, name=\"profileInformation\")\n String profileInformation) throws ServiceException;", "public User getUserData();", "public UserInfo getUserInfo() {\n return userInfo;\n }", "public User getResponseUserData()\n {\n return responseUserData;\n }", "@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}", "@Test\n public void testGetUserInfoResponse() {\n // TODO: test GetUserInfoResponse\n }", "public String getUserinfo() {\n return m_userinfo;\n }", "private void getUserData() {\n TwitterApiClient twitterApiClient = TwitterCore.getInstance().getApiClient();\n AccountService statusesService = twitterApiClient.getAccountService();\n Call<User> call = statusesService.verifyCredentials(true, true, true);\n call.enqueue(new Callback<User>() {\n @Override\n public void success(Result<User> userResult) {\n //Do something with result\n\n //parse the response\n String name = userResult.data.name;\n String email = userResult.data.email;\n String description = userResult.data.description;\n String pictureUrl = userResult.data.profileImageUrl;\n String bannerUrl = userResult.data.profileBannerUrl;\n String language = userResult.data.lang;\n long id = userResult.data.id;\n\n }\n\n public void failure(TwitterException exception) {\n //Do something on failure\n }\n });\n }", "public interface UserInfoService extends Service<UserInfo> {\n float getHistoryRate(int userId, int day);\n\n String getEncryPhotoUrl(int userId);\n String getEncryPayPassword(String payPasswor);\n int selectByIdAndPayPassword(String userId,String payPassword);\n int computeAge(String IdNO);\n String computeSex(String IdNo);\n UserInfo anonymousUserInfo(UserInfo userInfo);\n\n List<UserInfo> findFriendByUserId(String userId);\n\n List<UserInfo> findIsAddingFriend(String userId);\n\n Boolean lockPayPassword(int uid);\n\n ErrorEnum addLockPayPassword(int uid);\n\n List<LikePeopleJoinUserInfoVo> findLikePeople(String userId);\n\n}", "@Override\n\tpublic ResponseEntity<String> getUser() {\n\t\treturn null;\n\t}", "public UserInfo() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "public User updateCurrentUserInformation( HashMap<String,String> userPropertiesAndValues) throws ServiceProxyException, IllegalArgumentException{\n\n if(userPropertiesAndValues == null){\n throw new IllegalArgumentException(\"MCSCallback object and/or userPropertiesAndValues cannot be null in call to updateCurrentUserInformation method in UserInfo\");\n }\n \n MCSResponse mcsResponse = null;\n \n //Open JSON object\n StringBuffer jsonString = new StringBuffer(\"{\");\n Set keys = userPropertiesAndValues.entrySet();\n for (Object key : keys){\n \n //add delimiting comma if String buffer is not empty\n if(jsonString.length() >1){\n jsonString.append(\",\");\n }\n \n Object propertyValue = userPropertiesAndValues.get((String) key);\n //add \"key\":\"value\" or \"key\":object\n jsonString.append(\"\\\"\"+key+\"\\\":\"+(propertyValue instanceof String? \"\\\"\"+propertyValue+\"\\\"\" : propertyValue)); \n }\n \n //close JSON object\n jsonString.append(\"}\");\n \n String uri = USER_INFO_RELATIVE_URL +\"/\"+this.getMbe().getMbeConfiguration().getAuthenticatedUsername();\n \n \n //prepare REST call\n MCSRequest requestObject = new MCSRequest(this.getMbe().getMbeConfiguration());\n requestObject.setConnectionName(this.getMbe().getMbeConfiguration().getMafRestConnectionName());\n \n requestObject.setHttpMethod(com.oracle.maf.sample.mcs.shared.mafrest.MCSRequest.HttpMethod.PUT); \n\n requestObject.setRequestURI(uri);\n \n HashMap<String,String> httpHeaders = new HashMap<String,String>();\n //httpHeaders.put(HeaderConstants.ORACLE_MOBILE_BACKEND_ID,this.getMbe().getMbeConfiguration().getMobileBackendIdentifier()); \n requestObject.setHttpHeaders(httpHeaders);\n \n requestObject.setPayload(jsonString.toString());\n\n try { \n mcsResponse = MCSRestClient.sendForStringResponse(requestObject);\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Success! Response Code: \"+mcsResponse.getHttpStatusCode()+\". message: \"+mcsResponse.getMessage(), this.getClass().getSimpleName(), \"updateCurrentUserInformation\");\n if (mcsResponse != null && mcsResponse.getHttpStatusCode() == STATUS_UPDATE_OK) {\n \n User userObject = new User(); \n JSONObject jsonObject = new JSONObject((String) mcsResponse.getMessage()); \n populateUserObjectFromJsonObject(userObject, jsonObject); \n return userObject; \n \n } else {\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"MCS application error reported back to MCS: \"+mcsResponse.getHttpStatusCode()+\". message: \"+mcsResponse.getMessage(), this.getClass().getSimpleName(), \"updateCurrentUserInformation\");\n throw new ServiceProxyException(mcsResponse.getHttpStatusCode(), (String) mcsResponse.getMessage(), mcsResponse.getHeaders());\n } \n }\n catch(Exception e){\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Exception thrown. Class: \"+e.getClass().getSimpleName()+\", Message=\"+e.getMessage(), this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Delegating to exception handler\", this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n this.handleExceptions(e, uri);\n }\n //we should not get here\n return null;\n }", "@Override\r\npublic UserDetailsResponseDto getUserDetailBasedOnUid(List<String> userId) {\n\treturn null;\r\n}", "public interface IUserInfo {\n\n /**\n * 获取用户信息\n */\n void getUserInfo(String tag);\n\n /**\n * 提交用户信息\n */\n void setUserInfo(String nickname,String sex,String birthday,String photostr,String tag);\n\n /**\n * 获取验证码\n */\n void getVerCode(String phoneNumber,String sceneTag,String tag);\n\n /**\n * 验证验证码\n */\n void checkVerCode(String phoneNumber,String activationNumber,String sceneTag,String tag);\n\n /**\n * 绑定手机\n */\n void bindPhone(String phoneNumber,String newPhoneNumber,String activationNumber,String tag);\n\n /**\n * 个人中心设置登录密码\n */\n void setLoginPassword(String newPassword,String phoneNumber,String tag);\n\n /**\n * 获取购物车优惠券\n */\n void getCoupon(String tag);\n\n /**\n * 验证码登录\n */\n void vercodeLogin(String phoneNumber,String activationNumber,String tag);\n\n /**\n * 密码登录\n */\n void passwordLogin(String phoneNum,String password,String tag);\n\n}", "@Override\n\tpublic void onUserInfoGet(AirContact user)\n\t{\n\t\tif (user != null)\n\t\t{\n\t\t\ttvUserName.setText(user.getDisplayName());\n\t\t}\n\t}", "@Override\n\tpublic List<UserManageEntity> getUserInfo(Map<String, Object> param) {\n\t\treturn userManageDao.getUserInfo(param);\n\t}", "@WebService(name = \"GetUser\", targetNamespace = \"http://Eshan/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface GetUser {\n\n\n /**\n * \n * @param userID\n * @return\n * returns java.util.List<java.lang.Object>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUser\", targetNamespace = \"http://Eshan/\", className = \"eshan.GetUser_Type\")\n @ResponseWrapper(localName = \"getUserResponse\", targetNamespace = \"http://Eshan/\", className = \"eshan.GetUserResponse\")\n @Action(input = \"http://Eshan/GetUser/getUserRequest\", output = \"http://Eshan/GetUser/getUserResponse\")\n public List<Object> getUser(\n @WebParam(name = \"UserID\", targetNamespace = \"\")\n int userID);\n\n}", "BaseResponse<?> test(@InfoAnnotation String userId);", "public void getStatusCodesForMethod(java.lang.String unregisteredUserEmail, java.lang.String userID, java.lang.String password, java.lang.String methodname, com.strikeiron.www.holders.SIWsOutputOfMethodStatusRecordHolder getStatusCodesForMethodResult, com.strikeiron.www.holders.SISubscriptionInfoHolder SISubscriptionInfo) throws java.rmi.RemoteException;", "public interface UserInfoView {\n\n void onGetUserData(List<UserBean> followings);\n\n\n\n}", "com.google.protobuf.ByteString\n getXUsersInfoBytes();", "@Override\n public String getUserPersonalInfo(String user_id)\n {\n String returnVal = null; \n Connection conn = null;\n Statement stmt = null;\n try \n {\n db_controller.setClass();\n conn = db_controller.getConnection();\n stmt = conn.createStatement();\n String sql;\n \n sql = \"SELECT information from user_personal_information where user_id = '\" + user_id + \"'\";\n \n ResultSet rs = stmt.executeQuery(sql);\n \n \n while(rs.next())\n {\n returnVal = rs.getString(\"information\");\n }\n \n stmt.close();\n conn.close();\n \n } \n catch (SQLException ex) { ex.printStackTrace(); return null;} \n catch (ClassNotFoundException ex) { ex.printStackTrace(); return null;} \n return returnVal;\n }", "@Override\n\tpublic Map<String, Object> getUserAccountInfo(String userId) {\n\t\tString sql = \"select userId,userName,realName where userId=:userId\";\n\t\tMap<String, Object> params = new HashMap<String, Object>();\n\t\tparams.put(\"userId\", userId);\n\t\treturn joaSimpleDao.queryForList(sql, params).get(0);\n\t}", "@Override\n public User getUserInfo(String userName) {\n Map params = new HashMap<String, Object>();\n params.put(CommonSqlProvider.PARAM_WHERE_PART, User.QUERY_WHERE_USERNAME);\n params.put(User.PARAM_USERNAME, userName);\n return getRepository().getEntity(User.class, params);\n }", "private org.json.JSONObject getUserInfo(String url, String token) throws Exception {\n log.info(\"Entering getUserInfo\");\n RestTemplate restTemplateWithInterceptors = new RestTemplate();\n HttpStatus status = null;\n org.json.JSONObject body = null;\n String message = null;\n\n if(!token.substring(0, 7).equals(\"Bearer \")) {\n token = \"Bearer \" + token;\n }\n log.info(\"Just added Bearer as token prefix\");\n\n try {\n List<ClientHttpRequestInterceptor> interceptors = restTemplateWithInterceptors.getInterceptors();\n if (CollectionUtils.isEmpty(interceptors)) {\n interceptors = new ArrayList<>();\n }\n\n interceptors.add(new XCIJVUserInfoHeaderInjectorInterceptor(token));\n restTemplateWithInterceptors.setInterceptors(interceptors);\n log.info(\"Just set interceptor to list\");\n HttpHeaders headers = new HttpHeaders();\n HttpEntity<?> entityUserInfo = new HttpEntity<>(headers);\n log.info(\"HttpEntity<?> entityUserInfo: {}\", entityUserInfo);\n log.info(\"getUserInfo: url: {}\", url);\n HttpEntity<String> response = restTemplateWithInterceptors.exchange(url, HttpMethod.GET, entityUserInfo, String.class);\n log.info(\"Just did carrier userinfo REST call using userinfo_endpoint\");\n body = new org.json.JSONObject(response.getBody());\n\n } catch (RestClientResponseException e) {\n\n if (e.getRawStatusCode() == 401) {\n status = HttpStatus.UNAUTHORIZED;\n message = \"Unauthorized token\";\n log.error(\"HTTP 401: \" + message);\n throw new OauthException(message, status);\n }\n\n if (e.getResponseBodyAsByteArray().length > 0) {\n message = new String(e.getResponseBodyAsByteArray());\n } else {\n message = e.getMessage();\n }\n status = HttpStatus.BAD_REQUEST;\n log.error(\"HTTP 400: \" + message);\n throw new OauthException(message, status);\n\n } catch (Exception e) {\n message = \"Error in calling Bank app end point\" + e.getMessage();\n status = HttpStatus.INTERNAL_SERVER_ERROR;\n log.error(\"HTTP 500: \" + message);\n throw new OauthException(message, status);\n }\n log.info(\"Leaving getUserInfo\");\n\n return body;\n }", "public void usersUserIdGet (String userId, String currentUserId, final Response.Listener<InlineResponse200> responseListener, final Response.ErrorListener errorListener) {\n Object postBody = null;\n\n // verify the required parameter 'userId' is set\n if (userId == null) {\n VolleyError error = new VolleyError(\"Missing the required parameter 'userId' when calling usersUserIdGet\",\n new ApiException(400, \"Missing the required parameter 'userId' when calling usersUserIdGet\"));\n }\n\n // create path and map variables\n String path = \"/users/{userId}\".replaceAll(\"\\\\{format\\\\}\",\"json\").replaceAll(\"\\\\{\" + \"userId\" + \"\\\\}\", apiInvoker.escapeString(userId.toString()));\n\n // query params\n List<Pair> queryParams = new ArrayList<Pair>();\n // header params\n Map<String, String> headerParams = new HashMap<String, String>();\n // form params\n Map<String, String> formParams = new HashMap<String, String>();\n\n queryParams.addAll(ApiInvoker.parameterToPairs(\"\", \"currentUserId\", currentUserId));\n\n\n String[] contentTypes = {\n \n };\n String contentType = contentTypes.length > 0 ? contentTypes[0] : \"application/json\";\n\n if (contentType.startsWith(\"multipart/form-data\")) {\n // file uploading\n MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create();\n \n\n HttpEntity httpEntity = localVarBuilder.build();\n postBody = httpEntity;\n } else {\n // normal form params\n }\n\n String[] authNames = new String[] { \"Authorization\" };\n\n try {\n apiInvoker.invokeAPI(basePath, path, \"GET\", queryParams, postBody, headerParams, formParams, contentType, authNames,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String localVarResponse) {\n try {\n responseListener.onResponse((InlineResponse200) ApiInvoker.deserialize(localVarResponse, \"\", InlineResponse200.class));\n } catch (ApiException exception) {\n errorListener.onErrorResponse(new VolleyError(exception));\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n errorListener.onErrorResponse(error);\n }\n });\n } catch (ApiException ex) {\n errorListener.onErrorResponse(new VolleyError(ex));\n }\n }", "public interface IUserInformation {\n void updateUserInformation(String teacherId, ArrayList<String> images, String tName, int sex, String college, String profession, int education, int grade, List<Integer> pbxType, String introduction, String headUrl, Response.Listener<BaseBean> listener, Response.ErrorListener errorListener);\n\n void getUserInfo(String teacherId, Response.Listener<User> listener, Response.ErrorListener errorListener);\n\n void updateUserPhone(String teacherId, String mobile, Response.Listener<BaseBean> listener, Response.ErrorListener errorListener);\n\n\n}", "frame.game.proto.User.UserInfoOrBuilder getUserOrBuilder();", "frame.game.proto.User.UserInfoOrBuilder getUserOrBuilder();", "@Override\n\tpublic Map<String, List<FacebookUser>> userdetailwithhistoryservice() throws FacebookException {\n\t\treturn id.userdetailwithhistorydao();\n\t}", "@Override\n\tprotected void initData() {\n\t\trequestUserInfo();\n\t}", "@Override\n public void callUsers(String userPhone) {\n }", "@Override\n public void success(Result<User> userResult) {\n String name = userResult.data.name;\n String email = userResult.data.email;\n String description = userResult.data.description;\n String pictureUrl = userResult.data.profileImageUrl;\n String bannerUrl = userResult.data.profileBannerUrl;\n String language = userResult.data.lang;\n long id = userResult.data.id;\n\n }", "public void usersUserIdCallsGet (String userId, final Response.Listener<String> responseListener, final Response.ErrorListener errorListener) {\n Object postBody = null;\n\n // verify the required parameter 'userId' is set\n if (userId == null) {\n VolleyError error = new VolleyError(\"Missing the required parameter 'userId' when calling usersUserIdCallsGet\",\n new ApiException(400, \"Missing the required parameter 'userId' when calling usersUserIdCallsGet\"));\n }\n\n // create path and map variables\n String path = \"/users/{userId}/calls\".replaceAll(\"\\\\{format\\\\}\",\"json\").replaceAll(\"\\\\{\" + \"userId\" + \"\\\\}\", apiInvoker.escapeString(userId.toString()));\n\n // query params\n List<Pair> queryParams = new ArrayList<Pair>();\n // header params\n Map<String, String> headerParams = new HashMap<String, String>();\n // form params\n Map<String, String> formParams = new HashMap<String, String>();\n\n\n\n String[] contentTypes = {\n \n };\n String contentType = contentTypes.length > 0 ? contentTypes[0] : \"application/json\";\n\n if (contentType.startsWith(\"multipart/form-data\")) {\n // file uploading\n MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create();\n \n\n HttpEntity httpEntity = localVarBuilder.build();\n postBody = httpEntity;\n } else {\n // normal form params\n }\n\n String[] authNames = new String[] { \"Authorization\" };\n\n try {\n apiInvoker.invokeAPI(basePath, path, \"GET\", queryParams, postBody, headerParams, formParams, contentType, authNames,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String localVarResponse) {\n responseListener.onResponse(localVarResponse);\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n errorListener.onErrorResponse(error);\n }\n });\n } catch (ApiException ex) {\n errorListener.onErrorResponse(new VolleyError(ex));\n }\n }", "public interface UserInfoInterface {\n void onStartGetUserInfo();\n void onFinishedGetUserInfo(UserInfoModel userInfo, String errorMsg);\n}", "@Override\n\tpublic User getUserInfoById(String idUser) {\n\t\treturn userRepository.getUserInfoById(idUser);\n\t}", "public void getUserFromResponce(String reply) {\r\n\t\tGson gson = new Gson();\r\n\t\tJSONObject myResponse;\r\n\t\ttry {\r\n\t\t\tmyResponse = new JSONObject(reply);\r\n\t\t\tthis.getResponce = gson.fromJson(myResponse.toString(), InfoResponce.class);\r\n\r\n\t\t\tif (this.getResponce.error == null) {\r\n\t\t\t\tthis.user = getResponce.user;\r\n\t\t\t\tthis.profile = user.profile;\r\n\t\t\t} else {\r\n\t\t\t\tString str = getResponce.error;\r\n\t\t\t\t// for what I'm doing the switch isnt needed\r\n\t\t\t\t// but i could potentially handle them differently if I wanted to\r\n\t\t\t\tswitch (str) {\r\n\t\t\t\tcase \"not_authed\":\r\n\t\t\t\t\tthrow new Exception(str);\r\n\t\t\t\tcase \"invalid_auth\":\r\n\t\t\t\t\tthrow new Exception(str);\r\n\t\t\t\tcase \"user_not_found\":\r\n\t\t\t\t\tthrow new Exception(str);\r\n\t\t\t\tcase \"user_not_visible\":\r\n\t\t\t\t\tthrow new Exception(str);\r\n\t\t\t\tcase \"account_inactive\":\r\n\t\t\t\t\tthrow new Exception(str);\r\n\t\t\t\tcase \"token_revoked\":\r\n\t\t\t\t\tthrow new Exception(str);\r\n\t\t\t\tcase \"no_permission\":\r\n\t\t\t\t\tthrow new Exception(str);\r\n\t\t\t\tcase \"org_login_required\":\r\n\t\t\t\t\tthrow new Exception(str);\r\n\t\t\t\tcase \"ekm_access_denied\":\r\n\t\t\t\t\tthrow new Exception(str);\r\n\t\t\t\tcase \"request_timeout\":\r\n\t\t\t\t\tthrow new Exception(str);\r\n\t\t\t\tcase \"fatal_error\":\r\n\t\t\t\t\tthrow new Exception(str);\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tthrow new Exception(\"no_match\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (JSONException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (Exception E) {\r\n\t\t\t// System.out.println(E.getMessage());\r\n\t\t}\r\n\r\n\t}", "public interface UserInfoService extends IService {\n String getUserId();\n String getUserToken();\n}", "@Override\n\tpublic ThirdUserInfo GetUserInfo() {\n\t\treturn null;\n\t}", "@Override\n public ResponseResult transformResponseData(\n JsonElement responseData)\n throws ServiceResponseTransformException\n {\n final ResponseResult result =\n checkResultFromAuthService(responseData);\n LogError(\"getUserWithCompletion\", result);\n\n final JsonElement response =\n getResponseFromJson(responseData);\n if (response != null && response.isJsonObject())\n {\n final JsonObject responseJson =\n response.getAsJsonObject();\n final JsonObject image =\n getJsonObjectFromJson(responseJson, \"image\");\n\n final JsonObject locations =\n getJsonObjectFromJson(image, \"locations\");\n\n String uri = getStringFromJson(image, URI);\n String url = getStringFromJson(locations, \"SIZE_60x60\");\n\n String completeUrl = String.format(\"https:%s\", url);\n Bitmap avatar = null;\n\n if (completeUrl != null)\n {\n try\n {\n final URL avatarUrl = new URL(completeUrl);\n if(!avatarUrl.toString().equalsIgnoreCase(\"https:null\"))\n {\n avatar =\n BitmapFactory.decodeStream(avatarUrl\n .openConnection().getInputStream());\n }\n }\n catch (final MalformedURLException me)\n {\n// Crashlytics.logException(me);\n }\n catch (final UnknownHostException ue)\n {\n// Crashlytics.logException(ue);\n }\n catch (final IOException ie)\n {\n// Crashlytics.logException(ie);\n }\n }\n\n final HashMap<String, Object> parameters =\n new HashMap<String, Object>(3);\n parameters.put(URL, completeUrl);\n parameters.put(URI, uri);\n parameters.put(AVATAR, avatar);\n\n result.parameters = parameters;\n }\n return result;\n }", "@GET(\"user\")\n Call<User> getUser();", "public interface IUserService extends BaseService<User> {\n\n /**\n * 通过手机号 查询用户所有基础字段\n * @param phone\n * @return\n */\n User getUserByPhone(String phone);\n\n /**\n * 获取该用户下的分销列表\n * @param userId\n * @return\n */\n Map<String,List<DistributionUser>> getDistributionUser(String userId,Integer pageNO,Integer pageSize);\n\n /**\n * 通过邀请码查询用户\n * @param shareCode 邀请码\n * @return\n */\n User getUserByShareCode(String shareCode);\n\n /**\n * 统计昨日数据\n * 积分(score)、欢喜券(bigDecimal)、单元总量(暂无)、转化率(parities)\n * @return\n */\n Map<String,Object> countLastDay();\n\n /**\n * 后台通过/拒绝申请成为代理商\n * @param userId 用户ID\n * @param status 1 通过 2 拒绝通过\n */\n void setAgent(String userId,Integer status) throws Exception;\n\n /**\n * 后台用户列表\n * @param pages\n * @param map\n * @return\n */\n Pages<User> list(Pages pages, Map<String ,Object> map);\n}", "UserInfo getUserById(Integer user_id);", "public UserInfoResponse getUserInfo(UserInfoRequest request, String urlPath) throws IOException, TweeterRemoteException {\n UserInfoResponse response = clientCommunicator.doPost(urlPath, request, null, UserInfoResponse.class);\n\n if(response.isSuccess()) {\n return response;\n } else {\n throw new RuntimeException(response.getMessage());\n }\n }", "public interface UserDetailService {\n\n /**\n * 微信登录,已存在信息则直接返回用户信息,否则执行注册后返回用户信息\n *\n * @param request {@link UserWechatLoginRequest}\n * @return {@link UserDto}\n */\n UserDto wechatLogin(UserWechatLoginRequest request);\n\n /**\n * 用户唯一标识查询用户\n *\n * @param userId 用户唯一标识\n * @return {@link UserDto}\n */\n UserDto queryByUserId(String userId);\n\n /**\n * 用户唯一标识查询用户\n *\n * @param openId 用户openId\n * @return {@link UserDto}\n */\n WechatAuthDto queryByOpenId(String openId);\n \n \n /**\n * 用户唯一标识查询用户\n *\n * @param userId 用户openId\n * @return {@link UserDto}\n */\n WechatAuthDto queryWechatByUserId(String userId);\n}", "public void usersUserIdCallsNonansweredGet (String userId, final Response.Listener<InlineResponse2005> responseListener, final Response.ErrorListener errorListener) {\n Object postBody = null;\n\n // verify the required parameter 'userId' is set\n if (userId == null) {\n VolleyError error = new VolleyError(\"Missing the required parameter 'userId' when calling usersUserIdCallsNonansweredGet\",\n new ApiException(400, \"Missing the required parameter 'userId' when calling usersUserIdCallsNonansweredGet\"));\n }\n\n // create path and map variables\n String path = \"/users/{userId}/calls/nonanswered\".replaceAll(\"\\\\{format\\\\}\",\"json\").replaceAll(\"\\\\{\" + \"userId\" + \"\\\\}\", apiInvoker.escapeString(userId.toString()));\n\n // query params\n List<Pair> queryParams = new ArrayList<Pair>();\n // header params\n Map<String, String> headerParams = new HashMap<String, String>();\n // form params\n Map<String, String> formParams = new HashMap<String, String>();\n\n\n\n String[] contentTypes = {\n \n };\n String contentType = contentTypes.length > 0 ? contentTypes[0] : \"application/json\";\n\n if (contentType.startsWith(\"multipart/form-data\")) {\n // file uploading\n MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create();\n \n\n HttpEntity httpEntity = localVarBuilder.build();\n postBody = httpEntity;\n } else {\n // normal form params\n }\n\n String[] authNames = new String[] { \"Authorization\" };\n\n try {\n apiInvoker.invokeAPI(basePath, path, \"GET\", queryParams, postBody, headerParams, formParams, contentType, authNames,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String localVarResponse) {\n try {\n responseListener.onResponse((InlineResponse2005) ApiInvoker.deserialize(localVarResponse, \"\", InlineResponse2005.class));\n } catch (ApiException exception) {\n errorListener.onErrorResponse(new VolleyError(exception));\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n errorListener.onErrorResponse(error);\n }\n });\n } catch (ApiException ex) {\n errorListener.onErrorResponse(new VolleyError(ex));\n }\n }", "@Override\n\tpublic UserProfile getUserInformations(UserProfile userProfile)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "@Override\n public void gotHelper(String message) {\n UsersRequest user = new UsersRequest(this);\n user.getUsers(this);\n }", "public registry.ClientRegistryStub.AddUserResponse addUser(\r\n\r\n registry.ClientRegistryStub.AddUser addUser4)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\r\n _operationClient.getOptions().setAction(\"urn:addUser\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n addUser4,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://registry\",\r\n \"addUser\")), new javax.xml.namespace.QName(\"http://registry\",\r\n \"addUser\"));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n registry.ClientRegistryStub.AddUserResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (registry.ClientRegistryStub.AddUserResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addUser\"))){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addUser\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addUser\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }", "@RequestMapping(method = RequestMethod.GET, headers = \"Accept=application/json\")\n\tpublic @ResponseBody\n\tResult getUser(HttpServletRequest request) {\n\t\tString userId = cred2UserId(getParamCred(request));\n\t\tWlsUser user = userService.getUser(userId);\n\t\tResult result = new Result();\n\t\tif (user != null) {\n\t\t\tresult.setData(user).setCount(1, 1);\n\t\t} else {\n\t\t\tresult.setSuccess(false);\n\t\t\tresult.setErrMsg(\"用户不存在。\");\n\t\t}\n\t\treturn result;\n\t}", "@Override\n\tpublic void onUserIdGetByPhoneNum(int result, AirContact contact)\n\t{\n\n\t}", "@Override\r\n\tpublic Map<String, Object> getUser(Long id) {\n\t\tMap<String,Object> user=new LinkedHashMap<String,Object>();\r\n\t\tuser.put(\"id\", id);\r\n\t\tuser.put(\"name\", \"cacheman\");\r\n\t\tMap<String,Object> result=new HashMap<String,Object>();\r\n\t\tresult.put(\"code\", 50001);\r\n\t\tresult.put(\"message\", \"fallback by hystrix for id(\"+id+\") on feign\");\r\n\t\tresult.put(\"user\", user);\r\n\t\treturn result;\r\n\t}", "public frame.game.proto.User.UserInfoOrBuilder getUserOrBuilder() {\n return getUser();\n }", "public frame.game.proto.User.UserInfoOrBuilder getUserOrBuilder() {\n return getUser();\n }", "UserInfo getUserInfo(String username);", "public void populateUserInformation()\n {\n ViewInformationUser viewInformationUser = new ViewFXInformationUser();\n\n viewInformationUser.buildViewProfileInformation(clientToRegisteredClient((Client) user), nameLabel, surnameLabel, phoneLabel, emailLabel, addressVbox);\n }", "@GET\n\t@Path(\"/allUsers\")\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n\tpublic Map<String, List<User>> getUser() throws JsonGenerationException, JsonMappingException, IOException {\n\t\t\n\t\tMap<String, List<User>> user = userDao.getUser();\n\t\t\n\t\treturn user; \n\t}", "public usdl.Usdl_rupStub.Facts getAllRegisteredUsersFacts(\r\n\r\n )\r\n\r\n\r\n throws java.rmi.RemoteException\r\n\r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try {\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\r\n _operationClient.getOptions().setAction(\"urn:getAllRegisteredUsersFacts\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n\r\n addPropertyToOperationClient(_operationClient, org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, \"&\");\r\n\r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n usdl.Usdl_rupStub.GetAllRegisteredUsersFacts dummyWrappedType = null;\r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n dummyWrappedType,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://ws.apache.org/axis2\",\r\n \"getAllRegisteredUsersFacts\")));\r\n\r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //admit the operation client\r\n _operationClient.execute(true);\r\n\r\n\r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n\r\n\r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement(),\r\n usdl.Usdl_rupStub.GetAllRegisteredUsersFactsResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n\r\n return getGetAllRegisteredUsersFactsResponse_return((usdl.Usdl_rupStub.GetAllRegisteredUsersFactsResponse) object);\r\n\r\n } catch (org.apache.axis2.AxisFault f) {\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt != null) {\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), \"getAllRegisteredUsersFacts\"))) {\r\n //make the fault by reflection\r\n try {\r\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), \"getAllRegisteredUsersFacts\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.Exception ex = (java.lang.Exception) exceptionClass.newInstance();\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), \"getAllRegisteredUsersFacts\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt, messageClass, null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex, new java.lang.Object[]{messageObject});\r\n\r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n } catch (java.lang.ClassCastException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n } else {\r\n throw f;\r\n }\r\n } else {\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }", "public interface UserInfoService {\n\n public Account getAccount(Long userId);\n\n UserInfo getUserInfo(String userName, String password);\n\n UserInfo getUserInfo(String userName);\n\n void addUserInfo(UserInfo userInfo);\n\n void modifyUserInfo(UserInfo userInfo);\n\n void delUserInfo(UserInfo userInfo);\n\n boolean isContainUserInfo(String userName);\n\n Account getAccount(String username);\n\n UserInfo getLoginUser(HttpServletRequest request);\n\n UserInfo getLoginUser(String token);\n\n List<ProfileDto> getProfileDtoList();\n\n void auditUser(String userName);\n}", "public long getResponsedByUserId();", "interface UserResult {\n void call(User user);\n }" ]
[ "0.74189", "0.72006816", "0.7159104", "0.7090944", "0.6857232", "0.66970164", "0.65660256", "0.6561986", "0.65452456", "0.65054244", "0.6457347", "0.63852185", "0.63780785", "0.63683254", "0.63313735", "0.63309777", "0.63153577", "0.63013214", "0.62838197", "0.6277421", "0.6261731", "0.6234643", "0.6230978", "0.62045354", "0.6203024", "0.61912817", "0.61671776", "0.616023", "0.61355555", "0.6133725", "0.6123535", "0.6120298", "0.6092036", "0.6083276", "0.6076888", "0.60704356", "0.6067858", "0.6058125", "0.605733", "0.6057122", "0.60520864", "0.6045768", "0.6045659", "0.6042572", "0.6031886", "0.6028874", "0.6024821", "0.6021101", "0.60161877", "0.60036427", "0.59876746", "0.5938512", "0.5933949", "0.5908441", "0.5903536", "0.58918774", "0.58896476", "0.5887006", "0.587972", "0.58751905", "0.5873001", "0.58663166", "0.5863519", "0.5863514", "0.5857307", "0.5851062", "0.5841463", "0.5841463", "0.58300537", "0.58277357", "0.5822533", "0.5818033", "0.58160496", "0.58038414", "0.5800174", "0.5771325", "0.5770783", "0.5769011", "0.57689273", "0.5753817", "0.57480174", "0.5731723", "0.57300013", "0.57181215", "0.5716314", "0.5715882", "0.57140714", "0.57108474", "0.57077163", "0.5694437", "0.56864953", "0.56856847", "0.56856847", "0.5683133", "0.5677958", "0.56764877", "0.56756115", "0.5674914", "0.56664366", "0.5662475" ]
0.7169502
2
auto generated Axis2 call back method for getAllApplications method override this method for handling normal response from getAllApplications operation
public void receiveResultgetAllApplications( java.lang.String[] result ) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GetApplicationListResponse getApplicationList() {\n\n Iterable<ApplicationEntity> result = applicationRepository.findAll();\n\n GetApplicationListResponse response = new GetApplicationListResponse();\n\n for (Iterator<ApplicationEntity> iterator = result.iterator(); iterator.hasNext(); ) {\n ApplicationEntity application = (ApplicationEntity) iterator.next();\n GetApplicationListResponse.Applications app = new GetApplicationListResponse.Applications();\n app.setId(application.getId());\n app.setApplicationName(application.getName());\n response.getApplications().add(app);\n }\n\n return response;\n }", "private void readApplicationsFromAPIManager(ClientAppFilter filter) throws AppException {\n\t\tif(this.apiManagerResponse !=null && this.apiManagerResponse.get(filter)!=null) return;\n\t\tHttpResponse httpResponse = null;\n\t\ttry {\n\t\t\tString requestedId = \"\";\n\t\t\tif(filter.getApplicationId()!=null) {\n\t\t\t\tif(applicationsCache.containsKey(filter.getApplicationId())) {\n\t\t\t\t\tthis.apiManagerResponse.put(filter, applicationsCache.get(filter.getApplicationId()));\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\trequestedId = \"/\"+filter.getApplicationId();\n\t\t\t}\n\t\t\tURI uri = new URIBuilder(cmd.getAPIManagerURL()).setPath(cmd.getApiBasepath() + \"/applications\" + requestedId)\n\t\t\t\t\t.addParameters(filter.getFilters())\n\t\t\t\t\t.build();\n\t\t\tLOG.debug(\"Sending request to find existing applications: \" + uri);\n\t\t\tRestAPICall getRequest = new GETRequest(uri, APIManagerAdapter.hasAdminAccount());\n\t\t\thttpResponse = getRequest.execute();\n\t\t\tString response = EntityUtils.toString(httpResponse.getEntity(), \"UTF-8\");\n\t\t\tif(response.startsWith(\"{\")) { // Got a single response!\n\t\t\t\tresponse = \"[\"+response+\"]\";\n\t\t\t}\n\t\t\tthis.apiManagerResponse.put(filter,response);\n\t\t\tif(filter.getApplicationId()!=null) {\n\t\t\t\tapplicationsCache.put(filter.getApplicationId(), response);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow new AppException(\"Can't initialize API-Manager API-Representation.\", ErrorCode.API_MANAGER_COMMUNICATION, e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif(httpResponse!=null) \n\t\t\t\t\t((CloseableHttpResponse)httpResponse).close();\n\t\t\t} catch (Exception ignore) {}\n\t\t}\n\t}", "java.util.List<com.google.cloud.talent.v4beta1.Application> getApplicationsList();", "@Override\r\n\tpublic JSONArray getAPPList(HttpServletRequest request,HttpServletResponse response) {\n\t\tJSONArray japps = new JSONArray();\r\n\t\t\r\n\t\tJSONObject japp1 = new JSONObject();\r\n\t\tjapp1.put(\"id\", \"1001\");\r\n\t\tjapp1.put(\"name\", \"公文管理\");\r\n\t\t\r\n\t\tJSONObject japp2 = new JSONObject();\r\n\t\tjapp2.put(\"id\", \"1002\");\r\n\t\tjapp2.put(\"name\", \"三项工作\");\r\n\t\t\r\n\t\tJSONObject japp3 = new JSONObject();\r\n\t\tjapp3.put(\"id\", \"1003\");\r\n\t\tjapp3.put(\"name\", \"综合事务\");\r\n\t\t\r\n\t\tjapps.add(japp1);\r\n\t\tjapps.add(japp2);\r\n\t\tjapps.add(japp3);\r\n\t\t\r\n\t\treturn japps;\r\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response getApplications(@Context final HttpServletRequest httpServletRequest, @QueryParam(\"serviceId\") String serviceId) {\n logger.debug(\"Get applications. Service ID is \" + serviceId);\n ApplicationManager appManager = ApplicationManagerImpl.getInstance();\n JSONArray jsonArray = new JSONArray();\n try {\n List<Application> applications = appManager.getApplications(serviceId);\n if (applications == null) {\n \treturn RestApiResponseHandler.getResponse(Status.CREATED, jsonArray.toString());\n }\n //\n for (Application app : applications) {\n JSONObject jsonObj = new JSONObject();\n String appId = app.getAppId();\n jsonObj.put(\"appId\", app.getAppId());\n jsonObj.put(\"appName\", CloudFoundryManager.getInstance().getAppNameByAppId(appId));\n jsonArray.put(jsonObj);\n }\n return RestApiResponseHandler.getResponse(Status.CREATED, jsonArray.toString());\n } catch (DataStoreException e) {\n return RestApiResponseHandler.getResponseError(MESSAGE_KEY.RestResponseErrorMsg_database_error, e, httpServletRequest.getLocale());\n } catch (CloudException e) {\n \treturn RestApiResponseHandler.getResponseError(MESSAGE_KEY.RestResponseErrorMsg_cloud_error, e, httpServletRequest.getLocale());\n } catch (Exception e) {\n return RestApiResponseHandler.getResponseError(Response.Status.INTERNAL_SERVER_ERROR, e);\n }\n }", "public List<Application> getApplications()\n {\n return _apps;\n }", "@GET\n\t@Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})\n\tpublic Response getApplications(\n\t\t\t@HeaderParam(\"ORSKey\") String orsKey,\n\t\t\t@HeaderParam(\"ShortKey\") String shortKey) {\n\t\tif (!Security.instance.isInternalUser(orsKey, shortKey)) {\n\t\t\tthrow new ForbiddenException(\"User does not have permission\");\n\t\t}\n\t\tList<Application> list = ApplicationsDao.instance.getAll();\n\t\tGenericEntity<List<Application>> returnList = new GenericEntity<List<Application>>(list) {};\n\t\treturn Response.ok(returnList).build();\n\t}", "@OAMany(toClass = Application.class, reverseName = Application.P_ApplicationType, createMethod = false)\n\tprivate Hub<Application> getApplications() {\n\t\treturn null;\n\t}", "java.util.concurrent.Future<ListApplicationsResult> listApplicationsAsync(ListApplicationsRequest listApplicationsRequest);", "@XmlElement(required = true)\n public List<Application> getApplications() {\n return applications;\n }", "@Headers({\n \"Content-Type:application/json; charset=utf-8\"\n })\n @GET(\"entity/applications\")\n Call<List<Application>> getApplications(\n @Query(\"startTimestamp\") Long startTimestamp, @Query(\"endTimestamp\") Long endTimestamp, @Query(\"relativeTime\") String relativeTime, @Query(\"tag\") List<String> tag, @Query(\"entity\") List<String> entity\n );", "public List<Application> getVisibleApplications() {\n return null;\r\n }", "@RequestMapping(value = \"/rest/application\", method = RequestMethod.GET,\n produces = \"application/json\")\n @Timed\n public List<Application> getAllForCurrentUser() {\n log.debug(\"REST request to get all Application\");\n try {\n User currentLoggedInUser = userRepository.getOne(SecurityUtils.getCurrentLogin());\n return applicationRepository.getAllForUser(currentLoggedInUser);\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n return null;\n }", "@GetMapping(value=\"/employee/{eId}\" , produces=\"application/json\")\n\n\tpublic List<Application> getEmpApplications(@PathVariable(\"eId\") int eId){\n\t\tEmployee emp = es.getEmployeeById(eId);\n\t\tList<Application> a = as.getAll();\n\t\tList<Application> empAppList = as.getBySpecies(emp.getSpecies());\n\t\t\n\n\t\t\n\t\t//Need to filter out second approval for the employee's own species\n\t\tfor (Application app : a){\n\t\t\t//if ((app.getStatus().equals(\"submitted\"))) {empAppList.add(app);}\n\t\t\t if ((app.getStatus().equals(\"secondApproval\"))&&(app.getPet().getBreed().getSpecies() != emp.getSpecies())) {\n\t\t\t\tempAppList.add(app);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\treturn empAppList;\n\t}", "public void getApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request,\n io.grpc.stub.StreamObserver<org.thethingsnetwork.management.proto.HandlerOuterClass.Application> responseObserver);", "public org.tempuri.HISWebServiceStub.AppNoListResponse appNoList(\r\n org.tempuri.HISWebServiceStub.AppNoList appNoList10)\r\n throws java.rmi.RemoteException {\r\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n try {\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());\r\n _operationClient.getOptions()\r\n .setAction(\"http://tempuri.org/AppNoList\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n addPropertyToOperationClient(_operationClient,\r\n org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\r\n \"&\");\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n\r\n env = toEnvelope(getFactory(_operationClient.getOptions()\r\n .getSoapVersionURI()),\r\n appNoList10,\r\n optimizeContent(\r\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\r\n \"appNoList\")),\r\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\r\n \"AppNoList\"));\r\n\r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n\r\n java.lang.Object object = fromOM(_returnEnv.getBody()\r\n .getFirstElement(),\r\n org.tempuri.HISWebServiceStub.AppNoListResponse.class);\r\n\r\n return (org.tempuri.HISWebServiceStub.AppNoListResponse) object;\r\n } catch (org.apache.axis2.AxisFault f) {\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n\r\n if (faultElt != null) {\r\n if (faultExceptionNameMap.containsKey(\r\n new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(), \"AppNoList\"))) {\r\n //make the fault by reflection\r\n try {\r\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(), \"AppNoList\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(), \"AppNoList\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,\r\n messageClass);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[] { messageClass });\r\n m.invoke(ex, new java.lang.Object[] { messageObject });\r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n } catch (java.lang.ClassCastException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n } else {\r\n throw f;\r\n }\r\n } else {\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender()\r\n .cleanup(_messageContext);\r\n }\r\n }\r\n }", "@Override\n public OAuthApplicationInfo mapOAuthApplication(OAuthAppRequest appInfoRequest)\n throws APIManagementException {\n\n //initiate OAuthApplicationInfo\n OAuthApplicationInfo oAuthApplicationInfo = appInfoRequest.getOAuthApplicationInfo();\n\n String consumerKey = oAuthApplicationInfo.getClientId();\n String tokenScope = (String) oAuthApplicationInfo.getParameter(\"tokenScope\");\n String[] tokenScopes = new String[1];\n tokenScopes[0] = tokenScope;\n String clientSecret = (String) oAuthApplicationInfo.getParameter(\"client_secret\");\n oAuthApplicationInfo.setClientSecret(clientSecret);\n //for the first time we set default time period.\n oAuthApplicationInfo.addParameter(ApplicationConstants.VALIDITY_PERIOD,\n getConfigurationParamValue(APIConstants.IDENTITY_OAUTH2_FIELD_VALIDITY_PERIOD));\n\n\n //check whether given consumer key and secret match or not. If it does not match throw an exception.\n org.wso2.carbon.apimgt.api.model.xsd.OAuthApplicationInfo info = null;\n try {\n info = getOAuthApplication(oAuthApplicationInfo.getClientId());\n if (!clientSecret.equals(info.getClientSecret())) {\n throw new APIManagementException(\"The secret key is wrong for the given consumer key \" + consumerKey);\n }\n\n } catch (Exception e) {\n handleException(\"Some thing went wrong while getting OAuth application for given consumer key \" +\n oAuthApplicationInfo.getClientId(), e);\n } \n if (info != null && info.getClientId() == null) {\n return null;\n }\n\n oAuthApplicationInfo.addParameter(\"tokenScope\", tokenScopes);\n oAuthApplicationInfo.setClientName(info.getClientName());\n oAuthApplicationInfo.setClientId(info.getClientId());\n oAuthApplicationInfo.setCallBackURL(info.getCallBackURL());\n oAuthApplicationInfo.setClientSecret(info.getClientSecret());\n oAuthApplicationInfo.setIsSaasApplication(info.getIsSaasApplication());\n\n try {\n JSONObject jsonObject = new JSONObject(info.getJsonString());\n\n if (jsonObject.has(ApplicationConstants.\n OAUTH_REDIRECT_URIS)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_REDIRECT_URIS, jsonObject.get(ApplicationConstants.OAUTH_REDIRECT_URIS));\n }\n\n if (jsonObject.has(ApplicationConstants.OAUTH_CLIENT_NAME)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_CLIENT_NAME, jsonObject.get(ApplicationConstants.OAUTH_CLIENT_NAME));\n }\n\n if (jsonObject.has(ApplicationConstants.OAUTH_CLIENT_GRANT)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_CLIENT_GRANT, jsonObject.get(ApplicationConstants.OAUTH_CLIENT_GRANT));\n }\n } catch (JSONException e) {\n handleException(\"Can not read information from the retrieved OAuth application\", e);\n }\n\n if (log.isDebugEnabled()) {\n log.debug(\"Creating semi-manual application for consumer id : \" + oAuthApplicationInfo.getClientId());\n }\n\n\n return oAuthApplicationInfo;\n }", "@GET \n@Produces(\"application/json\")\n@Path(\"/reviewApplications/{reviewerID}\")\npublic GetReviewerJobApplicationResponseDTO getReviewerJobApplications(@PathParam(\"reviewerID\")String reviewerID)\n{\tArrayList<ArrayList<String>> jobApplications=new ArrayList<ArrayList<String>>();\n\tGetReviewerJobApplicationResponseDTO response=new GetReviewerJobApplicationResponseDTO();\n\tsecurityKey=headers.getRequestHeaders().getFirst(\"SecurityKey\");\n\tshortKey=headers.getRequestHeaders().getFirst(\"ShortKey\");\n\tif(securityKey==null)\n\t{\n\t\tsecurityKey=\"default\";\n\t}\n\tif(shortKey==null)\n\t{\n\t\tshortKey=\"default\";\n\t}\n\tif(securityKey.equalsIgnoreCase(\"i-am-foundit\")&& shortKey.equalsIgnoreCase(\"app-reviewer\"))\n\t{\n\t\ttry{\n\t\t\t\n\t\t\tjobApplications=ReviewerUtil.getJobApplications(reviewerID, con);\n\t\t\tresponse.setJobApplications(jobApplications);\n\t\t\tstatus=200;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Error Occured in Reviewer getReviewerJobApplication\");\n\t\t\tstatus=500;\n\t\t\te.printStackTrace();\n\n\t\t}\n\t}\n\telse\n\t{\n\t\tstatus=403;\n\t\tSystem.out.println(\"Access Forbidden\");\n\t}\n\t\n\tresponse.setStatus(status);\n\t\n\treturn response;\n}", "public int getApplications() {\r\n return applications;\r\n }", "@Override\n public Set<ApplicationSummary> getAllApplicationsSummary() throws TException {\n Set<ApplicationSummary> result = new HashSet<>();\n Set<Application> allApps = getApplications(\"*\", getSecurityToken());\n\n for (Application app : allApps) {\n ApplicationSummary summary = new ApplicationSummary().setAppName(app.getAppName()).\n setId(app.getId()).setPoc(app.getPoc()).\n setSponsoringOrganization(app.getSponsoringOrganization());\n\n if (app.isSetWebApp()) {\n summary.setExternalUri(app.getWebApp().getExternalUri());\n }\n\n result.add(summary);\n }\n\n return result;\n }", "@Override\n public MarathonDeployedAppList get(Application application, Component component, Environment environment) {\n return null;\n }", "public org.thethingsnetwork.management.proto.HandlerOuterClass.Application getApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);", "public String showApplicationByEmpId(){\r\n\t\tuserRole = (Employee) request.getSession().getAttribute(\"user\");\r\n\t\tapplications = iad.getApplicationByEmpid(userRole.getEmpId());\r\n\t\t\r\n\t\tresponse.setContentType(\"text/html;charset=utf-8\");\r\n\t\t\r\n\t\t\r\n\t\tPrintWriter out = null;\r\n\t\ttry {\r\n\t\t\tout = response.getWriter();\r\n\t\t\tJSONArray jsons = JSONArray.fromObject(applications);\r\n\t\t\tout.print(jsons.toString());\r\n\t\t} catch (Exception ee) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tee.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "com.google.cloud.talent.v4beta1.Application getApplications(int index);", "@Nonnull\n public static UBL23WriterBuilder <ApplicationResponseType> applicationResponse ()\n {\n return UBL23WriterBuilder.create (ApplicationResponseType.class);\n }", "int getApplicationsCount();", "public List<ApplicationRecord> getListRegisteredApplications(String vnfrId) {\n\t\tApplicationRecord[] list = restTemplate.getForObject(serviceProfile.getServiceApiUrl(), ApplicationRecord[].class);\n\t\t return Arrays.asList(list);\n\t}", "@Override\n\t\tpublic List<Customer> ViewPendingApplications() {\n\t\t\treturn null;\n\t\t}", "@Override\n public OAuthApplicationInfo createApplication(OAuthAppRequest oauthAppRequest) throws APIManagementException {\n OAuthApplicationInfo oAuthApplicationInfo = oauthAppRequest.getOAuthApplicationInfo();\n\n // Subscriber's name should be passed as a parameter, since it's under the subscriber the OAuth App is created.\n String userId = (String) oAuthApplicationInfo.getParameter(ApplicationConstants.\n OAUTH_CLIENT_USERNAME);\n String applicationName = oAuthApplicationInfo.getClientName();\n String keyType = (String) oAuthApplicationInfo.getParameter(ApplicationConstants.APP_KEY_TYPE);\n String callBackURL = (String) oAuthApplicationInfo.getParameter(ApplicationConstants.APP_CALLBACK_URL);\n if (keyType != null) {\n applicationName = applicationName + '_' + keyType;\n }\n\n if (log.isDebugEnabled()) {\n log.debug(\"Trying to create OAuth application :\" + applicationName);\n }\n\n String tokenScope = (String) oAuthApplicationInfo.getParameter(\"tokenScope\");\n String[] tokenScopes = new String[1];\n tokenScopes[0] = tokenScope;\n\n org.wso2.carbon.apimgt.api.model.xsd.OAuthApplicationInfo info = null;\n\n try {\n org.wso2.carbon.apimgt.api.model.xsd.OAuthApplicationInfo applicationToCreate =\n new org.wso2.carbon.apimgt.api.model.xsd.OAuthApplicationInfo();\n applicationToCreate.setIsSaasApplication(oAuthApplicationInfo.getIsSaasApplication());\n applicationToCreate.setCallBackURL(callBackURL);\n applicationToCreate.setClientName(applicationName);\n applicationToCreate.setAppOwner(userId);\n applicationToCreate.setJsonString(oAuthApplicationInfo.getJsonString());\n applicationToCreate.setTokenType(oAuthApplicationInfo.getTokenType());\n info = createOAuthApplicationbyApplicationInfo(applicationToCreate);\n } catch (Exception e) {\n handleException(\"Can not create OAuth application : \" + applicationName, e);\n } \n\n if (info == null || info.getJsonString() == null) {\n handleException(\"OAuth app does not contains required data : \" + applicationName,\n new APIManagementException(\"OAuth app does not contains required data\"));\n }\n\n oAuthApplicationInfo.addParameter(\"tokenScope\", tokenScopes);\n oAuthApplicationInfo.setClientName(info.getClientName());\n oAuthApplicationInfo.setClientId(info.getClientId());\n oAuthApplicationInfo.setCallBackURL(info.getCallBackURL());\n oAuthApplicationInfo.setClientSecret(info.getClientSecret());\n oAuthApplicationInfo.setIsSaasApplication(info.getIsSaasApplication());\n\n try {\n JSONObject jsonObject = new JSONObject(info.getJsonString());\n\n if (jsonObject.has(ApplicationConstants.\n OAUTH_REDIRECT_URIS)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_REDIRECT_URIS, jsonObject.get(ApplicationConstants.OAUTH_REDIRECT_URIS));\n }\n\n if (jsonObject.has(ApplicationConstants.OAUTH_CLIENT_NAME)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_CLIENT_NAME, jsonObject.get(ApplicationConstants.OAUTH_CLIENT_NAME));\n }\n\n if (jsonObject.has(ApplicationConstants.OAUTH_CLIENT_GRANT)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_CLIENT_GRANT, jsonObject.get(ApplicationConstants.OAUTH_CLIENT_GRANT));\n }\n } catch (JSONException e) {\n handleException(\"Can not retrieve information of the created OAuth application\", e);\n }\n\n return oAuthApplicationInfo;\n\n }", "private void showOrLoadApplications() {\n //nocache!!\n GetAppList getAppList = new GetAppList();\n if (plsWait == null && (getAppList.getStatus() == AsyncTask.Status.PENDING || getAppList.getStatus() == AsyncTask.Status.FINISHED)) {\n getAppList.setContext(this).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }\n }", "@GetMapping(path = \"\", produces = {\r\n MediaType.APPLICATION_JSON_VALUE, \"application/json\"\r\n })\r\n public ResponseEntity<List<String>> applicationList() throws IOException {\n return ResponseEntity.ok() //\r\n .contentType(MediaType.APPLICATION_JSON) //\r\n .body(apiFragments.stream() //\r\n .filter(f -> !f.getApplication().equals(OpenApiFragment.GLOBAL)) //\r\n .map(f -> f.getApplication()) //\r\n .distinct() //\r\n .collect(Collectors.toList()) //\r\n );\r\n }", "com.google.cloud.talent.v4beta1.ApplicationOrBuilder getApplicationsOrBuilder(int index);", "@GET\n@Produces(\"application/json\")\n@Path(\"reviewApplicant/{jobApplicationID}\")\npublic ReviewerJobApplicationDetailsResponseDTO getJobApplication(@PathParam(\"jobApplicationID\")String jobApplicationID)\n{\t\n\tReviewerJobApplicationDetailsResponseDTO response=new ReviewerJobApplicationDetailsResponseDTO();\n\tArrayList<ArrayList<String>> jobApplicationDetails=new ArrayList<ArrayList<String>>();\n\tsecurityKey=headers.getRequestHeaders().getFirst(\"SecurityKey\");\n\tshortKey=headers.getRequestHeaders().getFirst(\"ShortKey\");\n\tif(securityKey==null)\n\t{\n\t\tsecurityKey=\"default\";\n\t}\n\tif(shortKey==null)\n\t{\n\t\tshortKey=\"default\";\n\t}\n\tif(securityKey.equalsIgnoreCase(\"i-am-foundit\")&& shortKey.equalsIgnoreCase(\"app-reviewer\"))\n\t{\n\t\ttry{\n\t\t\tjobApplicationDetails=ReviewerUtil.getJobApplicationDetails(jobApplicationID, con);\n\t\t\tresponse.setJobApplicationDetails(jobApplicationDetails);\n\t\t\t\n\t\t\t\n\t\t\tstatus=200;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Error Occured in Reviewer getReviewerJobApplication\");\n\t\t\tstatus=500;\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\telse\n\t{\n\t\tstatus=403;\n\t\tSystem.out.println(\"Access Forbidden\");\n\t}\n\t\n\tresponse.setStatus(status);\n\treturn response;\n}", "@GetMapping(\"getAll\")\n\tpublic Collection<JobApplication> getAll(){\n\t\treturn jobAppRepo.findAll();\n\t}", "@JsonIgnore\n public List<Application> getIncludedApplications()\n {\n List<Application> actual = new ArrayList<Application>();\n\n for (Application app : _apps) {\n if (!app.isSkipped()) {\n actual.add(app);\n }\n }\n\n return actual;\n }", "@Override\n public ListApplicationsResult listApplications(ListApplicationsRequest request) {\n request = beforeClientExecution(request);\n return executeListApplications(request);\n }", "public TargetModuleID[] getAllApplications(Boolean running) \n throws Exception {\n TargetModuleID[] ears = getApplications(ModuleType.EAR, running);\n TargetModuleID[] wars = getApplications(ModuleType.WAR, running);\n TargetModuleID[] cars = getApplications(ModuleType.CAR, running);\n TargetModuleID[] ejbs = getApplications(ModuleType.EJB, running);\n TargetModuleID[] rars = getApplications(ModuleType.RAR, running);\n\n List list = new ArrayList();\n for (int i = 0; i < ears.length; i++) { list.add(ears[i]); }\n for (int i = 0; i < wars.length; i++) { list.add(wars[i]); }\n for (int i = 0; i < cars.length; i++) { list.add(cars[i]); }\n for (int i = 0; i < ejbs.length; i++) { list.add(ejbs[i]); }\n for (int i = 0; i < rars.length; i++) { list.add(rars[i]); }\n \n TargetModuleID[] results = new TargetModuleID[list.size()];\n for (int i = 0; i < list.size(); i++) { \n results[i] = (TargetModuleID) list.get(i);\n }\n return results;\n }", "java.util.List<? extends com.google.cloud.talent.v4beta1.ApplicationOrBuilder>\n getApplicationsOrBuilderList();", "@Override\n public void onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation) {\n }", "public int getCount() {\n\t\t\treturn mApplications.size();\n\t\t}", "@Headers({\n \"Content-Type:application/json; charset=utf-8\"\n })\n @GET(\"entity/applications/{meIdentifier}\")\n Call<Application> getSingleApplication(\n @Path(\"meIdentifier\") String meIdentifier\n );", "@GET\n\t@Path(\"{id}\")\n\t@Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})\n\tpublic Response getApplication(@PathParam(\"id\") String id) {\n\t\tApplication a = ApplicationsDao.instance.getById(id);\n\t\treturn Response.ok(a).build();\n\t}", "public interface ApplicationService extends GenericService<Application, Long> {\n\n Page<Application> getPagedMerchantApplications(Long merchantId, int pagination, int capacity, String keyword, String... fetchs);\n\n boolean isAppIDExisted(String appID);\n\n boolean isOriginalIDExisted(String originalID);\n\n Application getApplicationByAppID(String appID, String... fetchs);\n\n boolean startPulling(String appID);\n\n boolean endPulling(String appID);\n\n boolean startRefreshing(String appID);\n\n boolean endRefreshing(String appID);\n\n int updateToVerified(String appID);\n\n}", "public static java.util.List<de.fraunhofer.fokus.movepla.model.Application> getApplications(\n long pk) throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().getApplications(pk);\n }", "public int getNumApplications()\n {\n return _apps.size();\n }", "AppConfiguration getApplicationList()\n throws SAXException, IOException;", "@SuppressWarnings(\"unused\")\n private CreateOrUpdateApplicationResult() {\n }", "public void receiveResultgetUsersOfApplication(\n java.lang.String[] result\n ) {\n }", "protected void getApps(){\n DBPermissions db =new DBPermissions();\n this.apps=db.getApps();\n db.close();\n }", "@Transactional\n @GetMapping(\"/{name}/quantum-applications\")\n public ResponseEntity<CollectionModel<EntityModel<QuantumApplicationDto>>> getEventTriggerApplications(@PathVariable String name) {\n return new ResponseEntity<>(quantumApplicationLinkAssembler.toModel(service.getEventTriggerApplications(name), QuantumApplicationDto.class), HttpStatus.OK);\n }", "public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.Application> getApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);", "@GetMapping(\"/at-job-applications/{id}\")\n @Timed\n public ResponseEntity<AtJobApplicationsDTO> getAtJobApplications(@PathVariable Long id) {\n log.debug(\"REST request to get AtJobApplications : {}\", id);\n AtJobApplications atJobApplications = atJobApplicationsRepository.findById(id);\n AtJobApplicationsDTO atJobApplicationsDTO = atJobApplicationsMapper.toDto(atJobApplications);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(atJobApplicationsDTO));\n }", "public TreeMap<String, Integer> build_apps_list() {\n return this.ntfcn_items.build_apps_list();\n }", "public List<ApplicationOverview> searchApplicationOverviewsUseSameApplication(String modelID, String applicationID){\r\n\t\t// sparql\r\n\t\tString sparql = \"SELECT Distinct ?application ?applicationName ?healthcareApplication ?healthcareApplicationName \\r\\n\"\r\n\t\t\t\t+ \"?data ?dataName ?dataFeature ?dataDescription ?dataResource ?accelerometerName ?gyroscopeName \\r\\n\"\r\n\t\t\t\t+ \"?model ?modelName ?modelDescription ?modelResource ?CNNTypeName ?RNNTypeName\\r\\n\"\r\n\t\t\t\t+ \"?modelPerformance ?performanceAccuracy ?performancePrecision ?performanceRecall ?performanceF1Score\\r\\n\"\r\n\t\t\t\t+ \"WHERE {\\r\\n\" + \"\t?application rdf:type onto:DeepLearningApplication.\\r\\n\"\r\n\t\t\t\t+ \" \tonto:\" + applicationID + \" onto:applicationName ?applicationName.\\r\\n\"\r\n\t\t\t\t+ \" \t?application onto:applicationName ?applicationName.\\r\\n\"\r\n\t\t\t\t+ \" ?application onto:hasHealthcareApplication ?healthcareApplication.\\r\\n\"\r\n\t\t\t \t+ \" \tOPTIONAL{?healthcareApplication onto:healthcareName ?healthcareApplicationName.}\\r\\n\"\r\n\t\t\t \t+ \"\t OPTIONAL{\"\r\n\t\t\t \t+ \"\t\t?healthcareApplication onto:hasSkinCancer ?skinCancerApplication.\\r\\n\"\r\n\t\t\t \t+ \"\t ?skinCancerApplication onto:skinCancerName ?skinCancerName.}\\r\\n\"\t\t\r\n\t\t\t \t+ \"\t OPTIONAL{\"\r\n\t\t\t \t+ \" ?healthcareApplication onto:hasMusculoskeletalDisorder ?musculoskeletalDisorderApplication.\\r\\n\"\r\n\t\t\t \t+ \" \t?musculoskeletalDisorderApplication onto:musculoskeletalDisorderName ?musculoskeletalDisorderName.}\\r\\n\"\r\n\t\t\t\t+ \" \t?application onto:hasData ?data.\\r\\n\"\r\n\t\t\t\t+ \" \t?data onto:dataName ?dataName.\\r\\n\"\r\n\t\t\t\t+ \"\t\t?data onto:dataFeature ?dataFeature.\\r\\n\"\r\n\t\t\t\t+ \" \t?data onto:dataDescription ?dataDescription.\\r\\n\"\r\n\t\t\t\t+ \" \t?data onto:dataResource ?dataResource.\\r\\n\"\r\n\t\t\t\t+ \" ?data onto:hasDataSourceType ?dataSourceType.\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?dataSourceType onto:hasAccelerometer ?accelerometer.\\r\\n\"\r\n\t\t\t\t+ \" \t?accelerometer onto:accelerometerName ?accelerometerName.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?dataSourceType onto:hasGyroscope ?gyroscope.\\r\\n\"\r\n\t\t\t\t+ \" \t?gyroscope onto:gyroscopeName ?gyroscopeName.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?dataSourceType onto:hasMedicalImagingDevice ?medicalImagingDevice.\\r\\n\"\r\n\t\t\t\t+ \" \t?medicalImagingDevice onto:medicalImagingDeviceName ?medicalImagingDeviceName.}\\r\\n\"\r\n\t\t\t\t+ \"\t ?application onto:hasModel ?model.\\r\\n\" \r\n\t\t\t\t+ \" \t?model onto:modelName ?modelName.\\r\\n\"\r\n\t\t\t\t+ \" \t?model onto:modelDescription ?modelDescription.\\r\\n\"\r\n\t\t\t\t+ \" \t?model onto:modelResource ?modelResource.\\r\\n\"\r\n\t\t\t\t+ \"\t\tFILTER (?model != onto:\"+ modelID +\")\"\r\n\t\t\t\t+ \" OPTIONAL{?model onto:hasPerformance ?modelPerformance.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performanceAccuracy ?performanceAccuracy.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performancePrecision ?performancePrecision.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performanceRecall ?performanceRecall.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performanceF1Score ?performanceF1Score.}\\r\\n\"\r\n\t\t\t\t+ \" ?model onto:hasModelType ?modelType.\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelType onto:hasCNNType ?CNNType.\\r\\n\"\r\n\t\t\t\t+ \" \t?CNNType onto:CNNTypeName ?CNNTypeName.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelType onto:hasRNNType ?RNNType.\\r\\n\"\r\n\t\t\t\t+ \" \t?RNNType onto:RNNTypeName ?RNNTypeName.}\\r\\n\"\r\n\t\t\t\t+ \"\t\t?model onto:hasLayer ?modelLayer.\"\r\n\t\t\t\t+ \" ?modelLayer ?a ?b.\\r\\n\"\r\n\t\t\t\t+ \" \t?b ?c ?d.\\r\\n\" \r\n\t\t\t\t+ \" \t?d ?e ?f.\\r\\n\";\r\n\r\n\t\t// end where\r\n\t\tsparql += \"}\";\r\n\t\tsparql += \"ORDER by DESC (?performanceAccuracy)\";\r\n\t\t// test\r\n\t\tString jsonString = findJsonResult(sparql);\r\n\t\tSystem.out.println(\"searchApplicationOverview:\" + jsonString);\r\n\t\t// result\r\n\t\tJSONObject json;\r\n\t\ttry {\r\n\t\t\tjson = new JSONObject(jsonString);\r\n\t\t\tJSONArray jsonArray = json.getJSONObject(\"results\").getJSONArray(\"bindings\");\r\n\t\t\tList<ApplicationOverview> list = new ArrayList<ApplicationOverview>();\r\n\t\t\tfor (int i = 0; i < jsonArray.length(); i++) {\r\n\t\t\t\tApplicationOverview applicationOverview = new ApplicationOverview();\r\n\t\t\t\tJSONObject jsonObject = (JSONObject) jsonArray.get(i);\r\n\t\t\t\tif (jsonObject.has(\"application\")) {\r\n\t\t\t\t\tapplicationOverview.setApplication(jsonObject.getJSONObject(\"application\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"applicationName\")) {\r\n\t\t\t\t\tapplicationOverview.setApplicationName(jsonObject.getJSONObject(\"applicationName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"healthcareApplicationName\")) {\r\n\t\t\t\t\tapplicationOverview.setHealthcareApplicationName(jsonObject.getJSONObject(\"healthcareApplicationName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"skinCancerName\")) {\r\n\t\t\t\t\tapplicationOverview.setSkinCancerName(jsonObject.getJSONObject(\"skinCancerName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"musculoskeletalDisorderName\")) {\r\n\t\t\t\t\tapplicationOverview.setMusculoskeletalDisorderName(jsonObject.getJSONObject(\"musculoskeletalDisorderName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"data\")) {\r\n\t\t\t\t\tapplicationOverview.setData(jsonObject.getJSONObject(\"data\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"dataName\")) {\r\n\t\t\t\t\tapplicationOverview.setDataName(jsonObject.getJSONObject(\"dataName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"dataFeature\")) {\r\n\t\t\t\t\tapplicationOverview.setDataFeature(jsonObject.getJSONObject(\"dataFeature\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"dataDescription\")) {\r\n\t\t\t\t\tapplicationOverview.setDataDescription(jsonObject.getJSONObject(\"dataDescription\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"dataResource\")) {\r\n\t\t\t\t\tapplicationOverview.setDataResource(jsonObject.getJSONObject(\"dataResource\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"accelerometerName\")) {\r\n\t\t\t\t\tapplicationOverview.setAccelerometerName(jsonObject.getJSONObject(\"accelerometerName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"gyroscopeName\")) {\r\n\t\t\t\t\tapplicationOverview.setGyroscopeName(jsonObject.getJSONObject(\"gyroscopeName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"medicalImagingDeviceName\")) {\r\n\t\t\t\t\tapplicationOverview.setMedicalImagingDeviceName(jsonObject.getJSONObject(\"medicalImagingDeviceName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"model\")) {\r\n\t\t\t\t\tapplicationOverview.setModel(jsonObject.getJSONObject(\"model\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"modelName\")) {\r\n\t\t\t\t\tapplicationOverview.setModelName(jsonObject.getJSONObject(\"modelName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"modelDescription\")) {\r\n\t\t\t\t\tapplicationOverview.setModelDescription(jsonObject.getJSONObject(\"modelDescription\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"modelResource\")) {\r\n\t\t\t\t\tapplicationOverview.setModelResource(jsonObject.getJSONObject(\"modelResource\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"CNNTypeName\")) {\r\n\t\t\t\t\tapplicationOverview.setCNNTypeName(jsonObject.getJSONObject(\"CNNTypeName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"RNNTypeName\")) {\r\n\t\t\t\t\tapplicationOverview.setRNNTypeName(jsonObject.getJSONObject(\"RNNTypeName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"modelPerformance\")) {\r\n\t\t\t\t\tapplicationOverview.setModelPerformance(jsonObject.getJSONObject(\"modelPerformance\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"performanceAccuracy\")) {\r\n\t\t\t\t\tapplicationOverview.setPerformanceAccuracy(jsonObject.getJSONObject(\"performanceAccuracy\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"performancePrecision\")) {\r\n\t\t\t\t\tapplicationOverview.setPerformancePrecision(jsonObject.getJSONObject(\"performancePrecision\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"performanceRecall\")) {\r\n\t\t\t\t\tapplicationOverview.setPerformanceRecall(jsonObject.getJSONObject(\"performanceRecall\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"performanceF1Score\")) {\r\n\t\t\t\t\tapplicationOverview.setPerformanceF1Score(jsonObject.getJSONObject(\"performanceF1Score\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tlist.add(applicationOverview);\r\n\t\t\t}\r\n\t\t\treturn list;\r\n\r\n\t\t} catch (JSONException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public ApplicationInfo getApplicationInfo() {\n return null;\n }", "public List<LeaveApplication> getAll();", "public PerpApplications getPerpApplications() {\n return perpApplications;\n }", "@GET\n @Path (\"{id}\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response getApplication(@Context final HttpServletRequest httpServletRequest, @PathParam(\"id\") String appId, @QueryParam(\"serviceId\") String serviceId, @QueryParam(\"checkEnablement\") String checkEnablement) {\n try {\n \t\n \t\tApplicationManager appManager = ApplicationManagerImpl.getInstance();\n\t\t\tApplication app = appManager.getApplication(appId);\n\t\t\t\n\t\t\t\n\t\t\tMap<String, Object> json = new HashMap<String, Object>();\n\t\t\tString appType = null;\n\t\t\tif (app.getAppType() != null)\n\t\t\t\tappType = app.getAppType();\n\t\t\tif (appType != null)\n\t\t\t\tjson.put(\"type\", appType);\n\t\t\tjson.put(\"policyId\", app.getPolicyId());\n\t\t\tjson.put(\"state\", app.getPolicyState());\n\t\t\t\n\t\t\tMetricConfigManager configService = MetricConfigManager.getInstance();\n Map<String, Object> configMap = configService.loadDefaultConfig(appType, appId);\n json.put(\"config\", configMap);\n\t\t\treturn RestApiResponseHandler.getResponseOk(objectMapper.writeValueAsString(json));\n\t\t} catch (DataStoreException e) {\n\n return RestApiResponseHandler.getResponseError(MESSAGE_KEY.RestResponseErrorMsg_database_error, e, httpServletRequest.getLocale());\n\t\t} catch (CloudException e) {\n\t\t\treturn RestApiResponseHandler.getResponseError(MESSAGE_KEY.RestResponseErrorMsg_cloud_error, e, httpServletRequest.getLocale());\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t\treturn Response.status(Status.INTERNAL_SERVER_ERROR).build();\n\t\t}\n }", "private static Application ParseResponseToApplication(String properties) {\n\t\tInputStream in = new ByteArrayInputStream(properties.getBytes(StandardCharsets.UTF_8));\n ResultSet results = ResultSetFactory.fromJSON(in);\n \n Application app = new Application();\n\n while (results.hasNext()) {\n\n QuerySolution soln = results.nextSolution();\n\n Resource res= soln.getResource(\"predicate\");\n\n RDFNode Onode = soln.get(\"object\");\n String object=\"\";\n if (Onode.isResource()) {\n object = String.valueOf(soln.getResource(\"object\"));\n }\n else{\n object = String.valueOf(soln.getLiteral(\"object\")); \n }\n \n switch (res.getLocalName()) {\n\n case \"label\":\n String label = object; \n app.setLabel(label);\n break;\n\n case \"comment\":\n \tString comment = object; \n \tapp.setComment(comment);\n \tbreak;\n \t\n case \"appliedBy\":\n \tString personURI = object;\n \tif(personURI.contains(\"#\"))\n \t\tpersonURI = \":\" + personURI.substring(personURI.indexOf(\"#\") + 1);\n \tapp.setPersonURI(personURI);\n \tbreak;\n \t\n case \"appliedFor\":\n \tString jobURI = object;\n \tif(jobURI.contains(\"#\"))\n \t\tjobURI = \":\" + jobURI.substring(jobURI.indexOf(\"#\") + 1);\n \tapp.setJobURI(jobURI);\n \tbreak;\n \t\n case \"hasExpectedSalary\":\n \tString expSalary = object;\n \tapp.setExpectedSalary(expSalary);\n \tbreak;\n \t\n case \"isAvailableAt\":\n \tString availableAt = object;\n \tapp.setAvailability(availableAt);\n \tbreak;\n \t\n case \"expectedSalaryCurrency\":\n \tString expSalCur = object;\n \tapp.setSalaryCurrency(expSalCur);\n \tbreak;\n \t\n default:\n break;\n }\n\n } \n return app; \n\t}", "@Test\n public void listAppsTest() throws ApiException {\n Boolean _public = null;\n String name = null;\n String executionSystem = null;\n String tags = null;\n String filter = null;\n String naked = null;\n Long limit = null;\n Long offset = null;\n // List<ApplicationSummary> response = api.listApps(_public, name, executionSystem, tags, filter, naked, limit, offset);\n\n // TODO: test validations\n }", "@RequestMapping(value = \"/programs\", produces = {\"application/json;charset=UTF-8\"}, method = RequestMethod.GET)\n @ApiOperation(value = \"Get a list of programs given a date for a given range of channels possibly\",\n notes = \"Get a list of programs for a range of channels (one, a list with commas or \"\n + \"all) a specific date formatted as 'YYYY-MM-DD'.\",\n response = Program.class,\n responseContainer = \"List\")\n @ApiResponses(value = {\n @ApiResponse(code = Constant.OK, message = \"OK\", response = Program.class, responseContainer = \"List\",\n responseHeaders = {\n @ResponseHeader(name = \"X-Result-Count\",\n description = \"The actual number of items contained in the response body.\",\n response = String.class),\n @ResponseHeader(name = \"X-Total-Count\",\n description = \"The total number of items in the collection.\", response = String.class),\n @ResponseHeader(name = \"Cache-Control[max-age,public]\", \n description = \"Contains max-age in seconds\", response =\n String.class),\n @ResponseHeader(name = \"ETag\", description = \"The Entity Tag\", response = String.class)}),\n @ApiResponse(code = Constant.BAD_REQUEST, message = \"Bad Request\", response = Error.class),\n @ApiResponse(code = Constant.INTERNAL_EROR, message = \"Internal Server Error\", response = Error.class)})\n public ResponseEntity<List<Program>> getPrograms(\n @RequestParam(value = \"date\", required = false, defaultValue = \"current\") String date,\n @RequestParam(value = \"application\", required = false, defaultValue = \"PC\") String application,\n @RequestParam(value = \"channels\", required = false, defaultValue = \"all\") List<String> channels,\n @RequestParam(value = \"offset\", required = false, defaultValue = \"0\") Integer offset,\n @RequestParam(value = \"limit\", required = false, defaultValue = \"10\") Integer limit) {\n\n LOGGER.info(\"[getPrograms] date={}, application={}, channels={}, offset={}, limit={}\",\n date, application, channels.toString(), offset, limit);\n if (date.equals(\"current\")) {\n date = LocalDate.now().toString();\n } else {\n try {\n LocalDate.parse(date);\n } catch (DateTimeParseException e) {\n throw new SampleException(\"Bad date format\");\n }\n }\n List<Program> lightPaginated = programsService.findAllPrograms(date, application, channels);\n ResponseEntity<List<Program>> responseEntity = ResponseEntity.ok()\n .body(lightPaginated);\n LOGGER.debug(\"[getPrograms] response = {}\", responseEntity.toString());\n return responseEntity;\n }", "public interface ErpAppInfoService {\n /**\n * 插入平台信息\n * @param appName 平台名称\n * @return appId\n */\n Long addErpAppInfo( String appName);\n\n /**\n * 查询平台列表\n * @return 平台信息列表\n */\n List<AppInfoOutParam> queryErpAppInfo(Integer curPage,Integer pageSize);\n\n /**\n * 查询平台列表\n * @return 平台信息列表\n */\n Integer queryErpAppCount(String appName);\n\n /**\n * 更新平台信息\n * @param appId 平台id\n * @param appName 平台名称\n * @return 受影响行数\n */\n Integer modifyErpAppInfo(Long appId,String appName);\n\n /**\n * 删除平台信息\n * @param appId 平台id\n * @return 受影响行数\n */\n Integer removeAppInfo(Long appId);\n\n /**\n * 根据appId获取商城信息\n * @param appId 商城id\n * @return 商城信息\n */\n ErpAppInfoPOJO queryAppById(Long appId);\n /**\n * 根据商城名称获取商城信息\n * @param appName 商城名称\n * @return 商城信息\n */\n List<AppInfoOutParam> queryAppsByName(String appName,Integer curPage,Integer pageSize);\n\n /**\n * 根据商城名称获取商城信息\n * @param appName 商城名称\n * @return 商城信息\n */\n ErpAppInfoPOJO queryAppByName(String appName);\n}", "public void startappNoList(\r\n org.tempuri.HISWebServiceStub.AppNoList appNoList10,\r\n final org.tempuri.HISWebServiceCallbackHandler callback)\r\n throws java.rmi.RemoteException {\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());\r\n _operationClient.getOptions().setAction(\"http://tempuri.org/AppNoList\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n addPropertyToOperationClient(_operationClient,\r\n org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\r\n \"&\");\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n //Style is Doc.\r\n env = toEnvelope(getFactory(_operationClient.getOptions()\r\n .getSoapVersionURI()),\r\n appNoList10,\r\n optimizeContent(\r\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\r\n \"appNoList\")),\r\n new javax.xml.namespace.QName(\"http://tempuri.org/\", \"AppNoList\"));\r\n\r\n // adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message context to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\r\n public void onMessage(\r\n org.apache.axis2.context.MessageContext resultContext) {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\r\n\r\n java.lang.Object object = fromOM(resultEnv.getBody()\r\n .getFirstElement(),\r\n org.tempuri.HISWebServiceStub.AppNoListResponse.class);\r\n callback.receiveResultappNoList((org.tempuri.HISWebServiceStub.AppNoListResponse) object);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n callback.receiveErrorappNoList(e);\r\n }\r\n }\r\n\r\n public void onError(java.lang.Exception error) {\r\n if (error instanceof org.apache.axis2.AxisFault) {\r\n org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n\r\n if (faultElt != null) {\r\n if (faultExceptionNameMap.containsKey(\r\n new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(), \"AppNoList\"))) {\r\n //make the fault by reflection\r\n try {\r\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(), \"AppNoList\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(), \"AppNoList\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,\r\n messageClass);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[] { messageClass });\r\n m.invoke(ex,\r\n new java.lang.Object[] { messageObject });\r\n\r\n callback.receiveErrorappNoList(new java.rmi.RemoteException(\r\n ex.getMessage(), ex));\r\n } catch (java.lang.ClassCastException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorappNoList(f);\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorappNoList(f);\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorappNoList(f);\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorappNoList(f);\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorappNoList(f);\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorappNoList(f);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorappNoList(f);\r\n }\r\n } else {\r\n callback.receiveErrorappNoList(f);\r\n }\r\n } else {\r\n callback.receiveErrorappNoList(f);\r\n }\r\n } else {\r\n callback.receiveErrorappNoList(error);\r\n }\r\n }\r\n\r\n public void onFault(\r\n org.apache.axis2.context.MessageContext faultContext) {\r\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\r\n onError(fault);\r\n }\r\n\r\n public void onComplete() {\r\n try {\r\n _messageContext.getTransportOut().getSender()\r\n .cleanup(_messageContext);\r\n } catch (org.apache.axis2.AxisFault axisFault) {\r\n callback.receiveErrorappNoList(axisFault);\r\n }\r\n }\r\n });\r\n\r\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\r\n\r\n if ((_operations[5].getMessageReceiver() == null) &&\r\n _operationClient.getOptions().isUseSeparateListener()) {\r\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\r\n _operations[5].setMessageReceiver(_callbackReceiver);\r\n }\r\n\r\n //execute the operation client\r\n _operationClient.execute(false);\r\n }", "@RequestMapping(value= \"/{applicationName}\", method = RequestMethod.GET)\n\t@ResponseMapping(\"applicationDetails\")\n\tpublic Application getApplicationDetail(@PathVariable String applicationName) {\n\t\tRequestAttributes attributes = RequestContextHolder.getRequestAttributes();\n\t\t\n\t\tif (attributes != null)\n\t\t\tattributes.setAttribute(\"applicationList\", getAllApplications(), RequestAttributes.SCOPE_REQUEST);\n\t\t\n\t\tApplication answer = applicationRepository.findByName(applicationName);\n\t\tif (answer != null)\n\t\t\tanswer.setEnvironments(environmentController.getAllEnvironments(applicationName));\t// Could use template.fetch - but this handles security\n\t\t\n\t\treturn answer;\n\t}", "public AppInstanceResp() {\n super();\n }", "public com.atomgraph.linkeddatahub.apps.model.Application getApplication()\n {\n return (com.atomgraph.linkeddatahub.apps.model.Application)getContainerRequestContext().getProperty(LAPP.Application.getURI());\n }", "public String getApplicationdata() {\r\n return applicationdata;\r\n }", "@VTID(12)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject getApplication();", "public AppCall createBaseAppCall() {\r\n return new AppCall(getRequestCode());\r\n }", "public POSApplication getApplicationById(String appId) {\n String url = Configuration.getGS_URL() + APPLICATION_SERVICE + appId;\n Logger.get().info(\"Calling application service url: \" + url);\n\n try {\n POSApplication application = HttpClientApi.getGson(url, POSApplication.class);\n return application;\n } catch (Exception e) {\n Logger.get().info(\"Exception when invoking application service:\" + e);\n return null;\n }\n }", "java.util.concurrent.Future<GetApplicationResult> getApplicationAsync(GetApplicationRequest getApplicationRequest);", "public List<ApplicationOverview> searchApplicationOverviewsUseSameData(String dataID, String applicationID){\r\n\t\t// sparql\r\n\t\tString sparql = \"SELECT Distinct ?application ?applicationName ?healthcareApplication ?healthcareApplicationName \\r\\n\"\r\n\t\t\t\t+ \"?data ?dataName ?dataFeature ?dataDescription ?dataResource ?accelerometerName ?gyroscopeName \\r\\n\"\r\n\t\t\t\t+ \"?model ?modelName ?modelDescription ?modelResource ?CNNTypeName ?RNNTypeName\\r\\n\"\r\n\t\t\t\t+ \"?modelPerformance ?performanceAccuracy ?performancePrecision ?performanceRecall ?performanceF1Score\\r\\n\"\r\n\t\t\t\t+ \"WHERE {\\r\\n\" + \"\t?application rdf:type onto:DeepLearningApplication.\\r\\n\"\r\n\t\t\t\t+ \" \t?application onto:applicationName ?applicationName.\\r\\n\"\r\n\t\t\t\t+ \" ?application onto:hasHealthcareApplication ?healthcareApplication.\\r\\n\"\r\n\t\t\t \t+ \" \tOPTIONAL{?healthcareApplication onto:healthcareName ?healthcareApplicationName.}\\r\\n\"\r\n\t\t\t \t+ \"\t OPTIONAL{\"\r\n\t\t\t \t+ \"\t\t?healthcareApplication onto:hasSkinCancer ?skinCancerApplication.\\r\\n\"\r\n\t\t\t \t+ \"\t ?skinCancerApplication onto:skinCancerName ?skinCancerName.}\\r\\n\"\t\t\r\n\t\t\t \t+ \"\t OPTIONAL{\"\r\n\t\t\t \t+ \" ?healthcareApplication onto:hasMusculoskeletalDisorder ?musculoskeletalDisorderApplication.\\r\\n\"\r\n\t\t\t \t+ \" \t?musculoskeletalDisorderApplication onto:musculoskeletalDisorderName ?musculoskeletalDisorderName.}\\r\\n\"\r\n\t\t\t\t+ \" \t?application onto:hasData onto:\" + dataID + \".\\r\\n\"\r\n\t\t\t\t+ \"\t\tFILTER (?application != onto:\"+ applicationID +\")\"\r\n\t\t\t\t+ \" \t?application onto:hasData ?data.\\r\\n\"\r\n\t\t\t\t+ \" \t?data onto:dataName ?dataName.\\r\\n\"\r\n\t\t\t\t+ \"\t\t?data onto:dataFeature ?dataFeature.\\r\\n\"\r\n\t\t\t\t+ \" \t?data onto:dataDescription ?dataDescription.\\r\\n\"\r\n\t\t\t\t+ \" \t?data onto:dataResource ?dataResource.\\r\\n\"\r\n\t\t\t\t+ \" ?data onto:hasDataSourceType ?dataSourceType.\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?dataSourceType onto:hasAccelerometer ?accelerometer.\\r\\n\"\r\n\t\t\t\t+ \" \t?accelerometer onto:accelerometerName ?accelerometerName.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?dataSourceType onto:hasGyroscope ?gyroscope.\\r\\n\"\r\n\t\t\t\t+ \" \t?gyroscope onto:gyroscopeName ?gyroscopeName.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?dataSourceType onto:hasMedicalImagingDevice ?medicalImagingDevice.\\r\\n\"\r\n\t\t\t\t+ \" \t?medicalImagingDevice onto:medicalImagingDeviceName ?medicalImagingDeviceName.}\\r\\n\"\r\n\t\t\t\t+ \"\t ?application onto:hasModel ?model.\\r\\n\" + \" \t?model onto:modelName ?modelName.\\r\\n\"\r\n\t\t\t\t+ \" \t?model onto:modelDescription ?modelDescription.\\r\\n\"\r\n\t\t\t\t+ \" \t?model onto:modelResource ?modelResource.\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?model onto:hasPerformance ?modelPerformance.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performanceAccuracy ?performanceAccuracy.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performancePrecision ?performancePrecision.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performanceRecall ?performanceRecall.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelPerformance onto:performanceF1Score ?performanceF1Score.}\\r\\n\"\r\n\t\t\t\t+ \" ?model onto:hasModelType ?modelType.\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelType onto:hasCNNType ?CNNType.\\r\\n\"\r\n\t\t\t\t+ \" \t?CNNType onto:CNNTypeName ?CNNTypeName.}\\r\\n\"\r\n\t\t\t\t+ \" OPTIONAL{?modelType onto:hasRNNType ?RNNType.\\r\\n\"\r\n\t\t\t\t+ \" \t?RNNType onto:RNNTypeName ?RNNTypeName.}\\r\\n\"\r\n\t\t\t\t+ \"\t\t?model onto:hasLayer ?modelLayer.\"\r\n\t\t\t\t+ \" ?modelLayer ?a ?b.\\r\\n\"\r\n\t\t\t\t+ \" \t?b ?c ?d.\\r\\n\" \r\n\t\t\t\t+ \" \t?d ?e ?f.\\r\\n\";\r\n\r\n\t\t// end where\r\n\t\tsparql += \"}\";\r\n\t\t// test\r\n\t\tString jsonString = findJsonResult(sparql);\r\n\t\tSystem.out.println(\"searchApplicationOverviewsUseSameData:\" + jsonString);\r\n\t\t// result\r\n\t\tJSONObject json;\r\n\t\ttry {\r\n\t\t\tjson = new JSONObject(jsonString);\r\n\t\t\tJSONArray jsonArray = json.getJSONObject(\"results\").getJSONArray(\"bindings\");\r\n\t\t\tList<ApplicationOverview> list = new ArrayList<ApplicationOverview>();\r\n\t\t\tfor (int i = 0; i < jsonArray.length(); i++) {\r\n\t\t\t\tJSONObject jsonObject = (JSONObject) jsonArray.get(i);\r\n\t\t\t\tApplicationOverview applicationOverview = new ApplicationOverview();\r\n\t\t\t\tif (jsonObject.has(\"application\")) {\r\n\t\t\t\t\tapplicationOverview.setApplication(jsonObject.getJSONObject(\"application\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"applicationName\")) {\r\n\t\t\t\t\tapplicationOverview.setApplicationName(jsonObject.getJSONObject(\"applicationName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"healthcareApplicationName\")) {\r\n\t\t\t\t\tapplicationOverview.setHealthcareApplicationName(jsonObject.getJSONObject(\"healthcareApplicationName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"skinCancerName\")) {\r\n\t\t\t\t\tapplicationOverview.setSkinCancerName(jsonObject.getJSONObject(\"skinCancerName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"musculoskeletalDisorderName\")) {\r\n\t\t\t\t\tapplicationOverview.setMusculoskeletalDisorderName(jsonObject.getJSONObject(\"musculoskeletalDisorderName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"data\")) {\r\n\t\t\t\t\tapplicationOverview.setData(jsonObject.getJSONObject(\"data\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"dataName\")) {\r\n\t\t\t\t\tapplicationOverview.setDataName(jsonObject.getJSONObject(\"dataName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"dataFeature\")) {\r\n\t\t\t\t\tapplicationOverview.setDataFeature(jsonObject.getJSONObject(\"dataFeature\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"dataDescription\")) {\r\n\t\t\t\t\tapplicationOverview.setDataDescription(jsonObject.getJSONObject(\"dataDescription\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"dataResource\")) {\r\n\t\t\t\t\tapplicationOverview.setDataResource(jsonObject.getJSONObject(\"dataResource\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"accelerometerName\")) {\r\n\t\t\t\t\tapplicationOverview.setAccelerometerName(jsonObject.getJSONObject(\"accelerometerName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"gyroscopeName\")) {\r\n\t\t\t\t\tapplicationOverview.setGyroscopeName(jsonObject.getJSONObject(\"gyroscopeName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"medicalImagingDeviceName\")) {\r\n\t\t\t\t\tapplicationOverview.setMedicalImagingDeviceName(jsonObject.getJSONObject(\"medicalImagingDeviceName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"model\")) {\r\n\t\t\t\t\tapplicationOverview.setModel(jsonObject.getJSONObject(\"model\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"modelName\")) {\r\n\t\t\t\t\tapplicationOverview.setModelName(jsonObject.getJSONObject(\"modelName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"modelDescription\")) {\r\n\t\t\t\t\tapplicationOverview.setModelDescription(jsonObject.getJSONObject(\"modelDescription\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"modelResource\")) {\r\n\t\t\t\t\tapplicationOverview.setModelResource(jsonObject.getJSONObject(\"modelResource\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"CNNTypeName\")) {\r\n\t\t\t\t\tapplicationOverview.setCNNTypeName(jsonObject.getJSONObject(\"CNNTypeName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"RNNTypeName\")) {\r\n\t\t\t\t\tapplicationOverview.setRNNTypeName(jsonObject.getJSONObject(\"RNNTypeName\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"modelPerformance\")) {\r\n\t\t\t\t\tapplicationOverview.setModelPerformance(jsonObject.getJSONObject(\"modelPerformance\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"performanceAccuracy\")) {\r\n\t\t\t\t\tapplicationOverview.setPerformanceAccuracy(jsonObject.getJSONObject(\"performanceAccuracy\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"performancePrecision\")) {\r\n\t\t\t\t\tapplicationOverview.setPerformancePrecision(jsonObject.getJSONObject(\"performancePrecision\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"performanceRecall\")) {\r\n\t\t\t\t\tapplicationOverview.setPerformanceRecall(jsonObject.getJSONObject(\"performanceRecall\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (jsonObject.has(\"performanceF1Score\")) {\r\n\t\t\t\t\tapplicationOverview.setPerformanceF1Score(jsonObject.getJSONObject(\"performanceF1Score\").getString(\"value\"));\r\n\t\t\t\t}\r\n\t\t\t\tlist.add(applicationOverview);\r\n\t\t\t}\r\n\t\t\treturn list;\r\n\r\n\t\t} catch (JSONException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic List<Appointment> getAllAppointments() {\n\t\t\t\tList<Appointment> appointmentsList = new ArrayList<Appointment>();\n\t\t\t\ttry {\n\t\t\t\t\tappointmentsList = ar.findAll();\n\t\t\t\t}catch(Exception e) {\n\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\tappointmentsList = null;\n\t\t\t\t}\n\t\t\t\treturn appointmentsList ;\n\t}", "java.util.concurrent.Future<ListApplicationsResult> listApplicationsAsync(ListApplicationsRequest listApplicationsRequest,\n com.amazonaws.handlers.AsyncHandler<ListApplicationsRequest, ListApplicationsResult> asyncHandler);", "protected Application getApplication() {\r\n\t\treturn application;\r\n\t}", "@Override\n public MarathonDeployedAppList get(String componentName) {\n return null;\n }", "public interface AppManager {\n public AppInfoDTO getAppInfoByDomain(String domainName) throws ServiceException;\n\n public AppInfoDTO getAppInfoByType(String bizCode, AppTypeEnum appTypeEnum) throws ServiceException;\n\n public String getAppDomain(String bizCode, AppTypeEnum appTypeEnum) throws ServiceException;\n\n public BizInfoDTO getBizInfo(String bizCode) throws ServiceException;\n\n public BizInfoDTO getBizInfoByppKey(String appKey) throws ServiceException;\n\n void addAppProperty(AppPropertyDTO appPropertyDTO) throws ServiceException;\n\n void addBizProperty(BizPropertyDTO bizPropertyDTO) throws ServiceException;\n\n public Boolean checkNameEN(String name) throws ServiceException;\n\n BizInfoDTO addBizInfo(BizInfoDTO bizInfoDTO) throws ServiceException;\n\n AppInfoDTO addAppInfo(AppInfoDTO appInfoDTO) throws ServiceException;\n\n void updateBizProperty(String bizCode, String pKey, String value, ValueTypeEnum valueType) throws ServiceException;\n \n String getAppKeyByBizCode(String bizCode,AppTypeEnum appTypeEnum);\n}", "@RequestMapping(value = \"/getCustomerAppliedJobsList\", method = RequestMethod.GET, produces = \"application/json\")\n\t@ResponseBody\n\tpublic List<GetCustomerAppliedJobs> getCustomerAppliedJobsList() {\n \tList<GetCustomerAppliedJobs> getCustomerAppliedJobsList = null;\n\t\ttry {\n\t\t\t\n\t\t\tgetCustomerAppliedJobsList = this.econnectService.getCustomerAppliedJobsList();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn getCustomerAppliedJobsList;\n\t}", "public static interface ApplicationManager {\n\n /**\n * <pre>\n * Applications should first be registered to the Handler with the `RegisterApplication` method\n * </pre>\n */\n public void registerApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver);\n\n /**\n * <pre>\n * GetApplication returns the application with the given identifier (app_id)\n * </pre>\n */\n public void getApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request,\n io.grpc.stub.StreamObserver<org.thethingsnetwork.management.proto.HandlerOuterClass.Application> responseObserver);\n\n /**\n * <pre>\n * SetApplication updates the settings for the application. All fields must be supplied.\n * </pre>\n */\n public void setApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.Application request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver);\n\n /**\n * <pre>\n * DeleteApplication deletes the application with the given identifier (app_id)\n * </pre>\n */\n public void deleteApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver);\n\n /**\n * <pre>\n * GetDevice returns the device with the given identifier (app_id and dev_id)\n * </pre>\n */\n public void getDevice(org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request,\n io.grpc.stub.StreamObserver<org.thethingsnetwork.management.proto.HandlerOuterClass.Device> responseObserver);\n\n /**\n * <pre>\n * SetDevice creates or updates a device. All fields must be supplied.\n * </pre>\n */\n public void setDevice(org.thethingsnetwork.management.proto.HandlerOuterClass.Device request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver);\n\n /**\n * <pre>\n * DeleteDevice deletes the device with the given identifier (app_id and dev_id)\n * </pre>\n */\n public void deleteDevice(org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver);\n\n /**\n * <pre>\n * GetDevicesForApplication returns all devices that belong to the application with the given identifier (app_id)\n * </pre>\n */\n public void getDevicesForApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request,\n io.grpc.stub.StreamObserver<org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceList> responseObserver);\n\n /**\n * <pre>\n * DryUplink simulates processing a downlink message and returns the result\n * </pre>\n */\n public void dryDownlink(org.thethingsnetwork.management.proto.HandlerOuterClass.DryDownlinkMessage request,\n io.grpc.stub.StreamObserver<org.thethingsnetwork.management.proto.HandlerOuterClass.DryDownlinkResult> responseObserver);\n\n /**\n * <pre>\n * DryUplink simulates processing an uplink message and returns the result\n * </pre>\n */\n public void dryUplink(org.thethingsnetwork.management.proto.HandlerOuterClass.DryUplinkMessage request,\n io.grpc.stub.StreamObserver<org.thethingsnetwork.management.proto.HandlerOuterClass.DryUplinkResult> responseObserver);\n\n /**\n * <pre>\n * SimulateUplink simulates an uplink message\n * </pre>\n */\n public void simulateUplink(org.thethingsnetwork.management.proto.HandlerOuterClass.SimulatedUplinkMessage request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver);\n }", "protected Yst_Bapi_Appli_InfoType prepareIMApplicationInfo() {\n\t\tYst_Bapi_Appli_InfoType applicationInfo = new Yst_Bapi_Appli_InfoType();\n\t\tABEApplicationContext context = this.getApplicationContextFactory()\n\t\t\t\t.getApplicationContext();\n\t\tABERequestContext requestContext = context.getRequestContext();\n\n\t\tIMApplicationInfo imApplicationInfo = requestContext\n\t\t\t\t.getIMApplicationInfo();\n\t\tif (imApplicationInfo != null) {\n\t\t\tif (imApplicationInfo.getAgentNumber() != null)\n\t\t\t\tapplicationInfo\n\t\t\t\t\t\t.setAgentsine(imApplicationInfo.getAgentNumber());\n\t\t\tif (imApplicationInfo.getContextID() != null)\n\t\t\t\tapplicationInfo.setId_Context(imApplicationInfo.getContextID());\n\t\t\tif (imApplicationInfo.getRequestorID() != null)\n\t\t\t\tapplicationInfo.setRequestorid(imApplicationInfo\n\t\t\t\t\t\t.getRequestorID());\n\t\t\tif (imApplicationInfo.getType() != null) {\n\t\t\t\tapplicationInfo.setType(imApplicationInfo.getType().getCode());\n\t\t\t}\n\t\t\tif (imApplicationInfo.getCreatedBy() != null)\n\t\t\t\tapplicationInfo.setCreatedby(imApplicationInfo.getCreatedBy());\n\t\t\tif (imApplicationInfo.getIsoCountry() != null)\n\t\t\t\tapplicationInfo\n\t\t\t\t\t\t.setIsocountry(imApplicationInfo.getIsoCountry());\n\t\t\tif (imApplicationInfo.getIsoCurrency() != null)\n\t\t\t\tapplicationInfo.setIsocurrency(imApplicationInfo\n\t\t\t\t\t\t.getIsoCurrency());\n\t\t\tif (imApplicationInfo.getPseudoCityCode() != null)\n\t\t\t\tapplicationInfo.setPseudocitycode(imApplicationInfo\n\t\t\t\t\t\t.getPseudoCityCode());\n\t\t\tif (imApplicationInfo.getSalesOrg() != null) {\n\t\t\t\tapplicationInfo.setSales_Org(imApplicationInfo.getSalesOrg());\n\t\t\t}\n\t\t\tif (imApplicationInfo.getAgentFirstName() != null) {\n\t\t\t\tapplicationInfo.setAgentfname(imApplicationInfo\n\t\t\t\t\t\t.getAgentFirstName());\n\t\t\t}\n\t\t\tif (imApplicationInfo.getAgentLastName() != null) {\n\t\t\t\tapplicationInfo.setAgentlname(imApplicationInfo\n\t\t\t\t\t\t.getAgentLastName());\n\t\t\t}\n\t\t}\n\t\treturn applicationInfo;\n\t}", "@Override\r\n\tpublic List<ApplicationStatus> getApplicationStatuses() {\n\t\treturn entityManager.createQuery(\"from ApplicationStatus\", ApplicationStatus.class).getResultList();\r\n\t}", "public List<MortgageApplication> getMortgageApplications(String status) throws SQLException, NoResultsFoundException{\r\n\t\treturn applicationDao.getMortgageApplicationsByStatus(status);\r\n\t}", "public List<User_apps> getUserAppsList() {\n\t\treturn Arrays.asList(conf.getUser_apps());\n\t}", "@RequestMapping(method = RequestMethod.GET)\n\tpublic ResponseEntity<?> getCatalogItems() {\n\t\tBraveSpanContext openTracingContext = getTracingContext();\n\t\tio.opentracing.Span span = tracer.buildSpan(\"GetCatalogFromService\").asChildOf(openTracingContext)\n\t\t\t\t.withTag(\"Description\", \"Get All Catalogs\")\n\t\t\t\t.withTag(\"http_request_url\", request.getRequestURI()).start();\n\t\tbrave.Span braveSpan = ((BraveSpan) span).unwrap();\n\t\tbraveSpan.kind(Kind.SERVER);\n\n\t\tSummary.Timer requestTimer = Prometheus.requestLatency.startTimer();\n\t\ttry {\n\t\t\tlog.debug(\"Calling getCatalogItems() method of catalog controller is called\");\n\t\t\tPrometheus.getCounters.inc();\n\t\t\tPrometheus.inProgressRequests.inc();\n\t\t\tio.opentracing.Span mongospan = tracer.buildSpan(\"MongoService\").asChildOf(span)\n\t\t\t\t\t.withTag(\"Description\", \"MongoDB Service Call\").start();\n\t\t\tbrave.Span braveMongoSpan = ((BraveSpan) mongospan).unwrap();\n\t\t\tlog.debug(\"Calling getCatalogItems() method of catalog service\");\n\t\t\tList<Catalog> catalog = service.getCatalogItems(mongospan);\n\t\t\tbraveMongoSpan.finish();\n\t\t\tif (catalog == null) {\n\t\t\t\tlog.debug(\"No records found. Returning NOT_FOUND status.\");\n\t\t\t\treturn new ResponseEntity<>(HttpStatus.NOT_FOUND);\n\t\t\t} else {\n\t\t\t\tlog.debug(\"Returning list of items.\");\n\t\t\t\treturn new ResponseEntity<>(catalog, HttpStatus.OK);\n\t\t\t}\n\t\t} catch (Exception exc) {\n\t\t\tPrometheus.requestFailures.inc();\n\t\t\tlog.error(\"Error in getCatalogItems\", exc);\n\t\t\tspan.setTag(\"error\", exc.getMessage());\n\t\t\treturn new ResponseEntity<>(exc.toString(), HttpStatus.INTERNAL_SERVER_ERROR);\n\t\t} finally {\n\t\t\trequestTimer.observeDuration();\n\t\t\tPrometheus.inProgressRequests.dec();\n\t\t\tspan.finish();\n\t\t}\n\t}", "public void receiveResultisApplicationIdAvailable(\n boolean result\n ) {\n }", "public interface ApplicationCallback {\n void callback(Application application, StatusResponse statusResponse);\n}", "protected void onAppsChanged() {\n\t\t\n\t}", "public List<PersonalLoanApplication> getLoanApplications(Applicant applicant) throws SQLException, NoResultsFoundException{\r\n\t\treturn applicationDao.getUserLoanApplications(applicant.getUserId());\r\n\t}", "@GetMapping(\"/at-job-applications\")\n @Timed\n public ResponseEntity<List<AtJobApplicationsDTO>> getAllAtJobApplications(Pageable pageable) {\n log.debug(\"REST request to get a page of AtJobApplications\");\n Page<AtJobApplications> page = atJobApplicationsRepository.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/at-job-applications\");\n return new ResponseEntity<>(atJobApplicationsMapper.toDto(page.getContent()), headers, HttpStatus.OK);\n }", "public interface ApplicationsV3 {\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#create-an-app\">Create Application</a> request\n *\n * @param request the Create Application request\n * @return the response from the Create Application request\n */\n Mono<CreateApplicationResponse> create(CreateApplicationRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#delete-an-app\">Delete Application</a> request\n *\n * @param request the Delete Application request\n * @return the response from the Delete Application request\n */\n Mono<String> delete(DeleteApplicationRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#get-an-app\">Get Application</a> request\n *\n * @param request the Get Application request\n * @return the response from the Get Application request\n */\n Mono<GetApplicationResponse> get(GetApplicationRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#get-current-droplet\">Get Current Droplet</a> request\n *\n * @param request the Get Current Droplet request\n * @return the response from the Get Current Droplet request\n */\n Mono<GetApplicationCurrentDropletResponse> getCurrentDroplet(GetApplicationCurrentDropletRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#get-current-droplet-association-for-an-app\">Get Current Droplet Relationship</a> request\n *\n * @param request the Get Current Droplet Relationship request\n * @return the response from the Get Current Droplet Relationship request\n */\n Mono<GetApplicationCurrentDropletRelationshipResponse> getCurrentDropletRelationship(GetApplicationCurrentDropletRelationshipRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#get-environment-for-an-app\">Get Application Environment</a> request\n *\n * @param request the Get Application Environment request\n * @return the response from the Get Application Environment request\n */\n Mono<GetApplicationEnvironmentResponse> getEnvironment(GetApplicationEnvironmentRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#get-environment-variables-for-an-app\">Get Application Environment Variables</a> request\n *\n * @param request the Get Application Environment Variables request\n * @return the response from the Get Application Environment Variables request\n */\n Mono<GetApplicationEnvironmentVariablesResponse> getEnvironmentVariables(GetApplicationEnvironmentVariablesRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.88.0/index.html#get-an-app-feature\">Get Application Feature</a> request\n *\n * @param request the Get Application Feature request\n * @return the response from the Get Application Feature request\n */\n Mono<GetApplicationFeatureResponse> getFeature(GetApplicationFeatureRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.90.0/#get-permissions\">Get permissions for an Application</a> request\n *\n * @param request the Get Permissions for an Application request\n * @return the response from the Get Permissions for an Application request\n */\n Mono<GetApplicationPermissionsResponse> getPermissions(GetApplicationPermissionsRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/#get-a-process\">Get Application Process</a> request\n *\n * @param request the Get Application Process request\n * @return the response from the Get Application Process request\n */\n Mono<GetApplicationProcessResponse> getProcess(GetApplicationProcessRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/#get-stats-for-a-process\">Get Statistics for a Process for an Application</a> request\n *\n * @param request the Get Statistics for a Process for an Application request\n * @return the response from the Get Statistics for a Process for an Application request\n */\n Mono<GetApplicationProcessStatisticsResponse> getProcessStatistics(GetApplicationProcessStatisticsRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.90.0/#get-ssh-enabled-for-an-app\">Get SSH enabled for an Application</a> request\n *\n * @param request the Get SSH enabled for an Application request\n * @return the response from the Get SSH enabled for an Application request\n */\n Mono<GetApplicationSshEnabledResponse> getSshEnabled(GetApplicationSshEnabledRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#list-apps\">List Applications</a> request\n *\n * @param request the List Applications request\n * @return the response from the List Applications request\n */\n Mono<ListApplicationsResponse> list(ListApplicationsRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.47.0/#list-builds-for-an-app\">List Application Builds</a> request\n *\n * @param request the List Application Builds request\n * @return the response from the List Application Builds request\n */\n Mono<ListApplicationBuildsResponse> listBuilds(ListApplicationBuildsRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#list-droplets-for-an-app\">List Application Droplets</a> request\n *\n * @param request the List Application Droplets request\n * @return the response from the List Application Droplets request\n */\n Mono<ListApplicationDropletsResponse> listDroplets(ListApplicationDropletsRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.88.0/index.html#list-app-features\">List Application Features</a> request\n *\n * @param request the List Application Features request\n * @return the response from the List Application Features request\n */\n Mono<ListApplicationFeaturesResponse> listFeatures(ListApplicationFeaturesRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/#list-packages-for-an-app\">List Application Packages</a> request\n *\n * @param request the List Application Packages request\n * @return the response from the List Application Packages request\n */\n Mono<ListApplicationPackagesResponse> listPackages(ListApplicationPackagesRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/#list-processes-for-app\">List Application Processes</a> request\n *\n * @param request the List Application Processes request\n * @return the response from the List Application Processes request\n */\n Mono<ListApplicationProcessesResponse> listProcesses(ListApplicationProcessesRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.77.0/index.html#list-routes-for-an-app\">List Application Routes</a> request\n *\n * @param request the List Application Routes request\n * @return the response from the List Application Routes request\n */\n Mono<ListApplicationRoutesResponse> listRoutes(ListApplicationRoutesRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#list-tasks-for-an-app\">List Application Tasks</a> request\n *\n * @param request the List Application Tasks request\n * @return the response from the List Application Tasks request\n */\n Mono<ListApplicationTasksResponse> listTasks(ListApplicationTasksRequest request);\n\n /**\n * Makes the Restart Application request\n *\n * @param request the Restart Application request\n * @return the response from the Restart Application request\n */\n Mono<RestartApplicationResponse> restart(RestartApplicationRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/#scale-a-process\">Scale Application</a> request\n *\n * @param request the Scale Application request\n * @return the response from the Scale Application request\n */\n Mono<ScaleApplicationResponse> scale(ScaleApplicationRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#set-current-droplet\">Set Current Droplet</a> request\n *\n * @param request the Set Current Droplet request\n * @return the response from the Set Current Droplet request\n */\n Mono<SetApplicationCurrentDropletResponse> setCurrentDroplet(SetApplicationCurrentDropletRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#start-an-app\">Start Application</a> request\n *\n * @param request the Start Application request\n * @return the response from the Start Application request\n */\n Mono<StartApplicationResponse> start(StartApplicationRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#stop-an-app\">Stop Application</a> request\n *\n * @param request the Stop Application request\n * @return the response from the Stop Application request\n */\n Mono<StopApplicationResponse> stop(StopApplicationRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/#terminate-a-process-instance\">Delete Application Process</a> request\n *\n * @param request the Delete Application Process Instance request\n * @return the response from the Delete Application Process Instance request\n */\n Mono<Void> terminateInstance(TerminateApplicationInstanceRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#update-an-app\">Update Application</a> request\n *\n * @param request the Update Application request\n * @return the response from the Update Application request\n */\n Mono<UpdateApplicationResponse> update(UpdateApplicationRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.27.0/index.html#update-environment-variables-for-an-app\">Update Application Environment Variables</a> request\n *\n * @param request the Update Application Environment Variables request\n * @return the response from the Update Application Environment Variables request\n */\n Mono<UpdateApplicationEnvironmentVariablesResponse> updateEnvironmentVariables(UpdateApplicationEnvironmentVariablesRequest request);\n\n /**\n * Makes the <a href=\"https://v3-apidocs.cloudfoundry.org/version/3.88.0/index.html#update-an-app-feature\">Update Application Feature</a> request\n *\n * @param request the Update Application Feature request\n * @return the response from the Update Application Feature request\n */\n Mono<UpdateApplicationFeatureResponse> updateFeature(UpdateApplicationFeatureRequest request);\n\n}", "public void setApplications(int applications) {\r\n this.applications = applications;\r\n }", "public void setApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.Application request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver);", "public Observable<List<AppDetail>> getUserPermittedApps() {\n return getAllInstalledApps()\n .zipWith(PolicyManager\n .getCurrentUserPolicyRules(PolicyType.APPLICATION_CONTROL),\n RuleInterpreter::filterApps);\n\n }", "public MauiApplication [] getCachedMauiApplications ()\n\t{\n\t\tMauiApplication [] retVal = new MauiApplication [applications.size ()];\n\t\tEnumeration theApplications = applications.elements ();\n\t\tint i = 0;\n\t\twhile (theApplications.hasMoreElements ())\n\t\t{\n\t\t\tretVal [i++] = (MauiApplication) theApplications.nextElement ();\n\t\t}\n\t\treturn retVal;\n\t}", "List<ApplicantDetailsResponse> getAllApplicants() throws ServiceException;", "public java.lang.String getGetAppNoResult() {\r\n return localGetAppNoResult;\r\n }", "public List<MortgageApplication> getMortgageApplications(Applicant applicant) throws SQLException, NoResultsFoundException{\r\n\t\treturn applicationDao.getUserMortgageApplications(applicant.getUserId());\r\n\t}", "public void loadApplications() {\n PackageManager manager = context.getPackageManager();\n\n Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);\n mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);\n\n final List<ResolveInfo> apps = manager.queryIntentActivities(mainIntent, 0);\n Collections.sort(apps, new ResolveInfo.DisplayNameComparator(manager));\n\n if (apps != null) {\n applications.clear();\n\n for (ResolveInfo app : apps) {\n App application = new App();\n\n application.name = app.loadLabel(manager).toString();\n application.setActivity(new ComponentName(\n app.activityInfo.applicationInfo.packageName,\n app.activityInfo.name),\n Intent.FLAG_ACTIVITY_NEW_TASK\n | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);\n application.icon = app.activityInfo.loadIcon(manager);\n\n applications.add(application);\n }\n }\n }", "public org.tempuri.HISWebServiceStub.GetAppNoResponse getAppNo(\r\n org.tempuri.HISWebServiceStub.GetAppNo getAppNo70)\r\n throws java.rmi.RemoteException {\r\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n try {\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[35].getName());\r\n _operationClient.getOptions()\r\n .setAction(\"http://tempuri.org/GetAppNo\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n addPropertyToOperationClient(_operationClient,\r\n org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\r\n \"&\");\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n\r\n env = toEnvelope(getFactory(_operationClient.getOptions()\r\n .getSoapVersionURI()),\r\n getAppNo70,\r\n optimizeContent(\r\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\r\n \"getAppNo\")),\r\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\r\n \"GetAppNo\"));\r\n\r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n\r\n java.lang.Object object = fromOM(_returnEnv.getBody()\r\n .getFirstElement(),\r\n org.tempuri.HISWebServiceStub.GetAppNoResponse.class);\r\n\r\n return (org.tempuri.HISWebServiceStub.GetAppNoResponse) object;\r\n } catch (org.apache.axis2.AxisFault f) {\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n\r\n if (faultElt != null) {\r\n if (faultExceptionNameMap.containsKey(\r\n new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(), \"GetAppNo\"))) {\r\n //make the fault by reflection\r\n try {\r\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(), \"GetAppNo\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(), \"GetAppNo\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,\r\n messageClass);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[] { messageClass });\r\n m.invoke(ex, new java.lang.Object[] { messageObject });\r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n } catch (java.lang.ClassCastException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n } else {\r\n throw f;\r\n }\r\n } else {\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender()\r\n .cleanup(_messageContext);\r\n }\r\n }\r\n }", "@Override\r\npublic List<ThirdPartyAppsList> findAll()\r\n{\nArrayList<ThirdPartyAppsList> appsList = new ArrayList<>();\r\n//adding providers to the List\r\nappsList.add(new ThirdPartyAppsList(\"15645367\",\"Aetna\",\"My Data My Health\" ,\"Naveen\",\"Regidtered since: Dec-2020\"));\r\nappsList.add(new ThirdPartyAppsList(\"15645367\",\"Aetna\",\"Virtual Viewer\",\"Snow bound\",\"Regidtered since: Mar-2017\"));\r\nappsList.add(new ThirdPartyAppsList(\"15645367\",\"Aetna\",\"hapi.fhir\",\"Apache\",\"Regidtered since: June-2017\"));\r\nappsList.add(new ThirdPartyAppsList(\"15645367\",\"Aetna\",\"Dummy Heading3\",\"Dummy Owner Name\",\"Regidtered since: Aug-2016\"));\r\nappsList.add(new ThirdPartyAppsList(\"15645367\",\"Aetna\",\"Dummy Heading4\",\"Dummy Owner Name\",\"Regidtered since: Sep-2018\"));\r\nappsList.add(new ThirdPartyAppsList(\"15645367\",\"Aetna\",\"Dummy Heading5\",\"Owner Name\",\"Regidtered since: Oct-2019\"));\r\nreturn appsList;\r\n}" ]
[ "0.7318431", "0.654997", "0.6504146", "0.6483494", "0.6448689", "0.64410055", "0.6366315", "0.63588953", "0.6278425", "0.62170565", "0.61827755", "0.6182205", "0.6156821", "0.6101345", "0.60493374", "0.6048689", "0.60118234", "0.6009837", "0.5997051", "0.5995029", "0.593075", "0.5897277", "0.58670175", "0.58537936", "0.58314794", "0.58049405", "0.58020866", "0.5748581", "0.5738938", "0.573563", "0.5732792", "0.57260484", "0.57232445", "0.57093847", "0.5670676", "0.56683916", "0.56034714", "0.5601441", "0.56002766", "0.55980974", "0.5577787", "0.5575204", "0.5565268", "0.55531424", "0.5542695", "0.55112666", "0.550852", "0.55054176", "0.54887503", "0.54876924", "0.54775953", "0.546921", "0.54559153", "0.54537797", "0.54468954", "0.54206026", "0.53998363", "0.5370751", "0.5367982", "0.53473514", "0.53409785", "0.5325794", "0.53218323", "0.53037685", "0.5298325", "0.52977633", "0.52954453", "0.5295368", "0.52933186", "0.5286998", "0.52584714", "0.523161", "0.5221377", "0.5220842", "0.5212721", "0.5191197", "0.5181384", "0.51781017", "0.5168228", "0.5167364", "0.51657385", "0.5165605", "0.5161863", "0.51368904", "0.5134336", "0.51249236", "0.5124653", "0.5122724", "0.5120888", "0.51181483", "0.5116449", "0.51139206", "0.5110733", "0.510899", "0.5107088", "0.5105451", "0.5104832", "0.509598", "0.509239", "0.5085328" ]
0.6678776
1
auto generated Axis2 call back method for getRolesOfUserPerApplication method override this method for handling normal response from getRolesOfUserPerApplication operation
public void receiveResultgetRolesOfUserPerApplication( java.lang.String[] result ) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<SysRole> getUserRoles(int userId);", "public abstract Collection getRoles();", "@RequestMapping(value = \"/admin/getRoles\", method = RequestMethod.GET)\n\tpublic @ResponseBody Response getRoles() {\n\t \tResponse response = new Response();\n\t\tresponse.addCommand(new ClientCommand(ClientCommandType.PROPERTY,\"roles\", roleRepository.findAll() ));\n\t\treturn response;\n\t}", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\t@Transactional\n\tpublic ArrayList<ApplicationUserRole> getAllRoles() throws Exception {\n\t\tArrayList<ApplicationUserRole> roleList = null;\n\t\ttry {\n\t\t\tSession session = sessionFactory.getCurrentSession();\n\t\t\tQuery query = session.createQuery(\"from ApplicationUserRole\");\n\t\t\troleList = (ArrayList<ApplicationUserRole>) query.list();\n\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\tthrow e;\n\t\t}\n\t\treturn roleList;\n\t\t\n\t}", "public List<SecRole> getAllRoles();", "List<RoleEntity> getSystemRoles();", "@Override\n\tpublic List<AccountUser> getRoles() {\n\t\treturn auMapper.getRoles();\n\t}", "List<Role> getRoles();", "@RequestMapping(value = \"/roles\", method = RequestMethod.GET, produces = {MediaType.APPLICATION_JSON_VALUE, MediaType.APPLICATION_XML_VALUE})\n @ResponseBody\n public List<Role> getRoles() {\n List<Role> roleList = (List<Role>)roleService.getAll();\n if (roleList.isEmpty()){\n return null;\n }\n return roleList;\n }", "public List<Role> getAllRoles();", "List<String> getRoles();", "@GetMapping(\"roles\")\n public List<ApplicationRoleClient> GetAllApplicationRole(){\n return applicationRoleBLL.GetAllApplicationRole();\n }", "@PermitAll\n @Override\n public List<Role> getCurrentUserRoles() {\n Map params = new HashMap<String, Object>();\n params.put(CommonSqlProvider.PARAM_QUERY, Role.QUERY_GET_ROLES_BY_USER_NAME);\n params.put(User.PARAM_USERNAME, this.getUserName());\n return getRepository().getEntityList(Role.class, params);\n }", "@Override\r\n\tpublic Object getRoles() throws DataAccessException, SQLException {\n\t\tlogger.info(\"start : getRoles UsersMngDaoImpl \");\r\n\t\t \r\n\t\tList<Roles> roleList = roleRepository.findAll();\r\n\t\tlogger.info(\"End : getRoles UsersMngDaoImpl \");\r\n\t\treturn roleList;\r\n\t}", "@Override\n public List getAllRole() {\n \tMap mSession = ActionContext.getContext().getSession();\n \tInteger clientId = (Integer) mSession.get(\"CLIENT_INFO\");\n Session session = HibernateUtil.getSession();\n try {\n Criteria crit = session.createCriteria(RoleVO.class);\n crit.addOrder(Order.asc(\"roleName\"));\n crit.add(Restrictions.eq(\"isActive\", 1));\n crit.add(Restrictions.eq(\"clientId\", clientId));\n return crit.list();\n } finally {\n session.flush();\n session.close();\n }\n }", "public List getSysRoles(SysRole sysRole);", "private String getUserRoleListQuery() throws APIManagementException {\n StringBuilder rolesQuery = new StringBuilder();\n rolesQuery.append('(');\n rolesQuery.append(APIConstants.NULL_USER_ROLE_LIST);\n String[] userRoles = APIUtil.getListOfRoles(userNameWithoutChange);\n String skipRolesByRegex = APIUtil.getSkipRolesByRegex();\n if (StringUtils.isNotEmpty(skipRolesByRegex)) {\n List<String> filteredUserRoles = new ArrayList<>(Arrays.asList(userRoles));\n String[] regexList = skipRolesByRegex.split(\",\");\n for (int i = 0; i < regexList.length; i++) {\n Pattern p = Pattern.compile(regexList[i]);\n Iterator<String> itr = filteredUserRoles.iterator();\n while(itr.hasNext()) {\n String role = itr.next();\n Matcher m = p.matcher(role);\n if (m.matches()) {\n itr.remove();\n }\n }\n }\n userRoles = filteredUserRoles.toArray(new String[0]);\n }\n if (userRoles != null) {\n for (String userRole : userRoles) {\n rolesQuery.append(\" OR \");\n rolesQuery.append(ClientUtils.escapeQueryChars(APIUtil.sanitizeUserRole(userRole.toLowerCase())));\n }\n }\n rolesQuery.append(\")\");\n if(log.isDebugEnabled()) {\n \tlog.debug(\"User role list solr query \" + APIConstants.PUBLISHER_ROLES + \"=\" + rolesQuery.toString());\n }\n return APIConstants.PUBLISHER_ROLES + \"=\" + rolesQuery.toString();\n }", "public List<String> getRoles(String userId) throws UserManagementException;", "java.util.List<Role>\n getRolesList();", "java.util.List<Role>\n getRolesList();", "List<Rol> obtenerRoles() throws Exception;", "@Override\n\tpublic List<IRole> getRoles() {\n\t\treturn getInnerObject().getRoles();\n\t}", "public List<SecRole> getRolesByUser(SecUser aUser);", "Set getRoles();", "public RoleList getRoles() {\n return roleList;\n }", "Collection<Role> getRoles();", "public String getRoles() throws IOException {\n\t\treturn rolePoster.sendPost(\"getRoles=true\");\n\t}", "@Override\r\n public List<Role> getRoles() {\r\n return roles;\r\n }", "@Override\r\n\tpublic void getAllRole() {\n\t\tSystem.out.println(roles);\r\n\t\t\r\n\t}", "com.message.MessageInfo.RoleVO getRole();", "public ArrayList<Role> getRoles()\r\n {\r\n return this.securityInfo.getRoles();\r\n }", "@Override\n\tpublic List<VUserRoles> getUserRoleList(String vcAccount,String qUserName,\n\t\t\tInteger offset, Integer pageSize,Integer cFlag) {\n\t\tStringBuffer hql = new StringBuffer();\n\t\thql.append(\" select * from v_user_roles h where 1=1 \");\n\t\tif (qUserName != null && !qUserName.equals(\"\")) {\n\t\t\thql.append(\" and h.vcName like '%\" + qUserName + \"%' \");\n\t\t}\n\t\tif (vcAccount != null && !vcAccount.equals(\"\")) {\n\t\t\thql.append(\" and h.vcAccount like '%\" + vcAccount + \"%' \");\n\t\t}\n\t\tif (cFlag != null && cFlag!=99) {\n\t\t\thql.append(\" and h.cFlag =\"+cFlag+\" \");\n\t\t}\n\t\thql.append(\" order by h.vcEmployeeId \");\n\t\tQuery query = sessionFactory.getCurrentSession().createSQLQuery(hql.toString());\n\t\tif(offset !=null && pageSize != null){\n\t\t\tquery.setFirstResult(offset);\n\t\t\tquery.setMaxResults(pageSize);\n\t\t}\n\t\tList<VUserRoles> result = new ArrayList<VUserRoles>();\n\t\tList<Object[]> tempResult = query.list();\n\t\tfor(int i = 0; i < tempResult.size(); i++ ){\n\t\t\tObject[] tempObj = tempResult.get(i);\n\t\t\tVUserRoles entity = new VUserRoles();\n\t\t\tentity.setId(tempObj[0]==null?\"\":tempObj[0].toString());\n\t\t\tentity.setVcEmployeeID(tempObj[1]==null?\"\":tempObj[1].toString());\n\t\t\tentity.setVcName(tempObj[2]==null?\"\":tempObj[2].toString());\n\t\t\tentity.setVcFullName(tempObj[3]==null?\"\":tempObj[3].toString());\n\t\t\tentity.setVcAccount(tempObj[4]==null?\"\":tempObj[4].toString());\n\t\t\tentity.setRoleIds(tempObj[5]==null?\"\":tempObj[5].toString());\n\t\t\tentity.setRoleNames(tempObj[6]==null?\"\":tempObj[6].toString());\n\t\t\tentity.setcFlag(tempObj[7]==null?99:Integer.parseInt(tempObj[7].toString()));\n\t\t\tresult.add(entity);\n\t\t}\n\t\treturn result;\n\t}", "@Override\r\n\tpublic RolesListDto getAllRoles() {\n\t\treturn null;\r\n\t}", "public List<AppUser> getAllUserByRolesAndApp(@Valid AppUser appUser) {\n\t\n\t\tList<Roles> role =(List<Roles>) appUserRepository.getRolesByAppuser();\n\t\tSystem.out.println(\"get roles by user \"+role);\n\t\tSet<Roles> hSet = new HashSet<Roles>(role); \n hSet.addAll(role); \n\t\tappUser.setRoles(hSet);\n\t\tApp app = appUser.getApp();\n\t\tSystem.out.println(\"app and roles \"+app+\"roles ==\"+role);\n\t\treturn appUserRepository.findByAppAndRolesIn(app, role);\n//\t\treturn null;\n\t}", "Role getRoles(int index);", "Role getRoles(int index);", "public void receiveResultupdateRolesOfUserForApplication(\n boolean result\n ) {\n }", "public int getCountAllSecRoles();", "@Override\r\n\tpublic List<? extends Role> getRoles() {\n\r\n\t\tif (this.roles == null)\r\n\t\t\treturn null;\r\n\r\n\t\treturn new ArrayList(this.roles);\r\n\t\t// ArrayList<MyRole> arrayList = new ArrayList<MyRole>();\r\n\t\t// arrayList.addAll(roles);\r\n\t\t//\r\n\t\t// return arrayList;\r\n\t}", "@RequestMapping(value = \"/getUserRole/{userEmail}\", method = RequestMethod.GET)\n @Secured({})\n public ResponseEntity<User.ROLES> getUserRole(@PathVariable String userEmail){\n User user = userRepository.findByEmail(userEmail);\n if (user != null) {\n return ResponseEntity.ok(user.getRoles());\n } else {\n return ResponseEntity.notFound().build();\n }\n }", "@Override\n public java.util.List<Role> getRolesList() {\n return roles_;\n }", "@Override\n public java.util.List<Role> getRolesList() {\n return roles_;\n }", "public List<UserRole> getAllUserRoles() throws ClassNotFoundException, SQLException {\n\t\treturn read(\"select * from user_role\", null);\n\t}", "@Override\r\n\tpublic List<Role> getAllRoles() {\n\t\treturn null;\r\n\t}", "public Set<AppRole> getRoles() {\n return roles;\n }", "@Override\n\tpublic List<Role> getAllRoleInfo() {\n\t\treturn roleMapper.queryAll();\n\t}", "@PostMapping(value = \"/getUserRoles\")\n\tpublic RestResponse<List<GcmUserVendorRole>> getUserRoles(@RequestParam Long loggedInUserKey,@RequestParam Long vendorKey) {\t\n\t\tlogInfo(LOG, true, \"User key : {}\", loggedInUserKey);\n\t\tlogInfo(LOG, true, \"vendorKey : {}\", vendorKey);\n\t\t\n\t\tRestResponse<List<GcmUserVendorRole>> restResponse = new RestResponse<>(SUCCESS);\n\t\ttry {\n\t\t\tList<GcmUserVendorRole> userRoles = userCreationService.getUserRoles(loggedInUserKey, vendorKey);\n\t\t\trestResponse.setResult(userRoles);\n\t\t}catch(Exception e) {\n\t\t\tLOG.error(\"Exception : \", e);\n\t\t}\n\t\treturn restResponse;\t\t\n\t}", "@ModelAttribute(\"allRoles\")\r\n\tpublic List<Role> getAllRoles(){\t\r\n\t\treturn roleService.findAdminRoles();\r\n\t\t\r\n\t}", "public List<RoleDto> getRolesList() {\n return roleDBManager.fetchRolesList();\n }", "@Override\n\tpublic ArrayList<String> getRoles()\n\t{\n\t\treturn source.getRoles();\n\t}", "public int getMetaRoles();", "Set<String> getRoles();", "@Override\r\n\tpublic List<Role> getUserRoles(String userId) {\n\t\treturn userMapper.getRoles(userId);\r\n\t}", "@Transient\n public List<LabelValue> getRoleList() {\n List<LabelValue> userRoles = new ArrayList<LabelValue>();\n\n if (this.roles != null) {\n for (Role role : roles) {\n // convert the user's roles to LabelValue Objects\n userRoles.add(new LabelValue(role.getName().substring(5), role.getName()));\n }\n }\n\n return userRoles;\n }", "public List<UserRole> queryAllUsersRoles() {\n \tList<UserRole> userRoleList = new ArrayList<>();\n\tUserRole userRole;\n String sql = \"SELECT * FROM users_roles\";\n\ttry {\t\n this.statement = connection.prepareStatement(sql);\n this.resultSet = this.statement.executeQuery();\n while(this.resultSet.next()) {\n\t\tuserRole = new UserRole();\n userRole.setUserName(this.resultSet.getString(\"user_name\"));\n userRole.setRoleName(this.resultSet.getString(\"role_name\"));\n\t\tuserRoleList.add(userRole);\n }\t\n this.statement.close();\n\t} \n catch(SQLException ex) {\n Logger.getLogger(UserDBManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n return userRoleList;\n }", "@NotNull\r\n Collection<String> getRoles();", "public Collection<Role> getRoles() {\n return this.roles;\n }", "public java.util.List<Role> getRolesList() {\n if (rolesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(roles_);\n } else {\n return rolesBuilder_.getMessageList();\n }\n }", "public java.util.List<Role> getRolesList() {\n if (rolesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(roles_);\n } else {\n return rolesBuilder_.getMessageList();\n }\n }", "private static ArrayList<NameId> getOrganizationroles() {\n\t\tArrayList<NameId> modelList = new ArrayList<NameId>();\n\t\tif (CONSTANTS.organizationroleNames().length != AccessControl.ORGANIZATION_ROLES.length) {Window.alert(\"AgentPopup getOrganizationroles()\");}\n\t\tfor (int i = 0; i < AccessControl.ORGANIZATION_ROLES.length; i++) {modelList.add(new NameId(CONSTANTS.organizationroleNames()[i], String.valueOf(AccessControl.ORGANIZATION_ROLES[i])));}\n\t\treturn modelList;\n\t}", "public String getRoles() {\n return roles;\n }", "@OneToMany(mappedBy = \"user\", fetch = FetchType.LAZY)\n\t@Fetch(FetchMode.SELECT)\n\tpublic List<UserRole> getUserRoles() {\n\t\treturn userRoles;\n\t}", "@PermitAll\n @Override\n public List<Role> getRoles() {\n return getRepository().getEntityList(Role.class);\n }", "@Override\n public List<RoleModel> getAllRoles() {\n\n logger.info(STARTING_METHOD_EXECUTION);\n logger.info(EXITING_METHOD_EXECUTION);\n return roleRepo.findAll();\n }", "private Map<String, String> setRolesForCommand() {\n\t\tallRollesForCommand = new HashMap<String, String>();\n\t\tallRollesForCommand.put(ServiceParamConstant.ADMIN_ROLE, ServiceCommandConstant.ADMIN_COMMAND);\n\t\tallRollesForCommand.put(ServiceParamConstant.BOSS_ROLE, ServiceCommandConstant.BOSS_COMMAND);\n\t\tallRollesForCommand.put(ServiceParamConstant.HR_ROLE, ServiceCommandConstant.HR_COMMAND);\n\t\tallRollesForCommand.put(ServiceParamConstant.EMPLOYEE_ROLE, ServiceCommandConstant.EMPLOYEE_COMMAND);\n\t\treturn allRollesForCommand;\n\t}", "@Override\n\tpublic List<Role> getRoleList() {\n\t\treturn this.jdbcTemplate.query(\"SELECT * FROM role\", new RoleRowMapper());\n\t}", "@Override\n\tpublic List<RoleListBean_R001> getRoleList() {\n\t\treturn this.iRoleListRepository.getRoleBusiness();\n\t}", "@Override\n public int getRolesCount() {\n return roles_.size();\n }", "@Override\n public int getRolesCount() {\n return roles_.size();\n }", "public java.util.List<xbean.DeletedRole> getRoles();", "public Set<String> getRoles()\n {\n return this.roles;\n }", "@Override\n\tpublic List<InforRoles> selectRoles() {\n\t\treturn md.selectRoles();\n\t}", "public void getGrantedRoles() {\n\t\tif (path != null) {\n\t\t\tauthService.getGrantedRoles(path, callbackGetGrantedRoles);\n\t\t}\n\t}", "public List<Role> getRole() {\n\t\treturn userDao.getRole();\r\n\t}", "@GET\n @Path(\"/roles\")\n @Produces(MediaType.TEXT_PLAIN)\n @RolesAllowed(\"Subscriber\")\n public String helloRoles() {\n return sub;\n }", "@Override\r\n\tpublic List<Role> getAllRole() {\n\t\tString hql = \"from Role\";\r\n\t\treturn (List<Role>) getHibernateTemplate().find(hql);\r\n\t}", "int getRolesCount();", "int getRolesCount();", "public List<RoleDTO> getAllRoles() {\n\t\treturn roleDTOs;\n\t}", "public ResourceRole[] getAllResourceRoles() throws ResourceManagementException {\r\n return this.port.getAllResourceRoles();\r\n }", "public List<SecRole> getRolesLikeRoleName(String aRoleName);", "public final String getRoles() {\n return roles;\n }", "public List<Roles> selectAllRole(){\n\treturn rolesDao.findAll();\n\t}", "@Override\n\tpublic List<Map<String, Object>> getRole() {\n\t\treturn this.RoleDao.getRole();\n\t}", "@Override\n\tpublic List<IRole> getRoles() {\n\t\treturn null;\n\t}", "public Set<String> getUserRoles() {\n\t\treturn userRoles;\n\t}", "public List<ReviewApplicationResourceRole> getResourceRoles() {\n return resourceRoles;\n }", "public HashSet getDirectRoles() {\n return roles;\n }", "@Override\n public List<Role> getRoleByUser(String userId, int type) {\n StringBuilder vstrSql = new StringBuilder(\"select r.role_id as roleId, r.role_code as roleCode, r.role_name as roleName,r.description as description\");\n vstrSql.append(\" from roles r\");\n if (type == 1) {\n vstrSql.append(\" where r.role_id in (select ur.role_id from user_role ur where ur.user_id = :userId and ur.status = 1)\");\n } else {\n vstrSql.append(\" where r.role_id not in (select ur.role_id from user_role ur where ur.user_id = :userId and ur.status = 1)\");\n }\n vstrSql.append(\" and r.status <> 0\");\n Query query = getCurrentSession()\n .createSQLQuery(vstrSql.toString())\n .addScalar(\"roleId\", StandardBasicTypes.LONG)\n .addScalar(\"roleCode\", StandardBasicTypes.STRING)\n .addScalar(\"roleName\", StandardBasicTypes.STRING)\n .addScalar(\"description\", StandardBasicTypes.STRING)\n .setResultTransformer(\n Transformers.aliasToBean(Role.class));\n query.setParameter(\"userId\", userId);\n return (List<Role>) query.list();\n }", "@OneToMany(mappedBy = \"priUsuario\", fetch=FetchType.EAGER)\n\tpublic List<OmsUsuariosRole> getPriUsuariosRoles() {\n\t\treturn this.priUsuariosRoles;\n\t}", "public ArrayList<Role> allRoles() {\n return this.roles;\n }", "private Map<String, String> setRolesForPath() {\n\t\tallRollesForPath = new HashMap<String, String>();\n\t\tallRollesForPath.put(ServiceParamConstant.ADMIN_ROLE, JSPPagePath.PATH_ADMIN_PAGE);\n\t\tallRollesForPath.put(ServiceParamConstant.BOSS_ROLE, JSPPagePath.PATH_BOSS_PAGE);\n\t\tallRollesForPath.put(ServiceParamConstant.HR_ROLE, JSPPagePath.PATH_HR_PAGE);\n\t\tallRollesForPath.put(ServiceParamConstant.EMPLOYEE_ROLE, JSPPagePath.PATH_EMPLOYEE_PAGE);\n\t\treturn allRollesForPath;\n\t}", "String getRole();", "String getRole();", "void resolveRoles(UserData user, ActionListener<Set<String>> listener);", "public EntityImpl getRoles() {\n return (EntityImpl)getEntity(ENTITY_ROLES);\n }", "@Override\n public Role getRoles(int index) {\n return roles_.get(index);\n }", "@Override\n public Role getRoles(int index) {\n return roles_.get(index);\n }", "List<User_Role> selectAll();", "@Override\n public Set<String> extractRoles(AccessTicket ticket, String workspaceId, String accountId) {\n if (\"sysldap\".equals(ticket.getAuthHandlerType())) {\n return emptySet();\n }\n try {\n final Set<String> ldapRoles = getRoles(ticket.getPrincipal().getId());\n if (allowedRole != null && !ldapRoles.contains(allowedRole)) {\n return emptySet();\n }\n\n final Set<String> userRoles = new HashSet<>();\n\n final Map<String, String> preferences = preferenceDao.getPreferences(ticket.getPrincipal().getId());\n if (parseBoolean(preferences.get(\"temporary\"))) {\n userRoles.add(\"temp_user\");\n } else {\n userRoles.add(\"user\");\n }\n\n if (ldapRoles.contains(\"system/admin\")) {\n userRoles.add(\"system/admin\");\n }\n if (ldapRoles.contains(\"system/manager\")) {\n userRoles.add(\"system/manager\");\n }\n\n// User user = userDao.getById(ticket.getPrincipal().getId());\n\n// if (accountId != null) {\n// Account account = accountDao.getById(accountId);\n// if (account != null) {\n// accountDao.getMembers(accountId)\n// .stream()\n// .filter(accountMember -> accountMember.getUserId().equals(user.getId()))\n// .forEach(accountMember -> userRoles.addAll(accountMember.getRoles()));\n// }\n// }\n\n// membershipDao.getMemberships(user.getId())\n// .stream()\n// .filter(membership -> membership.getSubjectId().equals(workspaceId))\n// .forEach(membership -> userRoles.addAll(membership.getRoles()));\n return userRoles;\n } catch (NotFoundException e) {\n return emptySet();\n } catch (ServerException e) {\n LOG.error(e.getLocalizedMessage(), e);\n throw new RuntimeException(e.getLocalizedMessage());\n }\n\n }" ]
[ "0.7241956", "0.7134134", "0.7076446", "0.7000447", "0.6978888", "0.6977522", "0.6886283", "0.6873245", "0.68604195", "0.6852287", "0.6834932", "0.68121547", "0.67946523", "0.6786913", "0.67003435", "0.6696075", "0.6657384", "0.66557604", "0.6648654", "0.6648654", "0.6642276", "0.66256106", "0.6616166", "0.6610253", "0.6581938", "0.6574945", "0.65484595", "0.64810914", "0.64810246", "0.6475204", "0.6467249", "0.6465784", "0.64614254", "0.64278996", "0.64164865", "0.64164865", "0.641001", "0.64059794", "0.6396286", "0.63890254", "0.63813573", "0.63813573", "0.63768554", "0.6354258", "0.6349244", "0.6348743", "0.634848", "0.63406", "0.63349724", "0.63312393", "0.6295204", "0.62824875", "0.6274264", "0.62722594", "0.6264883", "0.62475425", "0.62440735", "0.6225661", "0.6225661", "0.6215194", "0.6215156", "0.6214269", "0.6205673", "0.6184247", "0.61763537", "0.6160275", "0.615482", "0.61133677", "0.61133677", "0.610118", "0.60861593", "0.60857797", "0.6085572", "0.6081315", "0.606476", "0.60390556", "0.6036348", "0.6036348", "0.60328984", "0.6024095", "0.6022613", "0.6014062", "0.60130054", "0.601174", "0.6002167", "0.59969646", "0.59953845", "0.5977993", "0.5964539", "0.5961226", "0.5957639", "0.59563386", "0.5954468", "0.5954468", "0.5951679", "0.59362864", "0.5936213", "0.5936213", "0.59319925", "0.5916762" ]
0.7213912
1
nomor 02 au sg ku = aku sayang kamu
public static void Print02(){ Scanner input = new Scanner(System.in); System.out.println("2. MASUKKAN KALIMAT/KATA : "); String inputString = input.nextLine(); String[] inputArray = inputString.split( " "); for(String text : inputArray) { char[] charArray = text.toCharArray(); for (int i = 0; i < charArray.length; i++) { if(i == 0 || i == text.length() - 1 ) { System.out.print(charArray[i]); } else if (i == text.length() / 2) { System.out.print("***"); } else { System.out.print(""); } } System.out.print(" "); } System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String lettre2Chiffre1(String n) {\n\t\tString c= new String() ;\n\t\tswitch(n) {\n\t\tcase \"A\": case \"J\":\n\t\t\tc=\"1\";\n\t\t\treturn c;\n\t\tcase \"B\": case \"K\": case \"S\":\n\t\t\tc=\"2\";\n\t\t\treturn c;\n\t\tcase \"C\": case\"L\": case \"T\":\n\t\t\tc=\"3\";\n\t\t\treturn c;\n\t\tcase \"D\": case \"M\": case \"U\":\n\t\t\tc=\"4\";\n\t\t\treturn c;\n\t\tcase \"E\": case \"N\": case \"V\":\n\t\t\tc=\"5\";\n\t\t\treturn c;\n\t\tcase \"F\": case \"O\": case \"W\":\n\t\t\tc=\"6\";\n\t\t\treturn c;\n\t\tcase \"G\": case \"P\": case \"X\":\n\t\t\tc=\"7\";\n\t\t\treturn c;\n\t\tcase \"H\": case \"Q\": case \"Y\":\n\t\t\tc=\"8\";\n\t\t\treturn c;\n\t\tcase \"I\": case \"R\": case \"Z\":\n\t\t\tc=\"4\";\n\t\t\treturn c;\n\t\t\t\n\t\t}\n\t\treturn c;\n\t\t\n\t\n\t\t}", "private String Interpretar(String num) {\r\n\t\tif(num.length() > 3)\r\n\t\t\treturn \"\";\r\n\t\tString salida=\"\";\r\n\t\t\r\n\t\tif(Dataposi(num,2) != 0)\r\n\t\t\tsalida = Centenas[Dataposi(num,2)-1];\r\n\t\t\r\n\t\tint k = Integer.parseInt(String.valueOf(Dataposi(num,1))+String.valueOf(Dataposi(num,0)));\r\n\r\n\t\tif(k <= 20)\r\n\t\t\tsalida += Numero[k];\r\n\t\telse {\r\n\t\t\tif(k > 30 && Dataposi(num,0) != 0)\r\n\t\t\t\tsalida += Decenas[Dataposi(num,1)-2] + \"Y \" + Numero[Dataposi(num,0)];\r\n\t\t\telse\r\n\t\t\t\tsalida += Decenas[Dataposi(num,1)-2] + Numero[Dataposi(num,0)];\r\n\t\t}\r\n\t\t//Caso especial con el 100\r\n\t\tif(Dataposi(num,2) == 1 && k == 0)\r\n\t\t\tsalida=\"CIEN\";\r\n\t\t\r\n\t\treturn salida;\r\n\t}", "public void printNo(String numar)\r\n {\r\n //toate verificarile posibile pentru a afisa ce trebuie\r\n //mi-e lene sa scriu la fiecare in parte, daca vrei ti le explic la telefon\r\n if(Character.getNumericValue(numar.charAt(0)) ==0 && Character.getNumericValue(numar.charAt(1)) == 0){\r\n System.out.print(v[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n else{\r\n if(Character.getNumericValue(numar.charAt(0)) > 0){\r\n System.out.print(v[Character.getNumericValue(numar.charAt(0))] + \" hundread \");\r\n }\r\n if(Character.getNumericValue(numar.charAt(1)) == 1){\r\n System.out.print(v1[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n else if (Character.getNumericValue(numar.charAt(1)) > 1 && Character.getNumericValue(numar.charAt(2)) > 0){\r\n System.out.print(v2[Character.getNumericValue(numar.charAt(1)) - 2] + v[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n else if(Character.getNumericValue(numar.charAt(2)) == 0 && Character.getNumericValue(numar.charAt(1)) > 1){\r\n System.out.print(v2[Character.getNumericValue(numar.charAt(1)) - 2] + \" \");\r\n }\r\n if(Character.getNumericValue(numar.charAt(1)) == 0 && Character.getNumericValue(numar.charAt(2)) > 0){\r\n System.out.print(v[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n }\r\n }", "public static String primeraMayus(String s){\n\t\treturn s.substring(0, 1).toUpperCase() + s.substring(1);\n\t}", "dkj mo4367a(dkk dkk);", "public static void main(String[] args) {\n\n String text= \"merhaba arkadaslar \";\n System.out.println( \"1. bolum =\" + text .substring(1,5));// 1 nolu indexten 5 e kadar. 5 dahil degil\n System.out.println(\"2. bolum =\"+ text.substring(0,3));\n System.out.println(\"3. bolum =\"+ text.substring(4));// verilen indexten sonun akadar al\n\n String strAlinan= text.substring(0,3);\n\n\n\n\n\n }", "bdm mo1784a(akh akh);", "public void ejercicio06() {\r\n\t\tcabecera(\"06\", \"Numero mayor\");\r\n\r\n\t\t// Inicio modificacion\r\n\r\n\t\tSystem.out.println(\"Por favor, introduzca un numero\");\r\n\t\tint n1 = Teclado.readInteger();\r\n\t\tSystem.out.println(\"Por favor, introduzca otro numero\");\r\n\t\tint n2 = Teclado.readInteger();\r\n\t\tSystem.out.println(\"Por favor, introduzca otro numero\");\r\n\t\tint n3 = Teclado.readInteger();\r\n\r\n\t\tStringBuffer salida = new StringBuffer();\r\n\r\n\t\tint mayor = n1;\r\n\r\n\t\tif (n1==n2&&n2==n3) {\r\n\t\t\tsalida.append(\"Los tres numeros son \"+n2+\", y son iguales. \");\r\n\t\t}else{\r\n\t\t\tif (n1==n2) {\r\n\t\t\tsalida.append(\"El numero \"+n1+\" esta repetido 2 veces \");\r\n\t\t\t}else if (n2==n3) {\r\n\t\t\tsalida.append(\"El numero \"+n2+\" esta repetido 2 veces \");\r\n\t\t\t}else if (n1==n3) {\r\n\t\t\tsalida.append(\"El numero \"+n3+\" esta repetido 2 veces \");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (mayor < n2) {\r\n\t\tmayor = n2;\r\n\t\t}else if(mayor < n3){\r\n\t\t\tmayor = n3;\r\n\t\t}\r\n\t\tsalida.append(\"El numero dado mas grande es \"+mayor+\".\");\r\n\r\n\t\tSystem.out.println(salida.toString());\r\n\r\n\t\t// Fin modificacion\r\n\t}", "private static int num_konsonan(String word) {\n int i;\n int jumlah_konsonan = 0;\n\n for (i = 0; i < word.length(); i++) {\n if (word.charAt(i) != 'a' &&\n word.charAt(i) != 'i' &&\n word.charAt(i) != 'u' &&\n word.charAt(i) != 'e' &&\n word.charAt(i) != 'o') {\n jumlah_konsonan++;\n }\n }\n return jumlah_konsonan;\n }", "private static int num_vokal(String word) {\n int i;\n int jumlah_vokal = 0;\n\n for (i = 0; i < word.length(); i++) {\n if (word.charAt(i) == 'a' ||\n word.charAt(i) == 'i' ||\n word.charAt(i) == 'u' ||\n word.charAt(i) == 'e' ||\n word.charAt(i) == 'o') {\n jumlah_vokal++;\n }\n }\n return jumlah_vokal;\n }", "private void asignaNombre() {\r\n\r\n\t\tswitch (this.getNumero()) {\r\n\r\n\t\tcase 1:\r\n\t\t\tthis.setNombre(\"As de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.setNombre(\"Dos de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.setNombre(\"Tres de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.setNombre(\"Cuatro de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tthis.setNombre(\"Cinco de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tthis.setNombre(\"Seis de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tthis.setNombre(\"Siete de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tthis.setNombre(\"Diez de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tthis.setNombre(\"Once de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tthis.setNombre(\"Doce de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void anazitisiSintagisVaseiGiatrou() {\n\t\tString doctorName = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tdoctorName = sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \"); // Zitaw apo ton xrhsth na mou dwsei to onoma tou giatrou pou exei grapsei thn sintagh pou epithumei\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tif(doctorName.equals(prescription[i].getDoctorLname())) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou exei grapsei o giatros\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t// Emfanizw thn/tis sintagh/sintages pou exoun graftei apo ton sygkekrimeno giatro\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON IATRO ME EPWNYMO: \" + doctorName);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private static final int edu (StringBuffer buf, long mksa, int option) {\n\t\tint len0 = buf.length();\n\t\tint i, e, o, xff;\n\t\tint nu=0; \n\t\tboolean sep = false;\n\t\tlong m;\n\n\t\t/* Remove the 'log' or 'mag[]' part */\n\t\tif ((mksa&_log) != 0) {\n\t\t\tmksa &= ~_log;\n\t\t\tif ((mksa&_mag) != 0) mksa &= ~_mag;\n\t\t}\n\n\t\t/* Check unitless -- edited as empty string */\n\t\tif (mksa == underScore) return(0);\n\n\t\t/* Find the best symbol for the physical dimension */\n\t\tif (option > 0) {\n\t\t\tnu = (mksa&_mag) == 0 ? 0 : 1;\n\t\t\tfor (m=(mksa<<8)>>8; m!=0; m >>>= 8) {\n\t\t\t\tif ((m&0xff) != _e0 ) nu++ ;\n\t\t\t}\n\n\t\t\t/* Find whether this number corresponds to a composed unit */\n\t\t\tfor (i=0; i<uDef.length; i++) {\n\t\t\t\tif (uDef[i].mksa != mksa) continue;\n\t\t\t\tif (uDef[i].fact != 1) continue;\n\t\t\t\tbuf.append(uDef[i].symb) ;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// A basic unit need no explanation \n\t\t\tif (nu == 1) return(buf.length() - len0) ;\n\n\t\t\t// Add the explanation in MKSA within parenthesis\n\t\t\tif (buf.length() != len0) buf.append(\" [\") ;\n\t\t\telse nu = 0;\t// nu used as an indicator to add the ) \n\t\t}\n\n\t\to = _m0;\t// Zero power of magnitude\n\t\txff = 7;\t// Mask for magnitude\n\t\tfor (i=0; i<8; i++) {\n\t\t\te = (int)((mksa>>>(56-(i<<3)))&xff) - o;\n\t\t\to = _e0 ;\t// Other units: the mean is _e0 \n\t\t\txff = 0xff;\t// Other units\n\t\t\tif (e == 0) continue;\n\t\t\tif (sep) buf.append(\".\"); sep = true;\n\t\t\tbuf.append(MKSA[i]);\n\t\t\tif (e == 1) continue;\n\t\t\tif (e>0) buf.append(\"+\") ;\n\t\t\tbuf.append(e) ;\n\t\t}\n\t\tif (nu>0) buf.append(\"]\");\n\t\treturn(buf.length() - len0) ;\n\t}", "String mo2801a(String str);", "private String getUnidades(String numero) {// 1 - 9\r\n //si tuviera algun 0 antes se lo quita -> 09 = 9 o 009=9\r\n String num = numero.substring(numero.length() - 1);\r\n return UNIDADES[Integer.parseInt(num)];\r\n }", "public abstract C0690a mo9258k(String str);", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.print(\"Unesi ime: \");\n\t\tScanner unos = new Scanner(System.in);\n\t\tString ime = unos.next();\n\t\t\n\t\t//prvi red crtica\n\t\tfor(int dash=0;dash<31;dash++){\n\t\t System.out.printf(\"-\");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t//drugi red crtica\n\t\tSystem.out.println(\": : : TABLICA MNOZENJA : : :\");\n\t\tfor(int dash=0;dash<31;dash++){\n\t\t\tSystem.out.printf(\"-\");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\tSystem.out.print(\" * |\");\n\t\tfor(int j=1;j<=9;j++){\n\t\t\tSystem.out.printf(\"%3d\",j);\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t//treci red crtica\n\t\tfor(int dash=0;dash<31;dash++){\n\t\t\tSystem.out.printf(\"-\");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\tfor(int i=1;i<=9;i++){\n\t\t\tSystem.out.printf(\"%2d |\",i);\n\t\t\tfor(int j=1;j<=9;j++){\n\t\t\t\tSystem.out.printf(\"%3d\",i*j);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\t//cetvrti red crtica\n\t\tfor(int dash=0;dash<31;dash++){\n\t\t\tSystem.out.printf(\"-\");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t\n\t\tfor(int k=0;k<8;k++){\n\t\t\tSystem.out.printf(\": \");\n\t\t}\n\t\tSystem.out.print(\":by \"+ime);\n\t\tSystem.out.println();\n\t\t\n\t\t//peti red crtica\n\t\tfor(int dash=0;dash<31;dash++){\n\t\t\tSystem.out.printf(\"-\");\n\t\t}\n\t\tSystem.out.println();\n\t\tunos.close();\n\t}", "public static void laukiHorizontalaIrudikatu(int neurria, char ikurra) {\n int altuera=neurria/2;\n int zabalera=neurria;\n for(int i=1; i<=altuera; i++){//altuera\n System.out.println(\" \");\n \n \n for(int j=1; j<=zabalera; j++){//zabalera\n \n System.out.print(ikurra);\n }\n\n}\n }", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "static String cetak_nama1() {\n return \"Nama Saya : Aprianto\";\r\n }", "public String cekPengulangan(String kata) throws IOException{\n String hasil=\"\";\n if(cekUlangSemu(kata)){\n return kata+\" kata ulang semu \";\n }\n if(kata.contains(\"-\")){\n String[] pecah = kata.split(\"-\");\n String depan = pecah[0];\n String belakang = pecah[1];\n ArrayList<String> depanList = new ArrayList<String>();\n ArrayList<String> belakangList = new ArrayList<String>();\n if(!depan.equals(\"\")){\n depanList.addAll(morpParser.cekBerimbuhan(depan, 0));\n }\n if(!belakang.equals(\"\")){\n belakangList.addAll(morpParser.cekBerimbuhan(belakang, 0));\n }\n for(int i = 0; i < depanList.size(); i++){\n for(int j = 0; j < belakangList.size(); j++){\n if(depanList.get(i).equals(belakangList.get(j))){\n return depan+\" kata ulang penuh \";\n }\n }\n }\n if(depan.equals(belakang)){\n return depan+\" kata ulang penuh \";\n }\n char[] isiCharDepan = depan.toCharArray();\n char[] isiCharBelakang = belakang.toCharArray();\n boolean[] sama = new boolean[isiCharDepan.length];\n int jumlahSama=0;\n int jumlahBeda=0;\n for(int i =0;i<sama.length;i++){\n if(isiCharDepan[i]==isiCharBelakang[i]){\n sama[i]=true;\n jumlahSama++;\n }\n else{\n sama[i]=false;\n jumlahBeda++;\n }\n }\n \n if(jumlahBeda<jumlahSama && isiCharDepan.length==isiCharBelakang.length){\n return depan+\" kata ulang berubah bunyi \";\n }\n \n \n }\n else{\n if(kata.charAt(0)==kata.charAt(2)&&kata.charAt(1)=='e'){\n if((kata.charAt(0)=='j'||kata.charAt(0)=='t')&&!kata.endsWith(\"an\")){\n return kata.substring(2)+\" kata ulang sebagian \";\n }\n else if(kata.endsWith(\"an\")){\n return kata.substring(2,kata.length()-2)+\" kata ulang sebagian \";\n }\n \n }\n }\n return hasil;\n }", "public static String dtrmn(int number) {\n\t\t\n\t\tString letter = \"\";\n\t\t\n\t\tint cl = number / 100;\n\t\tif (cl != 9 && cl != 4) {\n\t\t\t\n\t\t\tif (cl < 4) {\n\t\t\t\t\n\t\t\t\tfor(int i = 1; i <= cl; i++) {\n\t\t\t\t\tletter = letter + \"C\";\n\t\t\t\t}\n\t\t\t} else if (cl < 9 && cl > 4) {\n\t\t\t\t\n\t\t\t\tletter = letter + \"D\";\n\t\t\t\tfor (int i = 1; i <= cl - 5; i++) {\n\t\t\t\t\tletter = letter + \"C\";\n\t\t\t\t}\n\t\t\t} else if(cl == 10) { \n\t\t\t\t\n\t\t\t\tletter = letter + \"M\";\n\t\t\t}\n\t\t} else if (cl == 4) {\n\t\t\t\n\t\t\tletter = letter + \"CD\";\n\t\t\t\n\t\t} else if (cl == 9) {\n\t\t\t\n\t\t\tletter = letter + \"CM\";\n\t\t}\n\t\t\n\t\tint cl1 = (number % 100)/10;\n\t\tif (cl1 != 9 && cl1 != 4) {\n\t\t\t\n\t\t\tif (cl1 < 4) {\n\t\t\t\t\n\t\t\t\tfor (int i = 1; i <= cl1; i++) {\n\t\t\t\t\tletter = letter + \"X\";\n\t\t\t\t}\n\t\t\t} else if (cl1 < 9 && cl1 > 4) {\n\t\t\t\tletter = letter + \"L\";\n\t\t\t\t\n\t\t\t\tfor (int i = 1; i <= cl1 -5; i++) {\n\t\t\t\t\tletter = letter + \"X\";\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t} else if (cl1 == 4) {\n\t\t\tletter = letter + \"XL\";\n\t\t} else if (cl1 == 9) {\n\t\t\tletter = letter + \"XC\";\n\t\t}\n\t\t\n\t\tint cl2 = (number % 100)%10;\n\t\t\n\t\tif (cl2 != 9 && cl2 != 4) {\n\t\t\t\n\t\t\tif (cl2 < 4) {\n\t\t\t\tfor (int i = 1; i <= cl2; i++) {\n\t\t\t\t\tletter = letter + \"I\";\n\t\t\t\t}\n\t\t\t} else if (cl2 < 9 && cl2 > 4) {\n\t\t\t\t\n\t\t\t\tletter = letter + \"V\";\n\t\t\t\tfor (int i = 1; i <= cl2-5; i++) {\n\t\t\t\t\tletter = letter + \"I\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} else if (cl2 == 4) {\n\t\t\tletter = letter +\"IV\";\n\t\t} else if (cl2 == 9) {\n\t\t\tletter = letter + \"IX\";\n\t\t}\n\t\treturn letter;\n\t}", "private String tulostuksenApu(){\r\n String apu = \"Rivitiedosto: \";\r\n for(int i = 0; i<rivitiedot.length; i++){\r\n apu = apu + i+\": \";\r\n for(int k = 1; k <= rivitiedot[i].getKoko(); k++){\r\n apu = apu + \" \"+rivitiedot[i].get(k);\r\n }\r\n apu = apu + \" \";\r\n }\r\n\r\n return apu;\r\n }", "public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"isminizi giriniz\");\n//\t\tString isim=scan.nextLine().toLowerCase();\n//\t\tSystem.out.println(\"soyadinizi giriniz\");\n//\t\tString soyisim=scan.nextLine().toLowerCase();\n//\t\tSystem.out.print(isim.substring(0, 1).toUpperCase()+isim.substring(1, isim.length()));\n//\t\tSystem.out.print(\" \" +soyisim.substring(0, 1).toUpperCase() +soyisim.substring(1, soyisim.length()));\n\n\t\t/// hocanin cozumu\n\t\t// int ikinciBasNok = isimSoyIsim.indexOf(\" \");\n// System.out.print(isimSoyIsim.substring(0,1).toUpperCase());\n// System.out.print(isimSoyIsim.substring(1, ikinciBasNok+1).toLowerCase());\n// System.out.print(isimSoyIsim.substring(ikinciBasNok+1, ikinciBasNok+2).toUpperCase());\n// System.out.println(isimSoyIsim.substring(ikinciBasNok+2).toLowerCase());\n\n\t\t/// Array ile cozum\n\t\tString isimSoyIsim = scan.nextLine();\n\t\t\n// 0/fedai 1/ocak //isimler.length => 2 - 1 1 != 1\n\t\tString[] isimler = isimSoyIsim.split(\" \");\n\n\t\tfor (int i = 0; i < isimler.length; i++) {\n\t\t\tisimler[i] = isimler[i].toLowerCase();\n\t\t\t\tif(isimler.length-1 != i ) //\n\t\t\tSystem.out.print(isimler[i].substring(0, 1).toUpperCase() + isimler[i].substring(1) + \" \");\n\t\t\t\telse\n\t\t System.out.print(isimler[i].substring(0,1).toUpperCase()+isimler[i].substring(1));\n\t\t}\nscan.close();\n\t}", "public static void main(String[] args) {\n\t\tScanner ip = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Welcome to the Katapayadi Wizard! Enter the 1st syllable of the raga of your choice: \");\r\n\t\t\r\n\t\tString F = ip.nextLine();\r\n\t\tSystem.out.println(\"Great! Now enter the 2nd syllable of the raga of your choice: \");\r\n\t\t\r\n\t\tString S = ip.nextLine();\r\n\t\t//int firstIndex; \r\n\t\t\r\n\t\tString [] [] alphabets = {{\"nya\", \"ka\", \"kha\", \"ga\", \"gha\", \"nga\", \"cha\", \"ccha\", \"ja\", \"jha\"}, \r\n\t\t\t\t\t\t\t\t {\"na\", \"ta\", \"tah\",\"da\", \"dah\", \"nna\", \"tha\", \"ttha\", \"dha\", \"ddha\"},\r\n\t\t\t\t\t\t\t\t {\"null\",\"pa\", \"pha\",\"ba\",\"bha\",\"ma\", \"null\", \"null\", \"null\", \"null\", },\r\n\t\t\t\t\t\t\t\t {\"null\",\"ya\", \"ra\", \"la\", \"va\", \"se\", \"sha\", \"sa\", \"ha\",\"null\"}};\r\n\t\t\r\n\t\tint firstNum = getFirstIndex(alphabets, F);\r\n\t\tint secondNum = getSecondIndex(alphabets, S); \r\n\t\tint finalIndex = concat(firstNum, secondNum);\r\n\t\t\r\n\t\tString swaras1= swaraSthanam1(finalIndex);\r\n\t\t//String finalanswer = The [index]th melakartha: aro [swaras1] and ava [swaras2].\r\n\t\tSystem.out.println(firstNum);\r\n\t\tSystem.out.println(secondNum);\r\n\t\t\r\n\t\tSystem.out.println(finalIndex);\r\n\t\t\r\n\t\tSystem.out.println(swaras1);\r\n\t\t\r\n\t}", "public void specialMacs(Verbum w){\r\n\t\tint cd = w.cd;\r\n\t\tint variant = w.variant;\r\n\t\tint i = 0;\r\n\t\tint index = 0;\r\n\t\tif(w.pos.equals(\"V\")){\r\n\t\t\t//3rd conjugation have long vowel if the 1st pp stem and 3rd pp stem are one syllable\r\n\t\t\tif(cd==3 && countSyllables(w.form2)<2 && countSyllables(w.form3)<2){\t\t\r\n\t\t\t\tdo {\r\n\t\t\t\t\tchar c = w.form3.charAt(i);\r\n\t\t\t\t\tif(isVowel(c)){\r\n\t\t\t\t\t\tindex = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t\ti++;\r\n\t\t\t\t} while(i<w.form3.length()-1);\r\n\t\t\t\tw.form3 = new StringBuffer(w.form3).insert(index, \"*\").toString();\r\n\t\t\t}\r\n\t\t\t//First conjugation variant 1 have long a's \r\n\t\t\tif (cd==1 && variant==1){\r\n\t\t\t\tw.form3 = new StringBuffer(w.form3).insert(w.form3.length()-2, \"*\").toString();\r\n\t\t\t\tw.form4 = new StringBuffer(w.form4).insert(w.form4.length()-2, \"*\").toString();\r\n\t\t\t}\r\n\t\t} else if (w.pos.equals(\"N\")){\r\n\t\t\t//Some 3rd declension nouns have short o in nom and long o in all other forms\r\n\t\t\tif (cd == 3 && w.form1.charAt(w.form1.length()-1) == 'r' && w.form2.charAt(w.form2.length()-1) == 'r' && (w.gender.equals(\"M\") || w.gender.equals(\"F\"))){\r\n\t\t\t\tw.form2 = new StringBuffer(w.form2).insert(w.form2.length()-2, \"*\").toString();\r\n\t\t\t} \r\n\t\t\t//Neuter 3rd declension -ar nouns have short a in nom and long a in all others\r\n\t\t\tif (cd == 3 && w.form1.substring(w.form1.length()-2).equals(\"ar\") && w.form2.substring(w.form2.length()-2).equals(\"ar\")){\r\n\t\t\t\tw.form2 = new StringBuffer(w.form2).insert(w.form2.length()-2, \"*\").toString();\r\n\t\t\t} \r\n\t\t}\r\n\t}", "public void anazitisiSintagisVaseiAstheni() {\n\t\tint amkaCode = 0;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tamkaCode = sir.readPositiveInt(\"EISAGETAI TO AMKA TOU ASTHENH: \"); // Zitaw apo ton xrhsth na mou dwsei ton amka tou asthenh pou thelei\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t\tif(amkaCode == prescription[i].getPatientAmka()) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou proorizetai gia ton sygkekrimeno asthenh\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t\tprescription[i].print(); // Emfanizw thn/tis sintagh/sintages oi opoies proorizontai gia ton sigkekrimeno asthenh\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\ttmp_2++;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON ASTHENH ME AMKA: \" + amkaCode);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint a=0,b=0,cnt=0;\r\n\t\tScanner in=new Scanner(System.in);\r\n\t\ta=in.nextInt();\r\n\t\tString str=\"\";\r\n\t\tin.close();\r\n\t\tif(a<0){\r\n\t\t\tstr=\"fu \";\r\n\t\t\ta=-a;\r\n\t\t}\r\n\t\twhile(a!=0){\r\n\t\t\tb=b*10+a%10;\r\n\t\t\tif(b==0){\r\n\t\t\t\tcnt++;\r\n\t\t\t}\r\n\t\t\ta=a/10;\r\n\t\t}\r\n\t\tdo{\r\n\t\t\tswitch(b%10)\r\n\t\t\t{\r\n\t\t\t\tcase 0:str+=\"ling\";break;\t\t\r\n\t\t\t\tcase 1:str+=\"yi\";break;\r\n\t\t\t\tcase 2:str+=\"er\";break;\r\n\t\t\t\tcase 3:str+=\"san\";break;\r\n\t\t\t\tcase 4:str+=\"si\";break;\r\n\t\t\t\tcase 5:str+=\"wu\";break;\r\n\t\t\t\tcase 6:str+=\"liu\";break;\r\n\t\t\t\tcase 7:str+=\"qi\";break;\r\n\t\t\t\tcase 8:str+=\"ba\";break;\r\n\t\t\t\tcase 9:str+=\"jiu\";break;\r\n\t\t\t}\r\n\t\t\tb/=10;\r\n\t\t\tif(b!=0){\r\n\t\t\t\tstr+=\" \";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}while(b!=0);\t\r\n\t\tfor(int i=1;i<=cnt;i++)\r\n\t\t{\r\n\t\t\tstr=str+\" ling\";\r\n\t\t}\t\r\n\t\tSystem.out.print(str);\r\n\r\n\t}", "private int patikrinimas(String z) {\n int result = 0;\n for (int i = 0; i < z.length(); i++) {\n if (z.charAt(i) == 'a') {\n result++;\n }\n }\n System.out.println(\"Ivestas tekstas turi simboliu a. Ju suma: \" + result);\n return result;\n }", "void mo11024a(int i, int i2, String str);", "public static String seuraavaArvaus(HashMap<String, Integer> muisti, String viimeisimmat, String kaikki) {\n if (kaikki.length() < 3) {\n return \"k\";\n }\n\n String viimKivi = viimeisimmat + \"k\";\n String viimPaperi = viimeisimmat + \"p\";\n String viimSakset = viimeisimmat + \"s\";\n \n int viimKiviLkm = 0;\n int viimPaperiLkm = 0;\n int viimSaksetLkm = 0;\n String arvaus = \"k\";\n int viimValueMax = 0;\n /*\n Sopivan valinnan etsiminen tehdään tarkastelemalla käyttäjän kahta viimeistä\n syötettä ja vertailemalla niitä koko historiaan. Mikäli historian mukaan\n kahta viimeistä syötettä seuraa useimmin kivi, tekoälyn tulee pelata paperi.\n Mikäli kahta viimeistä syötettä seuraa useimmin paperi, tekoälyn tulee \n pelata sakset. Mikäli taas kahta viimeistä syötettä seuraa useimmin sakset, \n tekoälyn tulee pelata kivi. Muissa tapauksissa pelataan kivi.\n */\n if (muisti.containsKey(viimKivi)) {\n viimKiviLkm = muisti.get(viimKivi);\n }\n if (muisti.containsKey(viimPaperi)) {\n viimPaperiLkm = muisti.get(viimPaperi);\n }\n if (muisti.containsKey(viimSakset)) {\n viimSaksetLkm = muisti.get(viimSakset);\n }\n\n if (viimKiviLkm > viimPaperiLkm && viimKiviLkm > viimSaksetLkm) {\n return \"p\";\n }\n if (viimPaperiLkm > viimKiviLkm && viimPaperiLkm > viimSaksetLkm) {\n return \"s\";\n }\n if (viimSaksetLkm > viimKiviLkm && viimSaksetLkm > viimPaperiLkm) {\n return \"k\";\n }\n\n return arvaus;\n }", "public static void main(String[] args) {\n\t\tString name=\"Merzet\";\n\t\t\n\t\t//rze\n\t\tSystem.out.println( name.substring(2, 5));\n\t\t\n\t\t//System.out.println(name.substring(5,1)); wrong\n\t\t\n\t\t//System.out.println( name.substring(1, 10));wrong no 10 letters Merzet\n\t\t\n\t\tSystem.out.println( name.substring(1, 6)); //answer erzet sebabi o dan baslap sanayar\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "public NhanVien(String ten, int tuoi, String diachi, double tienluong, int tongsogiolam)\n {\n this.ten = ten;\n this.tuoi = tuoi;\n this.diachi = diachi;\n this.tienluong = tienluong;\n this.tongsogiolam = tongsogiolam;\n }", "String mo21078i();", "void mo4872a(int i, String str);", "private static void obterNumeroLugar(String nome) {\n\t\tint numero = gestor.obterNumeroLugar(nome);\n\t\tif (numero > 0)\n\t\t\tSystem.out.println(\"O FUNCIONARIO \" + nome + \" tem LUGAR no. \" + numero);\n\t\telse\n\t\t\tSystem.out.println(\"NAO EXISTE LUGAR de estacionamento atribuido a \" + nome);\n\t}", "java.lang.String getNume();", "java.lang.String getNume();", "public void codeJ(int number) {\n\tString d;\n\t\n\t//Scanner scan = new Scanner(System.in);\n\tdo {\n\tdo{\n\t\t\n\t\tif (App.SCANNER.hasNextInt()) {\n\t\t\n\t\t}else {\n\t\t\tSystem.out.println(\" Entrez Uniquement un code a \" + number + \"chiffres\");\n\t\t\tApp.SCANNER.next();\n\t\t}\n\t\t\n\t\n\t}while(!App.SCANNER.hasNextInt()) ;\n\tthis.codeHumain=App.SCANNER.nextInt();\n\td = Integer.toString(codeHumain);\n\t\n\tif(d.length() != number) {\n\t\tSystem.out.println(\" Entrez Uniquement un code a \" + number + \"chiffres svp\" );\n\t}else if(d.length() == number) {\n\t}\n\t\n\t\n\t\n\t}while(d.length() != number) ;\n\t\n\t//scan.close();\n\t}", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n String word = \"Tenet\";\n String word3 = \"tenet\";\n System.out.println(\"word \" + word);\n word.toLowerCase(); //porównanie bez wielkosci znakow\n //charAt(0) - zero,\n String[] Tablica = new String[word.length()];\n for (int i = 0; i < word.length(); i++) {\n Tablica[i] = String.valueOf(word.charAt(i));\n }\n String word2 = \"\";\n\n for (int i = (word.length() - 1); i >= 0; i--) {\n //System.out.print(Tablica[i]);\n word2 = word2 + Tablica[i];\n }\n //System.out.println();\n System.out.println(\"word 2 \" + word2);\n System.out.println(\"word 3 \" + word3);\n\n System.out.print(\"word 3 i word 2 \");\n if (word3.toLowerCase().equals(word2.toLowerCase())) {\n System.out.println(\"jest palidronem\");\n } else {\n System.out.println(\"nie jest palidronem\");\n }\n\n//koniec\n\n }", "public static void main(String[] args) {\n Pasien Dam = new Pasien(\"Puspaningsyas\");\r\n Dam.setTanggalLahir(1974, 1, 12);\r\n// String str = Dam.getNama();\r\n \r\n \r\n\r\n System.out.println(\"Umur = \" + Dam.getUsia());\r\n Dam.NomorRekamMedis();\r\n // System.out.println(str.substring(0, 3));\r\n\r\n// Pasien Dam2 = new Pasien(\"Dam\");\r\n// Dam2.setTanggalLahir(1999,3,13);\r\n// System.out.println(\"Umur = \" +Dam2.getUsia());\r\n }", "public void Jomijoma()\n {\n System.out.println(\"Ami dadar jomi joma paya geci\");\n }", "@Test\n public void kaasunKonstruktoriToimiiOikeinTest() {\n assertEquals(rikkihappo.toString(),\"Rikkihappo Moolimassa: 0.098079\\n tiheys: 1800.0\\n lämpötila: 298.15\\n diffuusiotilavuus: 50.17\\npitoisuus: 1.0E12\");\n }", "void NhapGT(int thang, int nam) {\n }", "public String pid_011C(String str){\n\nString standar=\"Unknow\";\n switch(str.charAt(1)){\n case '1':{standar=\"OBD-II as defined by the CARB\";break;} \n case '2':{standar=\"OBD as defined by the EPA\";break;}\n case '3':{standar=\"OBD and OBD-II\";break;}\n case '4':{standar=\"OBD-I\";break;}\n case '5':{standar=\"Not meant to comply with any OBD standard\";break;}\n case '6':{standar=\"EOBD (Europe)\";break;}\n case '7':{standar=\"EOBD and OBD-II\";break;}\n case '8':{standar=\"EOBD and OBD\";break;}\n case '9':{standar=\"EOBD, OBD and OBD II\";break;}\n case 'A':{standar=\"JOBD (Japan)\";break;}\n case 'B':{standar=\"JOBD and OBD II\";break;} \n case 'C':{standar=\"JOBD and EOBD\";break;}\n case 'D':{standar=\"JOBD, EOBD, and OBD II\";break;} \n default: {break;} \n }\n \n return standar;\n}", "public static String number2Word(long number) {\r\n String[] numbers = {\"se\", \"dua \", \"tiga \", \"empat \", \"lima \", \"enam \", \"tujuh \", \"delapan \", \"sembilan \"};\r\n String[] levels = {\"ribu \", \"juta \", \"milyar \", \"trilyun \"};\r\n StringBuffer result = new StringBuffer();\r\n\r\n String str = String.valueOf(number);\r\n int mod = str.length() % 3;\r\n int len = str.length() / 3;\r\n if(mod>0) len++; else mod = 3;\r\n int begin = 0;\r\n int end = mod;\r\n for(int i=0; i<len; i++) {\r\n int level = len-i;\r\n String val = str.substring(begin, end);\r\n int value = Integer.parseInt(val);\r\n int length = val.length();\r\n for(int j=0; j<length; j++) {\r\n int num = parseInt(val.charAt(j));\r\n switch(length-j) {\r\n case 3:\r\n if(num>0) result.append(numbers[num-1]).append(\"ratus \");\r\n break;\r\n case 2:\r\n if(num>1) result.append(numbers[num-1]).append(\"puluh \");\r\n else if(num==1)\r\n result.append(numbers[parseInt(val.charAt(++j))-1]).append(\"belas \");\r\n break;\r\n case 1:\r\n if(num>1 || (level==2 && value==1)) result.append(numbers[num-1]);\r\n else if(num==1) result.append(\"satu \");\r\n break;\r\n }\r\n }\r\n\r\n if(level>1 && value>0)\r\n result.append(levels[level-2]);\r\n begin = i*3 + mod;\r\n end += 3;\r\n }\r\n\r\n return result.toString();\r\n }", "private String getMillones(String numero) {\n String miles = numero.substring(numero.length() - 6);\r\n //se obtiene los millones\r\n String millon = numero.substring(0, numero.length() - 6);\r\n String n = \"\";\r\n if (millon.length() > 1) {\r\n n = getCentenas(millon) + \"millones \";\r\n } else {\r\n n = getUnidades(millon) + \"millon \";\r\n }\r\n return n + getMiles(miles);\r\n }", "private static String digitarNombre() {\n\t\tString nombre;\n\t\tSystem.out.println(\"Digite el nombre del socio: \");\n\t\tnombre = teclado.next();\n\t\treturn nombre;\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tclass Ulamek{\r\n\t\t\tprivate int licznik, mianownik;\r\n\r\n\t\t\tpublic void ustawLicznik (int l){\r\n\t\t\t\tlicznik=l;\r\n\t\t\t}\r\n\t\t\tpublic void ustawMianownik (int m){\r\n\t\t\t\tmianownik=m;\r\n\t\t\t}\r\n\t\t\tpublic void ustawUlamek (int u1, int u2){\r\n\t\t\t\tlicznik=u1;\r\n\t\t\t\tmianownik=u2;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpublic void wyswietl (){\r\n\t\t\t\t\r\n\t\t\t\tint przod, reszta, przod_dlugosc, mianownik_dlugosc, licznik_dlugosc;\r\n\t\t\t\tString przod_zamiana, mianownik_string, licznik_string;\r\n\t\t\t\tdouble wynik;\r\n\t\t\t\t\r\n\t\t\t\tif (mianownik!=0 && licznik !=0){\r\n\t\t\t\tprzod=licznik/mianownik;\r\n\t\t\t\treszta=licznik-(przod*mianownik);\r\n\t\t\t\tprzod_zamiana=\"\"+przod;\r\n\t\t\t\tprzod_dlugosc=przod_zamiana.length();\r\n\t\t\t\twynik=1.0*licznik/mianownik;\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t licznik++;\r\n\t\t\t\t\t}while (licznik!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(reszta);\r\n\t\t\t}\r\n\r\n\t\t\t\t//zamiana na stringa i liczenie\r\n\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//brak calości\r\n\t\t\t\tif(przod==0){\r\n\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\tif(przod!=0){\r\n\t\t\t\tSystem.out.print(\" \"+przod+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik2 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik2++;\r\n\t\t\t\t\t\r\n\t\t\t\t}while (licznik2!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t System.out.println();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t//jezeli blad \r\n\t\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\tlicznik_string=\"\"+licznik;\r\n\t\t\t\t\tlicznik_dlugosc=licznik_string.length();\r\n\t\t\t\t\tif(licznik_dlugosc>mianownik_dlugosc){\r\n\t\t\t\t\t\tmianownik_dlugosc=licznik_dlugosc;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//gora\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t//if(licznik==0){\r\n\t\t\t\t\t//System.out.print(\" \");\r\n\t\t\t\t\t//}\r\n\r\n\t\t\t\t\tSystem.out.println(licznik);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//srodek\r\n\t\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\t\t\r\n\t\t\t\t\tint licznik3 = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t licznik3++;\r\n\t\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t\t System.out.print(\" = \"+\"ERR\");\r\n\r\n\t\t\t\t System.out.println();\r\n\t\t\t\t\t\r\n\t\t\t\t //dol\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t\t\t System.out.println();\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t Ulamek u1=new Ulamek();\r\n\t\t Ulamek u2=new Ulamek();\r\n\r\n\t\t u1.ustawLicznik(3);\r\n\t\t u1.ustawMianownik(5);\r\n\r\n\t\t u2.ustawLicznik(142);\r\n\t\t u2.ustawMianownik(8);\r\n\r\n\t\t u1.wyswietl();\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\t \r\n\t\t u2.wyswietl();\r\n\r\n\r\n\r\n\r\n\t\t u2.ustawUlamek(100,0);\r\n\r\n\r\n\t\t u2.wyswietl();\r\n\r\n\t}", "public String generaNumPatente() {\n String numeroPatente = \"\";\r\n try {\r\n int valorRetornado = patenteActual.getPatCodigo();\r\n StringBuffer numSecuencial = new StringBuffer(valorRetornado + \"\");\r\n int valRequerido = 6;\r\n int valRetorno = numSecuencial.length();\r\n int valNecesita = valRequerido - valRetorno;\r\n StringBuffer sb = new StringBuffer(valNecesita);\r\n for (int i = 0; i < valNecesita; i++) {\r\n sb.append(\"0\");\r\n }\r\n numeroPatente = \"AE-MPM-\" + sb.toString() + valorRetornado;\r\n } catch (Exception ex) {\r\n LOGGER.log(Level.SEVERE, null, ex);\r\n }\r\n return numeroPatente;\r\n }", "static void cetak_data(String nama, int usia) {\n int tahun_sekarang = 2020, tahun_lahir = tahun_sekarang - usia;\r\n System.out.println(\"---------\\nNama Saya : \" + nama + \"\\nUsia Saya : \" + usia + \"\\nTahun Lahir : \" + tahun_lahir);\r\n }", "public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public static String asignarNombres() {\n Scanner escaner = new Scanner(System.in);\n String nombrePrevioArreglo;\n int contador;\n boolean nombreEncontrado = true;\n\n System.out.println(\"Bienvenido Jugador\");\n System.out.println(\"Escribe tu nombre: \\n\");\n nombrePrevioArreglo = escaner.nextLine();\n //Volvemos a construir el string que adoptara los valores del mismo pero en mayusculas\n nombrePrevioArreglo = new String((mayusculas(nombrePrevioArreglo.toCharArray())));\n\n //Empezamos desde una condicion de inicio 1 para agrandar los nombres y asignarle el nombre a la posicion 0 como al punteo\n if (nombres.length == 1) {\n nombres = new String[nombres.length + 1];\n punteos = new int[nombres.length + 1];\n nombres[0] = nombrePrevioArreglo;\n punteos[0] = 0;\n\n } else {\n //ciclo que trata de encontrar el nombre en el arreglo nombre\n for (contador = 0; contador < nombres.length; contador++) {\n if (nombrePrevioArreglo.equals(nombres[contador])) {\n nombreEncontrado = true;\n break;\n }\n nombreEncontrado = false;\n }\n /*Al no encontrar el nombre creamos dos arreglos mas (nombresAuxiliar y punteosAuxiliar) que serviran de almacenamiento tenporal mientras\n volvemos a crear el nuevo arreglo de los nombres les volvemos a colocar los datos que poseian mas el nombre nuevo\n */\n if (nombreEncontrado == false) {\n String[] nombresAuxiliar = new String[nombres.length];\n int[] punteosAuxiliar = new int[nombres.length];\n punteosAuxiliar = punteos;\n nombresAuxiliar = nombres;\n nombres = new String[nombres.length + 1];\n punteos = new int[nombres.length + 1];\n for (contador = 0; contador < nombresAuxiliar.length; contador++) {\n nombres[contador] = nombresAuxiliar[contador];\n punteos[contador] = punteosAuxiliar[contador];\n }\n punteos[nombres.length - 2] = 0;\n nombres[nombres.length - 2] = nombrePrevioArreglo;\n }\n }\n //Regresa el nombre ya registrado\n return nombrePrevioArreglo;\n\n }", "public static void show() {\r\n\t\t int[] forword=new int[6];\r\n\t\t int[] temp;\r\n\t\t for(int i=1;i<7;i++){\r\n\t\t\t temp=Arrays.copyOf(forword, 6);\r\n\t\t\t for(int j=0;j<i;j++){\r\n\t\t\t\t if(j==0){\r\n\t\t\t\t\t forword[0]=i;\r\n\t\t\t\t\t System.out.print(forword[0]+\" \");\r\n\t\t\t\t }else{\r\n\t\t\t\t\t forword[j]=forword[j-1]+temp[j-1];\r\n\t\t\t\t\t System.out.print(forword[j]+\" \");\t\t \r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t System.out.println();\r\n\t\t }\r\n\t\t //0-9:48-57 ; A-Z:65-90 ; a-z:97-122 \r\n\t\t\r\n\t}", "public String hGenre(int tunnusnro) {\r\n List<Genre> kaikki = new ArrayList<Genre>();\r\n for (Genre genre : this.alkiot) {\r\n \t kaikki.add(genre);\r\n }\r\n for (int i = 0; i < kaikki.size(); i++) {\r\n if (tunnusnro == kaikki.get(i).getTunnusNro()) {\r\n return kaikki.get(i).getGenre();\r\n }\r\n }\r\n return \"ei toimi\";\r\n }", "public void convertToMaori(int number){\n\t\tint temp = number;\n\t\tint digit = temp % 10;\n\t\tint placeHolder = 0;\n\n\t\tif (digit > 0){\n\t\t\t_maoriNumber = MaoriNumbers.getValue(digit).toString();\n\t\t\tif (temp > 10) {\n\t\t\t\t_maoriNumber = \"maa\" + \"\\n\" + _maoriNumber; //note /n because the recording records seperate words on seperate lines\n\t\t\t}\n\t\t} else if (digit == 0){\n\t\t\twhile (digit == 0) {\n\t\t\t\ttemp = temp/10;\n\t\t\t\tdigit = temp % 10;\n\t\t\t\tplaceHolder++;\n\t\t\t}\n\t\t\t_maoriNumber = MaoriNumbers.getValue((int)Math.pow(10, placeHolder)).toString();\n\t\t\tif (digit > 1){\n\t\t\t\t_maoriNumber = MaoriNumbers.getValue(digit).toString() + \"\\n\" + _maoriNumber;\n\t\t\t}\n\t\t}\n\n\t\twhile (temp > 9) {\n\t\t\tplaceHolder++;\n\t\t\ttemp = temp/10;\n\t\t\tdigit = temp % 10;\n\t\t\t_maoriNumber = MaoriNumbers.getValue((int)Math.pow(10, placeHolder)).toString() + \"\\n\" + _maoriNumber;\n\t\t\tif (digit > 1){\n\t\t\t\t_maoriNumber = MaoriNumbers.getValue(digit).toString() + \"\\n\" + _maoriNumber;\n\t\t\t}\n\t\t}\n\t}", "public static String sorte(String chaine) {\r\n boolean estNumerique = false;\r\n boolean estAlphabetique = false;\r\n\r\n char car;\r\n\r\n if (chaine != null){\r\n if(!chaine.isEmpty()){\r\n for (int i = 0; i < chaine.length(); i++){\r\n car = chaine.charAt(i);\r\n if(car >= '0' && car <= '9' ){\r\n estNumerique = true;\r\n }else{\r\n estAlphabetique = true;\r\n }\r\n }\r\n if(estNumerique && estAlphabetique){\r\n chaine = \"alphanumerique\";\r\n }else if(estNumerique){\r\n chaine = \"numerique\";\r\n }else{\r\n chaine = \"alphabetique\";\r\n }\r\n }else {\r\n chaine = \"vide\";\r\n }\r\n }else{\r\n chaine = \"nulle\";\r\n }\r\n\r\n\r\n\r\n return chaine; //pour compilation\r\n }", "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 }", "public void eisagwgiSintagis() {\n\t\t//Elegw ean mporei na eisaxthei suntagi\n\t\tif(numOfMedicine != 0 && numOfDoctors != 0 && numOfPatient != 0 && numOfPrescription < 1000) \n\t\t{\n\t\t\ttmp_1 = numOfPrescription + 1;\n\t\t\t// Emfanizw to synolo twn giatrwn pou yparxoun sto farmakeio\n\t\t\tfor(i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(i + \". STOIXEIA IATROU: \");\n\t \t \tdoctor[i].print();\n\t \t \tSystem.out.println();\n\t\t\t}\n\t\t\t// O xristis epilegei ton ari8mo pou antistoixei ston giatro pou egrapse thn syntagh\n\t\t\ttmp_1 = sir.readPositiveInt(\"EPILEKSTE TON GIATRO POU EGGRAPSE THN SYNTAGH: \"); \n\t\t\t// Elegxw an o yparxei o giatros pou edwse o xristis\n\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfDoctors - 1)\n\t \t {\n\t\t\t\ttmp_1 = sir.readPositiveInt(\"DEN YPARXEI GIATROS ME TO NOUMERO POU PLIKTROLOGISATE! PARAKALW KSANADWSTE ARITHMO: \");\n\t\t\t\tSystem.out.println();\n\t \t }\n\t\t\t\n\t\t\ti = numOfPrescription + 1;\n\t\t\t// Emfanizw to synolo twn asthenwn pou yparxoun sto farmakeio\n\t\t\tfor(i = 0; i < numOfPatient; i++)\n\t\t {\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(i + \". STOIXEIA ASTHENOUS: \");\n\t patient[i].print();\n\t System.out.println();\n\t\t }\n\t\t\t// O xristis epilegei ton ari8mo pou antistoixei ston as8enh gia ton opoio proorizetai i syntagh\n\t\t\ti = sir.readPositiveInt(\"EPILEKSTE TON ASTHENH GIA TON OPOIO PROORIZETAI H SYNTAGH: \"); \n\t\t\t// Elegxw an o yparxei o as8enhs pou edwse o xristis\n\t\t\twhile(i < 0 || i > numOfPatient - 1)\n\t \t {\n\t\t\t\ti = sir.readPositiveInt(\"DEN YPARXEI ASTHENHS ME TO NOUMERO POU PLIKTROLOGISATE! PARAKALW KSANADWSTE ARITHMO: \");\n\t\t\t\tSystem.out.println();\n\t \t }\n\t\t\t\n\t\t\t// O xristis eisagei tn synoliko ar8mo farmakwn pou 8a exei h syntagh\n\t\t\tSystem.out.println();\n\t\t\ttmp_2= sir.readPositiveInt(\"EISAGETAI TON ARITHMO TWN FARMAKWN POU EPITHUMEITAI NA EXEI H SYNTAGH(1-6): \");\n\t\t\t// Elegxw an o ari8mos twn farmakwn pou edwse o xristis einai egkyros\n\t\t\twhile(tmp_2 < 0 || tmp_2 > 6)\n\t \t {\n\t\t\t\ttmp_2 = sir.readPositiveInt(\"PARAKALW KSANAEISAGETAI SYNOLIKO ARITHMO FARMAKWN(1-6): \");\n\t\t\t\tSystem.out.println();\n\t \t }\n\t\t\t// Apo8ikeuw tis times ston constructor Syntagi\n\t\t\tprescription[numOfPrescription] = new Syntagi(doctor[tmp_1], patient[i], sir.readDate(\"\\nEISAGETAI THN HMEROMHNIA EGGRAFHS THS SYNTAGHS: \"), tmp_2);\n\t\t\t\n\t\t\tprescription[numOfPrescription].dimiourgiaPinakaFarmakwn(); // Kalw tin methodo auti gia na dimiourgisw ton pinaka me ton arithmo twn farmakwn pou mou edwse o xrhsths\n\t\t\t\n\t\t\t// Emfanizw to synolo twn farmakwn\n\t\t\tfor(i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(i + \". STOIXEIA FARMAKOU: \");\n\t\t\t\tmedicine[i].print();\n\t\t\t}\n\t\t\t\n\t\t\tfor(i = 0; i < tmp_2; i++)\n \t \t{\n\t\t\t\ta = i + 1; \n\t\t\t\t// An h syntagh apoteleitai apo perissotera tou enos farmaka tote...\n\t\t\t\tif(tmp_2 != 1)\n \t \t \t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_1 = sir.readPositiveInt(\"ARITHMOS \" + a + \"ou FARMAKOU: \");\n\t\t\t\t\ttmp_3 = sir.readPositiveInt(\"POSOTHTA \" + a + \"ou FARMAKOU: \");\n \t \t \tSystem.out.println();\n \t \t \t}\n\t\t\t\t// An h syntagh apoteleitai apo ena farmako tote...\n\t\t\t\telse\n \t \t \t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_1 = sir.readPositiveInt(\"ARITHMOS FARMAKOU: \");\n\t\t\t\t\ttmp_3 = sir.readPositiveInt(\"POSOTHTA FARMAKOU: \");\n \t \t\t \tSystem.out.println();\n \t \t \t}\n \t \t \t// Elegxw an o ari8mos pou edwse o xristis einai egkyros\n\t\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfMedicine - 1)\n \t \t \t{\n \t \t \t\ttmp_1 = sir.readPositiveInt(\"EISAGATAI LATHOS DEDOMENA!DWSTE KSANA TIMH: \");\n \t \t\t \tSystem.out.println();\n \t \t \t}\n \t \t \t\n\t\t\t\tprescription[numOfPrescription].gemismaPinakaFarmakwn(i, medicine[tmp_1], tmp_3); // Kalw tin methodo auti gia na gemisw ton pinaka twn farmakwn pou dimiourgisa proigoumenws\n \t \t}\n\t\t\tnumOfPrescription++;\n\t\t}\n\t\t// Elegxw pote den mporei na eisaxthei syntagh\n\t\telse\n\t\t{\n\t\t\t// An oi syntages pou exoun eisaxthei xeperasan to epitrepto orio\n\t\t\tif(numOfPrescription >= 1000)\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN MPOREITAI NA EISAGETAI ALLES SYNTAGES!EXEI KALIFTHEI O MEGISTOS ARITHMOS TOUS\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n\t\t\t// An den yparxoun iatroi, astheneis kai farmaka sto farmakeio\n\t\t\telse if(numOfDoctors == 0 && numOfPatient == 0 && numOfMedicine == 0)\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI, ASTHENEIS KAI FARMAKA WSTE NA OLOKLIRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS, ASTHENEIS KAI FARMAKA!\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n\t\t\t// An den yparxoun iatroi kai astheneis\n\t\t\telse if(numOfDoctors == 0 && numOfPatient == 0)\n \t \t{\n\t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI KAI ASTHENEIS GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS KAI ASTHENEIS!\");\n \t \t \tSystem.out.println();\n \t \t}\n\t\t\t// An den yparxoun iatroi kai farmaka\n\t\t\telse if(numOfDoctors == 0 && numOfMedicine == 0)\n \t \t{\n\t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI KAI FARMAKA GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS KAI FARMAKA!\");\n \t \t \tSystem.out.println();\n \t \t}\n\t\t\t// An den yparxoun astheneis kai farmaka\n\t\t\telse if(numOfPatient == 0 && numOfMedicine == 0)\n \t \t{\n\t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI ASTHENEIS KAI FARMAKA GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI ASTHENEIS KAI FARMAKA!\");\n \t \t \tSystem.out.println();\n \t \t}\n\t\t\t// An den yparxoun iatroi\n\t\t\telse if (numOfDoctors == 0)\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS!\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n \t\t \t// An den yparxoun astheneis\n\t\t\telse\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI ASTHENEIS GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI ASTHENEIS!\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n\t\t}\n\t}", "public void ektypwsiFarmakou() {\n\t\t// Elegxw an yparxoun farmaka\n\t\tif(numOfMedicine != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR MEDICINE No.\" + (i+1) + \":\");\n\t\t\t\tmedicine[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMA FARMAKA PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public String getDv43(String numero) {\r\n \r\n int total = 0;\r\n int fator = 2;\r\n \r\n int numeros, temp;\r\n \r\n for (int i = numero.length(); i > 0; i--) {\r\n \r\n numeros = Integer.parseInt( numero.substring(i-1,i) );\r\n \r\n temp = numeros * fator;\r\n if (temp > 9) temp=temp-9; // Regra do banco NossaCaixa\r\n \r\n total += temp;\r\n \r\n // valores assumidos: 212121...\r\n fator = (fator % 2) + 1;\r\n }\r\n \r\n int resto = total % 10;\r\n \r\n if (resto > 0)\r\n resto = 10 - resto;\r\n \r\n return String.valueOf( resto );\r\n \r\n }", "public static void main(String[] args) {\n\n\n\n\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"4 basamakli bir sayi giriniz\");\n\n\n int sayi = sc.nextInt();\n int kalan = sayi - ((sayi / 10) );\n\n \n int onlar = sayi%10;\n System.out.println( sayi- sayi/10 *10 );\n\n\n\n\n\n }", "void mo9075h(String str, int i, int i2);", "static String stringCutter1(String s) {\n int value = s.length() % 2 == 0 ? s.length() / 2 : s.length() / 2 + 1;\n\n // pemotongan string untuk pemotongan kelompok pertama\n String sentence1 = s.substring(0, value);\n\n // perulangan untuk menggeser nilai setiap karakter\n String wordNow = \"\";\n for (int i = 0; i < sentence1.length(); i++) {\n char alphabet = sentence1.toUpperCase().charAt(i);\n // pengubahan setiap karakter menjadi int\n // untuk menggeser 3 setiap nilai nya\n int asciiDecimal = (int) alphabet;\n // pengecekan kondisi apabila karakter melewati kode ascii nya\n if (asciiDecimal > 124) {\n int alphabetTransfer = 0 + (127 - asciiDecimal);\n wordNow += (char) alphabetTransfer;\n\n } else {\n int alphabetTrasfer = asciiDecimal + 3;\n wordNow += (char) alphabetTrasfer;\n }\n }\n return wordNow;\n }", "void mo303a(C0237a c0237a, String str, String str2, String str3);", "private String elaboraRitorno() {\n String testo = VUOTA;\n String titoloPaginaMadre = getTitoloPaginaMadre();\n\n if (usaHeadRitorno) {\n if (text.isValid(titoloPaginaMadre)) {\n testo += \"Torna a|\" + titoloPaginaMadre;\n testo = LibWiki.setGraffe(testo);\n }// fine del blocco if\n }// fine del blocco if\n\n return testo;\n }", "public void Ganhou() {\n\t\tString[] g = new String[10]; \n\t\tg[0] = m[0][0] + m[0][1] + m[0][2];\n\t\tg[1] = m[1][0] + m[1][1] + m[1][2];\n\t\tg[2] = m[2][0] + m[2][1] + m[2][2];\n\t\t\n\t\tg[3] = m[0][0] + m[1][0] + m[2][0];\n\t\tg[4] = m[0][1] + m[1][1] + m[2][1];\n\t\tg[5] = m[0][2] + m[1][2] + m[2][2];\n\t\t\n\t\tg[6] = m[0][0] + m[1][1] + m[2][2];\n\t\tg[7] = m[2][0] + m[1][1] + m[0][2];\n\t\tg[8] = \"0\";\n\t\tg[9] = \"0\";\n\t\t\n\t\tfor(int i= 0; i<10; i++) {\n\t\t\tif(g[i].equals(\"XXX\")){\n\t\t\t\tJOptionPane.showMessageDialog(null,\"X GANHOU\");\n\t\t\t\tacabou = true;\n\t\t\t\temp = 0; \n\t\t\t\tbreak;\n\t\t\t} else if (g[i].equals(\"OOO\")) {\n\t\t\t\tJOptionPane.showMessageDialog(null,\"O GANHOU\");\n\t\t\t\tacabou = true;\n\t\t\t\tbreak;\n\t\t\t} \n\t\t}\n\t\t\n\t\tif (emp == 9) {\n\t\t\tJOptionPane.showMessageDialog(null,\"EMPATOU\");\t\n\t\t\tacabou = true;\n\t\t}\n\t}", "@Override\n\tpublic void nhap() {\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\" nhap ten:\");\n\t\tString ten = reader.nextLine();\n\t\tSystem.out.println(\" nhap tuoi:\");\n\t\ttuoi = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\" nhap can nang:\");\n\t\tcanNang = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\"nhap chieu chieuCao\");\n\t\tchieuCao = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\" nhap chieu chieuDai:\");\n\t\tchieuDai = Double.parseDouble(reader.nextLine());\n\t}", "public static void main (String []args){\n\t\t\n\t\tString hola =\"RV SIGUIENTE MENSAJE\";\n\t\tint num = hola.indexOf(\"RV\");\n\t\tif (hola.indexOf(\"RV\")!=-1){\n\t\t\tSystem.out.println(\"CONTIENE RV\");\n\n\t\t}else{\n\t\t\tSystem.out.println(\"NO CONTIENE RV\");\n\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "public int numero(String p) {\n\n String palabra = p.trim().toLowerCase();\n int numero = 0;\n palabra = palabra.replaceAll(\"(.)\\1\", \"$1\");\n\n \n if (palabra.equals(\"uno\")) numero = 1;\n if (palabra.equals(\"dos\")) numero = 1;\n if (palabra.equals(\"tres\"))numero = 1;\n if (palabra.equals(\"cuatro\")) numero = 1;\n if (palabra.equals(\"cinco\")) numero = 1;\n if (palabra.equals(\"seis\")) numero = 1;\n if (palabra.equals(\"siete\")) numero = 1;\n if (palabra.equals(\"ocho\")) numero = 1;\n if (palabra.equals(\"nueve\")) numero =9 ;\n \n\n return numero ;\n }", "C20241o mo54456u(int i);", "public void GetNom(Verbum w){\r\n\t\tDSElement<Terminus> ending = inflects.first;\r\n\t\tint variant = w.variant;\r\n\t\tint variant2 = -2;\r\n\t\tint cd = w.cd;\r\n\t\tString gender = w.gender;\r\n\t\tString form = \"\";\r\n\t\tint count = inflects.size(); // failsafe counter\r\n\t\twhile(count > 0){\r\n\t\t\tTerminus end = ending.getItem();\r\n\t\t\tif(w.pos.equals(\"V\")) { //VERB\r\n\t\t\t\tif(w.cd==2){\r\n\t\t\t\t\tif(w.type.equals(\"DEP\")){\r\n\t\t\t\t\t\tw.nom = w.form1 + \"eor\";\r\n\t\t\t\t\t\tw.nomFormLengh = 3;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tw.nom = w.form1 + \"eo\";\r\n\t\t\t\t\t\tw.nomFormLengh = 2;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif(w.type.equals(\"DEP\")){\r\n\t\t\t\t\t\tw.nom = w.form1 + \"or\";\r\n\t\t\t\t\t\tw.nomFormLengh = 3;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tw.nom = w.form1 + \"o\";\r\n\t\t\t\t\t\tw.nomFormLengh = 2;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn;\r\n\t\t\t} else if(w.pos.equals(\"N\") && end.pos.equals(\"N\")) { //NOUN\r\n\t\t\t\t/* Some special cases */\r\n\t\t\t\tif(cd == 3 && variant == 1){ //Common lots of cases\r\n\t\t\t\t\tvariant = 0;\r\n\t\t\t\t\tvariant2 = 1;\r\n\t\t\t\t}\r\n\t\t\t\tif(cd == 2 && variant == 1){ //Common lots of cases\r\n\t\t\t\t\tvariant = 0;\r\n\t\t\t\t\tvariant2 = 1;\r\n\t\t\t\t}\r\n\t\t\t\tif(cd == 3) {\r\n\t\t\t\t\tw.nom = w.form1;\r\n\t\t\t\t\tw.nomFormLengh = 0;\r\n\t\t\t\t\treturn; //return nom. s. 3rd decl.\r\n\t\t\t\t}\r\n\t\t\t\t/* END */\r\n\t\t\t\tif (end.wordcase != null && end.number != null){\r\n\t\t\t\t\tif(end.cd == cd && (end.variant == variant || end.variant == variant2) && \r\n\t\t\t\t\t\t\tend.wordcase.equals(\"NOM\") && end.number.equals(\"S\") && \r\n\t\t\t\t\t\t\tend.gender.equals(gender)) {\r\n\t\t\t\t\t\tform = w.form1;\r\n\t\t\t\t\t\tw.nom = form + end.ending;\r\n\t\t\t\t\t\tw.nomFormLengh = end.ending.length()+1;\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(end.cd == cd && (end.variant == variant || end.variant == variant2) && \r\n\t\t\t\t\t\t\tend.wordcase.equals(\"NOM\") && end.number.equals(\"S\") &&\r\n\t\t\t\t\t\t\tend.gender.equals(\"X\")) {\r\n\t\t\t\t\t\tform = w.form1;\r\n\t\t\t\t\t\tw.nom = form + end.ending;\r\n\t\t\t\t\t\tw.nomFormLengh = end.ending.length()+1;\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(end.cd == cd && (end.variant == variant || end.variant == variant2) && \r\n\t\t\t\t\t\t\tend.wordcase.equals(\"NOM\") && end.number.equals(\"S\") && \r\n\t\t\t\t\t\t\tend.gender.equals(\"C\")) {\r\n\t\t\t\t\t\tform = w.form1;\r\n\t\t\t\t\t\tw.nom = form + end.ending;\r\n\t\t\t\t\t\tw.nomFormLengh = end.ending.length()+1;\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if(w.pos.equals(\"ADJ\") && end.pos.equals(\"ADJ\")) {\r\n\t\t\t\t/* The different declensions and variations */\r\n\t\t\t\tif(cd == 1 && (variant == 1 || variant == 3 || variant == 5)) {\r\n\t\t\t\t\tw.nom = w.form1 + \"us\";\r\n\t\t\t\t\tw.nomFormLengh = 3;\r\n\t\t\t\t\treturn; \r\n\t\t\t\t}\r\n\t\t\t\tif(cd == 1 && (variant == 2 || variant == 4)){\r\n\t\t\t\t\tw.nom = w.form1;\r\n\t\t\t\t\tw.nomFormLengh = 0;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif(cd == 0 && variant == 0 && w.type.equals(\"COMP\")) {\r\n\t\t\t\t\tw.nom = w.form1 + \"or\";\r\n\t\t\t\t\tw.nomFormLengh = 3;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif(cd == 0 && variant == 0 && w.type.equals(\"SUPER\")) {\r\n\t\t\t\t\tw.nom = w.form1 + \"mus\";\r\n\t\t\t\t\treturn; \r\n\t\t\t\t}\r\n\t\t\t\tif(cd == 2 && variant == 1) {\r\n\t\t\t\t\tw.nom = w.form1 + \"e\";\r\n\t\t\t\t\tw.nomFormLengh = 2;\r\n\t\t\t\t\treturn; \r\n\t\t\t\t}\r\n\t\t\t\tif(cd == 2 && variant == 2) {\r\n\t\t\t\t\tw.nom = w.form1 + \"a\";\r\n\t\t\t\t\tw.nomFormLengh = 2;\r\n\t\t\t\t\treturn; \r\n\t\t\t\t}\r\n\t\t\t\tif(cd == 2 && variant == 3) {\r\n\t\t\t\t\tw.nom = w.form1 + \"es\";\r\n\t\t\t\t\tw.nomFormLengh = 3;\r\n\t\t\t\t\treturn; \r\n\t\t\t\t}\r\n\t\t\t\tif(cd == 2 && (variant == 6 || variant == 7)) {\r\n\t\t\t\t\tw.nom = w.form1 + \"os\";\r\n\t\t\t\t\tw.nomFormLengh = 3;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif(cd == 2 && variant == 8) {\r\n\t\t\t\t\tw.nom = w.form1 + \"on\";\r\n\t\t\t\t\tw.nomFormLengh = 3;\r\n\t\t\t\t\treturn; \r\n\t\t\t\t}\r\n\t\t\t\tif(cd == 3 && (variant == 1 || variant == 3 || variant == 6)) {\r\n\t\t\t\t\tw.nom = w.form1;\r\n\t\t\t\t\tw.nomFormLengh = 0;\r\n\t\t\t\t\treturn; \r\n\t\t\t\t}\r\n\t\t\t\tif(cd == 3 && variant == 2) {\r\n\t\t\t\t\tw.nom = w.form1 + \"is\";\r\n\t\t\t\t\tw.nomFormLengh = 3;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t/* END */\t\t\t\t\r\n\t\t\t} else if(w.pos.equals(\"ADV\") && end.pos.equals(\"ADV\")) {\r\n\t\t\t\tw.nom = w.form1;\r\n\t\t\t\tw.nomFormLengh = 0;\r\n\t\t\t\treturn; \r\n\t\t\t}\r\n\t\t\tending = ending.getNext();\r\n\t\t\tif(ending == null)\r\n\t\t\t\tending = inflects.first;\r\n\t\t\tcount--;\r\n\t\t}\r\n\t\tw.nom = w.form1;\r\n\t\tw.nomFormLengh = 0;\r\n\t\treturn;\r\n\t}", "public Nombre() {\n char v[] = { 'a', 'e', 'i', 'o', 'u' };\n char c[] = { 'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'ñ', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x',\n 'y', 'z' };\n vocales = new Letras(v);\n consonantes = new Letras(c);\n r = new Random();\n }", "void mo1582a(String str, C1329do c1329do);", "public void anazitisiSintagisVaseiHmerominias() {\n\t\tDate firstDt = null, lastDt = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t\t\t\tprescription[j].print();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\t// Zitaw apo ton xrhsth to xroniko euros kata to opoio exei graftei sintagh\n\t\t\tfirstDt = sir.readDate(\"DWSTE ARXIKH HMEROMHNIA: \");\n\t\t\tlastDt = sir.readDate(\"DWSTE TELIKH HMEROMHNIA: \");\n\t\t\tSystem.out.println();\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t// An h hmeromhnia eggrafhs ths syntaghs einai anamesa sta xronika oria pou exei dwsei o xrhsths ektypwnetai\n\t\t\t\tif(firstDt.before(prescription[i].getDate()) && (lastDt.after(prescription[i].getDate()))) \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH METAKSY:\" + firstDt + \" KAI: \" + lastDt);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void mesajiSenVer(String mesaj){\n System.out.println(mesaj);\n }", "public static void main(String[] args) {\n String a = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ#-\";\r\n //---------------------------------------------------------------------\r\n \r\n //Memanggil alfabet String yang diinginkan\r\n //Menentukan alfabet untuk Nama\r\n char hasil1 = a.charAt(0);\r\n char hasil2 = a.charAt(25);\r\n char hasil3 = a.charAt(7);\r\n char hasil4 = a.charAt(0);\r\n char hasil5 = a.charAt(17);\r\n char hasil6 = a.charAt(27);\r\n char hasil7 = a.charAt(1);\r\n char hasil8 = a.charAt(4);\r\n char hasil9 = a.charAt(17);\r\n char hasil10 = a.charAt(11);\r\n char hasil11 = a.charAt(8);\r\n char hasil12 = a.charAt(0);\r\n char hasil13 = a.charAt(13);\r\n char hasil14 = a.charAt(0);\r\n //---------------------------------------------------------------------\r\n \r\n //Menentukan alfabet untuk Kelas\r\n char hasil15 = a.charAt(23);\r\n char hasil16 = a.charAt(8);\r\n char hasil17 = a.charAt(8);\r\n char hasil18 = a.charAt(27);\r\n char hasil19 = a.charAt(17);\r\n char hasil20 = a.charAt(15);\r\n char hasil21 = a.charAt(11);\r\n char hasil22 = a.charAt(27);\r\n char hasil23 = a.charAt(1);\r\n //---------------------------------------------------------------------\r\n \r\n //Saat nya memanggil output yang telah di tentukan pada variable-variable diatas\r\n System.out.println(\"ALFABET TERSEDIA : \"+a);\r\n //---------------------------------------------------------------------\r\n \r\n //---------------------------------------------------------------------\r\n System.out.println(\"---------------------------------------------------\"\r\n + \"------------------\");\r\n //---------------------------------------------------------------------\r\n \r\n //Pemanggilan Nama\r\n System.out.println(\"Nama : \"+hasil1+\"\"+hasil2+\"\"+hasil3+\"\"+hasil4+\r\n \"\"+hasil5+\"\"+hasil6+\"\"+hasil7+\"\"+hasil8+\"\"+hasil9+\"\"+hasil10+\"\"\r\n +hasil11+\"\"+hasil12+\"\"+hasil13+\"\"+hasil14);\r\n //---------------------------------------------------------------------\r\n \r\n //Pemanggilan Kelas\r\n System.out.println(\"Kelas : \"+hasil15+\"\"+hasil16+\"\"+hasil17+\"\"+\r\n hasil18+\"\"+hasil19+\"\"+hasil20+\"\"+hasil21+\"\"+hasil22+\"\"+hasil23);\r\n //---------------------------------------------------------------------\r\n \r\n //---------------------------------------------------------------------\r\n System.out.println(\"---------------------------------------------------\"\r\n + \"------------------\");\r\n //---------------------------------------------------------------------\r\n \r\n }", "public String annulerRv(){\n\t\t// Traitement ici ... \n\t\treturn AFFICHER;\n\t}", "private String formulerMonNom() {\n\t return \"Je m'appelle \" + this.nom; // appel de la propriété nom\n\t }", "public static void main(String[] args) {\r\n //Letter J composed of \"J\",\"A\",\"V\",\"A\"\r\n System.out.println(\"JAVAJAVAJAVA\");\r\n System.out.println(\"JAVAJAVAJAVA\");\r\n System.out.println(\" JAVA\");\r\n System.out.println(\" JAVA\");\r\n System.out.println(\" JAVA\");\r\n System.out.println(\" JAVA\");\r\n System.out.println(\"J JAVA\");\r\n System.out.println(\"JA JAVA\");\r\n System.out.println(\" JAVAJAVA\");\r\n System.out.println(\" JAVAJA\");\r\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"구구단\");\n\t\t\n\t\tfor (int dan =1; dan <= 9; dan++) {\n\t\t\tSystem.out.print(dan + \"단 : \"); //9번 수행\n\t\t\tfor (int num = 1; num <= 9; num++) {\n\t\t\t\tSystem.out.print(dan + \"*\" + num + \"=\" + dan * num + \"\\t\"); //81번 수행\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();//줄 내리기\n\t\t}\n\n\t}", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "public static String danU7(int num){\r\n\t\t\r\n\t\tString [] dani={\"Ponedjeljak\",\"Utorak\",\"Srijeda\",\"Cetvrtak\",\"Petak\", \"Subota\", \"Nedjelja\"}; \r\n\t\t\r\n\t\treturn dani[num];\r\n\t}", "public static void main(String[] args) {\n String frase;\n String frase2 = \"\";//debe ser inicializada\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"Ingrese una frase\");\n frase = sc.nextLine();\n\n int i = 0;\n\n while (i < frase.length()) {//ou con for et if y else, los i++ estarian solo en el for\n if (frase.charAt(i) != ' ') {\n frase2 = frase2.concat(frase.substring(i, i + 1));\n } else {//el else solo pedia tranformar los espacios en alterisco que se hace solo con\n frase2 = frase2.concat(\"*\");//esto//y esto\n while (frase.charAt(i) == ' ') {\n i++;\n }\n frase2 = frase2.concat(frase.substring(i, i + 1));\n }\n i++;\n }//faltaria una primera condicion como en los 2 ejercicios precedentes pa que no imprima asteriscos antes de la 1era letra\n System.out.println(frase2);\n }", "public Zadatak1() {\r\n\t\tSystem.out.println(ucitajBroj(\"1. broj\") + ucitajBroj(\"2. broj\"));\r\n\t}", "public static void NumeroCapicua(){\n\t\tint numero,resto,falta,invertido;\n\t\tString tomar;\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese un numero\");\n\t\tnumero=reader.nextInt();\n\t\tfalta=numero;\n\t\tinvertido=0;\n\t\tresto=0;\n\t\twhile(falta!=0){\n\t\t\tresto=(falta%10);\n\t\t\tinvertido=(invertido*10)+resto;\n\t\t\tfalta=(int)(falta/10);\n\t\t}\n\t\tif(invertido==numero){\n\t\t\tSystem.out.println(\"Es Capicua\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No es Capicua\");\n\t\t}\n\t\tSystem.out.println(\"Desea regresar al menu anterior?\");\n\t\treader.nextLine();\n\t\ttomar=reader.nextLine();\n\t\tif(tomar.equals(\"si\")){\n\t\t\trepetidor=true;\n\t\t}else{\n\t\t\trepetidor=false;\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t\n\tScanner scan=new Scanner(System.in);\n\t\n\tSystem.out.println(\"uc basamakli bir sayi girin\");\n\t\n\tint s=scan.nextInt();\n\tint sonRakam=s%10;\n\t\n\tint v=s/10;\n\tint ortaRakam=v%10;\n\t\n\tint ilkRakam=s/100;\n\t\n\tSystem.out.println(sonRakam+ortaRakam+ilkRakam);\n\n\t}", "public static void main(String[] args) {\n String iSBNumber = \"978013213080\";\n int parni = 0;\n int neparni = 0;\n int suma;\n\n\n for (int i = 0; i < iSBNumber.length(); i++) {\n\n if (i % 2 == 0) {\n neparni += (Integer.parseInt(String.valueOf(iSBNumber.charAt(i))));\n\n } else {\n parni += 3 * (Integer.parseInt(String.valueOf(iSBNumber.charAt(i))));\n\n }\n }\n suma = 10 - (parni + neparni) % 10;\n if (suma == 10) {\n iSBNumber += \"0\";\n System.out.println(iSBNumber);\n } else {\n iSBNumber += suma;\n System.out.println(iSBNumber);\n }\n\n }", "public static void main (String[] args){\n int y = 1;\n for (y = 1; y <= 4; y++){\n // He usat bucles per no duplicar codi i per optimització.\n int x =1;\n // Bucle\n for (x = 1; x <= 4; x++){\n String abc = \"AAAAABCÇDEEEEEFGHIIIIIJKLMNOOOOOPQRSTUUUUUVWXYZ\"; //47\n int lletra = (int) (abc.length() * Math.random());\n char a = abc.charAt(lletra);\n System.out.print(\"\\u001B[36m\"+a); \n } \n System.out.println(\"\");\n }\n }", "public void hitunganRule4(){\n penebaranBibitBanyak = 1900;\r\n hariPanenLama = 110;\r\n \r\n //menentukan niu bibit\r\n nBibit = (penebaranBibitBanyak - 1500) / (3000 - 1500);\r\n \r\n //menentukan niu hari panen sedang\r\n if ((hariPanenLama >=80) && (hariPanenLama <=120)) {\r\n nPanen = (hariPanenLama - 100) / (180 - 100);\r\n }\r\n \r\n //tentukan alpha predikat (karena grafik segitiga)\r\n if (nBibit < nPanen) {\r\n a4 = nBibit;\r\n }else if (nBibit > nPanen) {\r\n a4 = nPanen;\r\n }\r\n \r\n //tentukan Z3\r\n z4 = (penebaranBibitBanyak + hariPanenLama) * 500;\r\n System.out.println(\"a4 = \" + String.valueOf(a4));\r\n System.out.println(\"z4 = \" + String.valueOf(z4));\r\n }", "String getVorlesungKennung();", "String mo150a(String str);", "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}", "static String m33125a(String name) {\n StringBuilder fieldNameBuilder = new StringBuilder();\n int index = 0;\n char firstCharacter = name.charAt(0);\n int length = name.length();\n while (index < length - 1 && !Character.isLetter(firstCharacter)) {\n fieldNameBuilder.append(firstCharacter);\n index++;\n firstCharacter = name.charAt(index);\n }\n if (Character.isUpperCase(firstCharacter)) {\n return name;\n }\n fieldNameBuilder.append(m33124a(Character.toUpperCase(firstCharacter), name, index + 1));\n return fieldNameBuilder.toString();\n }", "public void hitunganRule1(){\n penebaranBibitSedikit = 1200;\r\n hariPanenSedang = 50;\r\n \r\n //menentukan niu\r\n nBibit = (1500 - penebaranBibitSedikit) / (1500 - 500);\r\n \r\n //menentukan niu hari panen sedang\r\n if ((hariPanenSedang >=40) && (hariPanenSedang <=80)) {\r\n nPanen = (hariPanenSedang - 40) / (80 - 40);\r\n }\r\n \r\n //tentukan alpha predikat (karena grafik segitiga)\r\n if (nBibit < nPanen) {\r\n a1 = nBibit;\r\n }else if (nBibit > nPanen) {\r\n a1 = nPanen;\r\n }\r\n \r\n //tentukan Z1\r\n z1 = (penebaranBibitSedikit + hariPanenSedang) * 700;\r\n System.out.println(\"a1 = \" + String.valueOf(a1));\r\n System.out.println(\"z1 = \" + String.valueOf(z1));\r\n }", "public static void main(String[] args){\r\n String first = \"jin\";\r\n String last = \"jung\";\r\n String ay = \"ay\";\r\n/*\r\n use substring() and toUpperCase methods to reorder and capitalize\r\n*/\r\n\r\n String letFirst = first.substring(0,1);\r\n String capFirst = letFirst.toUpperCase();\r\n String letLast = last.substring(0,1);\r\n String capLast = letLast.toUpperCase();\r\n\r\n String nameInPigLatin = first.substring(1,3) + capFirst + ay + \" \" + last.substring(1,4) + capLast + ay;\r\n\r\n/*\r\n output resultant string to console\r\n*/\r\n\r\n System.out.println(nameInPigLatin);\r\n\r\n }", "void mo1334i(String str, String str2);", "public String creerDureeJtable(String chaine){\r\n\t\tif(chaine.length() == 1){\r\n\t\t\treturn chaine+\"h00\";\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn chaine.substring(0, 1)+\"h\"+chaine.substring(1, chaine.length());\r\n\t\t}\r\n\t\t\r\n\t}", "private String preparaMensaje(String mensaje){\n String binario;\n int longitud = 0;\n String bi=\"\";\n longitud = mensaje.length() + 4;\n for( int i = 15; i>=0; i--){\n bi += ( ( ( longitud & ( 1<<i ) ) > 0 ) ? \"1\" : \"0\" ) ;\n }\n return binario = cadenaABinario(\" \") + bi + cadenaABinario(mensaje);\n }", "public static void main(String[] args) {\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\tSystem.out.println(\"문자를 입력하세요: \");\t\t\n\t\tString i = sc.next();\n\t\tString k=\"\";\t\t//초기화\n\t\tSystem.out.println(\"문자는: \"+i); \n\t\t\n\t\tint l = i.length();\t\t\n\t\tSystem.out.println(\"길이는: \"+l); \n\t\t\n\t\tString str_array[]= new String[l];\n\t\t\n\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\n\t\t\t str_array[j] = i.substring(j, j+1);\n\t\t\t \n\t\tSystem.out.println(str_array[j]);\n\t\t\t}\n\t\t\n\t\tfor(int m=0 ; m<l ; m++) {\n\t\t k += str_array[m];\n\t\t}\n\t\t\n\t\tSystem.out.println(k);\n\t}", "public void eisagwgiAstheni() {\n\t\t// Elegxw o arithmos twn asthenwn na mhn ypervei ton megisto dynato\n\t\tif(numOfPatient < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tpatient[numOfPatient] = new Asthenis();\n\t\t\tpatient[numOfPatient].setFname(sir.readString(\"DWSTE TO ONOMA TOU ASTHENH: \")); // Pairnei to onoma tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU ASTHENH: \")); // Pairnei to epitheto tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setAMKA(rnd.nextInt(1000000)); // To sistima dinei automata ton amka tou asthenous\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t//Elegxos monadikotitas tou amka tou astheni\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tif(patient[i].getAMKA() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfPatient++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS ASTHENEIS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}" ]
[ "0.6360104", "0.62655544", "0.62453884", "0.62290865", "0.6207467", "0.6078845", "0.60677695", "0.60533905", "0.6029665", "0.60179764", "0.59841514", "0.5982478", "0.5961811", "0.59303296", "0.5908573", "0.58899516", "0.58770686", "0.5834924", "0.58335817", "0.58146906", "0.5785719", "0.5784553", "0.57619804", "0.5758795", "0.57406074", "0.5729166", "0.5727943", "0.57278997", "0.57261795", "0.57233274", "0.5722548", "0.5717247", "0.57165194", "0.57151544", "0.57127935", "0.5708569", "0.569748", "0.569748", "0.5691815", "0.56774235", "0.56746244", "0.56672263", "0.5656828", "0.5656592", "0.56329095", "0.56323165", "0.56287444", "0.56226027", "0.5622587", "0.56169677", "0.56160325", "0.5611728", "0.56113744", "0.55956525", "0.5593095", "0.5585019", "0.55827695", "0.55822206", "0.55810076", "0.5579609", "0.5579524", "0.5572493", "0.55709577", "0.5561337", "0.5559162", "0.555885", "0.5554202", "0.5549645", "0.5548846", "0.5543889", "0.5541073", "0.55385906", "0.5537779", "0.55357736", "0.5531442", "0.55308473", "0.55306566", "0.5529007", "0.55280524", "0.5526286", "0.5523706", "0.551946", "0.5510556", "0.55068254", "0.549742", "0.5497179", "0.5493718", "0.5492741", "0.54915243", "0.54829425", "0.54809344", "0.5480213", "0.5479825", "0.54784775", "0.5478366", "0.547449", "0.5473927", "0.5468879", "0.546568", "0.54638934", "0.5457895" ]
0.0
-1
nomor 03 ua gs uk = aku sayang kamu string di java menggunaka equals()
public static void Print03(){ Scanner input = new Scanner(System.in); String resultt; System.out.println("3. MASUKKAN KALIMAT/KATA : "); String inputString = input.nextLine(); String[] inputArray = inputString.split( " "); for(String text : inputArray) { char[] charArray = text.toCharArray(); //resultt = charArray[charArray.length - 1] + "*" + charArray[0]; for (int i = 0; i < charArray.length ; i++) { if(i == 0){ System.out.print(charArray[charArray.length - 1]); } else if (i == text.length() - 1) { System.out.print(charArray[0]); } else if (i == text.length() / 2){ System.out.print("*"); } else { System.out.print(""); } } System.out.print(" "); } System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean equals(String that);", "public boolean equals(Object anObject) {\n/* 205 */ return this.m_str.equals(anObject);\n/* */ }", "public boolean equals(String obj2) {\n/* 168 */ return this.m_str.equals(obj2);\n/* */ }", "String getEqual();", "private static boolean equalityTest1(String a, String b)\n {\n return a == b;\n }", "public boolean equals(XMLString anObject) {\n/* 186 */ return this.m_str.equals(anObject.toString());\n/* */ }", "@Override\r\n\t\t\tpublic boolean test(String t, String u) {\n\t\t\t\t return t.equalsIgnoreCase(u);\r\n\t\t\t}", "public boolean equalsIgnoreCase(String anotherString) {\n/* 225 */ return this.m_str.equalsIgnoreCase(anotherString);\n/* */ }", "private static boolean equalityTest2(String a, String b)\n {\n return a.equals(b);\n }", "public static void main (String[] args) {\n\t\tString s = \"Hello\";\r\n\t\tString t = new String(s);\r\n\t\tif(\"Hello\".equals(s)) System.out.println(\"one\");\r\n\t\tif(t== s) System.out.println(\"two\");\r\n\t\tif (t.equals(s))System.out.println(\"three\");\r\n\t\tif(\"Hello\" == s) System.out.println(\"four\");\r\n\t\tif(\"Hello\" == t) System.out.println(\"five\");\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tsb.append(\"aaa\").insert(1,\"bb\").insert(4, \"ccc\");\r\n\t\tSystem.out.println(sb);\r\n\t\tString s1 =\"java\";\r\n\t\tStringBuilder s2 = new StringBuilder(\"java\");\r\n\t\tif (s1 == s2)\r\n\t\t\tSystem.out.print(\"1\");\r\n\t\tif (s1.contentEquals(s2))\r\n\t\t\tSystem.out.print(\"2\");\r\n\t\t\r\n\t}", "boolean equals(String s) {\n\t\treturn str.equals(s);\n\t}", "public static boolean isEqual(String s1, String s2) {\r\tif(s1.length() != s2.length()){\r\t return false;\r\t}\r\tfor(int i = 0; i< s1.length();i++){\r\t if (s1.charAt(i) != s2.charAt(i)){\r\t\treturn false;\r\t }\r\t}\r\treturn true;\r }", "public static void main(String[] args) {\n\t\tString s2 = \"Gowda\";\n\t\tString s3 = \"Gowda\";\n//\t\t\n//\t\tSystem.out.println(s.equals(s2));\n\t\t\n\t\tSystem.out.println(s2.equals(s3));\n\t\t\n\t\tSystem.out.println(s2 == s3); //\n\t\t\n\t}", "@Test\n public void testEquals_1() {\n LOGGER.info(\"testEquals_1\");\n final AtomString atomString = new AtomString(\"Hello\");\n final Atom atom = new AtomString(\"Hello\");\n final boolean actual = atomString.equals(atom);\n assertTrue(actual);\n }", "public boolean equals(Object other) {\r\n \tthrow new ClassCastException(\"equals on StringValue is not allowed\");\r\n }", "boolean equal(String s1, String s2) {\n return compareStrings(s1, s2) == 0;\n }", "public static void main(String[] args) {\n\t\t\n\t\tString str1 =\"amol\";\n\t\tString str2 =\"amol\";\n\t\tString str3 =\"Amol\";\n\t\tString str4 =\"raj\";\n\t\tString str5 = new String(\"amol\");\n\t\t\n\t\tSystem.out.println(str1.equals(str2)); // true\n\t\tSystem.out.println(str1.equals(str3));\n\t\tSystem.out.println(str1.equalsIgnoreCase(str3));\n\t\tSystem.out.println(str1.equals(str4));\n\t\tSystem.out.println(str1.equals(str5)); // true\n\t\t\n\t\tSystem.out.println(str1==str2); // true\n\t\n\t\tSystem.out.println(str1==str5); // false\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tString s1 = \"akshay\";\n\t\tString s2 = \"akshay\";\n\t\tString s3 = new String(\"cherry\");\n\t\tString s4 = new String(\"cherry\");\n\t\tSystem.out.println(s1==s2);\n\t\tSystem.out.println(s1.equals(s2));\n\t\tSystem.out.println(s1==s3);\n\t\tSystem.out.println(s1.equals(s3));\n\t\tSystem.out.println(s3==s4);\n\t\tSystem.out.println(s3.contentEquals(s4));\n\t}", "public static void main(String[] args) {\n\n System.out.println(\"Java\".equals(\"java\") );\n String myStr=\"Java\" ;\n System.out.println(myStr.equals(\"Java\") );\n\n String yourStr=new String(\"Java\");\n System.out.println(\"is my string same as your string?\" );\n //how to compare myStr to yourStr for equality\n System.out.println(myStr.equals(yourStr));\n\n //create a program to check wether myStr value is Java\n //if yes ---->> correct word!\n //if false---->>Say Java!\n\n if (myStr.equals(\"Java\")){\n System.out.println(\"correct word!\");\n }else{\n System.out.println(\"Say Java!\");\n }\n }", "public static void main(String[] args) {\nString s1= \"adya\";\nString s2= \"adyass\"+\"a\";\nString s3= \"adyassa\";\nSystem.out.println(s3==s2);\n\t}", "private boolean equals() {\r\n return MARK(EQUALS) && CHAR('=') && gap();\r\n }", "private static boolean equalityTest4(String a, String b)\n {\n if(a.length() == 0 && b.length() == 0)\n {\n return true;\n }\n else\n {\n if(a.length() == 0 || b.length() == 0)\n {\n return false;\n }\n if(a.charAt(0) == b.charAt(0))\n {\n return equalityTest4(a.substring(1), b.substring(1));\n }\n else\n {\n return false;\n }\n }\n }", "public boolean codepointEquals(StringValue other) {\r\n // avoid conversion of CharSequence to String if values are different lengths\r\n return value.length() == other.value.length() &&\r\n value.toString().equals(other.value.toString());\r\n // It might be better to do character-by-character comparison in all cases; or it might not.\r\n // We do it this way in the hope that string comparison compiles to native code.\r\n }", "@Test\n public void testEquals_2() {\n LOGGER.info(\"testEquals_2\");\n final AtomString atomString = new AtomString(\"Hello\");\n final Atom atom = new AtomString(\"Hej\");\n final boolean actual = atomString.equals(atom);\n assertFalse(actual);\n }", "public boolean isEqual(StringNum a) {\n\t\tif(this.getNumber().equalsIgnoreCase(a.getNumber())) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public void testEquals()\r\n throws Exception\r\n {\r\n setUp();\r\n Student colleen = new Student(\"12345678\", \"collEEN\", \"SCHMIDt\");\r\n assertTrue(colleen.equals(s1));\r\n\r\n assertTrue(s1.equals(s4));\r\n assertFalse(s1.equals(s2));\r\n assertFalse(s1.equals(s3));\r\n assertTrue(s1.equals(s1));\r\n\r\n String allison = \"\";\r\n assertFalse(allison.equals(colleen));\r\n\r\n assertFalse(colleen.equals(num));\r\n }", "private boolean equals(String str1, String str2)\n\t{\n\t\tif (str1.length() != str2.length()) // Easiest to check is if they are the same to potentially avoid running remaining code\n\t\t\treturn false;\n\t\tfor(int i = 0; i < str1.length(); i++)\n\t\t{\n\t\t\tif (str1.charAt(i) != str2.charAt(i)) // If at any point one char is not equal to the same char at a given index then they are disimilar\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true; // If no discrepancies are found then the strings must be equal\n\t}", "public static void main(String[] args) {\n\t\tString test=\"hello\";\r\n\t\tString test1=new String(\"hello\");\r\n\t\t\r\n\t\tboolean t=test==test1;\r\n\t\tSystem.out.println(t);\r\n\t\t\r\n\t\tboolean t1 =test.equals(test1);\r\n\t\t\r\n\t\tSystem.out.println(t1);\r\n\t}", "private void assertEquals(String string) {\n\t\t\n\t}", "private static boolean equalityTest5(String a, String b)\n {\n return a.hashCode() == b.hashCode();\n }", "private static final PyObject testEqual(PyString string, PyObject other) {\n\t\tif (other instanceof PyShadowString) {\n\t\t\treturn ((PyShadowString) other).shadowstr___eq__(string);\n\t\t} else {\n\t\t\treturn string.__eq__(other);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tString str = \"Cybertek\";\n\t\t boolean R1 = str.isEmpty(); // False\n\t\t System.out.println(R1);\n\t\t \n\t\t String str2 = \"\";\n\t\t if(str2.isEmpty()) { // True\n\t\t\t System.out.println(\"it's empty String\");\n\t\t }\n\t\t else {\n\t\t\t System.out.println(\"it's not empty\");\n\t\t }\n\t\t \n\t\t \n\t /*\n\t equals(str): checks if two Strings' visible texts are equal or not.\n\t */\n\t\t \n\t\t String A1 = \"Cybertek\";\n\t\t String A2 = new String (\"Cybertek\");\n\t\t System.out.println(A1 == A2); // false\n\t\t \n\t\t boolean R2 = A1.contentEquals(A2);\n\t\t System.out.println(R2);\n\t\t \n\t\t System.out.println( \"java\".equals(\"Java\")); // false, because of case sensitivity\n\t\t \n\t\t \n\t\t /*\n\t\t equalsIgnoreCase(str): \n\t\t checks if two Strings' visible texts are equal or not,\n\t\t then returns a boolean expression.\n\t\t Case sensitivity does not matter.\n\t\t */\n\t\t \n\t\t String s1 = \"JAVA\";\n\t\t String s2 = new String(\"java\");\n\t\t System.out.println(s1 == s2); // false\n\t\t \n\t\t System.out.println(s1.equals(s2)); // false\n\t\t System.out.println(s1.equalsIgnoreCase(s2)); // true\n\t\t \n\t\t\n\t\t\n\t /*\n\t contains(str): checks if the str is contained in the String or not,\n\t then it returns a boolean expression.\n\t \n\t if it is contained ==> true\n\t if it is !contained ==> false\n\t */\n\t\t \n\t\t String name = \"Muhtar\";\n\t\t boolean Result = name.contains(\"ABC\"); // false\n\t\t System.out.println(Result);\n\t\t \n\t\t String name2 = \"Marufjon\";\n\t\t System.out.println(name2.contains(\"m\")); // false, case sensitivity\n\t\t \n\t\t \n\t\t \n\t\t /*\n\t\t startsWith(str): checks if the String is started with the str or not,\n\t\t then returns a boolean expression.\n\t\t \n\t\t startedwith ==> tru\n\t\t !startedwith ==> false\n\t\t */\n\t\t \n\t\t String today = \"Java\";\n\t\t boolean result = today.startsWith(\"J\");\n\t\t System.out.println(result); // true\n\t\t \n\t\t String names = \"Cybertek School is a great place to learn Java\";\n\t\t System.out.println(names.startsWith(\"Cybertek School\")); //true\n\t\t \n\t\t \n\t\t /*\n\t\t endsWith(str): checks if the String is ended with the given str or not, \n\t\t then returns a boolean expression.\n\t\t \n\t\t endedwith ==> true !endedwith ==> false\n\t\t \n\t\t */\n\t\t \n\t\t String B1 = \"Muhtar\";\n\t\t System.out.println(B1.endsWith(\"R\")); //false, case sensitivity\n\t\t System.out.println(B1.endsWith(\"r\")); // true\n\t\t \n\t\t \n\t\t\t\t \n\t\t \n\t\t \n\t}", "private static boolean equalityTest3(String a, String b)\n {\n return System.identityHashCode(a) == System.identityHashCode(b);\n }", "public boolean equals(String data) {\r\n boolean equal = false;\r\n try {\r\n equal = this.data.equals(data);\r\n } catch (Exception e) {\r\n\r\n }\r\n return equal;\r\n }", "public static void testComparing() {\n System.out.println(\"\\nTEST ASSIGNING\");\n System.out.println(\"==============\");\n int i = 20;\n int j = 20;\n\n if(i == j) {\n System.out.println(\"i and j are equal\");\n }\n\n String JPY = new String(\"JPY\");\n String YEN = new String(\"JPY\");\n\n if(JPY == YEN) {\n System.out.println(\"JPY and YEN are same\"); //This line is not printed\n }\n\n if(JPY.equals(YEN)) {\n //you should always use equals() method to compare reference types.\n System.out.println(\"JPY and YEN are equal by equals()\");\n }\n }", "public static void equalsDemo() {\n\n//\t\tSystem.out.printf(\"demo1 == demo2 = %s%n\", demo1 == demo2);\n//\t\tSystem.out.printf(\"demo2 == demo3 = %s%n\", demo2 == demo3);\n//\t\tSystem.out.printf(\"demo2.equals(demo3) = %s%n\", demo2.equals(demo3));\n//\t\tSystem.out.printf(\"%n\");\n\t}", "public boolean typeStringsEqual(String uti1, String uti2);", "private boolean m81840a(String str, String str2) {\n boolean isEmpty = TextUtils.isEmpty(str);\n boolean isEmpty2 = TextUtils.isEmpty(str2);\n if (isEmpty && isEmpty2) {\n return true;\n }\n if (!isEmpty && isEmpty2) {\n return false;\n }\n if (!isEmpty || isEmpty2) {\n return str.equals(str2);\n }\n return false;\n }", "@Test\n public void testEquals() {\n assertFalse(jesseOberstein.equals(nathanGoodman));\n assertTrue(kateHutchinson.equals(kateHutchinson));\n }", "@Override\n\tpublic PyObject __eq__(PyObject other) {\n\t\treturn shadowstr___eq__(other);\n\t}", "private void assertEquals(String t, String string) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tString s =\"abc\";\n\t\tString s1 = new String(\"abc\");\n\t\tString s3 = new String(\"abc\");\n\t\tString s2 = \"abc\";\nif(s1.equals(s3))\n\t\t\tSystem.out.println(\"true\");\n\t\telse\n\t\t\tSystem.out.println(\"false\");\n\t}", "public boolean isEqual(StringNum a, StringNum b) {\n\t\tif(a.getNumber().equalsIgnoreCase(b.getNumber())) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean equals(CharSequence a, CharSequence b) {\r\n\t\tif (a == b) return true;\r\n\t\tint length;\r\n\t\tif (a != null && b != null && (length = a.length()) == b.length()) {\r\n\t\t\tif (a instanceof String && b instanceof String) {\r\n\t\t\t\treturn a.equals(b);\r\n\t\t\t} else {\r\n\t\t\t\tfor (int i = 0; i < length; i++) {\r\n\t\t\t\t\tif (a.charAt(i) != b.charAt(i)) return false;\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean checkEquals(DomString other) {\n return other.checkEquals(str, (short) 0, len);\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tString s1= new String(\"Nikita\");\r\n\t\tString s2=\"Nikita\";\r\n\t\t\r\n\t\tboolean s = s1.equals(s2);\r\n\t\tSystem.out.println(s);\r\n\t\tSystem.out.println(s1.hashCode());\r\n\t\tSystem.out.println(s2.hashCode());\r\n\t\t\r\n\t\t\r\n\t\tif(s1==s2) {\r\n\t\t\tSystem.out.println(\"they are equal\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"they are unequal\");\r\n\t\t}\r\n\r\n\t}", "public boolean equals(Object m) \r\n\t{\n\t\tFilm m2 =(Film)m; \r\n\t\t/*Die if Bedingung prüft, ob die Einzelnen bestandteile gleich sind.\r\n\t\t * Titel muss mit .equals verglichen werden, weil Tiel String(Objekt) ist\r\n\t\t */\r\n\t\tif(this.titelDE.equals(m2.getTitelDE()) && this.titelEN.equals(m2.getTitelEN()) \r\n\t\t && this.laenge == m2.getLaenge() && this.jahr == m2.getJahr())\r\n\t\t \treturn true;\r\n\t\t\treturn false;\r\n\t}", "private boolean checkInCashe(String s) {\n return true;\n }", "@Test\n\tpublic void test_equals1() {\n\tTennisPlayer c1 = new TennisPlayer(11,\"Joe Tsonga\");\n\tTennisPlayer c2 = new TennisPlayer(11,\"Joe Tsonga\");\n\tassertTrue(c1.equals(c2));\n }", "@Test\n\tpublic void testEqualsVerdadeiro() {\n\t\t\n\t\tassertTrue(contato1.equals(contato3));\n\t}", "public static void main(String[] args) {\n\n\n String str1 = new String(\"abc\");\n String str2 = new String(\"abc\");\n\n System.out.println(str1 == str2);\n System.out.println(str1.equals(str2));\n\n }", "static boolean equal (String s1, String s2) {\r\n if (s1==errorSignature) return true;\r\n if (s2==errorSignature) return true;\r\n if (s1==null || s1.length()==0)\r\n return s2==null || s2.length()==0;\r\n return s1.equals (s2);\r\n }", "public static void main( String[] args )\r\n {\n String s1 = new String( \"hello\" ); // s1 is a copy of \"hello\"\r\n String s2 = \"goodbye\";\r\n String s3 = \"Happy Birthday\";\r\n String s4 = \"happy birthday\";\r\n\r\n System.out.printf(\"s1 = %s\\ns2 = %s\\ns3 = %s\\ns4 = %s\\n\\n\", s1, s2, s3, s4 );\r\n\r\n // test for equality with equals() method\r\n if ( s1.equals( \"hello\" ) ) // true\r\n System.out.println( \"s1 equals \\\"hello\\\"\" );\r\n else\r\n System.out.println( \"s1 does not equal \\\"hello\\\"\" );\r\n\r\n // test for equality with ==\r\n if ( s1 == \"hello\" ) // false; they are not the same object\r\n System.out.println( \"s1 is the same object as \\\"hello\\\"\" );\r\n else\r\n System.out.println( \"s1 is not the same object as \\\"hello\\\"\" );\r\n\r\n // test for equality (ignore case)\r\n if ( s3.equalsIgnoreCase( s4 ) ) // true\r\n System.out.printf( \"%s equals %s with case ignored\\n\", s3, s4 );\r\n else\r\n System.out.println( \"s3 does not equal s4\" );\r\n\r\n // test compareTo\r\n // the compareTo() method comparison is based on the Unicode value of each character in the string\r\n // if the strings are equal, the method returns 0\r\n\r\n System.out.printf(\"\\ns1.compareTo( s2 ) is %d\", s1.compareTo( s2 ) );\r\n System.out.printf(\"\\ns2.compareTo( s1 ) is %d\", s2.compareTo( s1 ) );\r\n System.out.printf(\"\\ns1.compareTo( s1 ) is %d\", s1.compareTo( s1 ) );\r\n System.out.printf(\"\\ns3.compareTo( s4 ) is %d\", s3.compareTo( s4 ) );\r\n System.out.printf(\"\\ns4.compareTo( s3 ) is %d\\n\\n\", s4.compareTo( s3 ) );\r\n\r\n // test regionMatches (case sensitive)\r\n if ( s3.regionMatches( 0, s4, 0, 5 ) )\r\n System.out.println(\"First 5 characters of s3 and s4 match\" );\r\n else\r\n System.out.println(\"First 5 characters of s3 and s4 do not match\" );\r\n\r\n // test regionMatches (ignore case)\r\n if ( s3.regionMatches( true, 0, s4, 0, 5 ) )\r\n System.out.println(\"First 5 characters of s3 and s4 match with case ignored\" );\r\n else\r\n System.out.println(\"First 5 characters of s3 and s4 do not match\" );\r\n }", "@Test\n\tpublic void testEqualityCheck() {\n\t\tadd(\"f(x)=x^3\");\n\t\tadd(\"g(x)=-x^3\");\n\t\tt(\"f==g\", \"false\");\n\t\tt(\"f!=g\", \"true\");\n\t\tt(\"f==-g\", \"true\");\n\t\tt(\"f!=-g\", \"false\");\n\t}", "private boolean m50391c(String str) {\n for (String equalsIgnoreCase : this.f30705A0) {\n if (str.equalsIgnoreCase(equalsIgnoreCase)) {\n return true;\n }\n }\n return false;\n }", "public static void main(String[] args) {\n\t\tString a = \"Programming\";\n\t\tString b = new String(\"Programming\");\n\t\tString c = \"Program\" + \"ming\";\n\t\t\n\t\tSystem.out.println(a == b);\n\t\tSystem.out.println(a == c);\n\t\tSystem.out.println(a.equals(b));\n\t\tSystem.out.println(a.equals(c));\n\t\tSystem.out.println(a.intern() == b.intern());\n\t\t\n\t}", "@Test\r\n public void testEqualChars(){\r\n boolean res1=offByOne.equalChars('c','b');\r\n assertTrue(\"should be true\",res1);\r\n boolean res2=offByOne.equalChars('a','c');\r\n assertFalse(\"should be false\",res2);\r\n }", "public static void main(String args[])\n {\n String s2 = \"Welcome\"; //new String (\"Welcome\"); // new operator\n \n \n String s1= new String(\"Welcome\");\n // String s2= new String(\"Welcome\");\n \n \n if(s1.equals(s2))\n {\n System.out.println(\"contents same\");\n }\n else\n {\n System.out.println(\"contents not same\");\n }\n \n if(s1==s2)\n {\n System.out.println(\"address same\");\n }\n else\n {\n System.out.println(\"address not same\");\n }\n \n \n \n }", "@Test\r\n public void testEquals() {\r\n Articulo art = new Articulo();\r\n articuloPrueba.setCodigo(1212);\r\n art.setCodigo(1212);\r\n boolean expResult = true;\r\n boolean result = articuloPrueba.equals(art);\r\n assertEquals(expResult, result);\r\n }", "@Test\n public void equalsOtherTest4() {\n assertFalse(device.equals(\"\"));\n }", "private boolean equalGenotypes(String g1, String g2){\n HashSet<String> gt1 = new HashSet (Arrays.asList( String.valueOf(g1.charAt(0)), String.valueOf(g1.charAt(1)) ));\n HashSet<String> gt2 = new HashSet (Arrays.asList( String.valueOf(g2.charAt(0)), String.valueOf(g2.charAt(1)) ));\n return gt1.equals(gt2);\n }", "@Test\n public void test_Contains() {\n System.out.println(\"Testing TracerIsotopes's contains(String checkString)\");\n String checkString = \"\";\n boolean expResult = false;\n boolean result = TracerIsotopes.contains(checkString);\n assertEquals(expResult, result);\n\n checkString=\"fractionMass\";\n result = TracerIsotopes.contains(checkString);\n assertEquals(expResult, result);\n \n checkString=\"concPb205t\";\n expResult=true;\n result = TracerIsotopes.contains(checkString);\n assertEquals(expResult, result); \n }", "@Test\n\tvoid testeEquals() \n\t{\n\t\tContato outro = new Contato(\"Matheus\", \"Gaudencio\", \"1234\");\n\t\tassertTrue(outro.equals(contatoBasico));\n\t}", "public static void main(String[] args) {\n\t\tString john = \"john\";\n\t\tString jon = new String(\"john\");\n\n\t\tSystem.out.println((john == jon) + \" \" + (john.equals(jon)));\n\t}", "@Override\n\tpublic boolean equal() {\n\t\treturn false;\n\t}", "private boolean m81839a(String str) {\n return C6969H.m41409d(\"G738BDC12AA\").equals(str) || C6969H.m41409d(\"G738BDC12AA39A528F61E\").equals(str);\n }", "@Test\n public void testEquals_3() {\n LOGGER.info(\"testEquals_3\");\n final AtomString atomString = new AtomString(\"Hello\");\n final Atom atom = null;\n final boolean actual = atomString.equals(atom);\n assertFalse(actual);\n }", "boolean comprovarCodi(String codi) {\r\n if(codi == id) {\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n }", "public static void main( String[] args )\n {\n String a = new String(\"as\");\n String b = \"as\";\n System.out.println(a == \"as\");\n System.out.println(b == \"as\");\n\n }", "public boolean isEquals() {\n long len = -1L;\n\n //1. check the lengths of the words\n for(S left : slp.getAxioms()) {\n if(len == -1L) {\n len = slp.length(left);\n }\n else {\n if(len != slp.length(left)) {\n return false;\n }\n }\n }\n\n // all words are the empty word\n if(len == 0) {\n return true;\n }\n\n // 2. the length are all equals and not zero => execute the recompression\n execute();\n\n S otherSymbol = null;\n boolean first = true;\n\n // 3. chech now if for all axioms X : |val(X)| = 1 and all val(X) are equals.\n for(S left : slp.getAxioms()) {\n if(first) {\n slp.length(left, true);\n first = false;\n }\n\n if(slp.length(left) != 1) {\n return false;\n }\n else {\n S symbol = slp.get(left, 1);\n if(otherSymbol == null) {\n otherSymbol = symbol;\n }\n\n if(!symbol.equals(otherSymbol)) {\n return false;\n }\n }\n }\n\n return true;\n }", "boolean equals(Identifier comparand);", "public boolean equals(Object other)\n {\n \t// if the *pointers* are the same, then by golly it must be the same object!\n \tif (this == other)\n \t\treturn true;\n \t\n \t// if the parameter is null or the two objects are not instances of the same class,\n \t// they can't be equal\n \telse if (other == null || this.getClass() != other.getClass())\n \t\treturn false;\n \t\n //Since this class is what the bag will use if it wants\n //to hold strings, we'll use the equals() method in the\n //String class to check for equality\n \telse if ((this.content).equals(((StringContent)other).content))\n return true;\n \t\n else return false;\n }", "@Test\n void equals1() {\n Student s1=new Student(\"emina\",\"milanovic\",18231);\n Student s2=new Student(\"emina\",\"milanovic\",18231);\n assertEquals(true,s1.equals(s2));\n }", "@Test\n\tpublic void test_equals1() {\n\tTvShow t1 = new TvShow(\"Sherlock\",\"BBC\");\n\tTvShow t2 = new TvShow(\"Sherlock\",\"BBC\");\n\tassertTrue(t1.equals(t2));\n }", "public boolean isNameEquals(String name) {\n\n return (_name.equalsIgnoreCase(name));//Checks not case sensitive\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tScanner sc= new Scanner(System.in);\r\n\t\tString a=sc.nextLine();\r\n\t\tString b=sc.nextLine();\r\n\t\tStringBuilder c= new StringBuilder(); //immutable\r\n\t\t\r\n\t c.append(a); //appending the string a in c \r\n\t \r\n\t\r\n\t\tc.reverse(); //reversing the string\r\n\t\t\r\n\t\r\n\r\n\t\tif(b.contentEquals(c)) //stringbuilder uses contentEquals \r\n\t\t{\r\n\t\t\tSystem.out.println(\"YES\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"NO\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "private static boolean equalsIgnoreCase(String inputOfCustomer) {\n\t\treturn false;\n\t}", "public static void main (String[]args){\n\t\t \r\n\t\tString s1= \"ratan\";\r\n\t\tString s2=\"anu\";\r\n\t\tString s3=\"ratan\";\r\n\t\tSystem.out.println(s1.equals(s2));\r\n\t\tSystem.out.println(s1.equals(s3));\r\n\t\tSystem.out.println(s3.equals(s2));\r\n\t\tSystem.out.println(\"Ratan\".equals(\"ratan\"));// ratan as a string or s1 is also work\r\n\t\tSystem.out.println(\"Ratan\".equalsIgnoreCase(s1));\r\n\t\t\r\n\t\t\r\n\t\t// Compareto ---------> return +value or -value\r\n\t\tSystem.out.println(s1.compareTo(s2));\r\n\t\tSystem.out.println(s1.compareTo(s3));\r\n\t\tSystem.out.println(s2.compareTo(s3));\r\n\t\t\r\n\t\tSystem.out.println(\"Ratan\".compareTo(\"ratan\"));// ratan or s1 also work as shown here\r\n\t\tSystem.out.println(\"Ratan\".compareToIgnoreCase(s1));\r\n\r\n}", "public static void main(String[] args) {\r\n\r\n\t\tString s1 = \"Welcome to testing world\";\r\n\t\tString s2 = \"Welcome to testing world...\";\r\n\t\t//using equals\r\n\t\tif (s1.equals(s2)) {\r\n\t\t\tSystem.out.println(\"Strings are equal\");\r\n\t\t} \r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Strings are not equal\");\r\n\t\t}\r\n\t\t\r\n\t}", "@ExposedMethod(type = MethodType.BINARY)\n\tfinal PyObject shadowstr___eq__(PyObject other) {\n\t\tPyObject result = testEqual(new PyString(getString()), other);\n\t\tif (result != Py.False) {\n\t\t\t// True, or null if str does not know how to compare with other (so we don't\n\t\t\t// either).\n\t\t\treturn result;\n\n\t\t} else if (targets.isEmpty()) {\n\t\t\t// We aren't going to be using our shadow string\n\t\t\treturn Py.False;\n\n\t\t} else {\n\t\t\t// Since we have targets, compare the shadow string with the other object.\n\t\t\tresult = testEqual(shadow, other);\n\t\t\tif (result == Py.True) {\n\t\t\t\t// It matches, so the result is true iff we are in a target context\n\t\t\t\treturn Py.newBoolean(isTarget());\n\t\t\t} else {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args){\n\t\tString s1=\"mohan\";\r\n\t\tString s2=\"mohan\";\r\n\t\t\r\n\t\tif(s1.equals(s2)) System.out.println(\"Two string objects has same hash value\");\r\n\t\telse System.out.println(\"Two Strings objects has different hash value\");\r\n\t\t\r\n\t\tif(s1==s2) System.out.println(\"s1 and s2 point to same Objects\");\r\n\t\telse System.out.println(\"s1 and s2 point to different Objects\");\r\n\t\t\r\n\t\tString a1 = new String(\"krish\");\r\n\t\tString a2 = new String(\"krish\");\r\n\t\t\r\n\t\tif(a1==a2 && a1.equals(a2)) \r\n\t\t\tSystem.out.println(\"a1 and a2 point to same strings object and has same value\");\r\n\t\telse if(a1!=a2 && a1.equals(a2))\r\n\t\t\tSystem.out.println(\"a1 and a2 point to different strings objects but have same value\");\r\n\t\telse if(a1!=a2 && !a1.equals(a2))\r\n\t\t\tSystem.out.println(\"a1 and a2 point to different strings objects and have different values\");\r\n\r\n\t\tint i1=10;\r\n\t\tint i2=10;\r\n\t\t\r\n\t\tif(i1==i2) System.out.println(\"Two variable have same value w.r.t ==\");\r\n\t\telse System.out.println(\"values different\");\r\n\r\n\t\tif(new Integer(i1).equals(new Integer(i1))) {\r\n\t\t\tSystem.out.println(\"Two Integer vars pointing to same object\");\r\n\t\t}\r\n\t\tInteger I1 = new Integer(i1);\r\n\t\tInteger I2 = new Integer(i2);\r\n\t\t//For integer Objects \"values\" are compared instead of references. Integer class overrides equals() method from Object class\r\n\t\tif(I1.equals(I2)) {\r\n\t\t\tSystem.out.println(\"Two Integer Objects are same\");\r\n\t\t} else System.out.println(\"Not Same Objects\");\r\n\t\t\r\n\t\tif(I1==I2) System.out.println(\"Two Objects same(referencing same w.r.t == operator\");\r\n\t\telse System.out.println(\"Two Objects Different w.r.t == operator\");\r\n\t}", "public void compareAddress()\n {\n Address a = new Address(\"Amapolas\",1500,\"Providencia\",\"Santiago\");\n Address b = new Address(\"amapolas\",1500, \"providencia\",\"santiago\");\n Address c = new Address(\"Hernando Aguirre\",1133,\"Providencia\", \"Santiago\");\n \n boolean d = a.equals(b); \n }", "boolean sameName(String a, String b){\n\t\tif(a.length()!=b.length()){\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tfor(int i=0;i<a.length();i++){\r\n\t\t\tif(a.charAt(i)!=b.charAt(i)){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Test\n public void testEqualChar3() {\n char a = '%';\n char b = '!';\n char c = '\\t';\n char d = '\\n';\n\n boolean result1 = offByOne.equalChars(a, b);\n boolean result2 = offByOne.equalChars(c, d);\n\n assertFalse(result1);\n assertTrue(result2);\n }", "public boolean equals(Object obj) {\n if (obj == null)\n return false;\n if (EIdentifierString.class.isAssignableFrom(obj.getClass())) {\n EIdentifierString another = (EIdentifierString) obj;\n\n // =========================================================\n // Compare properties of 'this' class to the 'another' class\n // =========================================================\n // Compare denotation\n if (!this.denotation.equals(another.denotation)) {\n return false;\n }\n // Compare their parents\n return super.equals(obj);\n }\n return false;\n }", "public static void main(String[] args) {\n Human h = new Human(\"Abc\",30);\n System.out.println(h.getAge());\n System.out.println(h.getName());\n\n Human h1 = new Human(\"Abc\",30);\n System.out.println(h.equals(h1));\n\n System.out.println(h);\n\n String a = \"Hello\";\n String b = \"World\";\n if(a.equals(b)){\n\n }\n\n }", "@Override\n public boolean equals(Object obj) {\n if (obj == null || !(obj instanceof SafeString)) {\n return false;\n }\n SafeString other = (SafeString) obj;\n return other.mString.equals(mString);\n }", "public boolean isCorrect(String str);", "@JRubyMethod(name = \"==\", required = 1)\n public static IRubyObject op_equal(ThreadContext ctx, IRubyObject self, IRubyObject oth) {\n RubyString str1, str2;\n RubyModule instance = (RubyModule)self.getRuntime().getModule(\"Digest\").getConstantAt(\"Instance\");\n if (oth.getMetaClass().getRealClass().hasModuleInHierarchy(instance)) {\n str1 = digest(ctx, self, null).convertToString();\n str2 = digest(ctx, oth, null).convertToString();\n } else {\n str1 = to_s(ctx, self).convertToString();\n str2 = oth.convertToString();\n }\n boolean ret = str1.length().eql(str2.length()) && (str1.eql(str2));\n return ret ? self.getRuntime().getTrue() : self.getRuntime().getFalse();\n }", "public abstract boolean mo70724g(String str);", "public Object visitEqualityExpression(GNode n) {\n Object a, b, result;\n String op;\n boolean mydostring = dostring;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(2));\n op = n.getString(1);\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n if (op.equals(\"==\")) {\n result = ((Long) a).equals((Long) b);\n }\n else if (op.equals(\"!=\")) {\n result = ! ((Long) a).equals((Long) b);\n }\n else {\n result = \"\";\n }\n }\n else {\n String sa, sb;\n \n if (a instanceof String) {\n sa = (String) a;\n }\n else if (a instanceof Long) {\n sa = ((Long) a).toString();\n }\n else {\n return null;\n }\n \n if (b instanceof String) {\n sb = (String) b;\n }\n else if (b instanceof Long) {\n sb = ((Long) b).toString();\n }\n else {\n return null;\n }\n \n if (op.equals(\"==\") && sa.equals(sb)) {\n result = mydostring ? \"1\" : B.one();\n }\n else {\n result = parens(sa) + \" \" + op + \" \" + parens(sb);\n }\n }\n \n return result;\n }", "public void testCompareStrings() {\n\t\tString one = \"Hello\";\n\t\tString two = \"in the house\";\n\t\t//Gro▀schreibung vor Kleinschreibung\n\t\tassertTrue(comp.compareStrings(one, two) < 0);\n\t\tassertEquals(0, comp.compareStrings(one, one));\n\t\tassertTrue(comp.compareStrings(two, one) > 0);\n\t}", "public static void main(String[] args) {\n\t\tString s = new String(\"abc\");\r\n\t\tSystem.out.println(s.hashCode());\r\n\t\tCharacter a = 'a';\r\n\t\tCharacter b = 'b';\r\n\t\tCharacter c = 'c';\r\n\t\tint i = a;\r\n\t\tSystem.out.println(i);\r\n\t\tSystem.out.println(new Integer(b));\r\n\t\tSystem.out.println(new Integer(c));\r\n\t\tSystem.out.println(97*31*31 + 98*31 + 99);\r\n\t\t\r\n\t\tSystem.out.println(\"---------------------------\");\r\n\t\t\r\n\t\tString s3=s1+s2;\r\n\t\tString s4=\"abcdef\";\r\n\t\tSystem.out.println(s3==s4);\r\n\t\t\r\n\t\tSystem.out.println(\"---------------------------\");\r\n\t\t\r\n\t\tString sa = \"a\";\r\n\t\tString sb = \"b\";\r\n\t\tsb = sa + sb;\r\n\t\tString ab = \"a\" + \"b\";\r\n\t\tString ss = \"ab\";\r\n\t\tSystem.out.println(ab == sb);\r\n\t\tSystem.out.println(ab == ss);\r\n\t\t\r\n\t\tSystem.out.println(String.class.getSimpleName());\r\n\t\t\r\n\t\tString k0=\"kvill\";\r\n\t\tString k1=\"kvill\";\r\n\t\tString k2=\"kv\" + \"ill\";\r\n\t\tSystem.out.println( k0==k1 );\r\n\t\tSystem.out.println( k0==k2 );\r\n\t\t\r\n\t}", "public static boolean equal(final String a, final String b) {\n boolean result;\n if (a == null) {\n result = b == null;\n } else {\n result = a.equals(b);\n }\n return result;\n }", "@Override\r\n public boolean equals(Object other) {\r\n if (other instanceof Song == false)\r\n return false;\r\n return this.toString().equals(other.toString());\r\n }", "public static void main(String[] args) {\n\t\tString s1 =\"Yashodhar\";//String by java string literal\r\n\t\tchar ch[] ={'y','a','s','h','o','d','h','a','r','.','s'};\r\n\t\tString s3 = new String(ch);//Creating java to string\r\n\t\tString s2= new String(\"Yash\");//creating java string by new keyword \r\n\t\tSystem.out.println(s1);\r\n\t\tSystem.out.println(s2);\r\n\t\tSystem.out.println(s3);\r\n\t\t\r\n\t\t//Immutable String in Java(Can not changed)\r\n\t\tString s4= \"YASHODSHR\";\r\n\t\ts4 =s4.concat( \"Suvarna\");\r\n\t\tSystem.out.println(\"Immutable Strin=== \"+s4);\r\n\t\t\r\n\t\t//Compare two Strings using equals\r\n\t\tString s5= \"Yash\";\t\t\r\n\t\tString s6= \"YASH\";\r\n\t\tSystem.out.println(\"Campare equal \"+s5.equals(s6));\r\n\t\tSystem.out.println(s5.equalsIgnoreCase(s6));\r\n\t\t\r\n\t\t\t\r\n\t\t String s7=\"Sachin\"; \r\n\t\t String s8=\"Sachin\"; \r\n\t\t String s9=new String(\"Sachin\"); \r\n\t\t System.out.println(s7==s8); \r\n\t\t System.out.println(s7==s9);\r\n\t\t \r\n\t\t String s10 = \"YAsh\";\r\n\t\t String s11 = \"Yash\";\r\n\t\t String s12 = new String(\"yash\");\r\n\t\t System.out.println(s10.compareTo(s11));\r\n\t\t System.out.println(s11.compareTo(s12));\r\n\t\t \r\n\t\t //SubStrings\t\t \r\n\t\t String s13=\"SachinTendulkar\"; \r\n\t\t System.out.println(s13.substring(6));\r\n\t\t System.out.println(s13.substring(0,3));\r\n\t\t \r\n\t\t System.out.println(s10.toLowerCase());\r\n\t\t System.out.println(s10.toUpperCase());\r\n\t\t System.out.println(s10.trim());//remove white space\r\n\t\t System.out.println(s7.startsWith(\"Sa\"));\r\n\t\t System.out.println(s7.endsWith(\"n\"));\r\n\t\t System.out.println(s7.charAt(4));\r\n\t\t System.out.println(s7.length());\r\n\r\n\r\n\t\t String Sreplace = s10.replace(\"Y\",\"A\");\r\n\t\t System.out.println(Sreplace);\r\n\t\t \r\n\t\t System.out.print(\"String Buffer\");\r\n\t\t StringBuffer sb = new StringBuffer(\"Hello\");\r\n\t\t sb.append(\"JavaTpoint\");\r\n\t\t sb.insert(1,\"JavaTpoint\");\r\n\t\t sb.replace(1, 5, \"JavaTpoint\");\r\n\t\t sb.delete(1, 3);\r\n\t\t sb.reverse();\r\n\t\t System.out.println(\" \"+sb);\r\n\t\t \r\n\t\t String t1 = \"Wexos Informatica Bangalore\";\r\n\t\t System.out.println(t1.contains(\"Informatica\"));\r\n\t\t System.out.println(t1.contains(\"Wexos\"));\r\n\t\t System.out.println(t1.contains(\"wexos\"));\r\n\t\t \r\n\t\t \r\n\t\t String name = \"Yashodhar\";\r\n\t\t String sf1 = String.format(name);\r\n\t\t String sf2= String .format(\"Value of %f\", 334.4);\r\n\t\t String sf3 = String.format(\"Value of % 43.6f\", 333.33);\r\n\t\t \t\t\t \r\n\t\t \r\n\t\t System.out.println(sf1);\r\n\t\t System.out.println(sf2);\r\n\t\t System.out.println(sf3);\r\n\t\t \r\n\t\t String m1 = \"ABCDEF\";\r\n\t\t byte[] brr = m1.getBytes();\r\n\t\t for(int i=1;i<brr.length;i++)\r\n\t\t {\r\n\t\t System.out.println(brr[i]);\r\n\t\t }\r\n\t\t \r\n\t\t String s16 = \"\";\r\n\t\t System.out.println(s16.isEmpty());\r\n\t\t System.out.println(m1.isEmpty());\r\n\t\t \r\n\t\t String s17 =String.join(\"Welcome \", \"To\",\"Wexos Infomatica\");\r\n\t\tSystem.out.println(s17);\r\n\t\t \r\n \r\n\t}", "public static Boolean isEquals(String object1, String object2) {\n if (object1.equalsIgnoreCase(object2)) {\n return true;\n } else if (object1.equalsIgnoreCase(null) && object2.equalsIgnoreCase(null)) {\n return true;\n } else if (object1 == null && object2.equalsIgnoreCase(\"1\")) {\n return false;\n } else if (object1.equalsIgnoreCase(null) && !(object2.equalsIgnoreCase(null))){\n return false;\n }\n return false;\n\n }", "public boolean cekKeberadaan(String data){\n String olah = data.substring(0, 2);\n boolean hasil = true;\n int col = matrixHasil[0].length;\n for(int a=0; a<matrixHasil.length; a++){\n for(int b=0; b<col; b++){\n String dataMatrixHasil = matrixHasil[a][b].substring(0, 2);\n if(dataMatrixHasil.equals(olah)){\n hasil = true;\n }\n else{\n hasil = false;\n }\n }\n }\n return hasil;\n }", "@Override\r\n\t\t\tpublic boolean test(String t) {\n\t\t\t\treturn t.equalsIgnoreCase(\"JAVA\");\r\n\t\t\t}", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String napis1 = scanner.nextLine();\n String napis2 = scanner.nextLine();\n napis1=napis1.replace(\" \",\"\");\n napis2=napis2.replace(\" \",\"\");\n // System.out.println(napis1);\n //System.out.println(napis2);\n // boolean czyRowne = napis1.equals(napis2);\n System.out.println(napis1.equals(napis2));\n }", "public boolean equals(java.lang.Object r2) {\n /*\n r1 = this;\n if (r1 == r2) goto L_0x0015\n boolean r0 = r2 instanceof com.bamtechmedia.dominguez.about.p052r.p053i.C2327c\n if (r0 == 0) goto L_0x0013\n com.bamtechmedia.dominguez.about.r.i.c r2 = (com.bamtechmedia.dominguez.about.p052r.p053i.C2327c) r2\n java.lang.String r0 = r1.f6488c\n java.lang.String r2 = r2.f6488c\n boolean r2 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r2)\n if (r2 == 0) goto L_0x0013\n goto L_0x0015\n L_0x0013:\n r2 = 0\n return r2\n L_0x0015:\n r2 = 1\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bamtechmedia.dominguez.about.p052r.p053i.C2327c.equals(java.lang.Object):boolean\");\n }" ]
[ "0.7412281", "0.7091073", "0.69584084", "0.6954984", "0.69121486", "0.6902599", "0.67455864", "0.6742425", "0.6724186", "0.66883075", "0.66879046", "0.66711766", "0.66343576", "0.66252846", "0.65993774", "0.65952605", "0.659484", "0.65945435", "0.65878266", "0.65743893", "0.656715", "0.6524261", "0.65206856", "0.65163606", "0.6495348", "0.6491071", "0.64848554", "0.6470097", "0.6465083", "0.64565796", "0.6446054", "0.64280236", "0.6423784", "0.6402165", "0.6396159", "0.6392423", "0.63870424", "0.6372426", "0.635415", "0.63474923", "0.6339825", "0.62974596", "0.62886167", "0.6277574", "0.627415", "0.6257214", "0.62567866", "0.6233691", "0.6206267", "0.6200499", "0.61896306", "0.61750686", "0.61580133", "0.6152018", "0.61216974", "0.61198324", "0.6094949", "0.6082479", "0.60800374", "0.6078925", "0.6054488", "0.60390514", "0.6038329", "0.6029077", "0.60272473", "0.60227364", "0.6017894", "0.60137314", "0.60122156", "0.59926134", "0.5991813", "0.598142", "0.5977796", "0.59752905", "0.5958306", "0.5950386", "0.5937937", "0.5935257", "0.5917782", "0.5916151", "0.5914583", "0.5901206", "0.5893626", "0.5892759", "0.5892022", "0.5876254", "0.58748555", "0.58740973", "0.5869084", "0.5868037", "0.58647925", "0.58538735", "0.5853792", "0.58535004", "0.58521765", "0.58469266", "0.5838706", "0.5834313", "0.5828255", "0.5817328", "0.58120024" ]
0.0
-1
nomor 04 au aag km = aku sayang kamu
public static void Print04(){ Scanner input = new Scanner(System.in); System.out.println(" 4 . MASUKKAN KALIMAT/KATA : "); String inputString = input.nextLine(); String[] inputArray = inputString.split( " "); for (int i = 0; i < inputArray.length; i++) { char[] charArray = inputArray[i].toCharArray(); if(i % 2 == 0 ){ for (int j = 0; j < charArray.length; j++) { if( j % 2 == 0) { System.out.print(charArray[j]); } else { System.out.print("*"); } } } else { for (int j = 0; j < charArray.length; j++) { if(j % 2 == 0) { System.out.print("*"); } else { System.out.print(charArray[j]); } } } System.out.print(" "); } System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "bdm mo1784a(akh akh);", "dkj mo4367a(dkk dkk);", "private static int num_konsonan(String word) {\n int i;\n int jumlah_konsonan = 0;\n\n for (i = 0; i < word.length(); i++) {\n if (word.charAt(i) != 'a' &&\n word.charAt(i) != 'i' &&\n word.charAt(i) != 'u' &&\n word.charAt(i) != 'e' &&\n word.charAt(i) != 'o') {\n jumlah_konsonan++;\n }\n }\n return jumlah_konsonan;\n }", "private static int num_vokal(String word) {\n int i;\n int jumlah_vokal = 0;\n\n for (i = 0; i < word.length(); i++) {\n if (word.charAt(i) == 'a' ||\n word.charAt(i) == 'i' ||\n word.charAt(i) == 'u' ||\n word.charAt(i) == 'e' ||\n word.charAt(i) == 'o') {\n jumlah_vokal++;\n }\n }\n return jumlah_vokal;\n }", "public static void main(String[] args) {\n\n String text= \"merhaba arkadaslar \";\n System.out.println( \"1. bolum =\" + text .substring(1,5));// 1 nolu indexten 5 e kadar. 5 dahil degil\n System.out.println(\"2. bolum =\"+ text.substring(0,3));\n System.out.println(\"3. bolum =\"+ text.substring(4));// verilen indexten sonun akadar al\n\n String strAlinan= text.substring(0,3);\n\n\n\n\n\n }", "public void printNo(String numar)\r\n {\r\n //toate verificarile posibile pentru a afisa ce trebuie\r\n //mi-e lene sa scriu la fiecare in parte, daca vrei ti le explic la telefon\r\n if(Character.getNumericValue(numar.charAt(0)) ==0 && Character.getNumericValue(numar.charAt(1)) == 0){\r\n System.out.print(v[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n else{\r\n if(Character.getNumericValue(numar.charAt(0)) > 0){\r\n System.out.print(v[Character.getNumericValue(numar.charAt(0))] + \" hundread \");\r\n }\r\n if(Character.getNumericValue(numar.charAt(1)) == 1){\r\n System.out.print(v1[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n else if (Character.getNumericValue(numar.charAt(1)) > 1 && Character.getNumericValue(numar.charAt(2)) > 0){\r\n System.out.print(v2[Character.getNumericValue(numar.charAt(1)) - 2] + v[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n else if(Character.getNumericValue(numar.charAt(2)) == 0 && Character.getNumericValue(numar.charAt(1)) > 1){\r\n System.out.print(v2[Character.getNumericValue(numar.charAt(1)) - 2] + \" \");\r\n }\r\n if(Character.getNumericValue(numar.charAt(1)) == 0 && Character.getNumericValue(numar.charAt(2)) > 0){\r\n System.out.print(v[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n }\r\n }", "private static String lettre2Chiffre1(String n) {\n\t\tString c= new String() ;\n\t\tswitch(n) {\n\t\tcase \"A\": case \"J\":\n\t\t\tc=\"1\";\n\t\t\treturn c;\n\t\tcase \"B\": case \"K\": case \"S\":\n\t\t\tc=\"2\";\n\t\t\treturn c;\n\t\tcase \"C\": case\"L\": case \"T\":\n\t\t\tc=\"3\";\n\t\t\treturn c;\n\t\tcase \"D\": case \"M\": case \"U\":\n\t\t\tc=\"4\";\n\t\t\treturn c;\n\t\tcase \"E\": case \"N\": case \"V\":\n\t\t\tc=\"5\";\n\t\t\treturn c;\n\t\tcase \"F\": case \"O\": case \"W\":\n\t\t\tc=\"6\";\n\t\t\treturn c;\n\t\tcase \"G\": case \"P\": case \"X\":\n\t\t\tc=\"7\";\n\t\t\treturn c;\n\t\tcase \"H\": case \"Q\": case \"Y\":\n\t\t\tc=\"8\";\n\t\t\treturn c;\n\t\tcase \"I\": case \"R\": case \"Z\":\n\t\t\tc=\"4\";\n\t\t\treturn c;\n\t\t\t\n\t\t}\n\t\treturn c;\n\t\t\n\t\n\t\t}", "public static String dtrmn(int number) {\n\t\t\n\t\tString letter = \"\";\n\t\t\n\t\tint cl = number / 100;\n\t\tif (cl != 9 && cl != 4) {\n\t\t\t\n\t\t\tif (cl < 4) {\n\t\t\t\t\n\t\t\t\tfor(int i = 1; i <= cl; i++) {\n\t\t\t\t\tletter = letter + \"C\";\n\t\t\t\t}\n\t\t\t} else if (cl < 9 && cl > 4) {\n\t\t\t\t\n\t\t\t\tletter = letter + \"D\";\n\t\t\t\tfor (int i = 1; i <= cl - 5; i++) {\n\t\t\t\t\tletter = letter + \"C\";\n\t\t\t\t}\n\t\t\t} else if(cl == 10) { \n\t\t\t\t\n\t\t\t\tletter = letter + \"M\";\n\t\t\t}\n\t\t} else if (cl == 4) {\n\t\t\t\n\t\t\tletter = letter + \"CD\";\n\t\t\t\n\t\t} else if (cl == 9) {\n\t\t\t\n\t\t\tletter = letter + \"CM\";\n\t\t}\n\t\t\n\t\tint cl1 = (number % 100)/10;\n\t\tif (cl1 != 9 && cl1 != 4) {\n\t\t\t\n\t\t\tif (cl1 < 4) {\n\t\t\t\t\n\t\t\t\tfor (int i = 1; i <= cl1; i++) {\n\t\t\t\t\tletter = letter + \"X\";\n\t\t\t\t}\n\t\t\t} else if (cl1 < 9 && cl1 > 4) {\n\t\t\t\tletter = letter + \"L\";\n\t\t\t\t\n\t\t\t\tfor (int i = 1; i <= cl1 -5; i++) {\n\t\t\t\t\tletter = letter + \"X\";\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t} else if (cl1 == 4) {\n\t\t\tletter = letter + \"XL\";\n\t\t} else if (cl1 == 9) {\n\t\t\tletter = letter + \"XC\";\n\t\t}\n\t\t\n\t\tint cl2 = (number % 100)%10;\n\t\t\n\t\tif (cl2 != 9 && cl2 != 4) {\n\t\t\t\n\t\t\tif (cl2 < 4) {\n\t\t\t\tfor (int i = 1; i <= cl2; i++) {\n\t\t\t\t\tletter = letter + \"I\";\n\t\t\t\t}\n\t\t\t} else if (cl2 < 9 && cl2 > 4) {\n\t\t\t\t\n\t\t\t\tletter = letter + \"V\";\n\t\t\t\tfor (int i = 1; i <= cl2-5; i++) {\n\t\t\t\t\tletter = letter + \"I\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} else if (cl2 == 4) {\n\t\t\tletter = letter +\"IV\";\n\t\t} else if (cl2 == 9) {\n\t\t\tletter = letter + \"IX\";\n\t\t}\n\t\treturn letter;\n\t}", "public abstract C0690a mo9258k(String str);", "static String cetak_nama1() {\n return \"Nama Saya : Aprianto\";\r\n }", "public static String primeraMayus(String s){\n\t\treturn s.substring(0, 1).toUpperCase() + s.substring(1);\n\t}", "private static final int edu (StringBuffer buf, long mksa, int option) {\n\t\tint len0 = buf.length();\n\t\tint i, e, o, xff;\n\t\tint nu=0; \n\t\tboolean sep = false;\n\t\tlong m;\n\n\t\t/* Remove the 'log' or 'mag[]' part */\n\t\tif ((mksa&_log) != 0) {\n\t\t\tmksa &= ~_log;\n\t\t\tif ((mksa&_mag) != 0) mksa &= ~_mag;\n\t\t}\n\n\t\t/* Check unitless -- edited as empty string */\n\t\tif (mksa == underScore) return(0);\n\n\t\t/* Find the best symbol for the physical dimension */\n\t\tif (option > 0) {\n\t\t\tnu = (mksa&_mag) == 0 ? 0 : 1;\n\t\t\tfor (m=(mksa<<8)>>8; m!=0; m >>>= 8) {\n\t\t\t\tif ((m&0xff) != _e0 ) nu++ ;\n\t\t\t}\n\n\t\t\t/* Find whether this number corresponds to a composed unit */\n\t\t\tfor (i=0; i<uDef.length; i++) {\n\t\t\t\tif (uDef[i].mksa != mksa) continue;\n\t\t\t\tif (uDef[i].fact != 1) continue;\n\t\t\t\tbuf.append(uDef[i].symb) ;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// A basic unit need no explanation \n\t\t\tif (nu == 1) return(buf.length() - len0) ;\n\n\t\t\t// Add the explanation in MKSA within parenthesis\n\t\t\tif (buf.length() != len0) buf.append(\" [\") ;\n\t\t\telse nu = 0;\t// nu used as an indicator to add the ) \n\t\t}\n\n\t\to = _m0;\t// Zero power of magnitude\n\t\txff = 7;\t// Mask for magnitude\n\t\tfor (i=0; i<8; i++) {\n\t\t\te = (int)((mksa>>>(56-(i<<3)))&xff) - o;\n\t\t\to = _e0 ;\t// Other units: the mean is _e0 \n\t\t\txff = 0xff;\t// Other units\n\t\t\tif (e == 0) continue;\n\t\t\tif (sep) buf.append(\".\"); sep = true;\n\t\t\tbuf.append(MKSA[i]);\n\t\t\tif (e == 1) continue;\n\t\t\tif (e>0) buf.append(\"+\") ;\n\t\t\tbuf.append(e) ;\n\t\t}\n\t\tif (nu>0) buf.append(\"]\");\n\t\treturn(buf.length() - len0) ;\n\t}", "String mo2801a(String str);", "private String getMillones(String numero) {\n String miles = numero.substring(numero.length() - 6);\r\n //se obtiene los millones\r\n String millon = numero.substring(0, numero.length() - 6);\r\n String n = \"\";\r\n if (millon.length() > 1) {\r\n n = getCentenas(millon) + \"millones \";\r\n } else {\r\n n = getUnidades(millon) + \"millon \";\r\n }\r\n return n + getMiles(miles);\r\n }", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n String word = \"Tenet\";\n String word3 = \"tenet\";\n System.out.println(\"word \" + word);\n word.toLowerCase(); //porównanie bez wielkosci znakow\n //charAt(0) - zero,\n String[] Tablica = new String[word.length()];\n for (int i = 0; i < word.length(); i++) {\n Tablica[i] = String.valueOf(word.charAt(i));\n }\n String word2 = \"\";\n\n for (int i = (word.length() - 1); i >= 0; i--) {\n //System.out.print(Tablica[i]);\n word2 = word2 + Tablica[i];\n }\n //System.out.println();\n System.out.println(\"word 2 \" + word2);\n System.out.println(\"word 3 \" + word3);\n\n System.out.print(\"word 3 i word 2 \");\n if (word3.toLowerCase().equals(word2.toLowerCase())) {\n System.out.println(\"jest palidronem\");\n } else {\n System.out.println(\"nie jest palidronem\");\n }\n\n//koniec\n\n }", "private String Interpretar(String num) {\r\n\t\tif(num.length() > 3)\r\n\t\t\treturn \"\";\r\n\t\tString salida=\"\";\r\n\t\t\r\n\t\tif(Dataposi(num,2) != 0)\r\n\t\t\tsalida = Centenas[Dataposi(num,2)-1];\r\n\t\t\r\n\t\tint k = Integer.parseInt(String.valueOf(Dataposi(num,1))+String.valueOf(Dataposi(num,0)));\r\n\r\n\t\tif(k <= 20)\r\n\t\t\tsalida += Numero[k];\r\n\t\telse {\r\n\t\t\tif(k > 30 && Dataposi(num,0) != 0)\r\n\t\t\t\tsalida += Decenas[Dataposi(num,1)-2] + \"Y \" + Numero[Dataposi(num,0)];\r\n\t\t\telse\r\n\t\t\t\tsalida += Decenas[Dataposi(num,1)-2] + Numero[Dataposi(num,0)];\r\n\t\t}\r\n\t\t//Caso especial con el 100\r\n\t\tif(Dataposi(num,2) == 1 && k == 0)\r\n\t\t\tsalida=\"CIEN\";\r\n\t\t\r\n\t\treturn salida;\r\n\t}", "public void hitunganRule4(){\n penebaranBibitBanyak = 1900;\r\n hariPanenLama = 110;\r\n \r\n //menentukan niu bibit\r\n nBibit = (penebaranBibitBanyak - 1500) / (3000 - 1500);\r\n \r\n //menentukan niu hari panen sedang\r\n if ((hariPanenLama >=80) && (hariPanenLama <=120)) {\r\n nPanen = (hariPanenLama - 100) / (180 - 100);\r\n }\r\n \r\n //tentukan alpha predikat (karena grafik segitiga)\r\n if (nBibit < nPanen) {\r\n a4 = nBibit;\r\n }else if (nBibit > nPanen) {\r\n a4 = nPanen;\r\n }\r\n \r\n //tentukan Z3\r\n z4 = (penebaranBibitBanyak + hariPanenLama) * 500;\r\n System.out.println(\"a4 = \" + String.valueOf(a4));\r\n System.out.println(\"z4 = \" + String.valueOf(z4));\r\n }", "public void Jomijoma()\n {\n System.out.println(\"Ami dadar jomi joma paya geci\");\n }", "public void ektypwsiFarmakou() {\n\t\t// Elegxw an yparxoun farmaka\n\t\tif(numOfMedicine != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR MEDICINE No.\" + (i+1) + \":\");\n\t\t\t\tmedicine[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMA FARMAKA PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "String mo21078i();", "public void anazitisiSintagisVaseiGiatrou() {\n\t\tString doctorName = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tdoctorName = sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \"); // Zitaw apo ton xrhsth na mou dwsei to onoma tou giatrou pou exei grapsei thn sintagh pou epithumei\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tif(doctorName.equals(prescription[i].getDoctorLname())) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou exei grapsei o giatros\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t// Emfanizw thn/tis sintagh/sintages pou exoun graftei apo ton sygkekrimeno giatro\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON IATRO ME EPWNYMO: \" + doctorName);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "static String m33125a(String name) {\n StringBuilder fieldNameBuilder = new StringBuilder();\n int index = 0;\n char firstCharacter = name.charAt(0);\n int length = name.length();\n while (index < length - 1 && !Character.isLetter(firstCharacter)) {\n fieldNameBuilder.append(firstCharacter);\n index++;\n firstCharacter = name.charAt(index);\n }\n if (Character.isUpperCase(firstCharacter)) {\n return name;\n }\n fieldNameBuilder.append(m33124a(Character.toUpperCase(firstCharacter), name, index + 1));\n return fieldNameBuilder.toString();\n }", "private int patikrinimas(String z) {\n int result = 0;\n for (int i = 0; i < z.length(); i++) {\n if (z.charAt(i) == 'a') {\n result++;\n }\n }\n System.out.println(\"Ivestas tekstas turi simboliu a. Ju suma: \" + result);\n return result;\n }", "public static void main(String[] args) {\n Pasien Dam = new Pasien(\"Puspaningsyas\");\r\n Dam.setTanggalLahir(1974, 1, 12);\r\n// String str = Dam.getNama();\r\n \r\n \r\n\r\n System.out.println(\"Umur = \" + Dam.getUsia());\r\n Dam.NomorRekamMedis();\r\n // System.out.println(str.substring(0, 3));\r\n\r\n// Pasien Dam2 = new Pasien(\"Dam\");\r\n// Dam2.setTanggalLahir(1999,3,13);\r\n// System.out.println(\"Umur = \" +Dam2.getUsia());\r\n }", "public String kursIndonesia(double nominal){\n Locale localeID = new Locale(\"in\",\"ID\");\n NumberFormat formatRupiah = NumberFormat.getCurrencyInstance(localeID);\n String idnNominal = formatRupiah.format(nominal);\n return idnNominal;\n\n\n }", "String getVorlesungKennung();", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "public String kalkulatu() {\n\t\tString emaitza = \"\";\n\t\tDouble d = 0.0;\n\t\ttry {\n\t\t\td = Double.parseDouble(et_sarrera.getText().toString());\n\t\t} catch (NumberFormatException e) {\n\t\t\tet_sarrera.setText(\"0\");\n\t\t}\n\t\tif (st_in.compareTo(\"m\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1000.0);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 100.0);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1000.0);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1609.344);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 0.0254);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"km\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1000.0);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 100000.0);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1000000.0);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1.609344);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 0.0000254);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"cm\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 100000.0);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 100.0);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 10.0);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 160934.4);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 2.54);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"mm\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1000000.0);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1000.0);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 10.0);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1609344);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 25.4);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"ml\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1.609344);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1609.344);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 160934.4);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1609344);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 0.000015782828);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"inch\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 0.0000254);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 0.0254);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 2.54);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 25.4);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 0.000015782828);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t}\n\t\t}\n\t\treturn emaitza;\n\t}", "public String cekPengulangan(String kata) throws IOException{\n String hasil=\"\";\n if(cekUlangSemu(kata)){\n return kata+\" kata ulang semu \";\n }\n if(kata.contains(\"-\")){\n String[] pecah = kata.split(\"-\");\n String depan = pecah[0];\n String belakang = pecah[1];\n ArrayList<String> depanList = new ArrayList<String>();\n ArrayList<String> belakangList = new ArrayList<String>();\n if(!depan.equals(\"\")){\n depanList.addAll(morpParser.cekBerimbuhan(depan, 0));\n }\n if(!belakang.equals(\"\")){\n belakangList.addAll(morpParser.cekBerimbuhan(belakang, 0));\n }\n for(int i = 0; i < depanList.size(); i++){\n for(int j = 0; j < belakangList.size(); j++){\n if(depanList.get(i).equals(belakangList.get(j))){\n return depan+\" kata ulang penuh \";\n }\n }\n }\n if(depan.equals(belakang)){\n return depan+\" kata ulang penuh \";\n }\n char[] isiCharDepan = depan.toCharArray();\n char[] isiCharBelakang = belakang.toCharArray();\n boolean[] sama = new boolean[isiCharDepan.length];\n int jumlahSama=0;\n int jumlahBeda=0;\n for(int i =0;i<sama.length;i++){\n if(isiCharDepan[i]==isiCharBelakang[i]){\n sama[i]=true;\n jumlahSama++;\n }\n else{\n sama[i]=false;\n jumlahBeda++;\n }\n }\n \n if(jumlahBeda<jumlahSama && isiCharDepan.length==isiCharBelakang.length){\n return depan+\" kata ulang berubah bunyi \";\n }\n \n \n }\n else{\n if(kata.charAt(0)==kata.charAt(2)&&kata.charAt(1)=='e'){\n if((kata.charAt(0)=='j'||kata.charAt(0)=='t')&&!kata.endsWith(\"an\")){\n return kata.substring(2)+\" kata ulang sebagian \";\n }\n else if(kata.endsWith(\"an\")){\n return kata.substring(2,kata.length()-2)+\" kata ulang sebagian \";\n }\n \n }\n }\n return hasil;\n }", "@Override\n\tpublic void nhap() {\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\" nhap ten:\");\n\t\tString ten = reader.nextLine();\n\t\tSystem.out.println(\" nhap tuoi:\");\n\t\ttuoi = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\" nhap can nang:\");\n\t\tcanNang = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\"nhap chieu chieuCao\");\n\t\tchieuCao = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\" nhap chieu chieuDai:\");\n\t\tchieuDai = Double.parseDouble(reader.nextLine());\n\t}", "public void tagOnlyNomorDua() {\r\n Iterator<Kalimat> iterSatu = MarkovCore.TAG_ONLY.iterator();\r\n while (iterSatu.hasNext()) {\r\n Kalimat kalimat = iterSatu.next();\r\n System.out.println(kalimat.getRawKalimat());\r\n System.out.println(kalimat.getBigramProbability(Kalimat.TAG_ONLY));\r\n }\r\n }", "public String annulerRv(){\n\t\t// Traitement ici ... \n\t\treturn AFFICHER;\n\t}", "public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tString name=\"Merzet\";\n\t\t\n\t\t//rze\n\t\tSystem.out.println( name.substring(2, 5));\n\t\t\n\t\t//System.out.println(name.substring(5,1)); wrong\n\t\t\n\t\t//System.out.println( name.substring(1, 10));wrong no 10 letters Merzet\n\t\t\n\t\tSystem.out.println( name.substring(1, 6)); //answer erzet sebabi o dan baslap sanayar\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "String getCADENA_TRAMA();", "void NhapGT(int thang, int nam) {\n }", "public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}", "private String tulostuksenApu(){\r\n String apu = \"Rivitiedosto: \";\r\n for(int i = 0; i<rivitiedot.length; i++){\r\n apu = apu + i+\": \";\r\n for(int k = 1; k <= rivitiedot[i].getKoko(); k++){\r\n apu = apu + \" \"+rivitiedot[i].get(k);\r\n }\r\n apu = apu + \" \";\r\n }\r\n\r\n return apu;\r\n }", "private char hallarLetra() {\r\n\t\tchar[] letra= {'T','R','W','A','G','M','Y','F','P','D','X',\r\n\t\t\t\t\t'B','N','J','Z','S','Q','V','H','L','C','K','E'};\r\n\t\treturn letra[numeroDNI%23];\r\n\t}", "public void hitunganRule1(){\n penebaranBibitSedikit = 1200;\r\n hariPanenSedang = 50;\r\n \r\n //menentukan niu\r\n nBibit = (1500 - penebaranBibitSedikit) / (1500 - 500);\r\n \r\n //menentukan niu hari panen sedang\r\n if ((hariPanenSedang >=40) && (hariPanenSedang <=80)) {\r\n nPanen = (hariPanenSedang - 40) / (80 - 40);\r\n }\r\n \r\n //tentukan alpha predikat (karena grafik segitiga)\r\n if (nBibit < nPanen) {\r\n a1 = nBibit;\r\n }else if (nBibit > nPanen) {\r\n a1 = nPanen;\r\n }\r\n \r\n //tentukan Z1\r\n z1 = (penebaranBibitSedikit + hariPanenSedang) * 700;\r\n System.out.println(\"a1 = \" + String.valueOf(a1));\r\n System.out.println(\"z1 = \" + String.valueOf(z1));\r\n }", "private void asignaNombre() {\r\n\r\n\t\tswitch (this.getNumero()) {\r\n\r\n\t\tcase 1:\r\n\t\t\tthis.setNombre(\"As de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.setNombre(\"Dos de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.setNombre(\"Tres de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.setNombre(\"Cuatro de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tthis.setNombre(\"Cinco de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tthis.setNombre(\"Seis de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tthis.setNombre(\"Siete de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tthis.setNombre(\"Diez de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tthis.setNombre(\"Once de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tthis.setNombre(\"Doce de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public static String seuraavaArvaus(HashMap<String, Integer> muisti, String viimeisimmat, String kaikki) {\n if (kaikki.length() < 3) {\n return \"k\";\n }\n\n String viimKivi = viimeisimmat + \"k\";\n String viimPaperi = viimeisimmat + \"p\";\n String viimSakset = viimeisimmat + \"s\";\n \n int viimKiviLkm = 0;\n int viimPaperiLkm = 0;\n int viimSaksetLkm = 0;\n String arvaus = \"k\";\n int viimValueMax = 0;\n /*\n Sopivan valinnan etsiminen tehdään tarkastelemalla käyttäjän kahta viimeistä\n syötettä ja vertailemalla niitä koko historiaan. Mikäli historian mukaan\n kahta viimeistä syötettä seuraa useimmin kivi, tekoälyn tulee pelata paperi.\n Mikäli kahta viimeistä syötettä seuraa useimmin paperi, tekoälyn tulee \n pelata sakset. Mikäli taas kahta viimeistä syötettä seuraa useimmin sakset, \n tekoälyn tulee pelata kivi. Muissa tapauksissa pelataan kivi.\n */\n if (muisti.containsKey(viimKivi)) {\n viimKiviLkm = muisti.get(viimKivi);\n }\n if (muisti.containsKey(viimPaperi)) {\n viimPaperiLkm = muisti.get(viimPaperi);\n }\n if (muisti.containsKey(viimSakset)) {\n viimSaksetLkm = muisti.get(viimSakset);\n }\n\n if (viimKiviLkm > viimPaperiLkm && viimKiviLkm > viimSaksetLkm) {\n return \"p\";\n }\n if (viimPaperiLkm > viimKiviLkm && viimPaperiLkm > viimSaksetLkm) {\n return \"s\";\n }\n if (viimSaksetLkm > viimKiviLkm && viimSaksetLkm > viimPaperiLkm) {\n return \"k\";\n }\n\n return arvaus;\n }", "public static double kgAgramo(double n1){\n double gramo;\n gramo=n1*1000;\n return gramo; \n }", "public NhanVien(String ten, int tuoi, String diachi, double tienluong, int tongsogiolam)\n {\n this.ten = ten;\n this.tuoi = tuoi;\n this.diachi = diachi;\n this.tienluong = tienluong;\n this.tongsogiolam = tongsogiolam;\n }", "@Test\n public void kaasunKonstruktoriToimiiOikeinTest() {\n assertEquals(rikkihappo.toString(),\"Rikkihappo Moolimassa: 0.098079\\n tiheys: 1800.0\\n lämpötila: 298.15\\n diffuusiotilavuus: 50.17\\npitoisuus: 1.0E12\");\n }", "static void cetak_data(String nama, int usia) {\n int tahun_sekarang = 2020, tahun_lahir = tahun_sekarang - usia;\r\n System.out.println(\"---------\\nNama Saya : \" + nama + \"\\nUsia Saya : \" + usia + \"\\nTahun Lahir : \" + tahun_lahir);\r\n }", "public Nombre() {\n char v[] = { 'a', 'e', 'i', 'o', 'u' };\n char c[] = { 'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'ñ', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x',\n 'y', 'z' };\n vocales = new Letras(v);\n consonantes = new Letras(c);\n r = new Random();\n }", "public void diagrafiFarmakou() {\n\t\t// Elegxw an yparxoun farmaka sto farmakeio\n\t\tif(numOfMedicine != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA FARMAKWN\");\n\t\t\t// Emfanizw ola ta famraka tou farmakeiou\n\t\t\tfor(int j = 0; j < numOfMedicine; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA FARMAKOU: \");\n\t\t\t\tSystem.out.println();\n\t \t \tmedicine[j].print();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\ttmp_1 = sir.readPositiveInt(\"DWSTE TON ARITHMO TOU FARMAKOU POU THELETAI NA DIAGRAFEI: \");\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos egkyrotitas tou ari8mou pou edwse o xristis\n\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfMedicine)\n\t\t\t{\n\t\t\t\ttmp_1 = sir.readPositiveInt(\"KSANAEISAGETAI ARITHMO FARMAKOU: \");\n\t\t\t}\n\t\t\t// Metakinw ta epomena farmaka mia 8esi pio aristera\n\t\t\tfor(int k = tmp_1; k < numOfMedicine - 1; k++)\n\t\t\t{\n\t\t\t\tmedicine[k] = medicine[k+1]; // Metakinw to farmako sti 8esi k+1 pio aristera\n\t\t\t}\n\t\t\tnumOfMedicine--; // Meiwse ton ari8mo twn farmakwn\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.print(\"\\nDEN YPARXOUN DIATHESIMA FARMAKA PROS DIAGRAFH!\\n\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "String mo131984a();", "public static void laukiHorizontalaIrudikatu(int neurria, char ikurra) {\n int altuera=neurria/2;\n int zabalera=neurria;\n for(int i=1; i<=altuera; i++){//altuera\n System.out.println(\" \");\n \n \n for(int j=1; j<=zabalera; j++){//zabalera\n \n System.out.print(ikurra);\n }\n\n}\n }", "String mo150a(String str);", "private String formulerMonNom() {\n\t return \"Je m'appelle \" + this.nom; // appel de la propriété nom\n\t }", "public void eisagwgiGiatrou() {\n\t\t// Elegxw o arithmos twn iatrwn na mhn ypervei ton megisto dynato\n\t\tif(numOfDoctors < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tdoctor[numOfDoctors] = new Iatros();\n\t\t\tdoctor[numOfDoctors].setFname(sir.readString(\"DWSTE TO ONOMA TOU GIATROU: \")); // Pairnei apo ton xristi to onoma tou giatrou\n\t\t\tdoctor[numOfDoctors].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \")); // Pairnei apo ton xristi to epitheto tou giatrou\n\t\t\tdoctor[numOfDoctors].setAM(rnd.nextInt(1000000)); // To sistima dinei automata ton am tou giatrou\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t// Elegxos monadikotitas tou am tou giatrou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tif(doctor[i].getAM() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfDoctors++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS GIATROUS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "static String stringCutter1(String s) {\n int value = s.length() % 2 == 0 ? s.length() / 2 : s.length() / 2 + 1;\n\n // pemotongan string untuk pemotongan kelompok pertama\n String sentence1 = s.substring(0, value);\n\n // perulangan untuk menggeser nilai setiap karakter\n String wordNow = \"\";\n for (int i = 0; i < sentence1.length(); i++) {\n char alphabet = sentence1.toUpperCase().charAt(i);\n // pengubahan setiap karakter menjadi int\n // untuk menggeser 3 setiap nilai nya\n int asciiDecimal = (int) alphabet;\n // pengecekan kondisi apabila karakter melewati kode ascii nya\n if (asciiDecimal > 124) {\n int alphabetTransfer = 0 + (127 - asciiDecimal);\n wordNow += (char) alphabetTransfer;\n\n } else {\n int alphabetTrasfer = asciiDecimal + 3;\n wordNow += (char) alphabetTrasfer;\n }\n }\n return wordNow;\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 }", "@Override\n public String toString() {\n return \"Ultima Manutencao em: \"+this.ultimaManun+\" km's.\";\n }", "public static void main(String[] args) {\n\n String str=\"22/2020\";\n String monath=str.substring(0,2);\n\n int monatI=Integer.valueOf(monath);\n if (monatI>=0 && monatI<=12){\n System.out.println(\"doğru\");\n }\n else\n System.out.println(\"yanlış\");\n }", "java.lang.String getNume();", "java.lang.String getNume();", "public static void main(String[] args) {\n\n\n\n\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"4 basamakli bir sayi giriniz\");\n\n\n int sayi = sc.nextInt();\n int kalan = sayi - ((sayi / 10) );\n\n \n int onlar = sayi%10;\n System.out.println( sayi- sayi/10 *10 );\n\n\n\n\n\n }", "@Override\n\tpublic String damePatente() {\n\t\treturn \"TJH 123\";\n\t}", "abstract String mo1748c();", "private String getUnidades(String numero) {// 1 - 9\r\n //si tuviera algun 0 antes se lo quita -> 09 = 9 o 009=9\r\n String num = numero.substring(numero.length() - 1);\r\n return UNIDADES[Integer.parseInt(num)];\r\n }", "public void printAnnuNom() \n {\n System.out.println(\"Annuaire de \"+nomAnnuaire);\n }", "public static String danU7(int num){\r\n\t\t\r\n\t\tString [] dani={\"Ponedjeljak\",\"Utorak\",\"Srijeda\",\"Cetvrtak\",\"Petak\", \"Subota\", \"Nedjelja\"}; \r\n\t\t\r\n\t\treturn dani[num];\r\n\t}", "public void anazitisiSintagisVaseiAstheni() {\n\t\tint amkaCode = 0;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tamkaCode = sir.readPositiveInt(\"EISAGETAI TO AMKA TOU ASTHENH: \"); // Zitaw apo ton xrhsth na mou dwsei ton amka tou asthenh pou thelei\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t\tif(amkaCode == prescription[i].getPatientAmka()) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou proorizetai gia ton sygkekrimeno asthenh\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t\tprescription[i].print(); // Emfanizw thn/tis sintagh/sintages oi opoies proorizontai gia ton sigkekrimeno asthenh\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\ttmp_2++;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON ASTHENH ME AMKA: \" + amkaCode);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void convertToMaori(int number){\n\t\tint temp = number;\n\t\tint digit = temp % 10;\n\t\tint placeHolder = 0;\n\n\t\tif (digit > 0){\n\t\t\t_maoriNumber = MaoriNumbers.getValue(digit).toString();\n\t\t\tif (temp > 10) {\n\t\t\t\t_maoriNumber = \"maa\" + \"\\n\" + _maoriNumber; //note /n because the recording records seperate words on seperate lines\n\t\t\t}\n\t\t} else if (digit == 0){\n\t\t\twhile (digit == 0) {\n\t\t\t\ttemp = temp/10;\n\t\t\t\tdigit = temp % 10;\n\t\t\t\tplaceHolder++;\n\t\t\t}\n\t\t\t_maoriNumber = MaoriNumbers.getValue((int)Math.pow(10, placeHolder)).toString();\n\t\t\tif (digit > 1){\n\t\t\t\t_maoriNumber = MaoriNumbers.getValue(digit).toString() + \"\\n\" + _maoriNumber;\n\t\t\t}\n\t\t}\n\n\t\twhile (temp > 9) {\n\t\t\tplaceHolder++;\n\t\t\ttemp = temp/10;\n\t\t\tdigit = temp % 10;\n\t\t\t_maoriNumber = MaoriNumbers.getValue((int)Math.pow(10, placeHolder)).toString() + \"\\n\" + _maoriNumber;\n\t\t\tif (digit > 1){\n\t\t\t\t_maoriNumber = MaoriNumbers.getValue(digit).toString() + \"\\n\" + _maoriNumber;\n\t\t\t}\n\t\t}\n\t}", "static int letterIslands(String s, int k) {\n /*\n * Write your code here.\n */\n\n }", "public void eisagwgiAstheni() {\n\t\t// Elegxw o arithmos twn asthenwn na mhn ypervei ton megisto dynato\n\t\tif(numOfPatient < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tpatient[numOfPatient] = new Asthenis();\n\t\t\tpatient[numOfPatient].setFname(sir.readString(\"DWSTE TO ONOMA TOU ASTHENH: \")); // Pairnei to onoma tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU ASTHENH: \")); // Pairnei to epitheto tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setAMKA(rnd.nextInt(1000000)); // To sistima dinei automata ton amka tou asthenous\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t//Elegxos monadikotitas tou amka tou astheni\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tif(patient[i].getAMKA() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfPatient++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS ASTHENEIS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public void specialMacs(Verbum w){\r\n\t\tint cd = w.cd;\r\n\t\tint variant = w.variant;\r\n\t\tint i = 0;\r\n\t\tint index = 0;\r\n\t\tif(w.pos.equals(\"V\")){\r\n\t\t\t//3rd conjugation have long vowel if the 1st pp stem and 3rd pp stem are one syllable\r\n\t\t\tif(cd==3 && countSyllables(w.form2)<2 && countSyllables(w.form3)<2){\t\t\r\n\t\t\t\tdo {\r\n\t\t\t\t\tchar c = w.form3.charAt(i);\r\n\t\t\t\t\tif(isVowel(c)){\r\n\t\t\t\t\t\tindex = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t\ti++;\r\n\t\t\t\t} while(i<w.form3.length()-1);\r\n\t\t\t\tw.form3 = new StringBuffer(w.form3).insert(index, \"*\").toString();\r\n\t\t\t}\r\n\t\t\t//First conjugation variant 1 have long a's \r\n\t\t\tif (cd==1 && variant==1){\r\n\t\t\t\tw.form3 = new StringBuffer(w.form3).insert(w.form3.length()-2, \"*\").toString();\r\n\t\t\t\tw.form4 = new StringBuffer(w.form4).insert(w.form4.length()-2, \"*\").toString();\r\n\t\t\t}\r\n\t\t} else if (w.pos.equals(\"N\")){\r\n\t\t\t//Some 3rd declension nouns have short o in nom and long o in all other forms\r\n\t\t\tif (cd == 3 && w.form1.charAt(w.form1.length()-1) == 'r' && w.form2.charAt(w.form2.length()-1) == 'r' && (w.gender.equals(\"M\") || w.gender.equals(\"F\"))){\r\n\t\t\t\tw.form2 = new StringBuffer(w.form2).insert(w.form2.length()-2, \"*\").toString();\r\n\t\t\t} \r\n\t\t\t//Neuter 3rd declension -ar nouns have short a in nom and long a in all others\r\n\t\t\tif (cd == 3 && w.form1.substring(w.form1.length()-2).equals(\"ar\") && w.form2.substring(w.form2.length()-2).equals(\"ar\")){\r\n\t\t\t\tw.form2 = new StringBuffer(w.form2).insert(w.form2.length()-2, \"*\").toString();\r\n\t\t\t} \r\n\t\t}\r\n\t}", "public static String number2Word(long number) {\r\n String[] numbers = {\"se\", \"dua \", \"tiga \", \"empat \", \"lima \", \"enam \", \"tujuh \", \"delapan \", \"sembilan \"};\r\n String[] levels = {\"ribu \", \"juta \", \"milyar \", \"trilyun \"};\r\n StringBuffer result = new StringBuffer();\r\n\r\n String str = String.valueOf(number);\r\n int mod = str.length() % 3;\r\n int len = str.length() / 3;\r\n if(mod>0) len++; else mod = 3;\r\n int begin = 0;\r\n int end = mod;\r\n for(int i=0; i<len; i++) {\r\n int level = len-i;\r\n String val = str.substring(begin, end);\r\n int value = Integer.parseInt(val);\r\n int length = val.length();\r\n for(int j=0; j<length; j++) {\r\n int num = parseInt(val.charAt(j));\r\n switch(length-j) {\r\n case 3:\r\n if(num>0) result.append(numbers[num-1]).append(\"ratus \");\r\n break;\r\n case 2:\r\n if(num>1) result.append(numbers[num-1]).append(\"puluh \");\r\n else if(num==1)\r\n result.append(numbers[parseInt(val.charAt(++j))-1]).append(\"belas \");\r\n break;\r\n case 1:\r\n if(num>1 || (level==2 && value==1)) result.append(numbers[num-1]);\r\n else if(num==1) result.append(\"satu \");\r\n break;\r\n }\r\n }\r\n\r\n if(level>1 && value>0)\r\n result.append(levels[level-2]);\r\n begin = i*3 + mod;\r\n end += 3;\r\n }\r\n\r\n return result.toString();\r\n }", "private int Dataposi(String cadena,int posicion){\r\n\t\tif(cadena.length() > posicion && posicion >= 0)\r\n\t\t\treturn cadena.charAt(cadena.length()-posicion-1)-48;\r\n\t\treturn 0;\r\n\t}", "public abstract String dohvatiKontakt();", "private void laadSpellen() {\r\n this.spellen = this.dc.geefOpgeslagenSpellen();\r\n int index = 0;\r\n String res = String.format(\"%25s %20s\", r.getString(\"spelNaam\"), r.getString(\"moeilijkheidsGraad\"));\r\n for (String[] rij : spellen) {\r\n index++;\r\n res += String.format(\"%n%d) %20s\", index, rij[0]);\r\n switch (rij[1]) {\r\n case \"1\":\r\n res += String.format(\"%20s\", r.getString(\"makkelijk\"));\r\n break;\r\n case \"2\":\r\n res += String.format(\"%20s\", r.getString(\"gemiddeld\"));\r\n break;\r\n case \"3\":\r\n res += String.format(\"%20s\", r.getString(\"moeilijk\"));\r\n break;\r\n }\r\n \r\n }\r\n System.out.printf(res);\r\n }", "public static void show() {\r\n\t\t int[] forword=new int[6];\r\n\t\t int[] temp;\r\n\t\t for(int i=1;i<7;i++){\r\n\t\t\t temp=Arrays.copyOf(forword, 6);\r\n\t\t\t for(int j=0;j<i;j++){\r\n\t\t\t\t if(j==0){\r\n\t\t\t\t\t forword[0]=i;\r\n\t\t\t\t\t System.out.print(forword[0]+\" \");\r\n\t\t\t\t }else{\r\n\t\t\t\t\t forword[j]=forword[j-1]+temp[j-1];\r\n\t\t\t\t\t System.out.print(forword[j]+\" \");\t\t \r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t System.out.println();\r\n\t\t }\r\n\t\t //0-9:48-57 ; A-Z:65-90 ; a-z:97-122 \r\n\t\t\r\n\t}", "public String creerDureeJtable(String chaine){\r\n\t\tif(chaine.length() == 1){\r\n\t\t\treturn chaine+\"h00\";\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn chaine.substring(0, 1)+\"h\"+chaine.substring(1, chaine.length());\r\n\t\t}\r\n\t\t\r\n\t}", "public abstract String mo24851a(String str);", "void Hrana(String start,String cil, char druh){\n\t\tint iStart = index(start);\n\t\tint iCil = index(cil);\n\t\t\n\t\tif(iStart == -1)\n\t\t\treturn;\n\t\tif(iCil == -1)\n\t\t\treturn;\n\t\t//orientovana hrana\n\t\tif(druh == '-' || druh == '>'){\n\t\t\tmatice[iStart][iCil] = 1;\n\t\t\tvrchP[iStart].pocetSousedu = vrchP[iStart].pocetSousedu +1;\n\t\t}\n\t\t\n\t\t//neorientovana\n\t\tif(druh == '-'){\n\t\t\tmatice[iCil][iStart] = 1;\n\t\t\tvrchP[iCil].pocetSousedu = vrchP[iCil].pocetSousedu +1;\t\n\t\t}\n\t\t\n\t\tHrana pom = new Hrana(start,cil,'W',druh);\n\t\thrana[pocetHr] = pom;\n\t\tpocetHr++;\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tScanner ip = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Welcome to the Katapayadi Wizard! Enter the 1st syllable of the raga of your choice: \");\r\n\t\t\r\n\t\tString F = ip.nextLine();\r\n\t\tSystem.out.println(\"Great! Now enter the 2nd syllable of the raga of your choice: \");\r\n\t\t\r\n\t\tString S = ip.nextLine();\r\n\t\t//int firstIndex; \r\n\t\t\r\n\t\tString [] [] alphabets = {{\"nya\", \"ka\", \"kha\", \"ga\", \"gha\", \"nga\", \"cha\", \"ccha\", \"ja\", \"jha\"}, \r\n\t\t\t\t\t\t\t\t {\"na\", \"ta\", \"tah\",\"da\", \"dah\", \"nna\", \"tha\", \"ttha\", \"dha\", \"ddha\"},\r\n\t\t\t\t\t\t\t\t {\"null\",\"pa\", \"pha\",\"ba\",\"bha\",\"ma\", \"null\", \"null\", \"null\", \"null\", },\r\n\t\t\t\t\t\t\t\t {\"null\",\"ya\", \"ra\", \"la\", \"va\", \"se\", \"sha\", \"sa\", \"ha\",\"null\"}};\r\n\t\t\r\n\t\tint firstNum = getFirstIndex(alphabets, F);\r\n\t\tint secondNum = getSecondIndex(alphabets, S); \r\n\t\tint finalIndex = concat(firstNum, secondNum);\r\n\t\t\r\n\t\tString swaras1= swaraSthanam1(finalIndex);\r\n\t\t//String finalanswer = The [index]th melakartha: aro [swaras1] and ava [swaras2].\r\n\t\tSystem.out.println(firstNum);\r\n\t\tSystem.out.println(secondNum);\r\n\t\t\r\n\t\tSystem.out.println(finalIndex);\r\n\t\t\r\n\t\tSystem.out.println(swaras1);\r\n\t\t\r\n\t}", "public static void main(String[] args){\r\n String first = \"jin\";\r\n String last = \"jung\";\r\n String ay = \"ay\";\r\n/*\r\n use substring() and toUpperCase methods to reorder and capitalize\r\n*/\r\n\r\n String letFirst = first.substring(0,1);\r\n String capFirst = letFirst.toUpperCase();\r\n String letLast = last.substring(0,1);\r\n String capLast = letLast.toUpperCase();\r\n\r\n String nameInPigLatin = first.substring(1,3) + capFirst + ay + \" \" + last.substring(1,4) + capLast + ay;\r\n\r\n/*\r\n output resultant string to console\r\n*/\r\n\r\n System.out.println(nameInPigLatin);\r\n\r\n }", "public void Ganhou() {\n\t\tString[] g = new String[10]; \n\t\tg[0] = m[0][0] + m[0][1] + m[0][2];\n\t\tg[1] = m[1][0] + m[1][1] + m[1][2];\n\t\tg[2] = m[2][0] + m[2][1] + m[2][2];\n\t\t\n\t\tg[3] = m[0][0] + m[1][0] + m[2][0];\n\t\tg[4] = m[0][1] + m[1][1] + m[2][1];\n\t\tg[5] = m[0][2] + m[1][2] + m[2][2];\n\t\t\n\t\tg[6] = m[0][0] + m[1][1] + m[2][2];\n\t\tg[7] = m[2][0] + m[1][1] + m[0][2];\n\t\tg[8] = \"0\";\n\t\tg[9] = \"0\";\n\t\t\n\t\tfor(int i= 0; i<10; i++) {\n\t\t\tif(g[i].equals(\"XXX\")){\n\t\t\t\tJOptionPane.showMessageDialog(null,\"X GANHOU\");\n\t\t\t\tacabou = true;\n\t\t\t\temp = 0; \n\t\t\t\tbreak;\n\t\t\t} else if (g[i].equals(\"OOO\")) {\n\t\t\t\tJOptionPane.showMessageDialog(null,\"O GANHOU\");\n\t\t\t\tacabou = true;\n\t\t\t\tbreak;\n\t\t\t} \n\t\t}\n\t\t\n\t\tif (emp == 9) {\n\t\t\tJOptionPane.showMessageDialog(null,\"EMPATOU\");\t\n\t\t\tacabou = true;\n\t\t}\n\t}", "Karyawan(String n)\n {\n this.nama = n;\n }", "public double getNilai(String a) {\n double nilaiHuruf = 0.0;\n try {\n if (a.equalsIgnoreCase(\"A\")) {\n nilaiHuruf = 4.0;\n } else if (a.equalsIgnoreCase(\"AB\")) {\n nilaiHuruf = 3.5;\n } else if (a.equalsIgnoreCase(\"B\")) {\n nilaiHuruf = 3.0;\n } else if (a.equalsIgnoreCase(\"BC\")) {\n nilaiHuruf = 2.5;\n } else if (a.equalsIgnoreCase(\"C\")) {\n nilaiHuruf = 2.0;\n } else if (a.equalsIgnoreCase(\"CD\")) {\n nilaiHuruf = 1.5;\n } else if (a.equalsIgnoreCase(\"D\")) {\n nilaiHuruf = 1.0;\n } else if (a.equalsIgnoreCase(\"DE\")) {\n nilaiHuruf = 0.5;\n } else if (a.equalsIgnoreCase(\"E\")) {\n nilaiHuruf = 0.0;\n } else {\n nilaiHuruf = 0.0;\n }\n } catch (NumberFormatException e) {\n }\n return nilaiHuruf;\n }", "public String SoloDNI() {\nreturn MuestraSoloDNI();\t\t\t\t\t\n}", "public String ordainketaKudeatu(String ordainketa) {\r\n\t\tString dirua;\r\n\t\tdouble dirua1;\r\n\t\tdouble ordainketa1;\r\n\t\tdirua = deuda();\r\n\t\tordainketa = ordaindu();\r\n\t\tdirua1 = Double.parseDouble(dirua);\r\n\t\tordainketa1 = Double.parseDouble(ordainketa);\r\n\t\tkenketa = kenketa_dirua(dirua1, ordainketa1);\r\n\r\n\t\tSystem.out.println(kenketa);\r\n\t\tif (kenketa == 0.0) {\r\n\t\t\tbtnAurrera.setEnabled(true);\r\n\t\t\ttextField.setText(\"0.00\");\r\n\r\n\t\t}\r\n\t\tif (kenketa < 0) {\r\n\t\t\ttextField_2.setText(\"Itzulerak: \" + Math.abs(kenketa));\r\n\t\t\tbtnAurrera.setEnabled(true);\r\n\t\t}\r\n\t\tif (kenketa > 0) {\r\n\t\t\tkenketa = Math.abs(kenketa);\r\n\t\t\ttextField.setText(String.valueOf(kenketa));\r\n\t\t}\r\n\t\treturn ordainketa;\r\n\t}", "public static String calculateLetter(int dniNumber) {\n String letras = \"TRWAGMYFPDXBNJZSQVHLCKEU\";\n int indice = dniNumber % 23;\n return letras.substring(indice, indice + 1);\n }", "private static void obterNumeroLugar(String nome) {\n\t\tint numero = gestor.obterNumeroLugar(nome);\n\t\tif (numero > 0)\n\t\t\tSystem.out.println(\"O FUNCIONARIO \" + nome + \" tem LUGAR no. \" + numero);\n\t\telse\n\t\t\tSystem.out.println(\"NAO EXISTE LUGAR de estacionamento atribuido a \" + nome);\n\t}", "@Override\r\n\tpublic String sonido() {\n\t\treturn \"Miauu\";\r\n\t}", "public String pid_011C(String str){\n\nString standar=\"Unknow\";\n switch(str.charAt(1)){\n case '1':{standar=\"OBD-II as defined by the CARB\";break;} \n case '2':{standar=\"OBD as defined by the EPA\";break;}\n case '3':{standar=\"OBD and OBD-II\";break;}\n case '4':{standar=\"OBD-I\";break;}\n case '5':{standar=\"Not meant to comply with any OBD standard\";break;}\n case '6':{standar=\"EOBD (Europe)\";break;}\n case '7':{standar=\"EOBD and OBD-II\";break;}\n case '8':{standar=\"EOBD and OBD\";break;}\n case '9':{standar=\"EOBD, OBD and OBD II\";break;}\n case 'A':{standar=\"JOBD (Japan)\";break;}\n case 'B':{standar=\"JOBD and OBD II\";break;} \n case 'C':{standar=\"JOBD and EOBD\";break;}\n case 'D':{standar=\"JOBD, EOBD, and OBD II\";break;} \n default: {break;} \n }\n \n return standar;\n}", "public void reagir(String frase) {\n if (frase.equals(\"toma comida\") || frase.equals(\"olá\")) {\n System.out.println(\"abanar e latir\");\n } else {\n System.out.println(\"rosnar\");\n }\n }", "public static String convertOrarioToFascia(String data) {\n String[] data_splitted = data.split(\" \");\n String orario = data_splitted[1];\n String[] ora_string = orario.split(\":\");\n Integer ora = Integer.parseInt(ora_string[0]);\n if(ora<12){\n return \"prima\";\n }else{\n return \"seconda\";\n }\n }", "public String mo8484a() {\n int i = this.f3539a;\n if (i == 1) {\n return \"add\";\n }\n if (i == 2) {\n return \"rm\";\n }\n if (i == 4) {\n return \"up\";\n }\n if (i != 8) {\n return \"??\";\n }\n return \"mv\";\n }", "public String aan() {\n AppMethodBeat.i(54302);\n if (this.kum == null) {\n this.kum = o.ahl().c(this.kua.field_imgPath, false, false);\n if (!(bo.isNullOrNil(this.kum) || this.kum.endsWith(\"hd\") || !e.ct(this.kum + \"hd\"))) {\n this.kum += \"hd\";\n }\n }\n String str = this.kum;\n AppMethodBeat.o(54302);\n return str;\n }", "public String getTranslation()\n {\n StringBuilder aminoAcid = new StringBuilder();\n Map<String, String> codToAa = Map.ofEntries(\n entry(\"ATA\", \"I\"), entry(\"ATC\", \"I\"), entry(\"ATT\", \"I\"), entry(\"ATG\", \"M\"),\n entry(\"ACA\", \"T\"), entry(\"ACC\", \"T\"), entry(\"ACG\", \"T\"), entry(\"ACT\", \"T\"),\n entry(\"AAC\", \"N\"), entry(\"AAT\", \"N\"), entry(\"AAA\", \"K\"), entry(\"AAG\", \"K\"),\n entry(\"AGC\", \"S\"), entry(\"AGT\", \"S\"), entry(\"AGA\", \"R\"), entry(\"AGG\", \"R\"),\n entry(\"CTA\", \"L\"), entry(\"CTC\", \"L\"), entry(\"CTG\", \"L\"), entry(\"CTT\", \"L\"),\n entry(\"CCA\", \"P\"), entry(\"CCC\", \"P\"), entry(\"CCG\", \"P\"), entry(\"CCT\", \"P\"),\n entry(\"CAC\", \"H\"), entry(\"CAT\", \"H\"), entry(\"CAA\", \"Q\"), entry(\"CAG\", \"Q\"),\n entry(\"CGA\", \"R\"), entry(\"CGC\", \"R\"), entry(\"CGG\", \"R\"), entry(\"CGT\", \"R\"),\n entry(\"GTA\", \"V\"), entry(\"GTC\", \"V\"), entry(\"GTG\", \"V\"), entry(\"GTT\", \"V\"),\n entry(\"GCA\", \"A\"), entry(\"GCC\", \"A\"), entry(\"GCG\", \"A\"), entry(\"GCT\", \"A\"),\n entry(\"GAC\", \"D\"), entry(\"GAT\", \"D\"), entry(\"GAA\", \"E\"), entry(\"GAG\", \"E\"),\n entry(\"GGA\", \"G\"), entry(\"GGC\", \"G\"), entry(\"GGG\", \"G\"), entry(\"GGT\", \"G\"),\n entry(\"TCA\", \"S\"), entry(\"TCC\", \"S\"), entry(\"TCG\", \"S\"), entry(\"TCT\", \"S\"),\n entry(\"TTC\", \"F\"), entry(\"TTT\", \"F\"), entry(\"TTA\", \"L\"), entry(\"TTG\", \"L\"),\n entry(\"TAC\", \"Y\"), entry(\"TAT\", \"Y\"), entry(\"TAA\", \"_\"), entry(\"TAG\", \"_\"),\n entry(\"TGC\", \"C\"), entry(\"TGT\", \"C\"), entry(\"TGA\", \"_\"), entry(\"TGG\", \"W\")\n );\n try\n {\n for (int i = 0; i < this.sequence.length(); i += 3)\n {\n aminoAcid.append(codToAa.get(this.sequence.substring(i, i + 3)));\n }\n }\n catch (StringIndexOutOfBoundsException ignored)\n {\n }\n return aminoAcid.toString();\n }", "public Zadatak1() {\r\n\t\tSystem.out.println(ucitajBroj(\"1. broj\") + ucitajBroj(\"2. broj\"));\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"구구단\");\n\t\t\n\t\tfor (int dan =1; dan <= 9; dan++) {\n\t\t\tSystem.out.print(dan + \"단 : \"); //9번 수행\n\t\t\tfor (int num = 1; num <= 9; num++) {\n\t\t\t\tSystem.out.print(dan + \"*\" + num + \"=\" + dan * num + \"\\t\"); //81번 수행\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();//줄 내리기\n\t\t}\n\n\t}", "@Override public String getMasa(){\n return \"gruesa \";\n }", "public static void main(String[] args) {\n\t\tint a=0,b=0,cnt=0;\r\n\t\tScanner in=new Scanner(System.in);\r\n\t\ta=in.nextInt();\r\n\t\tString str=\"\";\r\n\t\tin.close();\r\n\t\tif(a<0){\r\n\t\t\tstr=\"fu \";\r\n\t\t\ta=-a;\r\n\t\t}\r\n\t\twhile(a!=0){\r\n\t\t\tb=b*10+a%10;\r\n\t\t\tif(b==0){\r\n\t\t\t\tcnt++;\r\n\t\t\t}\r\n\t\t\ta=a/10;\r\n\t\t}\r\n\t\tdo{\r\n\t\t\tswitch(b%10)\r\n\t\t\t{\r\n\t\t\t\tcase 0:str+=\"ling\";break;\t\t\r\n\t\t\t\tcase 1:str+=\"yi\";break;\r\n\t\t\t\tcase 2:str+=\"er\";break;\r\n\t\t\t\tcase 3:str+=\"san\";break;\r\n\t\t\t\tcase 4:str+=\"si\";break;\r\n\t\t\t\tcase 5:str+=\"wu\";break;\r\n\t\t\t\tcase 6:str+=\"liu\";break;\r\n\t\t\t\tcase 7:str+=\"qi\";break;\r\n\t\t\t\tcase 8:str+=\"ba\";break;\r\n\t\t\t\tcase 9:str+=\"jiu\";break;\r\n\t\t\t}\r\n\t\t\tb/=10;\r\n\t\t\tif(b!=0){\r\n\t\t\t\tstr+=\" \";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}while(b!=0);\t\r\n\t\tfor(int i=1;i<=cnt;i++)\r\n\t\t{\r\n\t\t\tstr=str+\" ling\";\r\n\t\t}\t\r\n\t\tSystem.out.print(str);\r\n\r\n\t}", "private String formato(String cadena){\n cadena = cadena.replaceAll(\" \",\"0\");\n return cadena;\n }", "public String startOz(String str) {\n String result = \"\";\n \n if (str.length() >= 1 && str.charAt(0)=='o') {\n result = result + str.charAt(0);\n }\n \n if (str.length() >= 2 && str.charAt(1)=='z') {\n result = result + str.charAt(1);\n }\n \n return result;\n}", "public void Makan()\n\t{\n\tSystem.out.println(\"Harimau Makan Daging dan minum susu\");\n\tSystem.out.println();\n\t}" ]
[ "0.6399964", "0.6343343", "0.6190698", "0.6112435", "0.6066146", "0.6043292", "0.6033035", "0.59747916", "0.5953352", "0.5917735", "0.5887479", "0.58400434", "0.5838251", "0.583793", "0.5834732", "0.5825054", "0.5821506", "0.5811415", "0.58079624", "0.5807657", "0.58012044", "0.57907796", "0.577972", "0.574472", "0.57203645", "0.57186955", "0.571005", "0.56960887", "0.56957144", "0.5693647", "0.56913763", "0.56823385", "0.56818247", "0.5675564", "0.56732535", "0.56539536", "0.56507146", "0.5642901", "0.5638659", "0.563426", "0.5629439", "0.56193966", "0.56170976", "0.5608585", "0.56057185", "0.5599288", "0.5598366", "0.55876964", "0.5585204", "0.55752164", "0.55688477", "0.5568104", "0.55566335", "0.5552026", "0.55505776", "0.5546426", "0.5544394", "0.55366606", "0.55366606", "0.5529373", "0.55252576", "0.55233705", "0.55200106", "0.5515349", "0.55086386", "0.5506815", "0.5499785", "0.54916924", "0.5477892", "0.5475118", "0.5473519", "0.5473338", "0.5468144", "0.54649514", "0.54639333", "0.54632086", "0.5461781", "0.54603964", "0.54590625", "0.5456082", "0.5450316", "0.54471", "0.5442657", "0.5440769", "0.5437576", "0.54351586", "0.543509", "0.5430253", "0.54214007", "0.54174733", "0.5415946", "0.54115695", "0.5410571", "0.5398619", "0.539057", "0.5387073", "0.53779745", "0.53779554", "0.53765494", "0.5376366", "0.5375154" ]
0.0
-1
GlStateManager.color4f(1.0F, 1.0F, 1.0F, 1.0F);
protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) { this.mc.getTextureManager().bindTexture(FURNACE_GUI_TEXTURES); int i = this.guiLeft; int j = this.guiTop; this.drawTexturedModalRect(i, j, 0, 0, this.xSize, this.ySize); int cookProgressScaled = this.getCookProgressScaled(17); this.drawTexturedModalRect(i + 79, j + 34+1, 176, 0, 24, cookProgressScaled); boolean isBurning = TileEntityCoalGrinder.isBurning(this.tileInventory); int burnTime = tileInventory.getField(0); int currentItemBurnTime = tileInventory.getField(1); ((BurnComponent)getComponent(0)).update(isBurning,burnTime,currentItemBurnTime); super.drawGuiContainerBackgroundLayer(partialTicks,mouseX,mouseY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void render() {\n Gdx.gl.glClearColor(0f, 0f, 0f, 1f);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n Gdx.gl.glDisable(GL20.GL_BLEND);\n }", "public void initialize()\r\n\t{\r\n\t\tgl.glClearColor(0.0F, 0.0F, 0.0F, 1.0F);\r\n\t\t// initialize blending for transparency\r\n\t\tgl.glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);\r\n\t\tgl.glEnable(GL_DEPTH_TEST);\r\n\t\tgl.glEnable(GL_DITHER);\r\n\t\t//gl.disable(GL_ALPHA_TEST);\r\n\t\t//gl.disable(GL_COLOR_MATERIAL);\r\n\t\tgl.glShadeModel(GL_SMOOTH);\r\n\t\tgl.glDepthFunc( GL_LEQUAL );\r\n\t\tgl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);\r\n\t\tgl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);\r\n\t\tgl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);\r\n\t\tgl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);\r\n\t\tgl.glPixelStorei(GL_UNPACK_ALIGNMENT, 1);\r\n\t\tgl.glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL);\r\n\t\tgl.glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, 1);\r\n\t\tglj.gljCheckGL();\r\n\t}", "public void init(GLAutoDrawable drawable) {\n\n GL gl = drawable.getGL();\n System.err.println(\"INIT GL IS: \" + gl.getClass().getName());\n gl.setSwapInterval(1);\n\n\n //wartości składowe oświetlenia i koordynaty źródła światła\n float ambientLight[] = { 0.3f, 0.3f, 0.3f, 1.0f };//swiatło otaczające\n float diffuseLight[] = { 0.7f, 0.7f, 0.7f, 1.0f };//światło rozproszone\n float specular[] = { 1.0f, 1.0f, 1.0f, 1.0f}; //światło odbite\n float lightPos[] = { 0.0f, 150.0f, 150.0f, 1.0f };//pozycja światła\n //(czwarty parametr określa odległość źródła:\n //0.0f-nieskończona; 1.0f-określona przez pozostałe parametry)\n gl.glEnable(GL.GL_LIGHTING); //uaktywnienie oświetlenia\n //ustawienie parametrów źródła światła nr. 0\n gl.glLightfv(GL.GL_LIGHT0,GL.GL_AMBIENT,ambientLight,0); //swiatło otaczające\n gl.glLightfv(GL.GL_LIGHT0,GL.GL_DIFFUSE,diffuseLight,0); //światło rozproszone\n gl.glLightfv(GL.GL_LIGHT0,GL.GL_SPECULAR,specular,0); //światło odbite\n gl.glLightfv(GL.GL_LIGHT0,GL.GL_POSITION,lightPos,0); //pozycja światła\n gl.glEnable(GL.GL_LIGHT0); //uaktywnienie źródła światła nr. 0\n gl.glEnable(GL.GL_COLOR_MATERIAL); //uaktywnienie śledzenia kolorów\n //kolory będą ustalane za pomocą glColor\n gl.glColorMaterial(GL.GL_FRONT, GL.GL_AMBIENT_AND_DIFFUSE);\n gl.glEnable(GL.GL_DEPTH_TEST);\n // Setup the drawing area and shading mode\n gl.glClearColor(1.0f, 1.0f, 1.0f, 1.0f);\n gl.glShadeModel(GL.GL_SMOOTH);\n try\n {\n image1 = ImageIO.read(getClass().getResourceAsStream(\"/pokemon.jpg\"));\n image2 = ImageIO.read(getClass().getResourceAsStream(\"/android.jpg\"));\n }\n catch(Exception exc)\n {\n JOptionPane.showMessageDialog(null, exc.toString());\n return;\n }\n\n t1 = TextureIO.newTexture(image1, false);\n t2 = TextureIO.newTexture(image2, false);\n\n gl.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_TEXTURE_ENV_MODE, GL.GL_DECAL | GL.GL_MODULATE);\n gl.glEnable(GL.GL_TEXTURE_2D);\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_S, GL.GL_REPEAT);\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_T, GL.GL_REPEAT);\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_NEAREST);\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_NEAREST);\n gl.glBindTexture(GL.GL_TEXTURE_2D, t1.getTextureObject());\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_S, GL.GL_REPEAT);\ngl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_T, GL.GL_REPEAT);\n\n\n \n\n }", "void glClearColor(float red, float green, float blue, float alpha);", "@Override\n\t\tpublic void render()\n\t\t{\n\t\t\tif(color.alpha() > 0)\n\t\t\t{\n\t\t\t\tbind();\n\t\t\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);\n\t\t\t\tGL11.glBegin(GL11.GL_TRIANGLE_STRIP);\n\t\t\t\t\tfloat screenWidth = WindowManager.controller().width();\n\t\t\t\t\tfloat screenHeight = WindowManager.controller().height();\n\t\t\t\t\tGL11.glVertex2f(0, 0);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, 0);\n\t\t\t\t\tGL11.glVertex2f(0, screenHeight);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, screenHeight);\n\t\t\t\tGL11.glEnd();\n\t\t\t\trelease();\n\t\t\t}\n\t\t}", "@Override\r\n\tpublic void onSurfaceCreated(GL10 gl, EGLConfig config) {\n\t\tLog.d(TAG, \"onSurfaceCreated\");\r\n//\t\tgl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); // Set color's clear-value to\r\n\t\tgl.glClearColor(0.f, 0.f, 0.f, 0.f);\r\n/////new/////\t\t\r\n\t\t gl.glBlendFunc(gl.GL_SRC_ALPHA, gl.GL_ONE_MINUS_SRC_ALPHA);\r\n\t\t gl.glEnable(gl.GL_BLEND);\r\n///////\t\t \r\n\t\tgl.glClearDepthf(1.0f); // Set depth's clear-value to farthest\r\n\t\tgl.glEnable(GL10.GL_DEPTH_TEST); // Enables depth-buffer for hidden\r\n\t\t\t\t\t\t\t\t\t\t\t// surface removal\r\n\t\tgl.glDepthFunc(GL10.GL_LEQUAL); // The type of depth testing to do\r\n\t\tgl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST); // nice\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// perspective\r\n\t\t// view\r\n\t\tgl.glShadeModel(GL10.GL_SMOOTH); // Enable smooth shading of color\r\n\t\tgl.glDisable(GL10.GL_DITHER); // Disable dithering for better\r\n\t\t\t\t\t\t\t\t\t\t// performance\r\n\t\t// You OpenGL|ES initialization code here\r\n\t\t// ......\r\n\t\tgl.glGenTextures(MAX_MODEL_NUM, texIDS, 0);\r\n\r\n//\t\tglview.loadTexture(gl); // Load image into Texture (NEW)\r\n\t\tgl.glEnable(gl.GL_TEXTURE_2D); // Enable texture (NEW)\r\n\t\t\r\n\t}", "@Override\n public void onSurfaceCreated(GL10 unused, EGLConfig config) {\n float[] backgroundColor = new float[]{0.2f, 0.2f, 0.2f, 1.0f};\n //float[] backgroundColor = main.getModelActivity().getBackgroundColor();\n GLES20.glClearColor(backgroundColor[0], backgroundColor[1], backgroundColor[2], backgroundColor[3]);\n\n // Use culling to remove back faces.\n // Don't remove back faces so we can see them\n GLES20.glEnable(GLES20.GL_CULL_FACE);\n\n // Enable depth testing for hidden-surface elimination.\n GLES20.glEnable(GLES20.GL_DEPTH_TEST);\n// Create the GLText\n\t\t/*glText = new GLText(unused,context.getAssets());\n\n\t\t// Load the font from file (set size + padding), creates the texture\n\t\t// NOTE: after a successful call to this the font is ready for rendering!\n\t\tglText.load( \"Roboto-Regular.ttf\", 14, 2, 2 ); // Create Font (Height: 14 Pixels / X+Y Padding 2 Pixels)\n*/\n // Enable blending for combining colors when there is transparency\n GLES20.glEnable(GLES20.GL_BLEND);\n GLES20.glBlendFunc(GLES20.GL_ONE, GLES20.GL_ONE_MINUS_SRC_ALPHA);\n\n // This component will draw the actual models using OpenGL\n drawer = new DrawerFactory();\n }", "public void initGLState() {\n\n\t\tm.setPerspective(fovy, aspect, zNear, zFar);\n\t\tglMatrixMode(GL_PROJECTION);\n\t\tglLoadIdentity();\n\n\t\tm.get(fb);\n\n\t\tglLoadMatrixf(fb);\n\n\t\tglMatrixMode(GL_MODELVIEW);\n\t\tglLoadIdentity();\n\n\t\t/* Smooth-Shading soll benutzt werden */\n\t\tglEnable(GL_NORMALIZE);\n\t\tglShadeModel(GL_SMOOTH);\n\t\tinitLighting();\n\t}", "public void bind()\r\n\t{\r\n\t\tVector3f color;\r\n\r\n\t\tcolor = ambient;\r\n\t\tglColorMaterial(GL_FRONT_AND_BACK, GL_AMBIENT);\r\n\t\tglColor4f(color.x, color.y, color.z, transparency);\r\n\r\n\t\tcolor = diffuse;\r\n\t\tglColorMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE);\r\n\t\tglColor4f(color.x, color.y, color.z, transparency);\r\n\r\n\t\tcolor = specular;\r\n\t\tglColorMaterial(GL_FRONT_AND_BACK, GL_SPECULAR);\r\n\t\tglColor4f(color.x, color.y, color.z, transparency);\r\n\r\n\t\tif (texture != null)\r\n\t\t{\r\n\t\t\ttexture.bind();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tglBindTexture(GL_TEXTURE_2D, 0);\r\n\t\t}\r\n\t}", "private static void initGL() {\n glClearColor(152/255f, 175/255f, 199/255f, 0.0f);\n glMatrixMode(GL_PROJECTION);\n glLoadIdentity();\n GLU.gluPerspective(100.0f, (float)displayMode.getWidth()/(float)\n displayMode.getHeight(), 0.1f, 500);\n glMatrixMode(GL_MODELVIEW);\n glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);\n glClearDepth(1.0f);\n glEnable(GL_DEPTH_TEST);\n glEnable(GL_TEXTURE_2D);\n glEnableClientState(GL_VERTEX_ARRAY);\n glEnableClientState(GL_COLOR_ARRAY);\n glEnableClientState(GL_TEXTURE_COORD_ARRAY);\n glEnable(GL_LIGHTING);\n glEnable(GL_LIGHT0);\n glEnable(GL_NORMALIZE);\n\n }", "public void init(SoState state)\n\n{\n // Set to GL defaults:\n// ivState.ambientColor.copyFrom( getDefaultAmbient());\n// ivState.emissiveColor.copyFrom( getDefaultEmissive());\n// ivState.specularColor.copyFrom( getDefaultSpecular());\n// ivState.shininess = getDefaultShininess();\n// ivState.colorMaterial = false;\n// ivState.blending = false;\n// ivState.lightModel = LightModel.PHONG.getValue();\n \n // Initialize default color storage if not already done\n if (defaultDiffuseColor == null) {\n defaultDiffuseColor = SbColorArray.allocate(1);\n defaultDiffuseColor.get(0).setValue(getDefaultDiffuse());\n defaultTransparency = new float[1];\n defaultTransparency[0] = getDefaultTransparency();\n defaultColorIndices = new int[1];\n defaultColorIndices[0] = getDefaultColorIndex();\n defaultPackedColor = new int[1];\n defaultPackedColor[0] = getDefaultPacked();\n }\n \n //following value will be matched with the default color, must\n //differ from 1 (invalid) and any legitimate nodeid. \n// ivState.diffuseNodeId = 0;\n// ivState.transpNodeId = 0;\n// //zero corresponds to transparency off (default).\n// ivState.stippleNum = 0;\n// ivState.diffuseColors = defaultDiffuseColor;\n// ivState.transparencies = defaultTransparency;\n// ivState.colorIndices = defaultColorIndices;\n// ivState.packedColors = defaultPackedColor;\n//\n// ivState.numDiffuseColors = 1;\n// ivState.numTransparencies = 1;\n// ivState.packed = false;\n// ivState.packedTransparent = false;\n// ivState.transpType = SoGLRenderAction.TransparencyType.SCREEN_DOOR.ordinal(); \n// ivState.cacheLevelSetBits = 0;\n// ivState.cacheLevelSendBits = 0;\n// ivState.overrideBlending = false;\n// \n// ivState.useVertexAttributes = false;\n//\n// ivState.drawArraysCallback = null;\n// ivState.drawElementsCallback = null; \n// ivState.drawArraysCallbackUserData = null;\n// ivState.drawElementsCallbackUserData = null; \n\n coinstate.ambient.copyFrom(getDefaultAmbient());\n coinstate.specular.copyFrom(getDefaultSpecular());\n coinstate.emissive.copyFrom(getDefaultEmissive());\n coinstate.shininess = getDefaultShininess();\n coinstate.blending = /*false*/0;\n coinstate.blend_sfactor = 0;\n coinstate.blend_dfactor = 0;\n coinstate.alpha_blend_sfactor = 0;\n coinstate.alpha_blend_dfactor = 0;\n coinstate.lightmodel = LightModel.PHONG.getValue();\n coinstate.packeddiffuse = false;\n coinstate.numdiffuse = 1;\n coinstate.numtransp = 1;\n coinstate.diffusearray = SbColorArray.copyOf(lazy_defaultdiffuse);\n coinstate.packedarray = IntArrayPtr.copyOf(lazy_defaultpacked);\n coinstate.transparray = FloatArray.copyOf(lazy_defaulttransp);\n coinstate.colorindexarray = IntArrayPtr.copyOf(lazy_defaultindex);\n coinstate.istransparent = false;\n coinstate.transptype = (int)(SoGLRenderAction.TransparencyType.BLEND.getValue());\n coinstate.diffusenodeid = 0;\n coinstate.transpnodeid = 0;\n coinstate.stipplenum = 0;\n coinstate.vertexordering = VertexOrdering.CCW.getValue();\n coinstate.twoside = false ? 1 : 0;\n coinstate.culling = false ? 1 : 0;\n coinstate.flatshading = false ? 1 : 0;\n coinstate.alphatestfunc = 0;\n coinstate.alphatestvalue = 0.5f;\n}", "public Color4 getEffectColorAdd();", "int GL_ACTIVE_TEXTURE();", "@Override\n\tpublic void prepareScreen() {\n\t\tgl.glColor3d(0.0, 0.0, 0.0);\n\t\tgl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\n\t}", "@Override\n public void onSurfaceCreated(GL10 unused, EGLConfig config) {\n GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n\n mTriangle = new Triangle();\n mSquare = new Square();\n }", "@Override\r\n\tpublic void onSurfaceCreated(GL10 gl, EGLConfig config) {\n\r\n\t\tgl.glDisable(GL10.GL_DITHER);\r\n\t\tgl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\r\n\t\tgl.glEnable(GL10.GL_DEPTH_TEST);\r\n\t\tgl.glDepthFunc(GL10.GL_LEQUAL);\r\n\t\tgl.glClearDepthf(1f);\r\n\t}", "@Override\n public void color(double red, double green, double blue, double alpha) {\n GL11.glColor4d(red, green, blue, alpha);\n }", "@Override\n public void onSurfaceCreated(GL10 unused, javax.microedition.khronos.egl.EGLConfig config) {\n GLES20.glClearColor(Player.colorBG[0], Player.colorBG[1], Player.colorBG[2], 1.0f);\n // initialize a triangle\n mHat = new Hat();\n robe = new Robe();\n // initialize a square\n mSquare = new Square(Player.PLAYER_ONE);\n mHat2 = new Hat();\n robe2 = new Robe();\n // initialize a square\n mSquare2 = new Square(Player.PLAYER_TWO);\n\n\n\n float[] colorWhite = {1f, 1f, 1f, 1.0f};\n p1Eye = new Circle(colorWhite);\n p2Eye = new Circle(colorWhite);\n\n }", "private native void setModelColor(float r,float g,float b);", "public GLRenderer(Context context){\n\n lastTime=System.currentTimeMillis();\n mCuboid=new ndCuboid();\n\n\n }", "@Override\n public void init() {\n glEnable( GL_BLEND );\n glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );\n glEnable( GL_LINE_SMOOTH );\n glEnable( GL_POINT_SMOOTH );\n }", "@Override\n public void render(float delta) {\n Gdx.gl.glClearColor(0f, 0f, 0f, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\n stage.act(delta);\n stage.draw();\n }", "@Override\r\n public void render(){\r\n\r\n Gdx.gl.glClearColor(1,1,1,1);\r\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\r\n stage.act(Gdx.graphics.getDeltaTime());\r\n stage.draw();\r\n }", "public void onUpdateColor() {\n getVertexBufferObject().onUpdateColor(this);\n }", "@Override\n \tpublic void draw() {\n \n \t\tGL11.glPushMatrix();\n \t\t\n \t\tGL11.glTranslatef(super.getX(), super.getY(), 0);\n \t\tGL11.glColor3f(1.0f, 1.0f, 1.0f);\n \t\tMain.BLANK_TEXTURE.bind();\n \t\tGL11.glBegin(GL11.GL_QUADS);\n \t\t{\n \t\t\t\n \t\t\tGL11.glColor3f(1.0f, 0.0f, 0.0f);\n \t\t\tGL11.glVertex2f(0, 0); // top left\n \t\t\tGL11.glVertex2f(0, Main.gridSize); // bottom left\n \t\t\tGL11.glVertex2f(Main.gridSize, Main.gridSize); // bottom right\n \t\t\tGL11.glVertex2f(Main.gridSize, 0); // top right\n \t\t\t\n \t\t\t\n \t\t\tif (isRight()) {\n \t\t\t\tGL11.glColor3f(1.0f, 1.0f, 1.0f);\n \t\t\t\tGL11.glVertex2f(12, 0);\n \t\t\t\tGL11.glVertex2f(12, 12);\n \t\t\t\tGL11.glVertex2f(Main.gridSize, 12);\n \t\t\t\tGL11.glVertex2f(Main.gridSize, 0);\n \t\t\t\t\n \t\t\t\tGL11.glColor3f(0.0f, 0.0f, 0.0f);\n \t\t\t\tGL11.glVertex2f(Main.gridSize-6, 3);\n \t\t\t\tGL11.glVertex2f(Main.gridSize-6, 9);\n \t\t\t\tGL11.glVertex2f(Main.gridSize, 9);\n \t\t\t\tGL11.glVertex2f(Main.gridSize, 3);\n \t\t\t\t\n \t\t\t} else {\n \t\t\t\tGL11.glColor3f(1.0f, 1.0f, 1.0f);\n \t\t\t\tGL11.glVertex2f(0, 0);\n \t\t\t\tGL11.glVertex2f(0, 12);\n \t\t\t\tGL11.glVertex2f(12, 12);\n \t\t\t\tGL11.glVertex2f(12, 0);\n \t\t\t\t\n \t\t\t\tGL11.glColor3f(0.0f, 0.0f, 0.0f);\n \t\t\t\tGL11.glVertex2f(0, 3);\n \t\t\t\tGL11.glVertex2f(0, 9);\n \t\t\t\tGL11.glVertex2f(4, 9);\n \t\t\t\tGL11.glVertex2f(4, 3);\n \t\t\t}\n \t\t\t\n \t\t}\n \t\tGL11.glEnd();\n \n \t\tGL11.glPopMatrix();\n \t\t\n \t}", "public void onSurfaceCreated(GL10 unused, EGLConfig config) {\n GLES20.glClearColor(0.2f, 0.7f, 0.0f, 1.0f);\n }", "private void\tsetColor(GL2 gl, int r, int g, int b, int a)\n\t{\n\t\tgl.glColor4f(r / 255.0f, g / 255.0f, b / 255.0f, a / 255.0f);\n\t}", "public void onSurfaceCreated(GL10 gl, EGLConfig config) {\n gl.glDisable(GL10.GL_DITHER);\n\n /*\n * Some one-time OpenGL initialization can be made here\n * probably based on features of this particular context\n */\n gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT,\n GL10.GL_FASTEST);\n\n float ratio = (float) width / height;\n gl.glMatrixMode(GL10.GL_PROJECTION);\n gl.glLoadIdentity();\n gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10);\n\n if (mTranslucentBackground) {\n gl.glClearColor(0,0,0,0);\n } else {\n gl.glClearColor(0.07f, 0.639f, 0.7f, 1f);\n }\n gl.glMatrixMode(GL10.GL_MODELVIEW);\n gl.glEnable(GL10.GL_CULL_FACE);\n gl.glShadeModel(GL10.GL_FLAT);\n gl.glLineWidth(2f);\n\n //lighting\n // Define the ambient component of the first light\n gl.glEnable(GL10.GL_LIGHTING);\n gl.glEnable(GL10.GL_LIGHT0);\n gl.glEnable(GL10.GL_LIGHT1);\n gl.glEnable(GL10.GL_LIGHT2);\n\n float lightColor[] = {0.07f, 0.639f, 0.7f, 1f};\n FloatBuffer light0Ambient = FloatBuffer.wrap(lightColor);\n float light1PositionVector[] = {1f, 0f, 0f, 0f};\n FloatBuffer light1Position = FloatBuffer.wrap(light1PositionVector);\n float light2PositionVector[] = {-1f, 0f, 0f, 0f};\n FloatBuffer light2Position = FloatBuffer.wrap(light2PositionVector);\n\n gl.glLightfv(GL10.GL_LIGHT1, GL10.GL_AMBIENT, light0Ambient);\n gl.glLightfv(GL10.GL_LIGHT1, GL10.GL_POSITION, light1Position);\n gl.glLightfv(GL10.GL_LIGHT2, GL10.GL_AMBIENT, light0Ambient);\n gl.glLightfv(GL10.GL_LIGHT2, GL10.GL_POSITION, light2Position);\n }", "public void Color() {\n\t\t\r\n\t}", "@Override\n public void preUpdate(GameState currentState) {\n if (window.isCloseRequested())\n engine.shutdown();\n if (glUtils != null) {\n glUtils.color(0.1960784314f, 0.3921568627f, 0.6588235294f, 1.0f);\n glUtils.clear(true, true);\n }\n }", "public void draw() {\n\t\t\tfloat[] vertices = new float[mVertices.size()];\n\t\t\tfor (int i = 0; i < vertices.length; i++)\n\t\t\t\tvertices[i] = mVertices.get(i);\n\t\t\t\n\t\t\tfloat[] textureCoords = null;\n\t\t\tif (mTextureID != 0) {\n\t\t\t\ttextureCoords = new float[mTextureCoords.size()];\n\t\t\t\tfor (int i = 0; i < textureCoords.length; i++)\n\t\t\t\t\ttextureCoords[i] = mTextureCoords.get(i);\n\t\t\t}\n\t\t\t\n\t\t\tshort[] indices = new short[mIndices.size()];\n\t\t\tfor (int i = 0; i < indices.length; i++)\n\t\t\t\tindices[i] = mIndices.get(i);\n\t\t\t\n\t\t\t// Get OpenGL\n\t\t\tGL10 gl = GameGraphics2D.this.mGL;\n\t\t\t\n\t\t\t// Set render state\n\t\t\tgl.glDisable(GL10.GL_LIGHTING);\n\t\t\tgl.glEnable(GL10.GL_DEPTH_TEST);\n\t\t\tgl.glEnable(GL10.GL_BLEND);\n\n\t\t\tif (mBlendingMode == BLENDING_MODE.ALPHA)\n\t\t\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);\n\t\t\telse if (mBlendingMode == BLENDING_MODE.ADDITIVE)\n\t\t\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE);\n\t\t\t\n\t\t\tif (mTextureID != 0)\n\t\t\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\t\t\telse\n\t\t\t\tgl.glDisable(GL10.GL_TEXTURE_2D);\n\t\t\t\n\t\t\t// Draw the batch of textured triangles\n\t\t\tgl.glColor4f(Color.red(mColour) / 255.0f,\n\t\t\t\t\t\t Color.green(mColour) / 255.0f,\n\t\t\t\t\t\t Color.blue(mColour) / 255.0f,\n\t\t\t\t\t\t Color.alpha(mColour) / 255.0f);\n\t\t\t\n\t\t\tif (mTextureID != 0) {\n\t\t\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID);\n\t\t\t\tgl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(textureCoords));\n\t\t\t}\n\t\t\t\n\t\t\tgl.glVertexPointer(3, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(vertices));\n\t\t\tgl.glDrawElements(GL10.GL_TRIANGLES, indices.length,\n\t\t\t\t\tGL10.GL_UNSIGNED_SHORT, GameGraphics.getShortBuffer(indices));\n\t\t}", "private void fixColorState() {\n\t\tfinal Spatial lines = this.getChild(LINES_NAME);\n \tTealWorldManager.getWorldManager().addRenderUpdater(new RenderUpdater(){\n \t\tpublic void update(Object arg) { \t\t\t\n \t\t\tboolean coloredVertices = (Boolean) arg;\n \t\t\tMaterialState ms = (MaterialState) lines.getRenderState(RenderState.StateType.Material);\n \t\t\tif(ms == null) {\n \t\t\t\tms = DisplaySystem.getDisplaySystem().getRenderer().createMaterialState();\n \t\t\t\tms.setColorMaterial(ColorMaterial.AmbientAndDiffuse);\n \t\t\t\tlines.setRenderState(ms);\n \t\t\t}\n \t\t\tms.setEnabled(coloredVertices);\n \t\t};\n \t}, this.coloredVertices);\n\t}", "private void renderLights() {\n\t\t\n\t}", "@Override\r\n\tpublic void init(GL10 gl, EGLConfig config) {\n try {\r\n loadGLTextures(gl);\t\t\t\t\t\t\t\t\t\t// Jump To Texture Loading Routine ( NEW )\r\n } catch (IOException e) {\r\n \tLog.e(\"120\", \"An error occured!\");\r\n e.printStackTrace();\r\n }\r\n\r\n gl.glEnable(GL10.GL_TEXTURE_2D);\t\t\t\t\t\t\t\t\t// Enable Texture Mapping ( NEW )\r\n gl.glShadeModel(GL10.GL_SMOOTH);\t\t\t\t\t\t\t\t\t// Enable Smooth Shading\r\n gl.glClearColor(0.0f, 0.0f, 0.0f, 0.5f);\t\t\t\t\t\t// Black Background\r\n gl.glClearDepthf(1.0f);\t\t\t\t\t\t\t\t\t\t\t// Depth Buffer Setup\r\n gl.glEnable(GL10.GL_DEPTH_TEST);\t\t\t\t\t\t\t\t\t// Enables Depth Testing\r\n gl.glDepthFunc(GL10.GL_LEQUAL);\t\t\t\t\t\t\t\t\t\t// The Type Of Depth Testing To Do\r\n gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST);\t\t\t// Really Nice Perspective Calculations\r\n\t}", "@Override\r\n\tprotected void preRenderCallback(EntityAngel entitylivingbaseIn, float partialTickTime)\r\n {\r\n GlStateManager.scale(0.8F, 0.8F, 0.8F);\r\n }", "public GL4JRenderer()\r\n\t{\r\n\t\t//gl = this;\r\n\t\tsuper(256,256);\r\n\t\tActorSet = new Vector();\r\n\t\tLightSet = new Vector();\r\n\t\tCameraSet = new Vector();\r\n\t\tActions = new Vector();\r\n\t\tinitLess = true;\r\n\t\tMouseDown = 0;\r\n\t\tLastMouse = new int[2];\r\n\t\tInternalTexture = new int[1];\r\n\t\tInternalTexture[0] = 0;\r\n\t\tKeyHandler = null;\r\n\t\tClockThread = null;\r\n\t\tglut = new GLUTFuncLightImpl(gl, glu);\r\n\t\taddMouseMotionListener(this);\r\n\t\taddKeyListener(this);\r\n\t\tcurrTime = 0;\r\n\t}", "@Override\n public void render(float delta) {\n Gdx.gl.glClearColor(0.4f, 0.737f, 0.929f, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\n checkForBack();\n\n stage.act();\n stage.draw();\n }", "void glAttachShader(int program, int shader);", "public void prepare(){\n\t\tGL11.glEnable(GL11.GL_DEPTH_TEST);\n\t\tGL11.glClear( GL11.GL_COLOR_BUFFER_BIT|GL11.GL_DEPTH_BUFFER_BIT );\n\t\tGL11.glClearColor(1, 0, 0, 1);\n\t\t\n\t}", "private void init(Context context) {\n setEGLContextClientVersion(3);\n\n mRenderer = new MyGLRenderer(context);\n\n // Set the Renderer for drawing on the GLSurfaceView\n setRenderer(mRenderer);\n// setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY);\n }", "@Override\n public void onSurfaceCreated(GL10 unused, EGLConfig config) {\n GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n \n // Do backface culling\n GLES20.glEnable(GLES20.GL_CULL_FACE);\n GLES20.glFrontFace(GLES20.GL_CCW);\n // Why using GL_BACK won't work is a mystery\n GLES20.glCullFace(GLES20.GL_BACK);\n // Enable depth buffer\n GLES20.glEnable(GLES20.GL_DEPTH_TEST);\n GLES20.glDepthFunc(GLES20.GL_LEQUAL);\n GLES20.glDepthMask(true);\n \n for (int i = 0; i < NUM_CARS; i++) {\n mCarBody[i] = new CarBody((float) Math.random(),\n (float) Math.random(),\n (float) Math.random());\n mCarWheels[i] = new CarWheels();\n }\n \n // Create transformation matrices for each car\n for (int i = 0; i < NUM_CARS; i++) {\n mCarXOffsets[i] = (i % NUM_LANES) * 1.1f;\n mCarZOffsets[i] = ((i / NUM_LANES) * -2) + ((i % NUM_LANES) * 1.3f);\n }\n \n road = new Square(0.6f, 0.6f, 0.6f);\n land = new Square(0.1f, 0.6f, 0.1f);\n sky = new Square(0.6f, 0.6f, 0.9f);\n background = new Sprite(mActivityContext);\n \n }", "@Override\n\tpublic void onSurfaceCreated(GL10 unused, EGLConfig config) {\n\t\tGLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n\n\t\tmTriangle = new M15_OpenGLES20Triangle();\n\t\tmQuadrat = new M15_OpenGLES20Quadrat();\n\t}", "public static void init() {\n\t\tsetOrtho(Display.getWidth(), Display.getHeight());\n\t\tglEnable(GL_BLEND);\n\t\tglBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);\n\t\t\n\t\tLights.init();\n\t\tenableCulling();\n\t}", "@Override\n\tpublic void render(float delta) {\n\t\tGdx.gl.glClearColor( 0, 1, 1, 1 );\n\t\tGdx.gl.glClear( GL10.GL_COLOR_BUFFER_BIT );\n\t\t\n\t\tstage.act();\n\t\tstage.draw();\n\t\t\n\t\tsuper.render(delta);\n\t}", "@Override\n\tpublic void render(float delta) {\n\t\tGdx.gl.glClearColor(0, 0, 0.9f, 1);\n\t\tGdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\t\t\n\t\tbatch.begin();\n\t\tstage.act();\n\t\tstage.draw();\n\t\tbatch.end();\n\t}", "@Override\n public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {\n GL2 gl = drawable.getGL().getGL2(); // get the OpenGL 2 graphics context\n \n if (height == 0) height = 1; // prevent divide by zero\n float aspect = (float)width / height;\n \n \n gl.glViewport(0, 0, width, height);\n \n gl.glClearDepth(1.0f);\n gl.glEnable(GL.GL_DEPTH_TEST);\n gl.glDepthFunc(GL.GL_LEQUAL);\n gl.glShadeModel(GL.GL_LINE_SMOOTH);\n gl.glHint(GL2.GL_PERSPECTIVE_CORRECTION_HINT, GL.GL_NICEST);\n\n gl.glEnable(GL2.GL_DEPTH_TEST);\n gl.glEnable(GL2.GL_NORMALIZE);\n gl.glEnable(GL2.GL_LIGHTING);\n gl.glEnable(GL2.GL_LIGHT0);\n gl.glEnable(GL2.GL_COLOR_MATERIAL);\n \n gl.glMatrixMode(GL2.GL_PROJECTION); \n gl.glLoadIdentity(); \n glu.gluPerspective(60.0, aspect, 0.1, 1000.0); \n\n float []lightPos={-40,100,40,0};\n float ambient[] = {0.1f, 0.1f, 0.1f,1.0f} ;\n float diffuse[] = {0.5f, 0.5f, 0.5f,1.0f} ;\n float spec[] = {0.0f, 0.0f, 0.0f,1.0f};\n float emiss[] = {0.0f, 0.0f, 0.0f,2.0f}; \n \tgl.glColorMaterial(GL2.GL_FRONT, GL2.GL_AMBIENT_AND_DIFFUSE);\n \tgl.glLightfv(GL2.GL_LIGHT0, GL2.GL_POSITION, lightPos,0);\n \tgl.glLightfv(GL2.GL_LIGHT0, GL2.GL_AMBIENT, ambient,0);\n \tgl.glLightfv(GL2.GL_LIGHT0, GL2.GL_DIFFUSE, diffuse,0);\n \n gl.glMatrixMode(GL2.GL_MODELVIEW);\n gl.glLoadIdentity(); // reset\n OneTriangle.setup(gl, width, height);\n }", "public void setColor(float r, float g, float b, float a);", "public void onSurfaceCreated(GL10 gl, EGLConfig config) {\n gl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n \n bgTex = new Texture(gl);\n bgTex.Load(BitmapFactory.decodeResource(getResources(), R.drawable.game_bg));\n playerTex = new Texture(gl);\n playerTex.Load(BitmapFactory.decodeResource(getResources(), R.drawable.player));\n scoreTex = new Texture(gl);\n scoreTex.Load(BitmapFactory.decodeResource(getResources(), R.drawable.score));\n enemyTex = new Texture(gl);\n enemyTex.Load(BitmapFactory.decodeResource(getResources(), R.drawable.enemy));\n invincTex = new Texture(gl);\n invincTex.Load(BitmapFactory.decodeResource(getResources(), R.drawable.invincible));\n slowmoTex = new Texture(gl);\n slowmoTex.Load(BitmapFactory.decodeResource(getResources(), R.drawable.slowdown));\n minisquareTex = new Texture(gl);\n minisquareTex.Load(BitmapFactory.decodeResource(getResources(), R.drawable.smallsquare));\n plus1000Tex = new Texture(gl);\n plus1000Tex.Load(BitmapFactory.decodeResource(getResources(), R.drawable.plus1000));\n evilTex = new Texture(gl);\n evilTex.Load(BitmapFactory.decodeResource(getResources(), R.drawable.evil));\n speedTex = new Texture(gl);\n speedTex.Load(BitmapFactory.decodeResource(getResources(), R.drawable.speedup));\n bigsquareTex = new Texture(gl);\n bigsquareTex.Load(BitmapFactory.decodeResource(getResources(), R.drawable.bigsquare));\n minus1000Tex = new Texture(gl);\n minus1000Tex.Load(BitmapFactory.decodeResource(getResources(), R.drawable.minus1000));\n }", "@Override\n\tpublic void render(float delta) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tGdx.gl.glClearColor(0, 0, 0.2f, 1);\n\t Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\t stage.act(Math.min(Gdx.graphics.getDeltaTime(), 1 / 30f));\n stage.draw();\n \n\t}", "void glActiveTexture(int texture);", "void glActiveTexture(int texture);", "public void draw() {\n background(0);\n}", "public void init(GLAutoDrawable drawable) {\n koparka = new Koparka();\n scena = new Scena();\n GL gl = drawable.getGL();\n System.err.println(\"INIT GL IS: \" + gl.getClass().getName());\n\n // Enable VSync\n gl.setSwapInterval(1);\n\n // Setup the drawing area and shading mode\n gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);\n gl.glShadeModel(GL.GL_SMOOTH); \ngl.glEnable(GL.GL_CULL_FACE);// try setting this to GL_FLAT and see what happens.\n//wartości składowe oświetlenia i koordynaty źródła światła\n\n\n//(czwarty parametr określa odległość źródła:\n//0.0f-nieskończona; 1.0f-określona przez pozostałe parametry)\ngl.glEnable(GL.GL_LIGHTING); //uaktywnienie oświetlenia\n//ustawienie parametrów źródła światła nr. 0\ngl.glLightfv(GL.GL_LIGHT0,GL.GL_AMBIENT,ambientLight,0); //swiatło otaczające\ngl.glLightfv(GL.GL_LIGHT0,GL.GL_DIFFUSE,diffuseLight,0); //światło rozproszone\ngl.glLightfv(GL.GL_LIGHT0,GL.GL_SPECULAR,specular,0); //światło odbite\ngl.glLightfv(GL.GL_LIGHT0,GL.GL_POSITION,lightPos,0);\ngl.glLightfv( GL.GL_LIGHT0, GL.GL_SPOT_DIRECTION, direction ,0);\ngl.glLightf( GL.GL_LIGHT0, GL.GL_SPOT_EXPONENT, 1.0f );\ngl.glLightf( GL.GL_LIGHT0, GL.GL_SPOT_CUTOFF, 1.0f);//pozycja światła\ngl.glEnable(GL.GL_LIGHT0);\n\ngl.glLightfv(GL.GL_LIGHT1,GL.GL_AMBIENT,ambientLight,0); //swiatło otaczające\ngl.glLightfv(GL.GL_LIGHT1,GL.GL_DIFFUSE,diffuseLight,0); //światło rozproszone\ngl.glLightfv(GL.GL_LIGHT1,GL.GL_SPECULAR,specular,0); //światło odbite\ngl.glLightfv(GL.GL_LIGHT1,GL.GL_POSITION,lightPos2,0); //pozycja światła\ngl.glEnable(GL.GL_LIGHT1);//uaktywnienie źródła światła nr. 0\ngl.glEnable(GL.GL_COLOR_MATERIAL); //uaktywnienie śledzenia kolorów\n//kolory będą ustalane za pomocą glColor\ngl.glColorMaterial(GL.GL_FRONT, GL.GL_AMBIENT_AND_DIFFUSE);\n//Ustawienie jasności i odblaskowości obiektów\nfloat specref[] = { 1.0f, 1.0f, 1.0f, 1.0f }; //parametry odblaskowo?ci\n gl.glMaterialfv(GL.GL_FRONT, GL.GL_SPECULAR,specref,0);\n \n gl.glMateriali(GL.GL_FRONT,GL.GL_SHININESS,128);\n gl.glEnable(GL.GL_DEPTH_TEST);\n try\n {\n \n image1=ImageIO.read(getClass().getResourceAsStream(\"/bok.jpg\"));\n image2=ImageIO.read(getClass().getResourceAsStream(\"/niebo.jpg\"));\n image3=ImageIO.read(getClass().getResourceAsStream(\"/trawa.jpg\"));\n \n }\n catch (Exception ex)\n {\n return;\n }\n t1 = TextureIO.newTexture(image1, false);\nt2 = TextureIO.newTexture(image2, false);\nt3 = TextureIO.newTexture(image3, false);\ngl.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_TEXTURE_ENV_MODE,\n GL.GL_BLEND | GL.GL_MODULATE);\ngl.glEnable(GL.GL_TEXTURE_2D);\ngl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_S, GL.GL_REPEAT);\ngl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_T, GL.GL_REPEAT);\ngl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_NEAREST);\ngl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_NEAREST);\ngl.glBindTexture(GL.GL_TEXTURE_2D, t1.getTextureObject());\n\n }", "int glCreateProgram();", "private void drawBox() {\n GLES20.glEnable(GLES20.GL_SCISSOR_TEST);\n GLES20.glScissor(0, 0, 100, 100);\n GLES20.glClearColor(1.0f, 0.0f, 0.0f, 1.0f);\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);\n GLES20.glDisable(GLES20.GL_SCISSOR_TEST);\n }", "@Override\n\tpublic void onDrawFrame(GL10 gl) {\n\t\tgl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); \n\t\t//set vertices shared by all cubes\n\t\t//set vertexpointer(3memberXYZ,FloatData,3Float*4Byte,dataBuffer)\n\t\tgl.glVertexPointer(3, GL10.GL_FLOAT, 12, vertices);\n\t\t//set normals shared by all cubes\n\t\t//normalpointer(dataTYPE,3float*4bytes,dataBuffer)\n\t\tgl.glNormalPointer(GL10.GL_FLOAT, 12, normals);\n\n\t\t//set light parameters\n\t\tgl.glLoadIdentity();\n\t\t//RGBA ambient light colors\n\t\tfloat[] ambientColor = { 0.1f, 0.11f, 0.1f, 1f }; \n\t\t//glLightModelfv(ambientLight, array with color, offset to color)\n\t\tgl.glLightModelfv(GL10.GL_LIGHT_MODEL_AMBIENT, ambientColor, 0);\n\t\t//position from where the light comes to the origin\n\t\tfloat[] pos = {3, 0, 2, 0};\n\t\t//set source1 position \n\t\t//glLightfv(source id, parameter, data array, offset);\n\t\tgl.glLightfv(GL10.GL_LIGHT0, GL10.GL_POSITION, pos, 0);\n\n\t\t//enable lighting\n\t\tgl.glEnable(GL10.GL_LIGHTING);\n\t\t//enable source 1\n\t\tgl.glEnable(GL10.GL_LIGHT0);\n\t\t//light shade model interpolate\n\t\tgl.glShadeModel(GL10.GL_SMOOTH);\n\t\t//enable material\n\t\tgl.glEnable(GL10.GL_COLOR_MATERIAL);\n\t\t\n\t\t//1st cube will use default color, so disable color array\n\t\tgl.glDisableClientState(GL10.GL_COLOR_ARRAY);\n\t\t//set default render color for 2nd cube\n\t\tgl.glColor4f(0, 1, 0.5f, 1);\n\t\t\t\t\n\t\t//transform 1st cube\n\t\tgl.glLoadIdentity();\n\t\tgl.glTranslatef(0, 0, -8);\n\t\tgl.glScalef(0.3f, 0.3f, 0.3f);\t\n\t\tgl.glRotatef(angle, 1, 1, 0);\n\t\t\t\t\n\t\t//draw first cube\n\t\tgl.glDrawElements(GL10.GL_TRIANGLES, 36, GL10.GL_UNSIGNED_SHORT, index);\n\t\t//GL10.glDrawElements(DrawType,36 indices,shorData,dataBuffer)\n\t\t\n\t\t//second cube with Vertexcolor\n\t\t//enable color array\n\t\tgl.glEnableClientState(GL10.GL_COLOR_ARRAY);\n\t\t//glcolorpointer(4members RGBA,dataType,4floats*4bytes,dataBuffer)\n\t\tgl.glColorPointer(4, GL10.GL_FLOAT, 16, colors);\n\t\t\t\t\n\t\t//set transformation for second cube\n\t\tgl.glLoadIdentity();\n\t\tgl.glTranslatef(0, 0, -8);\n\t\tgl.glRotatef(angle, 0, 1, 0);\n\t\t//Draw second cube\n\t\tgl.glDrawElements(GL10.GL_TRIANGLES, 36, GL10.GL_UNSIGNED_SHORT, index);\n\t\t\n\t\t//third cube will use texture, disable color array\n\t\tgl.glDisableClientState(GL10.GL_COLOR_ARRAY);\n\t\t//set default color to solid white\n\t\tgl.glColor4f(1, 1, 1, 1);\n\t\t//enable texture coordinates array\n\t\tgl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);\n\t\t//enable 2D texture for bind\n\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\t\t//set texturecoord pointer\n\t\tgl.glTexCoordPointer(2, GL10.GL_FLOAT, 8, texturemap); \n\t\t//bind texture\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, textureId);\n\t\t\n\t\t//translate 3rd cube\n\t\tgl.glLoadIdentity();\n\t\tgl.glTranslatef(-5, -1, -7);\n\t\tgl.glRotatef(-angle, 0, 1, 0);\n\t\t//draw 3rd cube\n\t\tgl.glDrawElements(GL10.GL_TRIANGLES, 36, GL10.GL_UNSIGNED_SHORT, index);\n\t\t//unbind texture so other cubes dont use texture\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, 0);\n\t\t//disable texture state if not next frame first cube \n\t\t//will try to use the texture\n\t\tgl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY);\n\t\tgl.glDisable(GL10.GL_TEXTURE_2D);\n\t\tangle++;\n\t}", "public void render(float delta) {\n Gdx.gl.glClearColor(0.1f, 0.1f, 0.1f, 0.1f);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n camera.update();\n game.batch.setProjectionMatrix(camera.combined);\n game.batch.begin();\n\n stage.draw();\n game.batch.end();\n game.batch.begin();\n font12.draw(game.batch, \"2Pool4Skool\", 220, 465);\n game.batch.end();\n\n }", "@Override\r\n\tpublic void surfaceCreated(GL10 gl) {\n\t\tgl.glDisable(GL10.GL_DITHER);\r\n\t\t\r\n\t\t// One-time OpenGL initialization based on context...\r\n gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT,\r\n GL10.GL_NICEST);\r\n\t\t\r\n gl.glClearColor(0, 0, 0, 1); \r\n gl.glEnable(GL10.GL_CULL_FACE);\r\n gl.glCullFace(GL10.GL_BACK);\r\n gl.glEnable(GL10.GL_DEPTH_TEST);\r\n gl.glEnable(GL10.GL_LIGHTING);\r\n gl.glDepthFunc(GL10.GL_LEQUAL);\r\n gl.glShadeModel(GL10.GL_SMOOTH);\r\n \r\n if(scene != null && use_vbos) {\r\n \t\t// TODO messy...\r\n \t\tscene.forgetHardwareBuffers();\r\n \t\tscene.generateHardwareBuffers(gl);\r\n }\r\n }", "@Override\n public void onSurfaceCreated(GL10 gl, EGLConfig config) {\n gl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); // Set color's clear-value to black\n gl.glClearDepthf(1.0f); // Set depth's clear-value to farthest\n gl.glEnable(GL10.GL_DEPTH_TEST); // Enables depth-buffer for hidden surface removal\n gl.glDepthFunc(GL10.GL_LEQUAL); // The type of depth testing to do\n gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST); // nice perspective view\n gl.glShadeModel(GL10.GL_SMOOTH); // Enable smooth shading of color\n gl.glDisable(GL10.GL_DITHER); // Disable dithering for better performance\n \n // You OpenGL|ES initialization code here\n\n \n \n }", "public Light(){\n this(0.0, 0.0, 0.0);\n }", "public GameColor getColor();", "@Override\n public void render(float delta) {\n Gdx.gl.glClearColor(0,0,0,1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\n batch.begin();\n background.draw(batch);\n batch.end();\n\n renderer.setView(camera);\n renderer.render();\n\n }", "public void drawBale() {\n\t\tvertexData.position(0);\n\t\tglVertexAttribPointer(mPositionHandle, POSITION_COMPONENT_COUNT,\n\t\t\t\tGL_FLOAT, false, 0, vertexData);\n\n\t\tglEnableVertexAttribArray(mPositionHandle);\n\n\t\t// Pass in the color information\n\t\tcolorData.position(0);\n\t\tglVertexAttribPointer(mColorHandle, COLOR_COMPONENT_COUNT,\n\t\t\t\tGL_FLOAT, false, 0, colorData);\n\n\t\tglEnableVertexAttribArray(mColorHandle);\n\t\t\n\t\t// Pass in the texture coordinate information\n textureData.position(0);\n GLES20.glVertexAttribPointer(mTextureCoordHandle, TEXTURE_COMPONENT_COUNT, GLES20.GL_FLOAT, false, \n \t\t0, textureData);\n \n GLES20.glEnableVertexAttribArray(mTextureCoordHandle);\n\n\t\t// This multiplies the view matrix by the model matrix, and stores the\n\t\t// result in the MVP matrix\n\t\t// (which currently contains model * view).\n\t\tmultiplyMM(mMVPMatrix, 0, mViewMatrix, 0, mModelMatrix, 0);\n\n\t\t// Pass in the modelview matrix.\n\t\tglUniformMatrix4fv(mMVMatrixHandle, 1, false, mMVPMatrix, 0);\n\n\t\t// This multiplies the modelview matrix by the projection matrix, and\n\t\t// stores the result in the MVP matrix\n\t\t// (which now contains model * view * projection).\n\t\tMatrix.multiplyMM(mMVPMatrix, 0, mProjectionMatrix, 0, mMVPMatrix, 0);\n\n\t\t// Pass in the combined matrix.\n\t\tglUniformMatrix4fv(mMVPMatrixHandle, 1, false, mMVPMatrix, 0);\n\n\t\t// Draw the cube.\n\t\tglDrawArrays(GL_TRIANGLES, 0, 60);\n\t\tglDrawArrays(GL_TRIANGLE_FAN, 60, 12);\n\t\tglDrawArrays(GL_TRIANGLE_FAN, 72, 12);\n\t}", "private void updateColor() {\n int redShift = red << 16; // red: 0xRR0000 <- 0xRR\n int greenShift = green << 8; // red: 0xGG00 <- 0xGG\n int blueShift = blue; // blue: 0xBB <- 0xBB\n int alphaShift = 0xff << 24; // alpha 0xff000000 <- 0xff // we don't want our color to be transparent.\n int color = alphaShift | redShift | greenShift | blueShift;\n viewColor.setBackgroundColor(color);\n }", "public void setvColor(float red, float green, float blue)\n {\n GLES20.glUniform4f(uColor, red, green, blue, 1.0f);\n }", "@Override\r\n\tpublic void render(float delta) {\n\t\tif(game.getScreen().getClass().getName().equals(\"by.aleks.christmasboard.screens.SplashScreen\")){\r\n\t\t\tGdx.gl.glClearColor(0f, 0f, 0f, 1);\r\n\t\t} else Gdx.gl.glClearColor(BACKGROUND_COLOR.r, BACKGROUND_COLOR.g, BACKGROUND_COLOR.b, BACKGROUND_COLOR.a);\r\n\t\t\r\n\t\tGdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);\r\n\r\n\t\tstage.act(delta);\r\n\t\tstage.draw();\r\n\t}", "public void onSurfaceCreated(GL10 unused, EGLConfig config)\n {\n GLES20.glClearColor(1.0f, 0.2f, 0.2f, 1.0f);\n //mSquare = ne\n bigStar = new Star(0.2f);\n //bigStar.setColor(0,0,1,0.5f);\n for (int i = 0; i < instantiateNumber; i++)\n {\n symbols.add(new Star(0.1f));\n //symbols.get(i).setColor(0, (i * 0.015f),0);\n trail.add(new Vec2(0,0));\n }\n }", "void setColor(){\n this.objectColour = new Color(rValue,gValue,bValue,timeToLive).brighter();\n }", "private void materialSetup(GL gl)\n {\n\tfloat white[] = { 1.0f, 1.0f, 1.0f, 1.0f };\n\tfloat black[] = { 0.0f, 0.0f, 0.0f, 1.0f };\n\tfloat dim[] = { 0.1f, 0.1f, 0.1f, 1.0f };\n\t\n\t// Set up material and light\n\tgl.glMaterialfv(GL.GL_FRONT_AND_BACK, GL.GL_AMBIENT, dim, 0);\n\tgl.glMaterialfv(GL.GL_FRONT_AND_BACK, GL.GL_DIFFUSE, white, 0);\n\tgl.glMaterialfv(GL.GL_FRONT_AND_BACK, GL.GL_SPECULAR, dim, 0);\n\tgl.glMaterialf(GL.GL_FRONT_AND_BACK, GL.GL_SHININESS, 5);\n\n\t// Set light color\n \tgl.glLightfv(GL.GL_LIGHT0, GL.GL_AMBIENT, dim, 0);\n \tgl.glLightfv(GL.GL_LIGHT0, GL.GL_DIFFUSE, white, 0);\n \tgl.glLightfv(GL.GL_LIGHT0, GL.GL_SPECULAR, black, 0);\n\n\t// Turn on light and lighting\n\tgl.glEnable(GL.GL_LIGHT0);\n\tgl.glEnable(GL.GL_LIGHTING);\n\n\t// Allow glColor() to affect current diffuse material\n\tgl.glColorMaterial(GL.GL_FRONT_AND_BACK, GL.GL_DIFFUSE);\n\tgl.glEnable(GL.GL_COLOR_MATERIAL);\n }", "public void update(GL2 gl){}", "@Override\n public void onDrawFrame(GL10 glUnused) {\n // Clear the rendering surface.\n glClear(GL_COLOR_BUFFER_BIT);\n\n\n\t\tglUniform4f(uColorLocation, 1.0f, 1.0f, 1.0f, 0.0f);\n\t\tglDrawArrays(GL_LINES, 0, 108);\n\n\t\tglUniform4f(uColorLocation, 1.0f, 1.0f, 1.0f, 0.0f);\n\t\tglDrawArrays(GL_LINES, 108, 40);\n\t\t\n\t\tglUniform4f(uColorLocation, 1.0f, 1.0f, 0.0f, 0.0f);\n\t\tglDrawArrays(GL_TRIANGLES, 148, 988);\n\t\t\n\t\tglUniform4f(uColorLocation, 1.0f, 1.0f, 1.0f, 0.0f);\n\t\tglDrawArrays(GL_TRIANGLES, 988, 997);\n\t\t\n\t\tglUniform4f(uColorLocation, 1.0f, 1.0f, 1.0f, 0.0f);\n\t\tglDrawArrays(GL_TRIANGLES, 997, 6);\n\t\n\t\tglUniform4f(uColorLocation, 0.0f, 0.0f, 1.0f, 0.0f);\n\t\tglDrawArrays(GL_TRIANGLES, 1003, 6);\n\t\t\n\t\tglUniform4f(uColorLocation, 0.5f, 0.5f, 0.5f, 0.5f);\n\t\tglDrawArrays(GL_TRIANGLES, 1009, 9);\n }", "@Override\r\n\tpublic void onDrawFrame(GL10 gl) {\n\t\tgl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);\r\n\r\n\t\tgl.glMatrixMode(GL10.GL_PROJECTION);\r\n\t\tgl.glLoadIdentity();\r\n\t\tgl.glLightfv(GL10.GL_LIGHT0, GL10.GL_POSITION,\r\n\t\t\t\tnew float[] { 5, 5, 5, 1 }, 0);\r\n\r\n\t\tgl.glRotatef(anglez, 0, 0, 1);\r\n\t\tgl.glRotatef(angley, 0, 1, 0);\r\n\t\tgl.glRotatef(anglex, 1, 0, 0);\r\n\t\tanglez += 0.1;\r\n\t\tangley += 0.2;\r\n\t\tanglex += 0.3;\r\n\r\n\t\tgl.glEnableClientState(GL10.GL_VERTEX_ARRAY);\r\n\t\t// gl.glEnableClientState(GL10.GL_NORMAL_ARRAY);\r\n\t\tgl.glEnableClientState(GL10.GL_COLOR_ARRAY);\r\n\r\n\t\tgl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexesBuffer);\r\n\t\tgl.glColorPointer(4, GL10.GL_FLOAT, 0, colorBuffer);\r\n\t\tgl.glDrawElements(GL10.GL_TRIANGLES, triangleBuffer.remaining(),\r\n\t\t\t\tGL10.GL_UNSIGNED_BYTE, triangleBuffer);\r\n\r\n\t\tgl.glDisableClientState(GL10.GL_VERTEX_ARRAY);\r\n\t\tgl.glDisableClientState(GL10.GL_COLOR_ARRAY);\r\n\t\tgl.glFinish();\r\n\r\n\t}", "public void Render(){\n //player rect\n glPushMatrix();\n glTranslatef(px, py, 0.0f);\n glBegin(GL_TRIANGLES);\n glColor3f(1.0f, 1.0f, 1.0f);\n glVertex2f(-sx, sy);\n glVertex2f(-sx, -sy);\n glVertex2f(sx, sy);\n glVertex2f(sx, sy);\n glVertex2f(-sx, -sy);\n glVertex2f(sx, -sy);\n glEnd();\n glPopMatrix();\n \n if(debug){\n glPushMatrix();\n glBegin(GL_LINES);\n glColor3f(0f, 1f, 0f);\n glVertex2f(px-sx, py+sy/2);\n glVertex2f(px+sx, py+sy/2);\n glColor3f(0f, 1f, 0f);\n glVertex2f(px-sx, py-sy/2);\n glVertex2f(px+sx, py-sy/2);\n glEnd();\n glPopMatrix();\n }\n \n }", "@Override\n public void render(float delta) {\n update();\n\n Gdx.gl.glClearColor(0, 0, 0, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\n //Idk what this does still\n //camera.update();\n //Supposedly makes it so that any quality screen works\n game.batch.setProjectionMatrix(camera.combined);\n\n\n game.batch.begin();\n //menuBackground.render();\n game.font.draw(game.batch, \"Escape Room\", MyGdxGame.SCREEN_WIDTH/2 - 350/2, MyGdxGame.SCREEN_HEIGHT-250);\n game.batch.end();\n //Renders HUD\n menuHUD.stage.draw();\n }", "public void RenderMiningCharge( FCEntityMiningCharge miningCharge, double d, double d1, double d2, \r\n float f, float f1 )\r\n {\r\n \tint iFacing = miningCharge.m_iFacing;\r\n \t\r\n GL11.glPushMatrix();\r\n GL11.glTranslatef((float)d, (float)d1, (float)d2);\r\n \r\n if(((float)miningCharge.m_iFuse - f1) + 1.0F < 10F)\r\n {\r\n float fScaleFactor = 1.0F - (((float)miningCharge.m_iFuse - f1) + 1.0F) / 10F;\r\n \r\n if(fScaleFactor < 0.0F)\r\n {\r\n fScaleFactor = 0.0F;\r\n }\r\n if(fScaleFactor > 1.0F)\r\n {\r\n fScaleFactor = 1.0F;\r\n }\r\n \r\n fScaleFactor *= fScaleFactor;\r\n fScaleFactor *= fScaleFactor;\r\n \r\n float fScale = 1.0F + fScaleFactor * 0.3F;\r\n \r\n GL11.glScalef( fScale, fScale, fScale );\r\n }\r\n \r\n float f3 = (1.0F - (((float)miningCharge.m_iFuse - f1) + 1.0F) / 100F) * 0.8F;\r\n \r\n this.loadTexture(\"/terrain.png\");\r\n \r\n RenderMiningChargeBlock( iFacing, miningCharge.getBrightness(f1));\r\n \r\n if((miningCharge.m_iFuse / 5) % 2 == 0)\r\n {\r\n GL11.glDisable(3553 /*GL_TEXTURE_2D*/);\r\n GL11.glDisable(2896 /*GL_LIGHTING*/);\r\n GL11.glEnable(3042 /*GL_BLEND*/);\r\n GL11.glBlendFunc(770, 772);\r\n GL11.glColor4f(1.0F, 1.0F, 1.0F, f3);\r\n RenderMiningChargeBlock( iFacing, 1.0F);\r\n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\r\n GL11.glDisable(3042 /*GL_BLEND*/);\r\n GL11.glEnable(2896 /*GL_LIGHTING*/);\r\n GL11.glEnable(3553 /*GL_TEXTURE_2D*/);\r\n }\r\n \r\n GL11.glPopMatrix();\r\n }", "public void onSurfaceCreated(GL10 unused, EGLConfig config) {\n GLES20.glClearColor(0.1f, 0.1f, 0.25f, 1.0f);\n RSGFXShaderManager.loadShaders();\n next_game_tick = SystemClock.elapsedRealtime();\n // No culling of back faces\n GLES20.glDisable(GLES20.GL_CULL_FACE);\n \n // No depth testing\n //GLES20.glDisable(GLES20.GL_DEPTH_TEST);\n setupRender();\n // Enable blending\n // GLES20.glEnable(GLES20.GL_BLEND);\n // GLES20.glBlendFunc(GLES20.GL_ONE, GLES20.GL_ONE);\n \n // Setup quad \n \t\t// Generate your vertex, normal and index buffers\n \t\t// vertex buffer\n \t\t_qvb = ByteBuffer.allocateDirect(_quadv.length\n \t\t\t\t* FLOAT_SIZE_BYTES).order(ByteOrder.nativeOrder()).asFloatBuffer();\n \t\t_qvb.put(_quadv);\n \t\t_qvb.position(0);\n\n \t\t// index buffer\n \t\t_qib = ByteBuffer.allocateDirect(_quadi.length\n \t\t\t\t* 4).order(ByteOrder.nativeOrder()).asIntBuffer();\n \t\t_qib.put(_quadi);\n \t\t_qib.position(0);\n }", "private void renderEngine() {\r\n GL11.glDisable(GL11.GL_LIGHTING);\r\n\r\n GL11.glEnable(GL11.GL_BLEND);\r\n GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE);\r\n\r\n shotTexture.bind();\r\n engine.render();\r\n\r\n GL11.glDisable(GL11.GL_BLEND);\r\n }", "@Override\n public void onColorChange(int color) {\n int r = Color.red(color);\n int g = Color.green(color);\n int b = Color.blue(color);\n Log.w(\"CameraEngineActivity\", \"R:\" + r + \" G:\" + g + \" B:\" + b);\n colorText.setBackgroundColor(color);\n }", "public Color4 getEffectColorMul();", "@Override\r\n public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)\r\n {\n \tif (f3 <= -180F) { f3 += 360F; }\r\n \telse if (f3 >= 180F) { f3 -= 360F; }\r\n \t\r\n \tGlStateManager.pushMatrix();\r\n \tGlStateManager.enableBlend();\r\n \tGlStateManager.blendFunc(SourceFactor.SRC_ALPHA, DestFactor.ONE_MINUS_SRC_ALPHA);\r\n \tGlStateManager.scale(this.scale, this.scale, this.scale);\r\n \tGlStateManager.translate(0F, this.offsetY, 0F);\r\n \t\r\n \t//main body\r\n \tsetRotationAngles(f, f1, f2, f3, f4, f5, entity);\r\n \tthis.BodyMain.render(f5);\r\n \t\r\n \t//light part\r\n \tGlStateManager.disableLighting();\r\n \tGlStateManager.enableCull();\r\n \tOpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 240F, 240F);\r\n \tthis.GlowBodyMain.render(f5);\r\n \tGlStateManager.disableCull();\r\n \tGlStateManager.enableLighting();\r\n \t\r\n \tGlStateManager.disableBlend();\r\n \tGlStateManager.popMatrix();\r\n }", "public int getColor();", "public int getColor();", "public void drawFloor() {\r\n GLES20.glUseProgram(program);\r\n\r\n // Set ModelView, MVP, position, normals, and color.\r\n GLES20.glUniform3fv(lightPosParam, 1, lightPosInEyeSpace, 0);\r\n GLES20.glUniformMatrix4fv(modelParam, 1, false, model, 0);\r\n GLES20.glUniformMatrix4fv(modelViewParam, 1, false, modelView, 0);\r\n GLES20.glUniformMatrix4fv(modelViewProjectionParam, 1, false, modelViewProjection, 0);\r\n GLES20.glVertexAttribPointer(positionParam, COORDS_PER_VERTEX, GLES20.GL_FLOAT, false, 0, vertices);\r\n GLES20.glVertexAttribPointer(normalParam, 3, GLES20.GL_FLOAT, false, 0, normals);\r\n GLES20.glVertexAttribPointer(colorParam, 4, GLES20.GL_FLOAT, false, 0, colors);\r\n\r\n GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, 6);\r\n\r\n checkGLError(\"drawing floor\");\r\n }", "public void doRender(EntityNinjastar ninjastar, double transX, double transY, double transZ, float param5, float dir){\n GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);\n GlStateManager.pushMatrix();\n\n GlStateManager.translate((float) transX, (float) transY, (float) transZ);\n\n //moved\n GlStateManager.enableRescaleNormal();\n float scale = 0.75F;\n GlStateManager.scale(scale, scale, scale);\n\n GlStateManager.rotate(ninjastar.prevRotationYaw + (ninjastar.rotationYaw - ninjastar.prevRotationYaw) * dir - 90.0F, 0.0F, 1.0F, 0.0F);\n GlStateManager.rotate(ninjastar.getRandomTilt(), 1.0F, 0.0F, 0.0F);\n\n //moved\n bindEntityTexture(ninjastar);\n\n Tessellator tessellator = Tessellator.getInstance();\n WorldRenderer worldRenderer = tessellator.getWorldRenderer();\n\n// GlStateManager.enableRescaleNormal();\n\n// float scale = 0.05F;\n// GlStateManager.scale(scale, scale, scale);\n\n GL11.glNormal3f(0.0F, 0.0F, scale);\n\n worldRenderer.startDrawingQuads();\n worldRenderer.addVertexWithUV(-2.0D, -2.0D, 0.0D, 0, 0);\n worldRenderer.addVertexWithUV(-2.0D, -2.0D, 0.0D, 1, 0);\n worldRenderer.addVertexWithUV(-2.0D, -2.0D, 0.0D, 1, 1);\n worldRenderer.addVertexWithUV(-2.0D, -2.0D, 0.0D, 0, 1);\n tessellator.draw();\n\n GlStateManager.rotate(100.0F, 1.0F, 0.0F, 0.0F);\n worldRenderer.startDrawingQuads();\n worldRenderer.addVertexWithUV(-2.0D, -2.0D, 0.0D, 0, 0);\n worldRenderer.addVertexWithUV(-2.0D, -2.0D, 0.0D, 1, 0);\n worldRenderer.addVertexWithUV(-2.0D, -2.0D, 0.0D, 1, 1);\n worldRenderer.addVertexWithUV(-2.0D, -2.0D, 0.0D, 0, 1);\n tessellator.draw();\n\n //added\n this.renderItemNinjastar.renderItemModel(this.func_177082_d(ninjastar));\n\n GlStateManager.disableRescaleNormal();\n GlStateManager.popMatrix();\n\n super.doRender(ninjastar, transX, transY, transZ, param5, dir);\n\n }", "@Override\n public void render(float v) {\n game.batch.begin();\n game.batch.draw(game.backgroundImg,0,0,viewport.getWorldWidth(), viewport.getWorldHeight());\n game.batch.end();\n\n stage.act();\n stage.draw();\n\n }", "private void drawStatic() {\n Matrix.multiplyMM(mMVPMatrix, 0, mViewMatrix, 0, mModelMatrix, 0);\n\n // Pass in the modelview matrix.\n GLES20.glUniformMatrix4fv(mMVMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // This multiplies the modelview matrix by the projection matrix, and stores the result in the MVP matrix\n // (which now contains model * view * projection).\n Matrix.multiplyMM(mTemporaryMatrix, 0, mProjectionMatrix, 0, mMVPMatrix, 0);\n System.arraycopy(mTemporaryMatrix, 0, mMVPMatrix, 0, 16);\n\n // Pass in the combined matrix.\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // Pass in the light position in eye space.\n GLES20.glUniform3f(mLightPosHandle, mLightPosInEyeSpace[0], mLightPosInEyeSpace[1], mLightPosInEyeSpace[2]);\n }", "@Override\n\tpublic void render(float delta) {\n\t\tGdx.gl.glClearColor(0, 0, 0.2f, 1);\n\t\tGdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\t\tupdate(delta);\n\t\tbatch.disableBlending();\n\t\tbatch.enableBlending();\n\t\tpresent(delta);\n\t\tsuper.render(delta);\n\t}", "@Override\r\n\tpublic void render(){\n\t\tGdx.gl.glClearColor( 0f, 1f, 0f, 1f );\r\n\t\tGdx.gl.glClear( GL20.GL_COLOR_BUFFER_BIT );\r\n\r\n\t\t// output the current FPS\r\n\t\tfpsLogger.log();\r\n\t}", "protected void preRenderCallback(EntityLivingBase par1EntityLivingBase, float par2){\n \tGL11.glEnable(GL11.GL_BLEND);\n \tGL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);\n }", "@Override\n public void onDrawFrame(GL10 gl) {\n Log.i(\"kike\", \"onDrawFrame\");\n if (effectContext == null) {\n effectContext = EffectContext.createWithCurrentGlContext();\n }\n if (effect != null) {\n effect.release();\n }\n ////////////////////////////Efecte//////////////////////////\n //noEffect();\n //autofixEffect(fxValue); // ok\n //backdropperEffect(); // no probat\n //bitmapoverlayEffect(); // no probat\n //blackwhiteEffect(100, 150); // ok, ... :(\n brightnessEffect(fxValue); // ok\n //contrastEffect(fxValue); // ok\n //cropEffect(); // no probat\n //crossprocessEffect(); // ok\n //documentaryEffect(); // ok\n //duotoneEffect(); // no probat\n //filllightEffect(fxValue); // ok\n //fisheyeEffect(fxValue); // ok\n //flipEffect(false, false); // ok\n //grainEffect(fxValue); // l'efecte que fa no es massa bo\n //grayScaleEffect(); // ok\n //lomoishEffect(); // ok\n //negativeEffect(); // ok\n //posterizeEffect(); // ok\n //redeyeEffect(); // no probat\n //rotateEffect(fxValue); // error\n //saturateEffect(fxValue); // ok\n //sepiaEffect(); // ok\n //sharpenEffect(fxValue); // l'efecte que fa no es massa bo\n //straightenEffect(fxValue); // ok, retalla la imatge tambe\n //temperatureEffect(fxValue); // ok\n //tintEffect(); // no probat\n //vignetteEffect(fxValue); // nomes fa forma rodona i negra??\n ////////////////////////////Efecte//////////////////////////\n square.draw(textures[1]);\n }", "@Override\n public void onSurfaceCreated(GL10 gl, EGLConfig config) {\n GLES20.glClearColor(0.15f, 0.15f, 0.15f, 0.15f);\n\n // Position the eye behind the origin.\n final float eyeX = 0.0f;\n final float eyeY = 0.0f;\n final float eyeZ = 1.5f;\n\n // We are looking toward the distance\n final float lookX = 0.0f;\n final float lookY = 0.0f;\n final float lookZ = -5.0f;\n\n // Set our up vector. This is where our head would be pointing were we holding the camera.\n final float upX = 0.0f;\n final float upY = 1.0f;\n final float upZ = 0.0f;\n\n Matrix.setLookAtM(mViewMatrix, 0, eyeX, eyeY, eyeZ, lookX,\n lookY, lookZ, upX, upY, upZ);\n\n String fragmentShader = \"precision mediump float; \\n\"\n // This is the color from the vertex shader interpolated across the\n + \"varying vec4 v_Color; \\n\"\n // triangle per fragment.\n + \"void main() \\n\"\n + \"{ \\n\"\n + \" gl_FragColor = v_Color; \\n\"\n + \"} \\n\";\n String vertexShader = \"uniform mat4 u_MVPMatrix; \\n\"\n // Per-vertex position information we will pass in.\n + \"attribute vec4 a_Position; \\n\"\n\n // Per-vertex color information we will pass in.\n + \"attribute vec4 a_Color; \\n\"\n\n // This will be passed into the fragment shader.\n + \"varying vec4 v_Color; \\n\"\n\n + \"void main() \\n\"\n + \"{ \\n\"\n\n // Pass the color through to the fragment shader.\n + \" v_Color = a_Color; \\n\"\n\n // gl_Position is a special variable used to store the final position.\n // Multiply the vertex by the matrix to get the final point in\n // normalized screen coordinates.\n + \" gl_Position = u_MVPMatrix \\n\"\n + \" * a_Position; \\n\"\n + \"} \\n\";\n\n program = new GLProgram(vertexShader, fragmentShader);\n\n String positionVariableName = \"a_Position\";\n program.declareAttribute(positionVariableName);\n\n String colorVariableName = \"a_Color\";\n program.declareAttribute(colorVariableName);\n\n program.declareUniform(U_MVP_MATRIX);\n\n // Tell OpenGL to use this program when rendering.\n program.activate();\n\n // This triangle is red, green, and blue.\n final float[] triangle1VerticesData = {\n // X, Y, Z,\n // R, G, B, A\n -0.5f, -0.25f, 0.0f,\n 0.5f, -0.25f, 0.0f,\n 0.0f, 0.559016994f, 0.0f,\n };\n\n final float[] triangleColorData = {\n 1.0f, 0.0f, 0.0f, 1.0f,\n 0.0f, 1.0f, 0.0f, 1.0f,\n 0.0f, 0.0f, 1.0f, 1.0f,\n };\n\n VertexArray mTriangleVertices = new VertexArray(triangle1VerticesData,\n program.getVariableHandle(positionVariableName), true);\n /*\n Store our model data in a float buffer.\n */\n ColorArray mTriangleColors = new ColorArray(triangleColorData,\n program.getVariableHandle(colorVariableName), true);\n\n positionVbo = new VertexBufferObject(mTriangleVertices);\n colorVbo = new VertexBufferObject(mTriangleColors);\n }", "@Override\r\n public void simpleUpdate(float tpf) {\r\n// if (firstload == true) {\r\n// MainGUI.Splash.setVisible(false);\r\n// MainGUI.mjf.setVisible(true);\r\n// }\r\n light1.setDirection(\r\n new Vector3f(\r\n cam.getDirection().x,\r\n cam.getDirection().y,\r\n cam.getDirection().z));\r\n\r\n if (GUI.shapeList.isEmpty()) {\r\n rootNode.detachAllChildren();\r\n drawAxis();\r\n }\r\n if(GUI.ShapeStack.getSelectedValue() == null && !GUI.shapeList.isEmpty())\r\n {\r\n rootNode.detachAllChildren();\r\n drawAxis();\r\n for(int ii = 0 ; ii < GUI.shapeList.size(); ii++)\r\n {\r\n Shape s = GUI.shapeList.get(ii);\r\n Geometry g = s.generateGraphics();\r\n Material m = new Material(assetManager,\r\n \"Common/MatDefs/Light/Lighting.j3md\");\r\n\r\n m.setBoolean(\"UseMaterialColors\", true);\r\n m.setColor(\"Diffuse\", ColorRGBA.LightGray);\r\n m.setColor(\"Specular\", ColorRGBA.LightGray);\r\n m.setFloat(\"Shininess\", 128); // [0,128]\r\n\r\n g.setMaterial(m);\r\n rootNode.attachChild(g); \r\n }\r\n }\r\n// com.jme3.scene.shape.Box boxMesh = new com.jme3.scene.shape.Box((float) 10 / 2, (float) 10 / 2, (float) 10 / 2);\r\n// Geometry boxGeo = new Geometry(\"Shiny rock\", boxMesh);\r\n// boxGeo.setLocalTranslation((float) 0, (float) 0, (float) 0);\r\n// TangentBinormalGenerator.generate(boxMesh);\r\n// Geometry g = boxGeo;\r\n// Material m = new Material(assetManager,\r\n// \"Common/MatDefs/Light/Lighting.j3md\");\r\n//\r\n// m.setBoolean(\"UseMaterialColors\", true);\r\n// m.setColor(\"Diffuse\", ColorRGBA.LightGray);\r\n// m.setColor(\"Specular\", ColorRGBA.LightGray);\r\n// m.setFloat(\"Shininess\", 128); // [0,128]\r\n//\r\n// g.setMaterial(m);\r\n// rootNode.attachChild(g);\r\n\r\n// if (MainGUI.ShapeJList.getSelectedValue() != null) {\r\n// rootNode.detachAllChildren();\r\n// drawAxis();\r\n// for (int i = 0; i < MainGUI.allShapes.size(); i++) {\r\n// Shape s = MainGUI.allShapes.get(i);\r\n// Geometry g = s.draw();\r\n// Material m = new Material(assetManager,\r\n// \"Common/MatDefs/Light/Lighting.j3md\");\r\n//\r\n// m.setBoolean(\"UseMaterialColors\", true);\r\n// m.setColor(\"Diffuse\", ColorRGBA.LightGray);\r\n// m.setColor(\"Specular\", ColorRGBA.LightGray);\r\n// m.setFloat(\"Shininess\", 128f); // [0,128]\r\n//\r\n// if (i == MainGUI.ShapeJList.getSelectedIndex()) {\r\n// m = new Material(assetManager,\r\n// \"Common/MatDefs/Light/Lighting.j3md\");\r\n//\r\n// m.setBoolean(\"UseMaterialColors\", true);\r\n// m.setColor(\"Diffuse\", ColorRGBA.Orange);\r\n// m.setColor(\"Specular\", ColorRGBA.Orange);\r\n// m.setFloat(\"Shininess\", 128f); // [0,128]\r\n//\r\n// }\r\n// g.setMaterial(m);\r\n// rootNode.attachChild(g);\r\n//\r\n// }\r\n// }\r\n// if (!MainGUI.allShapes.isEmpty() && MainGUI.ShapeJList.getSelectedValue() == null) {\r\n// rootNode.detachAllChildren();\r\n// drawAxis();\r\n// for (int i = 0; i < MainGUI.allShapes.size(); i++) {\r\n// Shape s = MainGUI.allShapes.get(i);\r\n// Geometry g = s.draw();\r\n// Material m = new Material(assetManager,\r\n// \"Common/MatDefs/Light/Lighting.j3md\");\r\n//\r\n// m.setBoolean(\"UseMaterialColors\", true);\r\n// m.setColor(\"Diffuse\", ColorRGBA.LightGray);\r\n// m.setColor(\"Specular\", ColorRGBA.LightGray);\r\n// m.setFloat(\"Shininess\", 128); // [0,128]\r\n//\r\n// g.setMaterial(m);\r\n// rootNode.attachChild(g);\r\n// }\r\n// }\r\n firstload = false;\r\n }", "private void initRendering() {\n ring = new Ring(0.3f, 0.7f);\n line = new Line(ImageTargets.screenWidth / 2, ImageTargets.screenHeight / 2);\n state_txt = createObject(68f, state_txt_cx, state_txt_cy, R.drawable.state);\n state_img = createObject(120f, state_img_cx, state_img_cy, R.drawable.open);\n record_txt = createObject(68f, record_txt_cx, record_txt_cy, R.drawable.record_txt);\n record_img = createObject(95f, record_img_cx, record_img_cy, R.drawable.record_img);\n recog_txt = createObject(68f, recog_txt_cx, recog_txt_cy, R.drawable.recog_txt);\n recog_img = createObject(155, recog_img_cx, recog_img_cy, R.drawable.person);\n record_num = createObject(85, record_num_cx, record_num_cy, R.drawable.num);\n\n histogram = createHistogram(85, 275.0f, 1150, 2.0f);\n histogram1 = createHistogram(85, 405, 1150, 2.2f);\n histogram2 = createHistogram(85, 540, 1150, 2.58f);\n histogram3 = createHistogram(85, 675, 1150, 0.9f);\n mRenderer = Renderer.getInstance();\n\n GLES20.glClearColor(0.0f, 0.0f, 0.0f, Vuforia.requiresAlpha() ? 0.0f\n : 1.0f);\n setBgTransparent();\n //初始化纹理\n initTexture(res);\n mActivity.loadingDialogHandler\n .sendEmptyMessage(LoadingDialogHandler.HIDE_LOADING_DIALOG);\n\n }", "public void previewOglRender();", "@Override\n\tpublic void onSurfaceCreated(GL10 gl, EGLConfig config) {\n\t\tgl.glClearColor(0,0,0,1); \n\t\t//enable vertex array for vertex pointer\n\t\tgl.glEnableClientState(GL10.GL_VERTEX_ARRAY); \n\t\t//enable normal array\n\t\tgl.glEnableClientState(GL10.GL_NORMAL_ARRAY);\n\t\t//enable DepthTest\n\t\tgl.glEnable(GL10.GL_DEPTH_TEST); \n\t\t//enable Blend\n\t\tgl.glEnable(GL10.GL_BLEND);\n\t\t//set blend function\n\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);\n\t\t//Gen texture\n\t\t//initialize array\n\t\tint textureIds[] = new int[1];\n\t\t//generate 1 texture return handle to textureIds\n\t\tgl.glGenTextures(1, textureIds, 0);\n\t\t//get handle from array to an int\n\t\ttextureId = textureIds[0];\n\t\t//bind using array\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, textureId);\n\t\t//copy image pixels data to texture buffer on video mem\n\t\tGLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\n\t\t//filter for minif\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);\n\t\t//filter for magnif\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_NEAREST);\n\t\t//unbind texture buffer\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, 0);\n\t\t//bitmap.recycle(); just if not used anymore \n\t}", "private void colorSetup(){\n Color color2 = Color.GRAY;\n Color color = Color.LIGHT_GRAY;\n this.setBackground(color);\n this.mainPanel.setBackground(color);\n this.leftPanel.setBackground(color);\n this.rightPanel.setBackground(color);\n this.rightCenPanel.setBackground(color);\n this.rightLowPanel.setBackground(color);\n this.rightTopPanel.setBackground(color);\n this.inputPanel.setBackground(color);\n this.controlPanel.setBackground(color);\n this.setupPanel.setBackground(color);\n this.cameraPanel.setBackground(color);\n this.jPanel4.setBackground(color);\n this.sensSlider.setBackground(color); \n }", "public LightBulb(int red, int green,int blue){\r\n _switchedOn=false;\r\n\t\tif ((red < 0)||(red > 255)||(green < 0)||(green > 255)||(blue < 0)\r\n\t\t\t\t||(blue > 255)){\r\n\t\t\t_color = new RGBColor();\r\n\t\t}\r\n\t\telse {\r\n\t\t\t_color = new RGBColor(red, green, blue);\r\n\t\t}\r\n\t\r\n }", "@Override\n\tpublic void create() {\n\t\tassets = new AssetManager();\n\t\tspriteBatch = new SpriteBatch();\n\t\tGdx.input.setInputProcessor(this);\n\t\tGdx.input.setCatchMenuKey(true);\n\t\tGdx.input.setCatchBackKey(true);\n\t\tGdx.input.setInputProcessor(this);\n\t\t\n\t\t//WorldRenderer.BLEND_FUN1=GL20.GL_SRC_ALPHA;\n\t\t//WorldRenderer.BLEND_FUN2=GL20.GL_ONE_MINUS_SRC_ALPHA;\n\t\t//WorldRenderer.CLEAR_COLOR.set(0.5f,0.1f,0.2f,1);\n\t\t//UIRenderer.BLEND_FUN1=GL20.GL_SRC_ALPHA;\n\t\t//UIRenderer.BLEND_FUN2=GL20.GL_ONE_MINUS_SRC_ALPHA;\n\t\t\n\t\tspriteBatch.setBlendFunction(GL20.GL_SRC_ALPHA,GL20.GL_ONE);\n\t\tspriteBatch.enableBlending();\n\t\t\n\t\tdefaultShader=SpriteBatch.createDefaultShader();\n\t}", "public void display(GLAutoDrawable drawable) {\t\n\t\n\tSystem.out.println(times++);\n\n\t\n\tfbo.attach(gl);\n\t\n\t\tclear(gl);\n\t\t\n\t\tgl.glColor4f(1.f, 1.f, 1.f, 1f);\n\t\tgl.glBegin(GL2.GL_QUADS);\n\t\t{\n\t\t gl.glVertex3f(0.0f, 0.0f, 1.0f);\n\t\t gl.glVertex3f(0.0f, 1.0f, 1.0f);\n\t\t gl.glVertex3f(1.0f, 1.0f, 1.0f);\n\t\t gl.glVertex3f(1.0f, 0.0f, 1.0f);\n\t\t}\n\t\tgl.glEnd();\n\t\t\n\t\tgl.glColor4f(1.f, 0.f, 0.f, 1f);\n\t\tgl.glBegin(GL2.GL_TRIANGLES);\n\t\t{\n\t\t gl.glVertex3f(0.0f, 0.0f, 1.0f);\n\t\t gl.glVertex3f(0.0f, 1.0f, 1.0f);\n\t\t gl.glVertex3f(1.0f, 1.0f, 1.0f);\n\t\t}\n\t\tgl.glEnd();\n\tfbo.detach(gl);\n\n \n\tclear(gl);\n\n \n gl.glColor4f(1.f, 1.f, 1.f, 1f);\n fbo.bind(gl);\n\t gl.glBegin(GL2.GL_QUADS);\n\t {\n\t gl.glTexCoord2f(0.0f, 0.0f);\n\t \tgl.glVertex3f(0.0f, 1.0f, 1.0f);\n\t gl.glTexCoord2f(1.0f, 0.0f);\n\t \tgl.glVertex3f(1.0f, 1.0f, 1.0f);\n\t gl.glTexCoord2f(1.0f, 1.0f);\n\t \tgl.glVertex3f(1.0f, 0.0f, 1.0f);\n\t gl.glTexCoord2f(0.0f, 1.0f);\n\t \tgl.glVertex3f(0.0f, 0.0f, 1.0f);\n\t }\n gl.glEnd();\n fbo.unbind(gl);\n}", "@Override\n public void render(float delta) {\n Gdx.gl.glClearColor(0.8f, 0.3f, 0.3f, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\n bgViewPort.apply();\n batch.setProjectionMatrix(bgViewPort.getCamera().combined);\n batch.begin();\n batch.draw(background,0,0);\n batch.end();\n\n stage.getViewport().apply();\n stage.draw();\n }", "@Override\n public void onSurfaceCreated(GL10 glUnused, EGLConfig config) {\n glClearColor(0.0f, 0.0f, 0.0f, 0.0f);\n \n String vertexShaderSource = TextResourceReader.readTextFileFromResource(context, R.raw.simple_vertex_shader);\n String fragmentShaderSource = TextResourceReader.readTextFileFromResource(context, R.raw.simple_fragment_shader);\n \n int vertexShaderId = ShaderHelper.compileVertexShader(vertexShaderSource);\n int fragmentShaderId = ShaderHelper.compileFragmentShader(fragmentShaderSource);\n \n program = ShaderHelper.linkProgram(vertexShaderId, fragmentShaderId);\n \n if(LoggerConfig.ON){\n \tShaderHelper.validateProgram(program);\n }\n glUseProgram(program);\n uColorLocation = glGetUniformLocation(program, U_COLOR);\n aPositionLocation = glGetAttribLocation(program, A_POSITION);\n \n vertexData.position(0);\n glVertexAttribPointer(aPositionLocation, POSITION_COMPONENT_COUNT, GL_FLOAT, false, 0, vertexData);\n glEnableVertexAttribArray(aPositionLocation); \n }" ]
[ "0.6695245", "0.65368754", "0.6480789", "0.6468939", "0.6412345", "0.6399731", "0.6343636", "0.6302319", "0.629676", "0.62611383", "0.6240732", "0.6229227", "0.62147856", "0.6149092", "0.6133413", "0.6127505", "0.61145735", "0.6108527", "0.6078809", "0.6076648", "0.60631174", "0.6050306", "0.60483515", "0.6031316", "0.6008645", "0.5990222", "0.59514165", "0.59035677", "0.5902926", "0.59017426", "0.5898453", "0.58945", "0.58923227", "0.58914363", "0.5873347", "0.5868468", "0.5851074", "0.5838302", "0.5836948", "0.5828743", "0.5825589", "0.58186835", "0.5814756", "0.58120596", "0.58101135", "0.5808439", "0.5805831", "0.5795613", "0.5784477", "0.5754569", "0.5754569", "0.5751487", "0.5734821", "0.57339597", "0.571769", "0.5712404", "0.570012", "0.56916666", "0.5686746", "0.5681251", "0.5680317", "0.5679848", "0.5675508", "0.5674655", "0.56693226", "0.5660205", "0.5655337", "0.5650297", "0.5650078", "0.5648086", "0.56415063", "0.563793", "0.5634796", "0.5626796", "0.56211317", "0.5619567", "0.56194687", "0.5616588", "0.5615993", "0.5604965", "0.5603746", "0.5603746", "0.5598685", "0.5594572", "0.5581788", "0.5580745", "0.5578262", "0.5575494", "0.55739594", "0.5572992", "0.55718535", "0.55687267", "0.5567864", "0.556517", "0.5562138", "0.55602086", "0.55558395", "0.55536443", "0.5547514", "0.5547144", "0.5546882" ]
0.0
-1
Called when the mouse is clicked over a slot or outside the gui.
protected void handleMouseClick(Slot slotIn, int slotId, int mouseButton, ClickType type) { super.handleMouseClick(slotIn, slotId, mouseButton, type); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent event){}", "public void mouseClicked(MouseEvent e) {\n\t}", "public void mouseClicked(MouseEvent e) {\n\t}", "public void mouseClicked(MouseEvent e) {\n\t}", "@Override\n public void mouseClicked(MouseEvent arg0) {\n \n }", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t}", "public void mouseClicked(int mouseX, int mouseY, int mouse) {}", "@Override\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\n\t\t}", "public void mouseClicked(MouseEvent event) { \n\t\t\n\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\r\n public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {\r\n\t}", "void mouseClicked(MouseEvent mouseEvent);", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\n }", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\r\n public void mouseClicked(MouseEvent e) {\n }", "public void mouseClicked(MouseEvent e) { \r\n }", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}", "public void mouseClicked(MouseEvent e)\n {}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n public void mouseClicked(MouseEvent me) {\n }", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void mouseClicked(MouseEvent event)\n\t\t{}", "public void mouseClicked(MouseEvent e) {\n\n }", "public void mouseClicked(MouseEvent e) {\n \t\t\r\n \t}", "@Override\r\n public void mouseClicked(MouseEvent e) { }", "public void mouseClicked( MouseEvent event ){}", "@Override\r\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\r\n\t\t\t\r\n\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent event) {\n\n\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n public void mouseClicked(MouseEvent e) {\n }", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tl1.setText(\"You cliked the mouse\");\r\n\t}", "@Override\n\tpublic void mouseClicked (MouseEvent e) {\n\t}", "public void mouseClicked(MouseEvent e) {\n\n\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\n\t\t\t}", "public void mouseClicked(MouseEvent arg0) {\n }", "@Override\n public void mouseClicked(MouseEvent e) {\n }", "public void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent me) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent me) {\n\t\t\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\r\n\t}", "@Override\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t}", "@Override\n public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(int ex, int ey, int button) {\r\n\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t}" ]
[ "0.73446083", "0.73446083", "0.73446083", "0.73446083", "0.732395", "0.7265259", "0.7265259", "0.7265259", "0.7264983", "0.72622776", "0.725898", "0.725898", "0.7258599", "0.72580844", "0.72580844", "0.7241013", "0.7239811", "0.7239811", "0.7239025", "0.7239025", "0.72382724", "0.7235257", "0.7234903", "0.7231848", "0.72265756", "0.72265756", "0.72265756", "0.72265756", "0.72265756", "0.72265756", "0.7226142", "0.7220399", "0.7220399", "0.7218538", "0.7218538", "0.7218538", "0.7218538", "0.7218538", "0.7218538", "0.7218538", "0.7210286", "0.72099376", "0.72099376", "0.72099376", "0.72099376", "0.72099376", "0.72099376", "0.72099376", "0.72099376", "0.72099376", "0.7208944", "0.7208944", "0.7208944", "0.7208944", "0.7208944", "0.7208944", "0.7208944", "0.7208944", "0.7208944", "0.7208944", "0.7208944", "0.7208944", "0.72073025", "0.7203724", "0.72033095", "0.72033095", "0.72033095", "0.72027785", "0.72016394", "0.72016394", "0.72016394", "0.7199253", "0.71863705", "0.71859366", "0.7184572", "0.7169665", "0.71692365", "0.7166004", "0.7165474", "0.71635765", "0.71627885", "0.7159522", "0.7156834", "0.7152123", "0.7144115", "0.7139058", "0.7139058", "0.71379817", "0.71372247", "0.71370035", "0.7117702", "0.7117702", "0.71164495", "0.71152836", "0.71150964", "0.71095526", "0.71030384", "0.71030384", "0.71030384", "0.7102454" ]
0.7129217
90
Called when the screen is unloaded. Used to disable keyboard repeat events
public void onGuiClosed() { super.onGuiClosed(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onGuiClosed()\n {\n Keyboard.enableRepeatEvents(false);\n }", "@Override\r\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\tsetFocusableWindowState(false);\r\n\t}", "public void onGuiClosed()\n {\n Keyboard.enableRepeatEvents(false);\n mc.ingameGUI.func_50014_d();\n }", "@Override\n\tprotected void deInitUIandEvent()\n\t{\n\t}", "@Override\r\n\t\t\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void windowDeiconified(WindowEvent e)\n {\n\n }", "@Override\n public void windowDeiconified(WindowEvent arg0) {\n\n }", "@Override\r\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\r\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent arg0)\n\t{\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent arg0)\n\t{\n\t\t\n\t}", "@Override\n public void windowDeiconified( WindowEvent arg0 )\n {\n\n }", "@Override\n public void windowDeiconified( WindowEvent arg0 )\n {\n\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n\t\t\tpublic void windowDeiconified(WindowEvent arg0) {\n\n\t\t\t}", "@Override\r\n public void windowDeiconified(WindowEvent e) {\n }", "@Override\n\t\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\t\n\t\t}", "@Override\r\n\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\n\t}", "public void removeAllScreens() {\n Gdx.app.log(\"TowerDefence::removeAllScreens()\", \"--\");\n if (screensArray != null) {\n// for(Screen screen : screensArray) {\n// screen.dispose(); // Дич ебаная. с этими скринами у нас точно какие то проблемы...\n// }\n screensArray.clear();\n// int size = screensArray.size;\n// if (size > 0) {\n// for (int i = size - 1; i >= 0; i--) {\n// Screen screen = screensArray.get(i);\n// if (screen != null) {\n//// screen.hide();\n// screensArray.removeIndex(size - 1);\n// }\n// }\n// }\n }\n }", "@Override\r\n\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "public void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n getViewTreeObserver().removeOnTouchModeChangeListener(this.f61232y);\n m87326d();\n }", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t}", "private void finalScreen() {\r\n\t\tdisplay.setLegend(GAME_OVER);\r\n\t\tdisplay.removeKeyListener(this);\r\n\t}", "public void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n releaseSoundPool();\n }", "@Override\n\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\n\t\t\t}", "@Override\n\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e)\n\t{\n\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\n\t}", "@Override\n\t\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\n\t\t\t\t}", "public void unLoad() {\n try{\n deInitialize();\n iMenu.unLoad();\n }catch(Exception e){\n Logger.loggerError(\"Menu canvas unload Error\"+e.toString());\n }\n }", "public void destroy() {\r\n\t\thide();\r\n\t\tmenuButtonTouchListener_.unregister();\r\n\t}", "@Override\n\tpublic void windowDeiconified( WindowEvent e ) {\n\t\t\n\t}", "@Override\n public void hide() {\n Gdx.input.setOnscreenKeyboardVisible(false);\n super.hide();\n }", "public void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n removeCallbacks(this.aul);\n }", "public void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n e eVar = this.aeA.aeR;\n if (eVar != null) {\n eVar.unregisterObserver(this.aeK);\n }\n ViewTreeObserver viewTreeObserver = getViewTreeObserver();\n if (viewTreeObserver.isAlive()) {\n viewTreeObserver.removeGlobalOnLayoutListener(this.aeL);\n }\n if (hs()) {\n hr();\n }\n this.pv = false;\n }", "@Override\r\n\tpublic void windowDeactivated(WindowEvent e) {\n\t\tsetFocusableWindowState(false);\r\n\t}" ]
[ "0.74616814", "0.6707875", "0.66940415", "0.6691831", "0.66381574", "0.6630021", "0.6630021", "0.6630021", "0.6630021", "0.6630021", "0.6630021", "0.6630021", "0.6630021", "0.66163933", "0.66163933", "0.6597845", "0.65846044", "0.6582994", "0.6582994", "0.6582994", "0.6582994", "0.6582994", "0.65801924", "0.65801924", "0.65801924", "0.65801924", "0.65801924", "0.6580098", "0.6580098", "0.6573795", "0.6573795", "0.65735155", "0.65735155", "0.65735155", "0.65735155", "0.65735155", "0.65735155", "0.65735155", "0.65735155", "0.65735155", "0.65735155", "0.65735155", "0.65735155", "0.65735155", "0.65735155", "0.65735155", "0.65735155", "0.65735155", "0.65735155", "0.65735155", "0.65735155", "0.65735155", "0.65644985", "0.6558895", "0.6558691", "0.6558251", "0.6558251", "0.6550273", "0.6549496", "0.6542007", "0.65370035", "0.65370035", "0.65370035", "0.65370035", "0.65370035", "0.653398", "0.6531446", "0.6519868", "0.6511732", "0.65093184", "0.65093184", "0.65060914", "0.65060914", "0.65031475", "0.65031475", "0.65031475", "0.65031475", "0.65031475", "0.65031475", "0.65031475", "0.65031475", "0.65031475", "0.649743", "0.64720565", "0.64720565", "0.64720565", "0.64720565", "0.64720565", "0.64720565", "0.64720565", "0.64655125", "0.64655125", "0.64655125", "0.64655125", "0.646006", "0.64528", "0.6451164", "0.64305234", "0.64174217", "0.63932955", "0.63832706" ]
0.0
-1
Creates new form CONTACT
public CONTACT() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void AddContact(View view){\n Utils.Route_Start(ListContact.this,Contato.class);\n // Notificar, para atualizar a lista.\n\n }", "@GetMapping(\"/add-contact\")\n\tpublic String openAddContactForm(Model model) {\n\t\tmodel.addAttribute(\"title\",\"Add Contact\");\n\t\tmodel.addAttribute(\"contact\",new Contact());\n\t\treturn \"normal/add_contact_form\";\n\t}", "public void initContactCreation() {\n click(By.linkText(\"add new\"));\n //wd.findElement(By.linkText(\"add new\")).click();\n }", "@ApiMethod(name = \"createContact\", path = \"contact\", httpMethod = HttpMethod.POST)\n\tpublic Contact createContact(final ContactForm form) {\n\t\tfinal Key<Contact> key = Contact.allocateKey();\n\t\tContact contact = new Contact(key.getId(), form);\n\n\t\tofy().save().entity(contact).now();\n\n\t\treturn contact;\n\t}", "@GetMapping(value = { \"/\", \"/addContact\" })\r\n\tpublic String loadForm(Model model) {\r\n\t\tmodel.addAttribute(\"contact\", new Contact());\r\n\t\treturn \"contactInfo\";\r\n\t}", "FORM createFORM();", "public void addContactDetails() {\n firstNameField.setText(contact.getFirstName());\n middleNameField.setText(contact.getMiddleName());\n lastNameField.setText(contact.getLastName());\n\n homePhoneField.setText(contact.getHomePhone());\n workPhoneField.setText(contact.getWorkPhone());\n\n homeAddressField.setText(contact.getHomeAddress());\n workAddressField.setText(contact.getWorkAddress());\n\n personalEmailField.setText(contact.getPersonalEmail());\n workEmailField.setText(contact.getWorkEmail());\n\n }", "FrmViewContacts() {\n startupForm();\n }", "public void addContact() \n\t{\n\t\tSystem.out.printf(\"%n--[ Add Contact ]--%n\");\n\t\tScanner s = new Scanner(System.in);\n\t\tSystem.out.printf(\"%nFirst Name: \");\n\t\tString firstName = s.next();\n\t\tSystem.out.printf(\"%nLast Name: \");\n\t\tString lastName = s.next();\n\t\tSystem.out.printf(\"%nPhone Number: \");\n\t\tString phoneNumber = s.next();\n\t\tSystem.out.printf(\"%nEmail Address: \");\n\t\tString emailAddress = s.next();\n\t\tSystem.out.printf(\"%nCompany: \");\n\t\tString company = s.next();\n\t\tBusinessContact b = new BusinessContact(firstName, lastName,\n\t\t\t\tphoneNumber, emailAddress, company);\n\t\tcontacts.add(b);\n\t}", "public void openCreateContact(View view){\n intent = new Intent(this, CreateContact.class);\n //we actually are starting the intent up, doing as we intend to - in this case, heading over to the Create Contact class\n startActivity(intent);\n }", "@RequestMapping(\"/addContact.htm\")\r\n\tpublic ModelAndView addContact(@ModelAttribute(\"contact\") Contact contact)\r\n\t\t\tthrows Exception {\n\r\n\t\tModelAndView modelAndView = new ModelAndView();\r\n\t\tmodelAndView.setViewName(\"manageContact\");\r\n\t\tmodelAndView.addObject(\"id\", contact.getFirstName());\r\n\t\tmodelAndView.addObject(\"mail\", contact.getAddress());\r\n\t\treturn modelAndView;\r\n\t}", "@RequestMapping(\"/addContact.htm\")\r\n\tpublic ModelAndView addContact(@ModelAttribute(\"contact\") Contact contact)\r\n\t\t\tthrows Exception {\n\r\n\t\tModelAndView modelAndView = new ModelAndView();\r\n\t\tmodelAndView.setViewName(\"manageContact\");\r\n\t\tmodelAndView.addObject(\"mycontact\", contact);\r\n\t\treturn modelAndView;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n jtfFullName = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jtfPhoneNum = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jtfEmail = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jtfSkype = new javax.swing.JTextField();\n jbSave = new javax.swing.JButton();\n jbCancel = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Adding new contact\");\n setResizable(false);\n\n jLabel1.setText(\"Full name:\");\n\n jPanel1.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 255, 51), 1, true));\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 100, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 100, Short.MAX_VALUE)\n );\n\n jLabel2.setText(\"Phone number: \");\n\n jLabel3.setText(\"E-mail:\");\n\n jLabel4.setText(\"Skype:\");\n\n jbSave.setText(\"Save\");\n jbSave.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbSaveActionPerformed(evt);\n }\n });\n\n jbCancel.setText(\"Cancel\");\n jbCancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbCancelActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jtfFullName)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addGap(0, 170, Short.MAX_VALUE))\n .addComponent(jtfPhoneNum)))\n .addComponent(jtfEmail)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel4))\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(jtfSkype)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jbCancel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jbSave)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jtfFullName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jtfPhoneNum, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jtfEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jtfSkype, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jbSave)\n .addComponent(jbCancel))\n .addContainerGap())\n );\n\n pack();\n }", "public ContactoFormBean() {\r\n setContexto();\r\n }", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tif (!nameEditText.getText().toString().equalsIgnoreCase(\"\")\n\t\t\t\t\t&& !phoneNumberEditText.getText().toString()\n\t\t\t\t\t\t\t.equalsIgnoreCase(\"\")) {\n\t\t\t\t\n\t\t\t\tSCContact scContact = new SCContact();\n\t\t\t\tscContact.setName(nameEditText.getText().toString());\n\t\t\t\tscContact.setNumber(phoneNumberEditText.getText().toString());\n\t\t\t\tscContact.setId(contactID);\n\t\t\t\tif (insertOrUpdate) {\n\t\t\t\t\t\n\t\t\t\t\tcontactRepository = new ContactRepository(AddEmergencyContactsActivity.this);\n\t\t\t\t\tcontactRepository.insertContact(scContact);\n\t\t\t\t} else {\n\t\t\t\t\tcontactRepository = new ContactRepository(AddEmergencyContactsActivity.this);\n\t\t\t\t\tcontactRepository.updateContact(scContact);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}", "public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}", "@GetMapping(\"/create\")\n public ModelAndView create(@ModelAttribute(\"form\") final CardCreateForm form) {\n return getCreateForm(form);\n }", "@GetMapping(value = \"/createContactSuccess\")\r\n\tpublic String createContactSuccess(Model model) {\r\n\t\tmodel.addAttribute(\"contact\", new Contact());\r\n\t\treturn \"contactInfo\";\r\n\r\n\t}", "public static FormV1 createEntity() {\n FormV1 formV1 = new FormV1()\n .customerId(DEFAULT_CUSTOMER_ID)\n .formType(DEFAULT_FORM_TYPE);\n return formV1;\n }", "public static void addContacts(ContactFormData formData) {\n long idValue = formData.id;\n if (formData.id == 0) {\n idValue = ++currentIdValue;\n }\n Contact contact = new Contact(idValue, formData.firstName, formData.lastName, formData.telephone);\n contacts.put(idValue, contact);\n }", "private PersonCtr createCustomer()\n {\n\n // String name, String addres, int phone, int customerID\n PersonCtr c = new PersonCtr();\n String name = jTextField3.getText();\n String address = jTextPane1.getText();\n int phone = Integer.parseInt(jTextField2.getText());\n int customerID = phone;\n Customer cu = new Customer();\n cu = c.addCustomer(name, address, phone, customerID);\n JOptionPane.showMessageDialog(null, cu.getName() + \", \" + cu.getAddress()\n + \", tlf.nr.: \" + cu.getPhone() + \" er oprettet med ID nummer: \" + cu.getCustomerID()\n , \"Kunde opretttet\", JOptionPane.INFORMATION_MESSAGE);\n return c;\n\n\n }", "public AlterContact() {\n\t\tsetTitle(\"Alterar Contato\");\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetBounds(100, 100, 450, 225);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\n\t\ttextFieldNome = new JTextField();\n\t\ttextFieldNome.setBounds(83, 22, 341, 20);\n\t\tcontentPane.add(textFieldNome);\n\t\ttextFieldNome.setColumns(10);\n\n\t\ttextFieldTelefone = new JTextField();\n\t\ttextFieldTelefone.setBounds(83, 53, 341, 20);\n\t\tcontentPane.add(textFieldTelefone);\n\t\ttextFieldTelefone.setColumns(10);\n\n\t\ttextFieldDescricao = new JTextField();\n\t\ttextFieldDescricao.setBounds(83, 84, 341, 41);\n\t\tcontentPane.add(textFieldDescricao);\n\t\ttextFieldDescricao.setColumns(10);\n\n\t\tJLabel lblNome = new JLabel(\"Nome:\");\n\t\tlblNome.setBounds(10, 25, 46, 14);\n\t\tcontentPane.add(lblNome);\n\n\t\tJLabel lblTelefone = new JLabel(\"Telefone:\");\n\t\tlblTelefone.setBounds(10, 56, 46, 14);\n\t\tcontentPane.add(lblTelefone);\n\n\t\tJLabel lblDescricao = new JLabel(\"Descri\\u00E7\\u00E3o:\");\n\t\tlblDescricao.setBounds(10, 97, 63, 14);\n\t\tcontentPane.add(lblDescricao);\n\n\t\t/*\n\t\t * Getting an instance of a Agenda to be populated with a query from\n\t\t * database.\n\t\t */\n\t\ttry {\n\t\t\tAddressBook contato = new AddressBook();\n\t\t\tAddressBookController agendaController = AddressBookController.getInstance();\n\t\t\tcontato.setNome(AddressBook.getTempNome());\n\t\t\tResultSet rs = agendaController.pesquisarPorNome(contato);\n\n\t\t\twhile (rs.next()) {\n\t\t\t\ttextFieldNome.setText(rs.getString(\"nome\"));\n\t\t\t\ttextFieldTelefone.setText(rs.getString(\"telefone\"));\n\t\t\t\ttextFieldDescricao.setText(rs.getString(\"descricao\"));\n\t\t\t}\n\t\t\tnome = textFieldNome.getText();\n\t\t} catch (SQLException e) {\n\t\t\tmostrarMensagemDeErro(e.getMessage());\n\t\t} catch (BarberException e) {\n\t\t\tmostrarMensagemDeErro(e.getMessage());\n\t\t}\n\n\t\t/*\n\t\t * Add an action performed event. When the SalvarAlteracao Button is\n\t\t * clicked, it takes the strings from the text fields and saves them in\n\t\t * in the database.\n\t\t */\n\t\tJButton btnSalvarAlteracao = new JButton(\"Salvar Altera\\u00E7\\u00E3o\");\n\t\tbtnSalvarAlteracao.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\ttry {\n\t\t\t\t\tAddressBook agenda = new AddressBook();\n\t\t\t\t\tagenda.setNome(textFieldNome.getText());\n\t\t\t\t\tagenda.setTelefone(textFieldTelefone.getText());\n\t\t\t\t\tagenda.setDescricao(textFieldDescricao.getText());\n\n\t\t\t\t\tAddressBookController AgendaController = control.AddressBookController\n\t\t\t\t\t\t\t.getInstance();\n\t\t\t\t\tAgendaController.alterar(nome, agenda);\n\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Agenda \"\n\t\t\t\t\t\t\t+ textFieldNome.getText()\n\t\t\t\t\t\t\t+ \" foi alterado com sucesso\");\n\n\t\t\t\t\tdispose();\n\t\t\t\t\tRegisterAddressBook frame = new RegisterAddressBook();\n\t\t\t\t\tframe.setVisible(true);\n\t\t\t\t\tframe.setLocationRelativeTo(null);\n\t\t\t\t} catch (BarberException e1) {\n\t\t\t\t\tmostrarMensagemDeErro(e1.getMessage());\n\t\t\t\t} catch (SQLException k) {\n\t\t\t\t\tmostrarMensagemDeErro(k.getMessage());\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t\tbtnSalvarAlteracao.setBounds(83, 136, 153, 31);\n\t\tcontentPane.add(btnSalvarAlteracao);\n\n\t\t/*\n\t\t * Add an action performed event. When the Voltar Button is clicked, it\n\t\t * returns the the previous window, which is RegisterAddressBook.\n\t\t */\n\t\tJButton btnVoltar = new JButton(\"Voltar\");\n\t\tbtnVoltar.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t\t\tdispose();\n\t\t\t\tRegisterAddressBook frame = new RegisterAddressBook();\n\t\t\t\tframe.setVisible(true);\n\t\t\t\tframe.setLocationRelativeTo(null);\n\t\t\t}\n\t\t});\n\t\tbtnVoltar.setBounds(259, 136, 165, 31);\n\t\tcontentPane.add(btnVoltar);\n\t}", "public static AssessmentCreationForm openFillCreationForm(Assessment assm) {\n openCreationSearchForm(Roles.STAFF, WingsTopMenu.WingsStaffMenuItem.P_ASSESSMENTS, Popup.Create);\n\n Logger.getInstance().info(\"Fill out the required fields with valid data\");\n AssessmentCreationForm creationForm = new AssessmentCreationForm();\n creationForm.fillAssessmentInformation(new User(Roles.STAFF), assm);\n\n return new AssessmentCreationForm();\n }", "@Override\n\tpublic void onFormCreate(AbstractForm arg0, DataMsgBus arg1) {\n\t}", "public ContactDetails() {\n initComponents();\n }", "private PageAction getAddToContactsAction() {\n return new PageAction() {\n @Override\n public void run() {\n final Transfer transfer = data.getTransfer();\n if(transfer != null && transfer.getBasicMember() != null) { \n contactService.saveContact(transfer.getBasicMember().getId(), new BaseAsyncCallback<Contact>() {\n @Override\n public void onSuccess(Contact result) {\n Parameters params = new Parameters();\n params.add(ParameterKey.ID, result.getMember().getId());\n params.add(ParameterKey.SAVE, true);\n Navigation.get().go(PageAnchor.CONTACT_DETAILS, params);\n } \n }); \n } \n }\n @Override\n public String getLabel() { \n return messages.addToContacts();\n } \n };\n }", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "public void openAddContact(View view){\n // initialize and Intent for the MainActivity and start it\n intent = new Intent(this, AddContact.class);\n startActivity(intent);\n }", "@PostMapping(value = \"/addContact\")\r\n\tpublic String handleSubmitBtn(@ModelAttribute(\"contact\") Contact c, RedirectAttributes attributes) {\r\n\t\tboolean isSaved = service.saveContact(c);\r\n\t\tif (isSaved) {\r\n\t\t\tattributes.addFlashAttribute(\"successMessage\", \"Contact is saved\");\r\n\t\t} else {\r\n\t\t\tattributes.addFlashAttribute(\"errorMessage\", \"Contact is not saved\");\r\n\t\t}\r\n\t\treturn \"redirect:/createContactSuccess\";\r\n\t}", "public void onClick(View v) {\n if (firstName.getText().toString().isEmpty()) {\n firstName.setError(\"This field cannot be blank\");\n } else if (extras.getString(\"NEW_OR_EDIT\").equals(\"edit\")) {\n int number = extras.getInt(\"NUMBER\");\n Contact current = new Contact(firstName.getText().toString(), lastName.getText().toString(),\n phone.getText().toString(), email.getText().toString());\n // If the first name is not empty (Validation)\n controller.updateContactAt(number, current);\n finish();\n } else if (extras.getString(\"NEW_OR_EDIT\").equals(\"new\")) {\n Contact current = new Contact(firstName.getText().toString(), lastName.getText().toString(),\n phone.getText().toString(), email.getText().toString());\n if (!firstName.getText().toString().isEmpty()) {\n controller.addContact(current);\n finish();\n }\n }\n }", "@GetMapping(\"/showFormForAdd\")\r\n\tpublic String showFormForAdd(Model theModel){\n\t\tCustomer theCustomer = new Customer();\r\n\t\t\r\n\t\ttheModel.addAttribute(\"customer\",theCustomer);\r\n\t\t\r\n\t\treturn \"customer-form\";\r\n\t}", "public void addContact(String tel, String corr){\n\t\n\t\tif(!emergencia_esta_Ocupado[0]){\n\t\t\taddView(0,tel,corr);\n\t\t}else if(!emergencia_esta_Ocupado[1]){\n\t\t\taddView(1,tel,corr);\n\t\t}\n\t}", "public static Contacts createContacts(String name,String phoneNumber){\n //it calling the constuctor to create an new contact record\n return new Contacts(name,phoneNumber);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_add_new_contact, container, false);\n final EditText name = v.findViewById(R.id.etName);\n final EditText phone = v.findViewById(R.id.etPhoneNumber);\n final Spinner operator = v.findViewById(R.id.spinnerOperator);\n final CountryCodePicker ccp = v.findViewById(R.id.ccp);\n\n\n Button save = v.findViewById(R.id.btnSaveAndSubmit);\n save.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n pd = new ProgressDialog(getContext());\n pd.setMessage(\"Enviando\");\n\n if(name.getText().toString().isEmpty()){\n name.setError(\"Ingresa un nombre\");\n }else if(name.getText().toString().isEmpty()){\n name.setError(\"Ingresa un nombre\");\n }else if (operator.getSelectedItem().equals(\"Provider name\")){\n Toast.makeText(getContext(), \"Elige Proveedor\", Toast.LENGTH_SHORT).show();\n }else if(phone.getText().toString().isEmpty()){\n phone.setError(\"Ingresa un numero\");\n }else {\n pd.show();\n Contact contact = new Contact(name.getText().toString(),phone.getText().toString(),ccp.getSelectedCountryCodeWithPlus(),operator.getSelectedItem().toString());\n\n final FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference ref = database.getReference(Constants.TEST);\n\n DatabaseReference usersRef = ref.child(\"contact\");\n\n usersRef.child(USER.getUid()).setValue(contact);\n if(!Constants.TEST.equals(\"testenvironment/\")) {\n Constants.sendNotification(ADMIN_TOKEN, \"Reward claimed\");\n }\n submit();\n }\n\n\n }\n });\n\n return v;\n }", "public Contact(){}", "@Override\n public void onClick(View v) {\n if(validateInputInfo()){\n\n //Get text input\n String firstName = newContactFirstName.getText().toString();\n String lastName = newContactLastName.getText().toString();\n String email = newContactEmailAddress.getText().toString();\n String phone = newContactPhoneNumber.getText().toString();\n\n //Create contact object\n final Contact addMe = new Contact(firstName, lastName, email, phone);\n\n //Get unique ID in database to store Contact object\n String id = myDatabase.push().getKey();\n\n //Add to database\n myDatabase.child(id).setValue(addMe).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n //If successful display message and return to home page\n if(task.isSuccessful()){\n Toast.makeText(getBaseContext(), \"New contact \" + addMe.getDisplayName() + \" created!\", Toast.LENGTH_LONG).show();\n\n //Go to home page\n finish();\n }\n else {\n Toast.makeText(getBaseContext(), \"Unable to add \" + addMe.getDisplayName() + \" contact\", Toast.LENGTH_LONG).show();\n }\n }\n });\n }\n }", "@RequestMapping(method = RequestMethod.GET)\n \tpublic String createForm(Model model, ForgotLoginForm form) {\n \t\tmodel.addAttribute(\"form\", form);\n \t\treturn \"forgotlogin/index\";\n \t}", "@PostMapping(\"/createAccount\")\n public ModelAndView createNewAccount(AccountCreateDTO createDTO){\n ModelAndView modelAndView = new ModelAndView();\n\n accountService.createAccount(createDTO);\n modelAndView.addObject(\"successMessage\", \"Account has been created\");\n modelAndView.setViewName(\"accountPage\");\n\n return modelAndView;\n }", "public CreateCustomer() {\n initComponents();\n }", "@GetMapping(\"/add\")\n public String showSocioForm(Model model, Persona persona) {\n List<Cargo> cargos = cargoService.getCargos();\n model.addAttribute(\"cargos\", cargos);\n return \"/backoffice/socioForm\";\n }", "@Override\n public void onComplete(@NonNull Task<Void> task) {\n if(task.isSuccessful()){\n Toast.makeText(getBaseContext(), \"New contact \" + addMe.getDisplayName() + \" created!\", Toast.LENGTH_LONG).show();\n\n //Go to home page\n finish();\n }\n else {\n Toast.makeText(getBaseContext(), \"Unable to add \" + addMe.getDisplayName() + \" contact\", Toast.LENGTH_LONG).show();\n }\n }", "public void onCreate() {\r\n Session session = sessionService.getCurrentSession();\r\n Map<String, Region> items = ControlUtility.createForm(Pc.class);\r\n\r\n ControlUtility.fillComboBox((ComboBox<Kind>) items.get(\"Kind\"), session.getCampaign().getCampaignVariant().getKinds());\r\n ControlUtility.fillComboBox((ComboBox<Race>) items.get(\"Race\"), session.getCampaign().getCampaignVariant().getRaces());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Ability>) items.get(\"SavingThrows\"), Arrays.asList(Ability.values()));\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Proficiency>) items.get(\"Proficiencies\"), session.getCampaign().getCampaignVariant().getProficiencies());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Feature>) items.get(\"Features\"), session.getCampaign().getCampaignVariant().getFeatures());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Trait>) items.get(\"Traits\"), session.getCampaign().getCampaignVariant().getTraits());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Equipment>) items.get(\"Equipment\"), session.getCampaign().getCampaignVariant().getEquipments());\r\n\r\n Campaign campaign = session.getCampaign();\r\n\r\n Dialog<String> dialog = ControlUtility.createDialog(\"Create Playable Character\", items);\r\n dialog.show();\r\n\r\n dialog.setResultConverter(buttonType -> {\r\n if (buttonType != null) {\r\n Pc pc = null;\r\n try {\r\n pc = ControlUtility.controlsToValues(Pc.class, items);\r\n } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException | InstantiationException | ClassNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n if (pc != null) {\r\n try {\r\n characterService.createPlayerCharacter(pc);\r\n } catch (SessionAlreadyExists | IndexAlreadyExistsException sessionAlreadyExists) {\r\n sessionAlreadyExists.printStackTrace();\r\n }\r\n try {\r\n playerManagementService.addOrUpdatePcForRegisteredPlayer(pc);\r\n Player player = playerManagementService.getRegisteredPlayer();\r\n campaign.addPlayer(player);\r\n campaign.addCharacter(pc);\r\n if (campaignListingService.campaignExists(campaign.getId())) {\r\n manipulationService.updateCampaign(campaign);\r\n } else {\r\n manipulationService.createCampaign(campaign);\r\n }\r\n } catch (MultiplePlayersException | EntityNotFoundException | SessionAlreadyExists | IndexAlreadyExistsException e) {\r\n e.printStackTrace();\r\n }\r\n try {\r\n playerManagementService.addOrUpdatePcForRegisteredPlayer(pc);\r\n } catch (MultiplePlayersException | EntityNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n try {\r\n sessionService.updateParticipant(playerManagementService.getRegisteredPlayer().getId(), pc.getId());\r\n sessionService.updateCampaign(campaign);\r\n } catch (EntityNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n render();\r\n return pc.toString();\r\n }\r\n }\r\n return null;\r\n });\r\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tgetWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, \n\t\t\t\tWindowManager.LayoutParams.FLAG_FULLSCREEN);\n\t\t\n\t\tsetContentView(R.layout.add_contact);\n\t\t\n\t\t\n\n\t\tnameToAdded = (EditText) findViewById(R.id.etNameToAdded);\n\t\temailToAdded = (EditText) findViewById(R.id.etEmailToAdded);\n\t\tsave = (Button) findViewById(R.id.bSaveContact);\n\t\tcancel = (Button) findViewById(R.id.bCancelAdd);\n\n\t\tsave.setOnClickListener(this);\n\t\tcancel.setOnClickListener(this);\n\t}", "public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }", "public void addContacts() {\r\n\t\t\r\n\t\t\r\n\t}", "public void onCreate(Bundle bundle) {\n super.onCreate(bundle);\n setContentView((int) R.layout.activity_contact_us);\n this.title = (AppCompatTextView) findViewById(R.id.title);\n this.title.setText(\"Contact Us\");\n }", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "public void addContact() {\n Contacts contacts = new Contacts();\n System.out.println(\"Enter first name\");\n contacts.setFirstName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter last name\");\n contacts.setLastName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter address\");\n contacts.setAddress(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter city\");\n contacts.setCity(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter state\");\n contacts.setState(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter email\");\n contacts.setEmail(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter zip\");\n contacts.setZip(scannerForAddressBook.scannerProvider().nextInt());\n System.out.println(\"Enter phone number\");\n contacts.setPhoneNumber(scannerForAddressBook.scannerProvider().nextLine());\n contactList.add(contacts);\n }", "@Test\n public void TC2(){\n TryCloudUtil.clickContactsModule(driver);\n\n // 3.Click “New Contact” button\n // 4.Fill out the contact info like : Title, Phone, email, address , etc\n TryCloudUtil.CreatingNewContact(driver);\n\n // 5.Verify the contact name is added to the contact list\n WebElement newContact=driver.findElement(By.xpath(\"//body[@id='body-user']\"));\n Assert.assertTrue(newContact.isDisplayed());\n }", "public CreateAccount() {\n initComponents();\n selectionall();\n }", "public void clickOnNewContactLink() {\n\t\tActions action=new Actions(driver);\n\t\taction.moveToElement(contactlink).build().perform();\n\t\tnewContactLink.click();\n\t}", "public Contact(){\n\t\t\n\t}", "public void manageContacts(View view) {\n Intent intent = new Intent(this, ContactManagment.class);\n startActivity(intent);\n }", "@GetMapping(\"/showForm\")\n public String showFormForAdd(Model theModel) {\n Customer theCustomer = new Customer();\n theModel.addAttribute(\"customer\", theCustomer);\n return \"customer-form\";\n }", "private void save() {\n Toast.makeText(ContactActivity.this, getString(R.string.save_contact_toast), Toast.LENGTH_SHORT).show();\n\n String nameString = name.getText().toString();\n String titleString = title.getText().toString();\n String emailString = email.getText().toString();\n String phoneString = phone.getText().toString();\n String twitterString = twitter.getText().toString();\n \n if (c != null) {\n datasource.editContact(c, nameString, titleString, emailString, phoneString, twitterString);\n }\n else {\n \tc = datasource.createContact(nameString, titleString, emailString, phoneString, twitterString);\n }\n }", "public static void create() {\n Application.currentUserCan( 1 );\n \n String author = session.get(\"userEmail\");\n String title = params.get( \"course[title]\", String.class );\n String content = params.get( \"course[content]\", String.class );\n \n if( title.length() > 0 && content.length() > 0 ) {\n Course course = new Course(title, content, author);\n course.save();\n }\n \n index();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }", "public Contact() {\n }", "public Contact() {\n }", "public Contact() {\n }", "public Contact() {\n super();\n }", "private void buildPane() {\n\t\tcreateListContact();\r\n\t\t\r\n\t\tJScrollPane listScrollPane = new JScrollPane(listContact);\r\n\t\t\r\n\t\tnouveauContact = new JTextField(10);\r\n\t\tajoutButton = new JButton(\"Ajouter\");\r\n\t\tcontactInfoChamp = new JTextField(30);\r\n\t\tvaliderButton = new JButton(\"Valider\");\r\n\t\t\r\n ControllerAgendaAjouter ajoutListener = new ControllerAgendaAjouter(ajoutButton, nouveauContact, listContact, listContactModel);\r\n \r\n ControllerAgendaModifier modificationListener = new ControllerAgendaModifier(validerButton, contactInfoChamp, listContact, listContactModel);\r\n \r\n // ajouter un nouveau contact\r\n ajoutButton.addActionListener(ajoutListener);\r\n ajoutButton.setEnabled(false);\r\n \r\n nouveauContact.addCaretListener(ajoutListener);\r\n \r\n // Afficher et modifier la valeur du numero d'un contact existant\r\n contactInfoChamp.setText(listContactModel.getValue(listContact.getSelectedValue().toString()));\r\n contactInfoChamp.addActionListener(modificationListener);\r\n \r\n validerButton.addActionListener(modificationListener);\r\n \r\n JPanel contactBox = new JPanel();\r\n contactBox.add(contactInfoChamp);\r\n contactBox.add(validerButton);\r\n \r\n JPanel buttonBox = new JPanel();\r\n buttonBox.setLayout(new BoxLayout(buttonBox, BoxLayout.LINE_AXIS));\r\n buttonBox.add(ajoutButton);\r\n buttonBox.add(nouveauContact);\r\n \r\n JPanel centerBox = new JPanel(); \r\n centerBox.setLayout(new BorderLayout());\r\n centerBox.add(listScrollPane, BorderLayout.PAGE_START);\r\n centerBox.add(contactBox, BorderLayout.CENTER);\r\n\r\n add(centerBox, BorderLayout.CENTER);\r\n add(buttonBox, BorderLayout.PAGE_END);\r\n\t\t\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.add) {\n AlertDialog.Builder dialog = new AlertDialog.Builder(this);\n dialog.setTitle(\"新增聯絡人\");\n\n LinearLayout linearLayout = new LinearLayout(this);\n linearLayout.setOrientation(LinearLayout.VERTICAL);\n linearLayout.setPadding(80,10,50,10);\n final EditText editText_name = new EditText(this);\n final EditText editText_phone = new EditText(this);\n editText_name.setHint(\"請輸入聯絡人名稱\");\n editText_phone.setHint(\"請輸入電話號碼\");\n editText_phone.setInputType(EditorInfo.TYPE_CLASS_NUMBER);\n linearLayout.addView(editText_name);\n linearLayout.addView(editText_phone);\n dialog.setView(linearLayout);\n\n dialog.setPositiveButton(\"新增\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (editText_phone.getText().toString().matches(\"(09)+[\\\\d]{8}\")) {\n ContactPerson contactPerson = new ContactPerson(editText_name.getText().toString(), editText_phone.getText().toString());\n contactDB.insert(contactPerson);\n } else {\n Toast.makeText(MainActivity.this, \"輸入電話號碼格式錯誤\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n dialog.setNegativeButton(\"取消\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n }\n });\n\n dialog.setCancelable(false);\n dialog.show();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void onCreate() {\r\n\t\trelayState = null;\r\n\t\tdomainName = ((Person) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getDomain().getName();\r\n\t\tgoogleAccount = ((Person) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getGoogleAccount();\r\n\t\tregistry = ((Person) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getRegistry();\r\n\t\tacsForm = new AcsForm(domainName);\r\n\t\tappendChild(acsForm);\r\n\t\ticeForm = new IceForm();\r\n\t\tappendChild(iceForm);\r\n\t\ticeAppsController = (IceAppsController) SpringUtil.getBean(\"iceAppsController\");\r\n\t}", "public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }", "public frm_tutor_subida_prueba() {\n }", "public Contact(String nameInput, String phoneInput, String emailInput){\n this.name = nameInput;\n this.phone = phoneInput;\n this.email = emailInput;\n }", "public AddNewContactGroupAction() {\r\n\t\tsuper();\r\n\t}", "@Override\n\tpublic void create(CreateCoinForm form) throws Exception {\n\t}", "public Form getCreationForm() throws ProcessManagerException {\r\n try {\r\n Action creation = processModel.getCreateAction();\r\n return processModel.getPublicationForm(creation.getName(), currentRole,\r\n getLanguage());\r\n } catch (WorkflowException e) {\r\n throw new ProcessManagerException(\"SessionController\",\r\n \"processManager.ERR_NO_CREATION_FORM\", e);\r\n }\r\n }", "void enableAddContactButton();", "@FXML\n\tpublic void createClient(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString names = txtClientNames.getText();\n\t\tString surnames = txtClientSurnames.getText();\n\t\tString id = txtClientId.getText();\n\t\tString adress = txtClientAdress.getText();\n\t\tString phone = txtClientPhone.getText();\n\t\tString observations = txtClientObservations.getText();\n\n\t\tif (!names.equals(empty) && !surnames.equals(empty) && !id.equals(empty) && !adress.equals(empty)\n\t\t\t\t&& !phone.equals(empty) && !observations.equals(empty)) {\n\t\t\tcreateClient(names, surnames, id, adress, phone, observations, 1);\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.setContentText(\"Todos los campos de texto deben ser llenados\");\n\t\t\tdialog.show();\n\t\t}\n\t}", "public FormularioCliente() {\n initComponents();\n }", "public void create_contact(String contactName, SupplierCard supplier) {\n supplier_dao.create_contact(contactName, supplier);\n }", "public Contact(String name)\n {\n if(name == null || name.equals(\"\")) {\n throw new IllegalArgumentException(\"Name cannot be null.\");\n }\n \n this.name = name;\n this.agenda = new ArrayList<Appointment>();\n }", "public New_appointment() {\n initComponents();\n }", "public ContactPanel() {\n initComponents();\n }", "@GetMapping(\"/list/showFormForAdd\")\n\tpublic String showFormForAdd(Model theModel) {\n\t\tPerson thePerson = new Person();\n\t\ttheModel.addAttribute(\"person\", thePerson);\n\n\t\treturn \"person-form\";\n\t}", "public static void addContact(String user, ContactFormData formData) {\n boolean isNewContact = (formData.id == -1);\n if (isNewContact) {\n Contact contact = new Contact(formData.firstName, formData.lastName, formData.telephone, formData.telephoneType);\n UserInfo userInfo = UserInfo.find().where().eq(\"email\", user).findUnique();\n if (userInfo == null) {\n throw new RuntimeException(\"Could not find user: \" + user);\n }\n userInfo.addContact(contact);\n contact.setUserInfo(userInfo);\n contact.save();\n userInfo.save();\n }\n else {\n Contact contact = Contact.find().byId(formData.id);\n contact.setFirstName(formData.firstName);\n contact.setLastName(formData.lastName);\n contact.setTelephone(formData.telephone);\n contact.setTelephoneType(formData.telephoneType);\n contact.save();\n }\n }", "public FichaDeContactoJFrame() {\n initComponents();\n }", "@RequestMapping(value = \"/add\")\n public String addForm(Model model) {\n model.addAttribute(\"service\",fservice.findAllServices());\n model.addAttribute(\"customer\", mservice.findAllCustomer());\n model.addAttribute(\"customer\", new Customer());\n return \"customer-form\";\n }", "@Override\n\tprotected void onCreate(final Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.add_contact);\n\n\t\tetName = (EditText) findViewById(R.id.etNameAdd);\n\t\tetName.setText(\"\");\n\t\tetLastname = (EditText) findViewById(R.id.etLastnameAdd);\n\t\tetLastname.setText(\"\");\n\t\tetAdress = (EditText) findViewById(R.id.etAdressAdd);\n\t\tetAdress.setText(\"\");\n\n\t\tivImage = (ImageView) findViewById(R.id.imgAddView);\n\t\tivImage.setImageResource(R.drawable.person);\n\n\t\tdpBirthDate = (DatePicker) findViewById(R.id.AddDate);\n\t\tdpBirthDate.setMaxDate(Calendar.getInstance().getTime().getTime());\n\n\t\trgGender = (RadioGroup) findViewById(R.id.rdGrAddGender);\n\n\t\tbtnCancel = (Button) findViewById(R.id.cancelAddBtn);\n\t\tbtnConfirm = (Button) findViewById(R.id.confirmAddBtn);\n\t\t\n\t\tetLastname.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n\t\t @Override\n\t\t public void onFocusChange(View v, boolean hasFocus) {\n\t\t if (!hasFocus) {\n\t\t if(!etLastname.getText().toString().equals(\"\")) {\n\t\t \tetName.setHint(\"Поле желательно для заполнения\");\n\t\t }\n\t\t }\n\t\t }\n\t\t});\n\t\t\n\t\tetName.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n\t\t @Override\n\t\t public void onFocusChange(View v, boolean hasFocus) {\n\t\t if (!hasFocus) {\n\t\t if(!etName.getText().toString().equals(\"\")) {\n\t\t \tetLastname.setHint(\"Поле желательно для заполнения\");\n\t\t }\n\t\t }\n\t\t }\n\t\t});\n\t\t\n\t\t\n\t/**\n\t * Sets data if Activity called for editing. \t \n\t */\n\t\tif (getIntent().hasExtra(\"ContactData\")) {\n\t\t\tContactData cd = (ContactData) getIntent().getSerializableExtra(\n\t\t\t\t\t\"ContactData\");\n\t\t\tDate d = new Date(cd.getDate());\n\t\t\tGregorianCalendar cal = new GregorianCalendar();\n\t\t\tcal.setTime(d);\n\n\t\t\tdpBirthDate.updateDate(cal.get(Calendar.YEAR),\n\t\t\t\t\tcal.get(Calendar.MONTH), cal.get(Calendar.DATE));\n\t\t\tetName.setText(cd.getName());\n\t\t\tetLastname.setText(cd.getLastname());\n\t\t\tetAdress.setText(cd.getAdress());\n\t\t\tif (cd.getGender().startsWith(\"М\")) {\n\t\t\t\trgGender.check(R.id.rdAddMale);\n\t\t\t} else {\n\t\t\t\trgGender.check(R.id.rdAddFemale);\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tBitmap photo = MediaStore.Images.Media\n\t\t\t\t\t\t.getBitmap(this.getContentResolver(),Uri.parse(cd.getImage()));\n\t\t\t\tBitmap photoScaled = Bitmap.createScaledBitmap(photo, 70, 70, true);\n\t\t\t\tivImage.setImageBitmap(photoScaled);\n\t\t\t\tcontactImageUri = Uri.parse(cd.getImage());\n\t\t\t} catch (Exception e) {\n\t\t\t\tcontactImageUri = Uri\n\t\t\t\t\t\t.parse(\"android.resource://com.example.mycontacts/drawable/person\");\n\t\t\t\tivImage.setImageURI(contactImageUri);\n\t\t\t}\n\t\t\tcontactDataId = cd.getId();\n\t\t} else {\n\t\t\tcontactDataId = -1;\n\n\t\t}\n\n\t}", "public Feedback() {\n super(\"Feedback Form\");\n initComponents();\n groupButton();\n }", "public PDMRelationshipForm() {\r\n initComponents();\r\n }", "@RequestMapping(\"/showForm\")\n\tpublic String showForm(Model theModel) {\n\t\tCustomer customer = new Customer();\n\n\t\t// add Customer object to the model\n\t\ttheModel.addAttribute(\"customer\", customer);\n\t\t\n\t\treturn \"customer-form\";\n\t}", "private HorizontalPanel createContent() {\n\t\tfinal HorizontalPanel panel = new HorizontalPanel();\n\t\tfinal VerticalPanel form = new VerticalPanel();\n\t\tpanel.add(form);\n\t\t\n\t\tfinal Label titleLabel = new Label(CONSTANTS.actorLabel());\n\t\ttitleLabel.addStyleName(AbstractField.CSS.cbtAbstractPopupLabel());\n\t\tform.add(titleLabel);\n\t\t\n\t\tfinal Label closeButton = new Label();\n\t\tcloseButton.addClickHandler(new ClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tActorPopup.this.hide();\n\t\t\t}\n\t\t});\n\t\tcloseButton.addStyleName(AbstractField.CSS.cbtAbstractPopupClose());\n\t\tform.add(closeButton);\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Party field\n\t\t//-----------------------------------------------\n\t\tpartyField = new SuggestField(this, null,\n\t\t\t\tnew NameIdAction(Service.PARTY),\n\t\t\t\tCONSTANTS.partynameLabel(),\n\t\t\t\t20,\n\t\t\t\ttab++);\n\t\tpartyField.setReadOption(Party.CREATED, true);\n\t\tpartyField.setDoubleclickable(true);\n\t\tpartyField.setHelpText(CONSTANTS.partynameHelp());\n\t\tform.add(partyField);\n\n\t\t//-----------------------------------------------\n\t\t// Email Address field\n\t\t//-----------------------------------------------\n\t\temailaddressField = new TextField(this, null,\n\t\t\t\tCONSTANTS.emailaddressLabel(),\n\t\t\t\ttab++);\n\t\temailaddressField.setMaxLength(100);\n\t\temailaddressField.setHelpText(CONSTANTS.emailaddressHelp());\n\t\tform.add(emailaddressField);\n\n\t\t//-----------------------------------------------\n\t\t// Password field\n\t\t//-----------------------------------------------\n\t\tpasswordField = new PasswordField(this, null,\n\t\t\t\tCONSTANTS.passwordLabel(),\n\t\t\t\ttab++);\n\t\tpasswordField.setSecure(true);\n\t\tpasswordField.setHelpText(CONSTANTS.passwordHelp());\n\t\tform.add(passwordField);\n\n\t\t//-----------------------------------------------\n\t\t// Check Password field\n\t\t//-----------------------------------------------\n\t\tcheckpasswordField = new PasswordField(this, null,\n\t\t\t\tCONSTANTS.checkpasswordLabel(),\n\t\t\t\ttab++);\n\t\tcheckpasswordField.setSecure(true);\n\t\tcheckpasswordField.setHelpText(CONSTANTS.checkpasswordHelp());\n\t\tform.add(checkpasswordField);\n\n\t\t//-----------------------------------------------\n\t\t// Date Format field\n\t\t//-----------------------------------------------\n\t\tformatdateField = new ListField(this, null,\n\t\t\t\tNameId.getList(Party.DATE_FORMATS, Party.DATE_FORMATS),\n\t\t\t\tCONSTANTS.formatdateLabel(),\n\t\t\t\tfalse,\n\t\t\t\ttab++);\n\t\tformatdateField.setDefaultValue(Party.MM_DD_YYYY);\n\t\tformatdateField.setFieldHalf();\n\t\tformatdateField.setHelpText(CONSTANTS.formatdateHelp());\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Phone Format field\n\t\t//-----------------------------------------------\n\t\tformatphoneField = new TextField(this, null,\n\t\t\t\tCONSTANTS.formatphoneLabel(),\n\t\t\t\ttab++);\n\t\tformatphoneField.setMaxLength(25);\n\t\tformatphoneField.setFieldHalf();\n\t\tformatphoneField.setHelpText(CONSTANTS.formatphoneHelp());\n\n\t\tHorizontalPanel ff = new HorizontalPanel();\n\t\tff.add(formatdateField);\n\t\tff.add(formatphoneField);\n\t\tform.add(ff);\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Roles option selector\n\t\t//-----------------------------------------------\n\t\trolesField = new OptionField(this, null,\n\t\t\t\tAbstractRoot.hasPermission(AccessControl.AGENCY) ? getAgentroles() : getOrganizationroles(),\n\t\t\t\tCONSTANTS.roleLabel(),\n\t\t\t\ttab++);\n\t\trolesField.setHelpText(CONSTANTS.roleHelp());\n\t\tform.add(rolesField);\n\n\t\tform.add(createCommands());\n\t\t\n\t\tonRefresh();\n\t\tonReset(Party.CREATED);\n\t\treturn panel;\n\t}", "public static Result contactUsPage() {\n\t\treturn ok(views.html.contactUsPage.render());\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState)\n\t{\n super.onCreate(savedInstanceState);\n\t\t\n\t\tUri cont = ContactsContract.CommonDataKinds.Phone.CONTENT_URI;\n\t\tString[] filter = {\"_id\", DISPLAY_NAME, NUMBER};\n\t\t\n\t\tCursor cursor = getContentResolver().query(cont, filter, null, null,null);\n\t\t\n\t\tadapt = new SimpleCursorAdapter(this, \n\t\t R.layout.thread_form,\n\t\t cursor,\n\t\t\t\tnew String[] {DISPLAY_NAME, NUMBER},\n\t\t new int[]{R.id.thread_form_address, R.id.thread_form_snippet});\n\t\t\n\t\t//adapt.setViewBinder(new MyCursorViewBinder());\n\t\tsetListAdapter(adapt);\n\n\t\tActionBar actBar = getActionBar();\n\t\tactBar.setTitle(R.string.contacts);\t\t\n }", "@FormUrlEncoded\n @POST(\"client/contacts\")\n Observable<SaveContactsResponse> saveContact(@Header(\"Authorization\") String token,\n @Field(\"name\") String name,\n @Field(\"phone\") String phone,\n @Field(\"description\") String description);", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(getActivity(), ContactAdd.class);\n startActivityForResult(intent, 10001);\n }", "private void createSubject(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n // Formulareingaben prüfen\n String name = request.getParameter(\"name\");\n\n Subject subject = new Subject(name);\n List<String> errors = this.validationBean.validate(subject);\n\n // Neue Kategorie anlegen\n if (errors.isEmpty()) {\n this.subjectBean.saveNew(subject);\n }\n\n // Browser auffordern, die Seite neuzuladen\n if (!errors.isEmpty()) {\n FormValues formValues = new FormValues();\n formValues.setValues(request.getParameterMap());\n formValues.setErrors(errors);\n\n HttpSession session = request.getSession();\n session.setAttribute(\"subjects_form\", formValues);\n }\n\n response.sendRedirect(request.getRequestURI());\n }", "public createNew(){\n\t\tsuper(\"Create\"); // title for the frame\n\t\t//layout as null\n\t\tgetContentPane().setLayout(null);\n\t\t//get the background image\n\t\ttry {\n\t\t\tbackground =\n\t\t\t\t\tnew ImageIcon (ImageIO.read(getClass().getResource(\"Wallpaper.jpg\")));\n\t\t}//Catch for file error\n\t\tcatch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tJOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"ERROR: File(s) Not Found\\n Please Check Your File Format\\n\"\n\t\t\t\t\t\t\t+ \"and The File Name!\");\n\t\t}\n\t\t//Initialize all of the compenents \n\t\tlblBackground = new JLabel (background);\n\t\tlblTitle = new JLabel (\"Create Menu\");\n\t\tlblTitle.setFont(new Font(\"ARIAL\",Font.ITALIC, 30));\n\t\tlblName = new JLabel(\"Please Enter Your First Name.\");\n\t\tlblLastName= new JLabel (\"Please Enter Your Last Name.\");\n\t\tlblPhoneNumber = new JLabel (\"Please Enter Your Phone Number.\");\n\t\tlblAddress = new JLabel (\"Please Enter Your Address.\");\n\t\tlblMiddle = new JLabel (\"Please Enter Your Middle Name (Optional).\");\n\t\tbtnCreate = new JButton (\"Create\");\n\t\tbtnBack = new JButton (\"Back\");\n\t\t//set the font\n\t\tlblName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblLastName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblPhoneNumber.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblAddress.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblMiddle.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\n\t\t//add action listener\n\t\tbtnCreate.addActionListener(this);\n\t\tbtnBack.addActionListener(this);\n\t\t//set bounds for all the components\n\t\tbtnCreate.setBounds(393, 594, 220, 36);\n\t\ttxtMiddle.setBounds(333, 249, 342, 36);\n\t\ttxtName.setBounds(333, 158, 342, 36);\n\t\ttxtLastName.setBounds(333, 339, 342, 36);\n\t\ttxtPhoneNumber.setBounds(333, 429, 342, 36);\n\t\ttxtAddress.setBounds(333, 511, 342, 36);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblMiddle.setBounds(333, 201, 342, 36);\n\t\tlblName.setBounds(387, 110, 239, 36);\n\t\tlblLastName.setBounds(387, 297, 239, 36);\n\t\tlblPhoneNumber.setBounds(369, 387, 269, 36);\n\t\tlblAddress.setBounds(393, 477, 215, 30);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblBackground.setBounds(0, 0, 1000, 1000);\n\t\t//add components to frame\n\t\tgetContentPane().add(btnCreate);\n\t\tgetContentPane().add(txtMiddle);\n\t\tgetContentPane().add(txtLastName);\n\t\tgetContentPane().add(txtAddress);\n\t\tgetContentPane().add(txtPhoneNumber);\n\t\tgetContentPane().add(txtName);\n\t\tgetContentPane().add(lblMiddle);\n\t\tgetContentPane().add(lblLastName);\n\t\tgetContentPane().add(lblAddress);\n\t\tgetContentPane().add(lblPhoneNumber);\n\t\tgetContentPane().add(lblName);\n\t\tgetContentPane().add(btnBack);\n\t\tgetContentPane().add(lblTitle);\n\t\tgetContentPane().add(lblBackground);\n\t\t//set size, visible and action for close\n\t\tsetSize(1000,1000);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\n\t}", "public Contact() {\n\t}", "com.spirit.crm.entity.ClienteContactoIf addClienteContacto(com.spirit.crm.entity.ClienteContactoIf model) throws GenericBusinessException;", "public void addContact(ContactBE contact) {\n ContentValues values = getContentValues(contact);\n mDatabase.insert(ContactTable.NAME, null, values);\n }", "void addContact(String name,String number);", "public AddAddress(Contact contact) {\n\n\t\tsession = getSession();\n\n\t\t// Show user's name and role:\n\t\tadd(new Label(\"userInfo\", getUserInfo(getSession())));\n\n\t\tCompoundPropertyModel<Contact> contactModel = new CompoundPropertyModel<Contact>(contact);\n\t\tsetDefaultModel(contactModel);\n\n\t\t// Create and add feedback panel to page\n\t\tadd(new JQueryFeedbackPanel(\"feedback\"));\n\n\t\t// Add a create Contact form to the page\n\t\tadd(new CreateAddressForm(\"createAddressForm\", contactModel));\n\n\t\t// single-select no minimum example\n\t\tadd(new Label(\"city0\", new PropertyModel<>(this, \"city0\")));\n\n\t\tSelect2Choice<City> city0 = new Select2Choice<>(\"city0\", new PropertyModel<City>(this, \"city0\"),\n\t\t\t\tnew CitiesProvider());\n\t\tcity0.getSettings().setPlaceholder(\"Please select city\").setAllowClear(true);\n\t\tadd(new Form<Void>(\"single0\").add(city0));\n\n\t}", "CreateCustomer(JFrame master, Connection conn) {\n\t\tsuper(\"Create New Customer\");\n\t\tthis.conn = conn;\n\t\tgetContentPane().setLayout(new FormLayout(new ColumnSpec[] {\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tColumnSpec.decode(\"default:grow\"),\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tColumnSpec.decode(\"default:grow\"),\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tColumnSpec.decode(\"default:grow\"),\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tColumnSpec.decode(\"default:grow\"),},\n\t\t\tnew RowSpec[] {\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,}));\n\t\t\n\t\tJLabel lblGender = new JLabel(\"Gender\");\n\t\tgetContentPane().add(lblGender, \"2, 2\");\n\t\t\n\t\tJLabel lblTitle = new JLabel(\"Title\");\n\t\tgetContentPane().add(lblTitle, \"4, 2\");\n\t\t\n\t\tgenderBox = new JComboBox(genders);\n\t\tgenderBox.setAutoscrolls(true);\n\t\tgetContentPane().add(genderBox, \"2, 4, fill, default\");\n\t\t\n\t\ttitleBox = new JComboBox(titles);\n\t\tgetContentPane().add(titleBox, \"4, 4\");\n\t\t\n\t\tJLabel lblMi = new JLabel(\"M.I.\");\n\t\tgetContentPane().add(lblMi, \"6, 4, right, default\");\n\t\t\n\t\tfieldMidName = new JTextField();\n\t\tgetContentPane().add(fieldMidName, \"8, 4, left, default\");\n\t\tfieldMidName.setColumns(10);\n\t\t\n\t\tJLabel lblFirstName = new JLabel(\"First Name*\");\n\t\tgetContentPane().add(lblFirstName, \"2, 6, right, default\");\n\t\t\n\t\t\n\t\tfieldFirstName = new JTextField();\n\t\tgetContentPane().add(fieldFirstName, \"4, 6, fill, default\");\n\t\tfieldFirstName.setColumns(10);\n\t\t\n\t\tnew HighlightListener(fieldFirstName);\n\t\t\n\t\tJLabel lblLastName = new JLabel(\"Last Name*\");\n\t\tgetContentPane().add(lblLastName, \"6, 6, right, default\");\n\t\t\n\t\tfieldLastName = new JTextField();\n\t\tgetContentPane().add(fieldLastName, \"8, 6, fill, default\");\n\t\tfieldLastName.setColumns(10);\n\t\tnew HighlightListener(fieldLastName);\n\t\t\n\t\tJLabel lblUserName = new JLabel(\"User Name*\");\n\t\tgetContentPane().add(lblUserName, \"2, 8, right, default\");\n\t\t\n\t\t\n\t\tfieldUsername = new JTextField();\n\t\tgetContentPane().add(fieldUsername, \"4, 8, fill, default\");\n\t\tfieldUsername.setColumns(10);\n\t\tnew HighlightListener(fieldUsername);\n\t\t\n\t\tJLabel lblPassword = new JLabel(\"Password*\");\n\t\tgetContentPane().add(lblPassword, \"6, 8, right, default\");\n\t\t\n\t\tfieldPassword = new JTextField();\n\t\tgetContentPane().add(fieldPassword, \"8, 8, fill, default\");\n\t\tfieldPassword.setColumns(10);\n\t\tnew HighlightListener(fieldPassword);\n\t\t\n\t\tJLabel lblAddress = new JLabel(\"Address\");\n\t\tgetContentPane().add(lblAddress, \"2, 10, right, default\");\n\t\t\n\t\tfieldAddress = new JTextField();\n\t\tgetContentPane().add(fieldAddress, \"4, 10, fill, default\");\n\t\tfieldAddress.setColumns(10);\n\t\t\n\t\tJLabel lblCity = new JLabel(\"City\");\n\t\tgetContentPane().add(lblCity, \"6, 10, right, default\");\n\t\t\n\t\tfieldCity = new JTextField();\n\t\tgetContentPane().add(fieldCity, \"8, 10, fill, default\");\n\t\tfieldCity.setColumns(10);\n\t\t\n\t\tJLabel lblState = new JLabel(\"State\");\n\t\tgetContentPane().add(lblState, \"2, 12, right, default\");\n\t\t\n\t\tfieldState = new JTextField();\n\t\tgetContentPane().add(fieldState, \"4, 12, fill, default\");\n\t\tfieldState.setColumns(10);\n\t\t\n\t\tJLabel lblZipCode = new JLabel(\"Zip Code\");\n\t\tgetContentPane().add(lblZipCode, \"6, 12, right, default\");\n\t\t\n\t\tfieldZipcode = new JTextField();\n\t\tgetContentPane().add(fieldZipcode, \"8, 12, fill, default\");\n\t\tfieldZipcode.setColumns(10);\n\t\t\n\t\tJLabel lblEmail = new JLabel(\"Email\");\n\t\tgetContentPane().add(lblEmail, \"2, 14, right, default\");\n\t\t\n\t\tfieldEmail = new JTextField();\n\t\tgetContentPane().add(fieldEmail, \"4, 14, fill, default\");\n\t\tfieldEmail.setColumns(10);\n\t\t\n\t\tJLabel lblTelephone = new JLabel(\"Telephone\");\n\t\tgetContentPane().add(lblTelephone, \"6, 14, right, default\");\n\t\t\n\t\tfieldTelephone = new JTextField();\n\t\tgetContentPane().add(fieldTelephone, \"8, 14, fill, default\");\n\t\tfieldTelephone.setColumns(10);\n\t\t\n\t\tJLabel lblBirthday = new JLabel(\"Birthday\");\n\t\tgetContentPane().add(lblBirthday, \"2, 16, right, default\");\n\t\t\n\t\tfieldBirthday = new JTextField();\n\t\tgetContentPane().add(fieldBirthday, \"4, 16, fill, default\");\n\t\tfieldBirthday.setColumns(10);\n\t\t\n\t\tJLabel lblMaidenName = new JLabel(\"Maiden Name\");\n\t\tgetContentPane().add(lblMaidenName, \"2, 20, right, default\");\n\t\t\n\t\tfieldMaidenName = new JTextField();\n\t\tgetContentPane().add(fieldMaidenName, \"4, 20, fill, default\");\n\t\tfieldMaidenName.setColumns(10);\n\t\t\n\t\tJLabel lblSocialSecurity = new JLabel(\"Social Security\");\n\t\tgetContentPane().add(lblSocialSecurity, \"6, 20, right, default\");\n\t\t\n\t\tfieldSocialSecurity = new JTextField();\n\t\tgetContentPane().add(fieldSocialSecurity, \"8, 20, fill, default\");\n\t\tfieldSocialSecurity.setColumns(10);\n\t\t\n\t\tJLabel lblCreditCardType = new JLabel(\"Credit Card Type\");\n\t\tgetContentPane().add(lblCreditCardType, \"2, 24, right, default\");\n\t\t\n\t\tcctypeBox = new JComboBox(cctypes);\n\t\tgetContentPane().add(cctypeBox, \"4, 24, fill, default\");\n\t\t\n\t\tJLabel lblCreditCard = new JLabel(\"Credit Card #\");\n\t\tgetContentPane().add(lblCreditCard, \"6, 24, right, default\");\n\t\t\n\t\tfieldCCnumber = new JTextField();\n\t\tgetContentPane().add(fieldCCnumber, \"8, 24, fill, default\");\n\t\tfieldCCnumber.setColumns(10);\n\t\t\n\t\tJLabel lblCcv = new JLabel(\"CCV\");\n\t\tgetContentPane().add(lblCcv, \"2, 26, right, default\");\n\t\t\n\t\tfieldCCV = new JTextField();\n\t\tgetContentPane().add(fieldCCV, \"4, 26, fill, default\");\n\t\tfieldCCV.setColumns(10);\n\t\t\n\t\tJLabel lblExpirDate = new JLabel(\"Expir. Date\");\n\t\tgetContentPane().add(lblExpirDate, \"6, 26, right, default\");\n\t\t\n\t\tfieldExpirDate = new JTextField();\n\t\tgetContentPane().add(fieldExpirDate, \"8, 26, fill, default\");\n\t\tfieldExpirDate.setColumns(10);\n\t\t\n\t\tJButton btnSubmit = new JButton(\"Submit\");\n\t\tgetContentPane().add(btnSubmit, \"4, 32\");\n\t\t\n\t\t\n\t\tbtnSubmit.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent ee) {\n\t\t\t\tif (CreateCustomer.this.fieldFirstName.getText().trim().length() == 0\n\t\t\t\t\t|| CreateCustomer.this.fieldLastName.getText().trim().length() == 0\n\t\t\t\t\t|| CreateCustomer.this.fieldUsername.getText().trim().length() == 0\n\t\t\t\t\t|| CreateCustomer.this.fieldPassword.getText().trim().length() == 0\n\t\t\t\t\t\t) {\n\t\t\t\t\tJOptionPane.showMessageDialog(CreateCustomer.this, \"Please fill highlighted fields.\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tinsertCustomer();\n\t\t\t\t\tJOptionPane.showMessageDialog(CreateCustomer.this, \"Created new user '\" + \n\t\t\t\t\t\t\t\tCreateCustomer.this.fieldUsername.getText() + \"'\");\n\t\t\t\t\tCreateCustomer.this.setVisible(false);\n\t\t\t\t\t\n\t\t\t\t\tCreateCustomer.this.dispose();\n\t\t\t\t\tCreateCustomer.this.parent.setVisible(true);\n\t\t\t\t\t//\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tparent = master;\n\t\tJButton btnCancel = new JButton(\"Cancel\");\n\t\tgetContentPane().add(btnCancel, \"6, 32\");\n\t\tbtnCancel.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent ee) {\n\t\t\t\tCreateCustomer.this.setVisible(false);\n\t\t\t\tCreateCustomer.this.dispose();\n\t\t\t\tCreateCustomer.this.parent.setVisible(true);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\t\n\t\tthis.setSize(new Dimension (500, 500));\n\t\t\n\t\tthis.addWindowListener(this);\n\t\tthis.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\t\t\n\t\tthis.pack();\n\t\tthis.setLocationRelativeTo(null);\n\t\tthis.setVisible(true);\n\t}" ]
[ "0.645839", "0.6285514", "0.6096024", "0.6073635", "0.6023769", "0.59552425", "0.58283144", "0.57625884", "0.568371", "0.5668501", "0.56421804", "0.56119686", "0.56084514", "0.5590929", "0.5581542", "0.55486786", "0.55475724", "0.55403715", "0.5537982", "0.55370486", "0.5523839", "0.5503871", "0.5493184", "0.5481481", "0.54683936", "0.5465391", "0.54632854", "0.5356153", "0.53428626", "0.5305512", "0.5305078", "0.5293041", "0.52806747", "0.5258038", "0.5253052", "0.52343464", "0.5232145", "0.5231014", "0.52259445", "0.5214337", "0.5199481", "0.5196224", "0.51929194", "0.51835096", "0.51827854", "0.51794165", "0.51775557", "0.51771003", "0.51752067", "0.517283", "0.5146433", "0.51449746", "0.51433516", "0.51429003", "0.5141636", "0.51409745", "0.51387894", "0.5130865", "0.51301885", "0.5112319", "0.5112319", "0.5112319", "0.51107615", "0.5105367", "0.5095163", "0.5066889", "0.5061431", "0.50525683", "0.5041874", "0.50301826", "0.5018645", "0.50144774", "0.5014031", "0.501196", "0.5011388", "0.5009523", "0.50080675", "0.50077677", "0.50054306", "0.49980253", "0.49954715", "0.49892768", "0.49844605", "0.49833888", "0.4976994", "0.49768648", "0.49730697", "0.49713013", "0.4970433", "0.49702504", "0.4968962", "0.49618125", "0.49564564", "0.49550804", "0.4954643", "0.49502888", "0.49498534", "0.49486902", "0.49484298", "0.49450254" ]
0.68127173
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); s = new javax.swing.JButton(); s1 = new javax.swing.JButton(); s2 = new javax.swing.JButton(); s3 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); jLabel1.setFont(new java.awt.Font("Algerian", 1, 30)); // NOI18N jLabel1.setForeground(new java.awt.Color(51, 9, 38)); jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel1.setText("HAPPY-TO-GO CABS"); jLabel2.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N jLabel2.setText("HANDMADE BY:"); jLabel7.setIcon(new javax.swing.ImageIcon("E:\\L Logo_full.jpeg")); // NOI18N s.setBackground(new java.awt.Color(204, 204, 204)); s.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N s.setText("Suvansh Bhargava"); s.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { sActionPerformed(evt); } }); s1.setBackground(new java.awt.Color(204, 204, 204)); s1.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N s1.setText("Shrey Bhargava"); s1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { s1ActionPerformed(evt); } }); s2.setBackground(new java.awt.Color(204, 204, 204)); s2.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N s2.setText("Roll no 44"); s2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { s2ActionPerformed(evt); } }); s3.setBackground(new java.awt.Color(204, 204, 204)); s3.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N s3.setText("Roll no 39"); s3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { s3ActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(69, 69, 69) .addComponent(jLabel2)) .addGroup(layout.createSequentialGroup() .addGap(99, 99, 99) .addComponent(jLabel7)) .addGroup(layout.createSequentialGroup() .addGap(144, 144, 144) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(s, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(s1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(129, 129, 129) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(s2) .addComponent(s3)))))) .addContainerGap(84, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(jLabel2) .addGap(17, 17, 17) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(s) .addComponent(s2)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(s1) .addComponent(s3)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 366, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(45, 45, 45)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public PatientUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Magasin() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\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.createParallelGroup(\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\t\tAlignment.LEADING)\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.addComponent(label22,\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\t\tGroupLayout.PREFERRED_SIZE,\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\t\tGroupLayout.DEFAULT_SIZE,\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\t\tGroupLayout.PREFERRED_SIZE)\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.addGroup(\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\t\tlayout.createSequentialGroup()\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\t\t\t\t.addGap(3)\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\t\t\t\t.addComponent(\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\t\t\t\t\t\tlabel23,\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\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\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\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\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\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public CovidGUI(){\n initComponents();\n }" ]
[ "0.73206544", "0.7291311", "0.7291311", "0.7291311", "0.7286492", "0.7249181", "0.7213362", "0.72085494", "0.71965617", "0.7190475", "0.7184897", "0.7159234", "0.71483016", "0.7094075", "0.7081491", "0.70579433", "0.6987627", "0.69776064", "0.69552463", "0.69549114", "0.69453007", "0.69439274", "0.69369227", "0.6932056", "0.6927733", "0.6925948", "0.69254535", "0.69121534", "0.6911907", "0.6894101", "0.6892413", "0.68919593", "0.6891924", "0.6889863", "0.6884052", "0.6883223", "0.688166", "0.68787736", "0.68764126", "0.68745583", "0.68721986", "0.68595314", "0.685675", "0.68565613", "0.6855288", "0.6854687", "0.6854457", "0.685303", "0.685303", "0.68448347", "0.6837389", "0.6837193", "0.6829965", "0.6829964", "0.68275386", "0.68249714", "0.6823691", "0.6818224", "0.68173605", "0.6811417", "0.6809674", "0.680964", "0.6809329", "0.68085754", "0.6802194", "0.67955625", "0.67938477", "0.6793322", "0.679176", "0.67900634", "0.6789749", "0.67888486", "0.6781942", "0.6767308", "0.6766431", "0.6765252", "0.67573947", "0.6756327", "0.6753509", "0.67520833", "0.6741834", "0.6740361", "0.6737793", "0.67370224", "0.6734898", "0.6727867", "0.6727453", "0.67214817", "0.6716735", "0.67162156", "0.6715855", "0.6709997", "0.6707508", "0.67042965", "0.6702483", "0.67014945", "0.67007315", "0.6699097", "0.669545", "0.6692102", "0.6690473" ]
0.0
-1
Given two integers a and b, which can be positive or negative,find the sum of all the numbers between including them too and return it. If the two numbers are equal return //a or b. sumInBetween(1, 0) == 1 // 1 + 0 = 1 sumInBetween(1, 2) == 3 // 1 + 2 = 3 sumInBetween(0, 1) == 1 // 0 + 1 = 1 sumInBetween(1, 1) == 1 // 1 Since both are same sumInBetween(1, 0) == 1 // 1 + 0 = 1 sumInBetween(1, 2) == 2 // 1 + 0 + 1 + 2 = 2
public static void main(String[] args) { System.out.println(sumInBetween(-4, 4)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int sumBetween(int a, int b) {\n // find the larger and the smaller of a and b\n// int max = (a > b) ? a : b;\n// int min = (a < b) ? a : b;\n int max;\n int min;\n if (a < b) {\n max = b;\n min = a;\n } else {\n min = b;\n max = a;\n }\n\n // loop from the smaller to the larger, and sum all the numbers in between\n int sum = 0;\n for(int i = min; i <= max; i++) {\n sum += i;\n }\n\n return sum;\n }", "public int GetSum(int a, int b) {\n\t\tint result = 0;\r\n\t\tint number = 0;\r\n\t\t\r\n\t\t//If a is greater than b, I will loop through all the integers between them, starting by b and summing 1 in every step of the loop \r\n\t\tif (a > b) {\r\n\r\n\t\t\tfor (int x = b; x <= a; x++) {\r\n\t\t\t\t//The number variable will be the x step of the loop, starting from b\r\n\t\t\t\tnumber = x;\r\n\t\t\t\tresult += number;\r\n\t\t\t\tnumber++;\r\n\t\t\t}\r\n\t\t//It will be similar if a is greater than b, but starting counting from a\r\n\t\t} else if (a < b) {\r\n\t\t\tfor (int x = a; x <= b; x++) {\r\n\t\t\t\tnumber = x;\r\n\t\t\t\tresult += number;\r\n\t\t\t\tnumber++;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t//If the two values are similar, the method just return one of them, ie a:\r\n\t\telse {\r\n\t\t\tresult = a;\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t//Finally the method return the result.\r\n\t\treturn result;\r\n\r\n\t}", "public static int sumRange(int a, int b) {\r\n int sum = 0;\r\n int big = 0;\r\n int small = 0;\r\n \r\n if (a > b) {\r\n big = a;\r\n small = b;\r\n } else {\r\n big = b;\r\n small = a;\r\n }\r\n for(int i = small; i <= big; i++) {\r\n //System.out.println( i );\r\n sum += i;\r\n }\r\n return sum;\r\n }", "public static int sum(int a, int b) {\n\t\tif (b <= 0) {\n\t\t\treturn a;\n\t\t} else {\n\t\t\treturn sum(a + 1, b - 1);\n\t\t}\n\t}", "protected int sumIterative(int a, int b){\n int result = a;\n while (b != 0){\n if (b > 0){\n result++;\n b--;\n } else {\n result--;\n b++;\n }\n }\n return result;\n }", "protected int sumRecursive(int a, int b){\n if (b == 0){\n return a;\n } else {\n if (b > 0){\n return sumRecursive(a + 1, b - 1);\n } else {\n return sumRecursive(a - 1, b + 1);\n }\n }\n }", "public void sum(int a, int b)\n {\n int index = a + 1;\n int sum = 0;\n \n while (index < b) {\n sum += index;\n index++;\n }\n System.out.println(sum);\n }", "public static int Sum(int a, int b)\r\n\t{\n\tint sum=a+b;\r\n\treturn sum;\r\n\t}", "public int getSum(int a, int b) {\n if(a == 0) {\n return b;\n }\n\n if(b == 0) {\n return a;\n }\n\n int carry = 0;\n\n while(b != 0) {\n\n // If both bits are 1, we set the bit to the left (<<1) to 1 -- this is the carry step\n carry = (a & b) << 1;\n\n // If both bits are 1, this will give us 0 (we will have a carry from the step above)\n // If only 1 bit is 1, this will give us 1 (there is nothing to carry)\n a = a ^ b;\n\n b = carry;\n }\n\n return a;\n }", "public static int sum(int a, int b) {\n return a + b;\n }", "public static int twoNumbers(int a, int b) {\n if ( a == b) {\n return ((a+2)+(b+2));\n }\n else {\n return ((a+1)+(b+1));\n }\n\n }", "public static int sum (int a, int b) {\n\t\t\n\t\treturn a + b;\n\t}", "public int getSum(int a, int b) {\n return b == 0 ? a : getSum(a ^ b, (a & b) << 1);\n }", "public int sum(int a, int b) {\n\t\treturn a + b;\n\t}", "public int sortaSum(int a, int b) {\n if (a + b >= 10 && a + b <= 19) {\n return 20;\n }\n\n return a + b;\n }", "public int getSumLoop(int a, int b) {\n while (b != 0) {\n int temp = a ^ b;\n b = (a & b) << 1;\n a = temp;\n }\n return a;\n }", "public static int sum(int a,int b) {\n\t\tint c = a + b;\n\t\treturn c;\n\t}", "private long calcSum(int a, int b) {\n return (new Long(a) + new Long(b));\n }", "public static void main(String[] args) {\n System.out.println(sumBetween(1, 0)); // testing sumBetween\n System.out.println(sumBetween(0, 0));\n System.out.println(sumBetween(26, 31));\n System.out.println(sumBetween(-16, 1));\n }", "public int getSum(int a, int b) {\n\n while(b!=0){ //check till carry is not equal to zero\n int carry = a&b;\n a=a^b;\n b=carry<<1;\n }\n return a;\n }", "public static int getSum(int b, int n1, int n2) {\n int carry = 0;\r\n int pos = 1;\r\n int num = 0;\r\n while (n1 != 0 || n2 != 0 || carry != 0) {\r\n int a = n1 % 10;\r\n int d = n2 % 10;\r\n int c = a + d + carry;\r\n \r\n // if (c >= b)\r\n // c = c % b;\r\n carry = c/ b;\r\n c=c%b;\r\n num = num + pos * (c);\r\n \r\n pos *= 10;\r\n n1 /= 10;\r\n n2 /= 10;\r\n }\r\n\r\n return num;\r\n }", "static int getTotalX(int[] aryA, int[] aryB){\n int maxA = getMax(aryA);\n int minA = getMin(aryA);\n int maxB = getMax(aryB);\n int minB = getMin(aryB);\n // identify the range of values we need to check\n int min = Math.max(minA, maxA);\n int max = Math.min(minB, maxB);\n int nBetweenAB = 0; // the number of integers \"between\" set A and B\n\n boolean allA_divides_x;\n boolean xDividesAllB;\n // test each candidate and determin if it is \"between\" set A and B\n for(int x=min; x<=max; x++) {\n // check to see if all A | x\n allA_divides_x = true; // default to true, will trigger false if it occurs and break\n for(int idx=0; idx<aryA.length; idx++) {\n if(x % aryA[idx] != 0){\n allA_divides_x = false;\n break;\n }\n } // for\n\n // check to see if x | all B\n xDividesAllB = true;\n for(int idx=0; idx<aryB.length; idx++) {\n if(aryB[idx] % x != 0) {\n xDividesAllB = false;\n continue;\n }\n }\n // count if all conditions are met\n if( allA_divides_x && xDividesAllB )\n nBetweenAB++;\n } // for x\n return nBetweenAB;\n}", "int sum(int a, int b) {\n return a + b;\n }", "static int[] Summe(int[] a, int[] b){\n int index = 0, i = a.length - 1;\n int[] c = new int [a.length + 1];\n Arrays.fill(c, 0);\n while (i >= 0){\n c[i+1] = (a[i] + b[i] + index) % 10;\n if ((a[i] + b[i] + index) > 9) index = 1;\n else index = 0;\n i -= 1;\n }\n if (index == 1) c[0] = 1;\n return c;\n }", "public int sumTwo(int a, int b) {\n\t\twhile (b != 0) {\n\t\t\tint sum = a ^ b;\n\t\t\tint carry = (a & b) << 1;\n\t\t\ta = sum; \n\t\t\tb = carry; \n\t\t}\n\t\treturn a;\n\t}", "private long function(long a, long b) {\n if (a == UNIQUE) return b;\n else if (b == UNIQUE) return a;\n\n // return a + b; // sum over a range\n // return (a > b) ? a : b; // maximum value over a range\n return (a < b) ? a : b; // minimum value over a range\n // return a * b; // product over a range (watch out for overflow!)\n }", "static int sum(int a, int b) {\n return a+b;\r\n }", "private static BigInteger findSum(BigInteger start, BigInteger end) {\n return start.add(end).multiply(end.subtract(start).add(new BigInteger(\"1\"))).divide(new BigInteger(\"2\"));\n }", "public static int getSum(int a, int b) {\n// Integer.toBinaryString(a) ^ Integer.toBinaryString(b);\n return a ^ b;\n }", "public int addTwoNumbers(int a, int b) {\n return a + b;\n }", "public static int getTotalX(List<Integer> a, List<Integer> b) {\n\t List<Integer> num=new ArrayList<>();\n\t for(int ind=a.get(a.size()-1);ind<=b.get(0);ind++){\n\t int count=0;\n\t for(int ind1=0;ind1<a.size();ind1++){\n\t if(ind%a.get(ind1)==0){\n\t count++;\n\t }else{\n\t break;\n\t }\n\t }if(count==a.size()){\n\t num.add(ind);\n\t }\n\t }\n\t for(int ind=0;ind<num.size();ind++){\n\t for(int ind1=0;ind1<b.size();ind1++){\n\t if(b.get(ind1)%num.get(ind)!=0){\n\t num.remove(ind);\n\t break;\n\t }\n\t }\n\t }\n\t System.out.println(num);\n\t return num.size();\n\n\t }", "public int sumDouble(int a, int b) {\n int sum = a + b;\n if (a == b){\n sum *= 2;\n }\n\n return sum; \n}", "public static int addNums(int a, int b) {\n int result = a + b;\n return(result);\n }", "default int sumOfAll(int a, int b) {\n\t\t\treturn 0;\n\t\t}", "public static int suma(int num1, int num2){\r\n\t\treturn num1+num2;\r\n\t}", "public static double sum(double a, double b) {\n return a + b;\n }", "public int add(int a, int b) //add method take two int values and returns the sum\n {\n int sum = a + b;\n return sum;\n }", "public static int sum(String a,String b){\n\t\tint number0 = Integer.parseInt(a, 2);\n\t\tint number1 = Integer.parseInt(b, 2);\n\n\t\treturn number0 + number1;\n\t}", "public int sumDouble(int a, int b) {\n\t\t\n\t\tint i = 0;\n\t\t\n\t\tif (a != b)\n\t\t\ti = a + b;\n\t\telse\n\t\t\ti = (a + b) * 2;\n\t\t\n\t\treturn i;\n\n\t}", "public static int sum(int begin, int end) {\n\t\tif (begin == end)\n\t\t\treturn begin;\n\t\tint mid = (begin + end) / 2;\n\t\treturn sum(begin, mid) + sum(mid + 1, end);\n\n\t}", "public static int sum(int first, int second) {\n\t\treturn first + second;\n\n\t}", "private static int findSum(int[] nums, int start, int end) {\n int sum = 0;\n for ( int i = start ; i < end ; i++ ) {\n sum = sum + nums[i];\n }\n return sum;\n }", "public static int sumRange(int[] a, int min, int max) {\r\n\t\t\tint result = 0;\r\n\t\t\tfor (int i = min; i < max; i++) {\r\n\t\t\t\tresult += a[i];\r\n\t\t\t}\r\n\t\t\treturn result;\r\n\t\t}", "static int add(int a, int b){\n int carry = 0;\n int result = 0;\n int i;\n for(i=0; a>0||b>0; i++){\n int ba = a&1;\n int bb = b&1;\n result = result|((carry^ba^bb)<<i);\n carry = (ba&bb) | (bb&carry) | (carry&ba);\n a = a>>1;\n b = b>>1;\n }\n return result|(carry<<i);\n }", "static int sum(int value1, int value2) {\n return value1 + value2;\n }", "public static int countRangeSum(int[] nums, int lower, int upper){\n\t\tint acc = 0;\n\t\tint count = 0;\n\t\tfor(int i = 0; i<nums.length; i++){\n\t\t\tacc += nums[i];\n\t\t\tnums[i] = acc;\n\t\t\tif(nums[i] >= lower && nums[i] <= upper)\n\t\t\t\tcount++;\n\t\t}\n\t\tcount = count + msort(nums, 0, nums.length-1, lower, upper);\n\t\treturn count;\n\t}", "private boolean checkTwoSum(List<Integer> a, int twoSum, int start) {\n\t\t\n\t\tfor (int i = start, j = a.size() - 1; i <=j;) {\n\t\t\tif (a.get(i) + a.get(i) == twoSum || \n\t\t\t\ta.get(j) + a.get(j) == twoSum ||\n\t\t\t\ta.get(i) + a.get(j) == twoSum) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\n\t\t\t\tif (a.get(i) + a.get(j) > twoSum) {\n\t\t\t\t\tj--;\n\t\t\t\t} else if (a.get(i) + a.get(j) < twoSum) {\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public double suma(double a, double b) {\n\t\treturn a+b;\n\t}", "public Integer sumLogic(int startingNumber, int endingNumber){\n\t\tSystem.out.println(\"Print Sum from this number\");\n\t\tint sum = 0;\n\t\tfor(int x = startingNumber; x <= endingNumber; x++){\n\t\t\tsum = sum + x;\n\t\t\tSystem.out.println(\"New number is: \" + x + \" sum: \" + sum);\n\t\t}\n\t\treturn 0;\n\t}", "static int sumOfNumbers(int x, int y) {\n return x + y;\n }", "public void getSum(int a, int b) {\n\t\tSystem.out.println( a + b);\n\t}", "public static void main(String[] args) {\n\t\tint start,end;\r\n\t\tint sum=0;\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"enter the start number\");\r\n\t\tstart = scan.nextInt();\r\n\t\t\r\n\t\tSystem.out.println(\"enter the end number\");\r\n\t\tend = scan.nextInt();\r\nfor(int i=start;i<=end;i++)\r\n\t{\r\n\t\tfor(int j=1;j<i;j++)\r\n\t\t{\r\n\t\tsum = sum+j;\r\n\t\t}\r\n\t\t\r\n\t}\r\n\tif (sum==start)\r\n\t\r\n\t\tSystem.out.println(sum);\r\n\t\r\n\t\r\n}", "static int check(int x, int a, int b) \n\t{ \n\t\t// sum of digits is 0 \n\t\tif (x == 0) \n\t\t{ \n\t\t\treturn 0; \n\t\t} \n\n\t\twhile (x > 0) \n\t\t{ \n\n\t\t\t// if any of digits in sum is \n\t\t\t// other than a and b \n\t\t\tif (x % 10 != a & x % 10 != b) \n\t\t\t{ \n\t\t\t\treturn 0; \n\t\t\t} \n\n\t\t\tx /= 10; \n\t\t} \n\n\t\treturn 1; \n\t}", "int countWinning(int A, int B1, int B2){\n\t\tint count = 0;\n\t\tif(B1 >= 2*A || B2 <= A/2){\n\t\t\tcount = B2 - B1 + 1;\n\t\t}else if(B1 >= A/2 && B2 <= 2*A){\n\t\t\tfor(int B=B1;B<=B2;B++){\n\t\t\t\tif(isWinning(A,B))\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}else if(B1 >= A/2 && B2 >= A*2){\n\t\t\tcount = B2 - A*2 + 1;//include A*2\n\t\t\tfor(int B=B1;B<A*2;B++){\n\t\t\t\tif(isWinning(A,B))\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}else if(B1 <= A/2 && B2 <=2*A){\n\t\t\tcount = A/2 - B1 + 1;//include A/2\n\t\t\tfor(int B=A/2+1;B<=B2;B++){\n\t\t\t\tif(isWinning(A,B))\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}else if(A/2>=B1 && B2>=2*A){\n\t\t\tcount = A/2 - B1 + 1 + B2 - 2*A + 1;//include A/2 and 2*A\n\t\t\tfor(int B=A/2+1;B<2*A;B++){\n\t\t\t\tif(isWinning(A,B))\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "public static int sum(int n1, int n2){\n return n1 + n2;\n }", "public static void sum(int a,int b) {\n\t\tSystem.out.println(a+b);\n\t}", "public int getSum(List<Integer> a){\n\n int sum = 0;\n\n for(int i = 0; i<a.size(); i++){\n if(a.get(i)<0){\n continue;\n } else{\n sum +=a.get(i);\n }\n }\n return sum;\n }", "public int add(int a, int b) {\n int sum = a+b;\n return sum;\n }", "public int robTotal(int[] nums, int sums[],int start, int end) {\n\t\tfor (int i = start; i< end+1; i++) {\n\t\t\trobRecAtIndex(i, nums, sums);\n\t\t}\n\t\treturn sums[end];\n\t}", "public static int boryaDiagnosis(int a, int b){\n\t\t Scanner in = new Scanner(System.in);\n\n a = 0;\n b = in.nextInt();\n\n for (int x = 0; x < b; ++x){\n \tint j = in.nextInt();\n \tint k = in.nextInt();\n\n while (j <= a){\n \tj += k;\n }\n a = j;\n }\n \treturn (a);\n }", "public int suma(int numero1, int numero2){\n //Estas variables solo tienen el alcance de este metodo\n return numero1 + numero2;\n }", "@Override\r\n\tpublic int calculate(int a, int b) {\n\t\treturn (a + b) * 2;\r\n\t}", "public static void sumAndPrint(int a, int b) {\n System.out.println( a + \" + \" + b + \" = \" + (a + b) );\n }", "public int soustraire(int a, int b){\r\n\t\treturn a-b;\r\n\t}", "public static int DIV_ROUND_UP(int a, int b) {\n\treturn (a + b - 1) / b;\n }", "public int solution(int[] A, int[] B) {\n if(A == null || B == null || A.length != B.length) {\n return 0;\n }\n \n Stack<Integer> stack = new Stack<Integer>();\n int result = 0;\n \n for(int i=0; i < A.length; i++) {\n // up\n \t\n \tif(B[i] == 1) {\n \t\tstack.push(i);\n \t}\n \telse if(stack.isEmpty()) {\n \t\tresult++;\n \t}\n \telse {\n while (!stack.isEmpty() && A[stack.peek()] < A[i]) {\n stack.pop();\n }\n if(stack.isEmpty()) {\n \tresult++;\n }\n }\n }\n \n return result + stack.size();\n\t}", "static boolean sumOfTwo(int[] a, int[] b, int v) {\r\n for (int i = 0; i < a.length; i++) {\r\n for (int j = 0; j < b.length; j++) {\r\n if (a[i] + b[j] == v) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "public static int foo(int a, int b) {\n int i;\n\n //for(i = 0; i < c.length; i++ ) {\n // c[i] = 0;\n //}\n\n if(a < 0) { \n return a+b;\n } else {\n return 0;\n }\n }", "public int addition(int a, int b){\r\n\t\treturn a+b;\r\n\t}", "public Integer call(Integer a, Integer b) throws Exception {\n\t\t\t\treturn a+b;\n\t\t\t}", "default A isBetween(Number firstInclusive, Number lastInclusive) {\n return satisfiesNumberCondition(new NumberCondition<>(firstInclusive, GREATER_THAN_OR_EQUAL)\n .and(new NumberCondition<>(lastInclusive, LESS_THAN_OR_EQUAL)));\n }", "public double getSuma(double a, double b) {\n return a * b;\r\n }", "public static boolean sumsTo(int[] A, int[] B, int m) {\n\t\t// REPLACE WITH YOUR ANSWER\n\t\tA = Arrays.copyOf(A, A.length);\n Arrays.sort(A);\n for (int b : B) {\n int k = Arrays.binarySearch(A, m - b);\n if (k >= 0 && k < A.length && A[k] + b == m) {\n return true;\n }\n }\n return false;\n }", "static int soma2(int a, int b) {\n\t\tint s = a + b;\r\n\t\treturn s;\r\n\t}", "public int addition(int a, int b){\r\n int result = a+b;\r\n return result;\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tint a=15;\n\t\tint b=23;\n\t\t\n\t\tint sum=0;\n\t\tfor(int i=1;i<=b;i++)\n\t\t{\n\t\t\tsum=sum+a;\n\t\t}\n\t\tSystem.out.println(sum);\n\n\t}", "public static int TwoSum_scan(int[] a, int lo, int hi, int x)\r\n\t{\r\n\t\tint count = 0;\r\n\t\tArrays.sort(a);\r\n\t\tfor (int i = lo, j = hi-1; i < j ; )\r\n\t\t{\r\n\t\t\tif (a[i] + a[j] == x)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Pair: (\" + a[i] + \",\" + a[j] + \")\");\r\n\t\t\t\t++i;\r\n\t\t\t\t--j;\r\n\t\t\t\t++count;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (a[i] + a[j] > x)\r\n\t\t\t{\r\n\t\t\t\t--j;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (a[i] + a[j] < x)\r\n\t\t\t{\r\n\t\t\t\t++i;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public static int Add(int a, int b){\n\t\t\treturn (a+b);\n\t\t\t\n\t\t}", "public static int rollDice (int a, int b)\r\n\t\t\t{\n\t\t\t\tint count=0;\r\n\t\t\t\tint total=0;\r\n\t\t\t\twhile(count<a)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint roll=(int)((Math.random()*b)+1);\t\r\n\t\t\t\t\t\ttotal=total+roll;\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t}\r\n\t\t\t\treturn total;\r\n\t\t\t\t\r\n\t\t\t}", "private int helper(int[] nums, int left, int right) {\n if (left == right) return nums[left];\n\n int mid = (left + right) / 2;\n\n int leftSum = helper(nums, left, mid);\n int rightSum = helper(nums, mid + 1, right);\n int crossSum = crossSum(nums, left, right, mid);\n\n return Math.max(Math.max(leftSum, rightSum), crossSum);\n }", "public ListNode mergeInBetween(ListNode list1, int a, int b, ListNode list2) {\n final ListNode vituralHead = new ListNode(0);\n vituralHead.next = list1;\n\n ListNode cursor = vituralHead;\n int index = 0;\n\n ListNode aNode = null;\n ListNode bNode = null;\n while (cursor != null) {\n\n if (index == a) {\n aNode = cursor;\n }\n\n if (index == b + 1) {\n bNode = cursor;\n break;\n }\n\n index++;\n cursor = cursor.next;\n }\n\n ListNode tailOfList2 = list2;\n while (tailOfList2.next != null) {\n tailOfList2 = tailOfList2.next;\n }\n\n aNode.next = list2;\n tailOfList2.next = bNode.next;\n return vituralHead.next;\n }", "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 int addBinary(int a, int b) {\n if (b == 0) {\r\n return a;\r\n }\r\n \r\n // XOR is like doing a sum without carrying the remainders\r\n int sum = a ^ b;\r\n \r\n // AND shifted left is like getting just the remainders\r\n int carry = (a & b) << 1;\r\n \r\n return addBinary(sum, carry);\r\n }", "public static int suma (int x, int y){\n int s=x+y;\n return s;\n }", "private int calculamenos(String a, String b) {\n int res=0;\n res= Integer.valueOf(a) - Integer.valueOf(b);\n return res;\n \n }", "static double sol4(int[] a,int[] b){\r\n \tint mid1=0,mid2= 0;\r\n \tif((a.length+b.length)%2==0) {\r\n \t\tmid1 = (a.length+b.length)/2 -1;\r\n \t\tmid2 = mid1 + 1;\r\n \t\t}else {\r\n \t\t\tmid1 = mid2 = (a.length+b.length)/2;\r\n \t\t}\r\n \t\tint[] ab = new int[a.length+b.length];\r\n \t\tint i=0,j=0,count=0;\r\n\t\twhile (i<a.length && j<b.length){\r\n\t\t\tif (a[i]<b[j]){ \r\n\t\t\t\tab[count++]=a[i++];\r\n\t\t\t}else{\r\n\t\t\t\tab[count++]=b[j++];\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (i==a.length){\r\n\t\t\twhile (j<b.length){\r\n\t\t\t\tab[count++]=b[j++];\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\twhile (i<a.length){\r\n\t\t\t\tab[count++]=a[i++];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//for (int n =0; n< ab.length;n++){\r\n\t\t//\tSystem.out.println(ab[n]);\r\n\t\t//}\r\n\t\tdouble ans = -1;\r\n\t\tif (mid1 == mid2){\r\n\t\t\tans = (double) ab[mid1];\r\n\t\t\treturn ans;\r\n\t\t}\r\n\t\tans = (double) (ab[mid1]+ab[mid2])/2;\r\n\t\treturn ans;\r\n\r\n }", "public static int min(int a, int b) {\n return b + ((a - b) & (a - b) >> 31);\n }", "int sum(int a,int b) {\n\ta=32;\n\tb=42;\n\tint c= a+b;\n\treturn c;\n\t}", "private int numOfPairs(int[] nums, int start, int end, int target){\n int res = 0;\n while(start < end){\n int sum = nums[start] + nums[end];\n if(sum < target){\n res += end - start;\n start++;\n }\n else{\n end--;\n }\n }\n return res;\n }", "private int rob(int[] num, int lo, int hi) {\r\n int include = 0, exclude = 0;\r\n for (int j = lo; j <= hi; j++) {\r\n int i = include, e = exclude;\r\n include = e + num[j];\r\n exclude = Math.max(e, i);\r\n }\r\n return Math.max(include, exclude);\r\n}", "public static int sumOfTwoLargestElements(int[] a) {\n int firstNum = Integer.MIN_VALUE;\n int secondNum = Integer.MIN_VALUE;\n\n\n for (int i = 0; i < a.length; i++) {\n if(firstNum==a[i])continue;\n if (firstNum < a[i]) {\n secondNum = firstNum;\n firstNum = a[i];\n } else if (secondNum < a[i]) {\n secondNum = a[i];\n }\n }\n return firstNum + secondNum;\n }", "static void countApplesAndOranges(int s, int t, int a, int b, int[] apples, int[] oranges) {\n /*\n * Write your code here.\n */\n int countApples = 0, countOranges = 0;\n for(int apple : apples){\n if(apple >= 0){\n if(((a+apple) >= s) && ((a+apple) <= t)){\n countApples+=1;\n }\n }\n }\n System.out.println(countApples);\n \n for(int orange : oranges){\n if(orange <= 0){\n if(((b+orange) >= s) && ((b+orange) <= t)){\n countOranges+=1;\n }\n }\n }\n System.out.println(countOranges);\n\n }", "public static int addInt(int a, int b){\r\n\t\treturn a+b;\r\n\t}", "void SumOfTwoNumbers()\n\t{\n\tSystem.out.println(\"sum is\"+(a+b));\n\t}", "public int sumRange(int l, int r) {\n l += n;\n // get leaf with value 'r'\n r += n;\n int sum = 0;\n while (l <= r) {\n if ((l % 2) == 1) {\n sum += tree[l];\n l++;\n }\n if ((r % 2) == 0) {\n sum += tree[r];\n r--;\n }\n l /= 2;\n r /= 2;\n }\n return sum;\n }", "@Test\n\tpublic void testAddition() {\n\t\tint tmpRndVal = 0;\n\t\tint tmpRndVal2 = 0;\n\t\tint tmpResult = 0;\n\t\t\n\t\t//testing with negative numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = RandomNegativeNumbers();\n\t\t\ttmpRndVal2 = RandomNegativeNumbers();\n\t\t\ttmpResult = tmpRndVal + tmpRndVal2;\n\t\t\tassertEquals(bc.addition(tmpRndVal, tmpRndVal2), tmpResult);\n\t\t}\n\t\t\n\t\t//testing with positive numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = RandomPositiveNumbers();\n\t\t\ttmpRndVal2 = RandomPositiveNumbers();\n\t\t\ttmpResult = tmpRndVal + tmpRndVal2;\n\t\t\tassertEquals(bc.addition(tmpRndVal, tmpRndVal2), tmpResult);\n\t\t}\n\t\t\n\t\t//testing with zero\n\t\tint zero = 0;\n\t\tint tmpVal = 7;\t\t\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tassertTrue( ((bc.addition(tmpVal, zero) == zero) \n\t\t\t\t\t|| (bc.addition(zero, zero) == zero)\n\t\t\t\t\t|| (bc.addition(zero, tmpVal) == zero) ));\n\t\t}\n\t\t\n\t}", "public int addition(int a, int b){\n return a + b;\n }", "public T sum(T first, T second);", "private int go(int a[]) {\n int n = a.length;\n int maxsofar = Integer.MIN_VALUE;\n int minsofar = Integer.MAX_VALUE;\n int curmin = 0, curmax = 0, total = 0;\n int ans = 0;\n\n for (int i = 0; i < n; i++) {\n curmax = Math.max(curmax + a[i], a[i]);\n curmin = Math.min(curmin + a[i], a[i]);\n maxsofar = Math.max(maxsofar, curmax);\n minsofar = Math.min(minsofar, curmin);\n total += a[i];\n }\n\n if (maxsofar > 0) {\n ans = Math.max(maxsofar, total - minsofar);\n } else {\n ans = maxsofar;\n }\n return ans;\n }", "public static int TwoSum_bruteForce(int[] a,int lo, int hi, int x)\r\n\t{\r\n\t\tint count = 0;\r\n\t\tfor (int i = lo; i < hi; ++i)\r\n\t\t{\r\n\t\t\tfor (int j = i+1; j < a.length; ++j)\r\n\t\t\t{\r\n\t\t\t\tif (a[i]+a[j] == x)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Pair: (\" + a[i] + \",\" + a[j] + \")\");\r\n\t\t\t\t\t++count;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}" ]
[ "0.8495143", "0.7939661", "0.75125587", "0.7495433", "0.7210866", "0.6883402", "0.6631101", "0.6622922", "0.66164505", "0.6604103", "0.6591505", "0.65839064", "0.6567943", "0.65572625", "0.6506436", "0.64337057", "0.63715595", "0.637131", "0.6352123", "0.635092", "0.632247", "0.6261861", "0.6178388", "0.6165871", "0.6149756", "0.61193633", "0.6118819", "0.6114331", "0.59964454", "0.5985943", "0.5953259", "0.5936094", "0.59350485", "0.59123", "0.58866554", "0.58847046", "0.5854744", "0.5814526", "0.58051467", "0.57706404", "0.5750221", "0.5736803", "0.57065237", "0.5704668", "0.56814724", "0.56805795", "0.566805", "0.565936", "0.5639633", "0.56318575", "0.5629681", "0.5606795", "0.55879676", "0.55661786", "0.5563884", "0.554047", "0.55122626", "0.5509547", "0.5505287", "0.54950076", "0.54859364", "0.54790103", "0.5474797", "0.54367596", "0.54319805", "0.5415481", "0.5403761", "0.53807676", "0.537124", "0.5370163", "0.5356262", "0.5349809", "0.53336823", "0.5317557", "0.52918655", "0.5282218", "0.5280031", "0.5278127", "0.5275715", "0.5270902", "0.5259538", "0.52589065", "0.5257169", "0.5255347", "0.5255331", "0.52436656", "0.5239457", "0.52242947", "0.52039444", "0.5201469", "0.5200523", "0.51938945", "0.518371", "0.5176137", "0.51744723", "0.5171831", "0.51589894", "0.5143873", "0.5143001", "0.5141604" ]
0.5205021
88
Create role permissions table.
private void createRolePermissionsTableIfNotExist() { Connection conn = null; PreparedStatement ps = null; String query = null; try { conn = getConnection(); conn.setAutoCommit(false); query = queryManager.getQuery(conn, QueryManager.CREATE_ROLE_PERMISSIONS_TABLE_QUERY); ps = conn.prepareStatement(query); ps.executeUpdate(); conn.commit(); } catch (SQLException e) { log.debug("Failed to execute SQL query {}", query); throw new PermissionException("Unable to create the '" + QueryManager.ROLE_PERMISSIONS_TABLE + "' table.", e); } finally { closeConnection(conn, ps, null); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createTableRoles() {\n try (Statement statement = connection.createStatement()) {\n statement.executeUpdate(\"CREATE TABLE roles ( \" +\n \"id INT NOT NULL PRIMARY KEY,\"\n + \"roleName VARCHAR(256) NOT NULL)\");\n statement.executeUpdate(\"DROP TABLE IF EXISTS role \");\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n }\n }", "private void fillRoleTable() {\n try (Connection connection = this.getConnection();\n Statement statement = connection.createStatement();\n PreparedStatement ps = connection.prepareStatement(INIT.FILL_ROLES.toString())) {\n ResultSet rs = statement.executeQuery(INIT.GET_ALL_ROLES.toString());\n if(!rs.next()) {\n connection.setAutoCommit(false);\n ps.setString(1, \"user\");\n ps.setString(2, \"No permissions\");\n ps.addBatch();\n ps.setString(1, \"moderator\");\n ps.setString(2, \"Some permissions\");\n ps.addBatch();\n ps.setString(1, \"admin\");\n ps.setString(2, \"All permissions\");\n ps.addBatch();\n ps.executeBatch();\n connection.commit();\n connection.setAutoCommit(true);\n }\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }", "private static boolean initializeRolesTable() {\n try {\n UserHelper.insertRole(\"STUDENT\");\n UserHelper.insertRole(\"PROFESSOR\");\n return true;\n } catch (RoleAlreadyExistsException e) {\n return false;\n }\n }", "public void createTableUsers() {\n try (Statement statement = connection.createStatement()) {\n statement.executeUpdate(\"CREATE TABLE users ( \" +\n \"id INT NOT NULL PRIMARY KEY,\"\n + \"role_id INT NOT NULL,\"\n + \"FOREIGN KEY (role_id) REFERENCES roles (id),\"\n + \"username VARCHAR(256) NOT NULL UNIQUE,\"\n + \"firstname VARCHAR(256) NOT NULL,\"\n + \"lastname VARCHAR(256) NOT NULL,\"\n + \"email VARCHAR(256) NOT NULL,\"\n + \"dob VARCHAR(256) NOT NULL,\"\n + \"password VARCHAR(256) NOT NULL)\");\n\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n }\n }", "public RolePermissionRecord() {\n super(RolePermission.ROLE_PERMISSION);\n }", "public Role() {\r\n\t\tpermissions = new ArrayList<Permission>();\r\n\t}", "@Test\n public void testGetPermissionsRole() throws Exception\n {\n permission = permissionManager.getPermissionInstance(\"GREET_PEOPLE\");\n permissionManager.addPermission(permission);\n Permission permission2 = permissionManager.getPermissionInstance(\"ADMINISTER_DRUGS\");\n permissionManager.addPermission(permission2);\n Role role = securityService.getRoleManager().getRoleInstance(\"VET_TECH\");\n securityService.getRoleManager().addRole(role);\n ((DynamicModelManager) securityService.getModelManager()).grant(role, permission);\n PermissionSet permissions = ((DynamicRole) role).getPermissions();\n assertEquals(1, permissions.size());\n assertTrue(permissions.contains(permission));\n assertFalse(permissions.contains(permission2));\n }", "ResourceRole createResourceRole();", "List<RolePermission> findByRoleId(Long roleId);", "UserPermissionsType createUserPermissionsType();", "public SysPermissionRoleRecord() {\n super(SysPermissionRole.SYS_PERMISSION_ROLE);\n }", "int insert(RolePermission record);", "private void generatePermissions() \n\n\tthrows java.io.FileNotFoundException, java.io.IOException {\n\n\tif (!writeOnCommit) return;\n\n\t// otherwise proceed to write policy file\n\n\tMap roleToSubjectMap = null;\n SecurityRoleMapperFactory factory=SecurityRoleMapperFactoryGen.getSecurityRoleMapperFactory();\n\tif (rolePermissionsTable != null) {\n\t // Make sure a role to subject map has been defined for the Policy Context\n\t if (factory != null) {\n // the rolemapper is stored against the\n // appname, for a web app get the appname for this contextid\n SecurityRoleMapper srm = factory.getRoleMapper(CONTEXT_ID);\n\t\tif (srm != null) {\n\t\t roleToSubjectMap = srm.getRoleToSubjectMapping();\n\t\t}\n\t\tif (roleToSubjectMap != null) {\n\t\t // make sure all liked PC's have the same roleToSubjectMap\n\t\t Set linkSet = (Set) fact.getLinkTable().get(CONTEXT_ID);\n\t\t if (linkSet != null) {\n\t\t\tIterator it = linkSet.iterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t String contextId = (String)it.next();\n\t\t\t if (!CONTEXT_ID.equals(contextId)) {\n\t\t\t\tSecurityRoleMapper otherSrm = factory.getRoleMapper(contextId);\n\t\t\t\tMap otherRoleToSubjectMap = null;\n\n\t\t\t\tif (otherSrm != null) {\n\t\t\t\t otherRoleToSubjectMap = otherSrm.getRoleToSubjectMapping();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (otherRoleToSubjectMap != roleToSubjectMap) {\n String defMsg=\"Linked policy contexts have different roleToSubjectMaps (\"+CONTEXT_ID+\")<->(\"+contextId+\")\";\n String msg=localStrings.getLocalString(\"pc.linked_with_different_role_maps\",defMsg,new Object []{CONTEXT_ID,contextId});\n\t\t\t\t logger.log(Level.SEVERE,msg); \n\t\t\t\t throw new RuntimeException(defMsg);\n\t\t\t\t}\n\t\t\t }\n\t\t\t}\n\t\t }\n\t\t}\n\t }\n\t}\n\n\tif (roleToSubjectMap == null && rolePermissionsTable != null) {\n String defMsg=\"This application has no role mapper factory defined\";\n String msg=localStrings.getLocalString(\"pc.role_map_not_defined_at_commit\",defMsg,new Object []{CONTEXT_ID});\n\t logger.log(Level.SEVERE,msg);\n\t throw new RuntimeException\n\t\t(localStrings.getLocalString\n\t\t (\"enterprise.deployment.deployment.norolemapperfactorydefine\",defMsg));\n\t}\n\n\tPolicyParser parser = new PolicyParser(false);\n\n\t// load unchecked grants in parser\n\tif (uncheckedPermissions != null) {\n\t Enumeration pEnum = uncheckedPermissions.elements();\n\t if (pEnum.hasMoreElements()) {\n\t\tGrantEntry grant = new GrantEntry();\n\t\twhile (pEnum.hasMoreElements()) {\n\t\t Permission p = (Permission) pEnum.nextElement();\n\t\t PermissionEntry entry = \n\t\t\tnew PermissionEntry(p.getClass().getName(),\n\t\t\t\t\t p.getName(),p.getActions());\n\t\t grant.add(entry);\n\t\t}\n\t\tparser.add(grant);\n\t }\n\t}\n\n\t// load role based grants in parser\n\tif (rolePermissionsTable != null) {\n\t Iterator roleIt = rolePermissionsTable.keySet().iterator();\n\t while (roleIt.hasNext()) {\n\t\tboolean withPrincipals = false;\n\t\tString roleName = (String) roleIt.next();\n\t\tPermissions rolePerms = getRolePermissions(roleName);\n\t\tSubject rolePrincipals = (Subject) roleToSubjectMap.get(roleName);\n\t\tif (rolePrincipals != null) {\n\t\t Iterator pit = rolePrincipals.getPrincipals().iterator();\n\t\t while (pit.hasNext()){\n\t\t\tPrincipal prin = (Principal) pit.next();\n\t\t\tassert prin instanceof java.security.Principal;\n\t\t\tif (prin instanceof java.security.Principal) {\n\t\t\t withPrincipals = true;\n\t\t\t PrincipalEntry prinEntry = \n\t\t\t\tnew PrincipalEntry(prin.getClass().getName(),\n\t\t\t\t\t\t escapeName(prin.getName()));\n\t\t\t GrantEntry grant = new GrantEntry();\n\t\t\t grant.principals.add(prinEntry);\n\t\t\t Enumeration pEnum = rolePerms.elements();\n\t\t\t while (pEnum.hasMoreElements()) {\n\t\t\t\tPermission perm = (Permission) pEnum.nextElement();\n\t\t\t\tPermissionEntry permEntry = \n\t\t\t\t new PermissionEntry(perm.getClass().getName(),\n\t\t\t\t\t\t\tperm.getName(),\n\t\t\t\t\t\t\tperm.getActions());\n\t\t\t\tgrant.add(permEntry);\n\t\t\t }\n\t\t\t parser.add(grant);\n\t\t\t}\n\t\t\telse {\n String msg = localStrings.getLocalString(\"pc.non_principal_mapped_to_role\",\n \"non principal mapped to role \"+roleName,new Object[]{prin,roleName});\n\t\t\t logger.log(Level.WARNING,msg);\n\t\t\t}\n\t\t }\n\t\t} \n\t\tif (!withPrincipals) {\n String msg = localStrings.getLocalString(\"pc.no_principals_mapped_to_role\",\n \"no principals mapped to role \"+roleName, new Object []{ roleName});\n\t\t logger.log(Level.WARNING,msg);\n\t\t}\n\t }\n\t}\n\n\twriteOnCommit = createPolicyFile(true,parser,writeOnCommit);\n\n\t// load excluded perms in excluded parser\n\tif (excludedPermissions != null) {\n\n\t PolicyParser excludedParser = new PolicyParser(false);\n\n\t Enumeration pEnum = excludedPermissions.elements();\n\t if (pEnum.hasMoreElements()) {\n\t\tGrantEntry grant = new GrantEntry();\n\t\twhile (pEnum.hasMoreElements()) {\n\t\t Permission p = (Permission) pEnum.nextElement();\n\t\t PermissionEntry entry = \n\t\t\tnew PermissionEntry(p.getClass().getName(),\n\t\t\t\t\t p.getName(),p.getActions());\n\t\t grant.add(entry);\n\t\t}\n\t\texcludedParser.add(grant);\n\t }\n\n\t writeOnCommit = createPolicyFile(false,excludedParser,writeOnCommit);\n\t} \n\n\tif (!writeOnCommit) wasRefreshed = false;\n }", "Integer insertBatch(List<RolePermission> rolePermissions);", "private void createPermissionEntity(PermissionType type, Role role,\n String action, Resource resource) {\n PermissionEntity permission = new PermissionEntity(type);\n permission.setRole(role.getIdentifier());\n permission.setAction(action);\n permission.setResource(resource.getIdentifier());\n FacadeFactory.getFacade().store(permission);\n }", "public void insertRolePermission(int roleId, List<Integer> permissionIdList, Timestamp createTime, Timestamp updateTime){\n for (int permissionId : permissionIdList) {\r\n rolePermissionDao.insertRolePermission(roleId, permissionId, createTime, updateTime);\r\n }\r\n }", "public CreateRoleResponse createRole(CreateRoleRequest request) throws GPUdbException {\n CreateRoleResponse actualResponse_ = new CreateRoleResponse();\n submitRequest(\"/create/role\", request, actualResponse_, false);\n return actualResponse_;\n }", "public MetaRole createMetaRole(String sName, String sAdmin) throws IOException;", "ISModifyRequiredRole createISModifyRequiredRole();", "public TableRole getTableRole();", "public Permissions createPermissions() {\r\n perm = (perm == null) ? new Permissions() : perm;\r\n return perm;\r\n }", "PermissionType createPermissionType();", "@Override\n\tpublic int insert(ShiroRolesPermissionsPoEntity entity) {\n\t\treturn 0;\n\t}", "public RolePermissionRecord(Integer id, Integer roleId, Integer permissionId, Timestamp createdAt) {\n super(RolePermission.ROLE_PERMISSION);\n\n set(0, id);\n set(1, roleId);\n set(2, permissionId);\n set(3, createdAt);\n }", "public synchronized void createDefaultRoles() {\n if (roleDAO.findByName(getUserRole()) == null) {\n createRole(getUserRole());\n }\n if (roleDAO.findByName(getAdminRole()) == null) {\n createRole(getAdminRole());\n }\n }", "public void createRoleData() throws DataLayerException\r\n\t{\r\n\t\t// ---------------------------------------------------------------\r\n\t\t// Task States\r\n\t\t// ---------------------------------------------------------------\r\n\t\tfor (Role.RoleType roleType : Role.RoleType.values())\r\n\t\t{\r\n\t\t\tRole role = createHelper.createRole(0);\r\n\t\t\trole.setRoleType(roleType);\r\n\t\t\troleDao.save(role);\r\n\t\t}\r\n\t}", "public void create(String username, String password, DatabaseRolesEnum role){\r\n ORole dbRole = db.getMetadata().getSecurity().getRole(role.getRoleName());\r\n db.getMetadata().getSecurity().createUser(username, password, dbRole);\r\n }", "private void CreatTable() {\n String sql = \"CREATE TABLE IF NOT EXISTS \" + TABLE_NAME\n + \" (name varchar(30) primary key,password varchar(30));\";\n try{\n db.execSQL(sql);\n }catch(SQLException ex){}\n }", "TDLRoleEntity create(TDLRoleEntity tldrole);", "<T extends Role> ISModifyRole<T> createISModifyRole();", "int insertSelective(RolePermission record);", "private void createLoginTable() {\r\n jdbcExecutor.executeQuery(new Work() {\r\n @Override\r\n public void execute(Connection connection) throws SQLException {\r\n connection.createStatement().executeUpdate(\"CREATE TABLE login ( id numeric(19,0), user_id numeric(19,0), timestamp TIMESTAMP )\");\r\n }\r\n });\r\n }", "void createUserAccounts(Set<Role> roles, User u);", "@Override\n\tpublic boolean canCreateRoleByRoleId(String roleId, String canCreateRoleId) {\n\t\tString sqlString = \"SELECT count(*) from can_create_roles where can_create_roles.ROLE_ID=:roleId and can_create_roles.CAN_CREATE_ROLE=:canCreateRoleId\";\n\t\tMap<String, Object> params = new HashMap<>();\n\t\tparams.put(\"roleId\", roleId);\n\t\tparams.put(\"canCreateRoleId\", canCreateRoleId);\n\t\tint i = this.namedParameterJdbcTemplate.queryForObject(sqlString, params, Integer.class).intValue();\n\t\tif (i > 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public String createTable(){\r\n return \"CREATE TABLE Doctor \" +\r\n \"(idDoctor decimal primary key, \" +\r\n \"firstNameDoctor char(14), \" +\r\n \"lastNameDoctor char(14), \" +\r\n \"costPerVisit integer,\" +\r\n \"qualification varchar(32))\";\r\n }", "@Test(dependsOnMethods = \"testRoleAdd\", groups = \"role\", priority = 1)\n public void testRoleGrantPermission() throws ExecutionException, InterruptedException {\n this.authDisabledAuthClient\n .roleGrantPermission(rootRole, rootRolekeyRangeBegin, rootkeyRangeEnd,\n Permission.Type.READWRITE).get();\n this.authDisabledAuthClient\n .roleGrantPermission(userRole, userRolekeyRangeBegin, userRolekeyRangeEnd, Type.READWRITE)\n .get();\n }", "@Override\n\tpublic List<Role> getCanCreateRoleList(String roleId) {\n\t\tString sqlString = \"SELECT role.* from can_create_roles LEFT JOIN role on can_create_roles.CAN_CREATE_ROLE=role.ROLE_ID where can_create_roles.ROLE_ID=?\";\n\t\treturn this.jdbcTemplate.query(sqlString, new RoleRowMapper(), roleId);\n\t}", "void addRoleToUser(int userID,int roleID);", "@Override\n\tpublic void addRole(Role r) {\n\t\t\n\t}", "public RoleImpl() {}", "private void createTable() {\n try (Statement st = this.conn.createStatement()) {\n st.execute(\"CREATE TABLE IF NOT EXISTS users (user_id SERIAL PRIMARY KEY, name VARCHAR(100) NOT NULL, \"\n + \"login VARCHAR(100) UNIQUE NOT NULL, email VARCHAR(100) NOT NULL, createDate TIMESTAMP NOT NULL);\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void addPermissions(IPermission[] permissions) throws AuthorizationException;", "@RestResource(path=\"roles\", rel=\"roles\")\npublic interface RoleRepository extends CrudRepository<Role, Long>{\n\n\tList<Permission> findPermissionsByRole(String role);\n}", "void insertRole(Role role) throws DataException;", "public Permissions() {\r\n yamlC = new YamlCreator();\r\n StorageFactory.registerDefaultCreator(yamlC);\r\n StorageFactory.registerCreator(\"YAML\", yamlC);\r\n }", "public GrantPermissionTableResponse grantPermissionTable(GrantPermissionTableRequest request) throws GPUdbException {\n GrantPermissionTableResponse actualResponse_ = new GrantPermissionTableResponse();\n submitRequest(\"/grant/permission/table\", request, actualResponse_, false);\n return actualResponse_;\n }", "public Role() {\n }", "public Role() {\n }", "public Role() {\n\t super();\n }", "@Override\n\tpublic List<UserRole> buscarUserRoleSemPermissoes() {\n\t\t// TODO Auto-generated method stub\n\t\tQuery query = getCurrentSession().createQuery(\"select ur from UserRole ur where ur.permissions\");\n\t\treturn query.list();\n\t}", "public RoleEntity(){}", "public PsecRole createOrUpdateRole(String name, boolean defaultRole, String... permissions) {\r\n PsecRole result = server.find(PsecRole.class).\r\n where().eq(\"name\", name).findUnique();\r\n if (result == null) {\r\n result = new PsecRole();\r\n result.setName(name);\r\n }\r\n if (!result.getAutoUpdatesForbidden()) {\r\n final List<PsecPermission> permissionObjects = server.find(PsecPermission.class).\r\n where().in(\"name\", (Object[])permissions).findList();\r\n result.setPsecPermissions(permissionObjects);\r\n result.setDefaultRole(defaultRole);\r\n } else {\r\n System.out.println(\"Can't update Role \" + name);\r\n }\r\n server.save(result);\r\n server.saveManyToManyAssociations(result, \"psecPermissions\");\r\n return result;\r\n }", "@Override\n\tpublic int create(Rol r) {\n\t\treturn rolDao.create(r);\n\t}", "private ExportRoles() {}", "public static void createTable() throws SQLException\n {\n Statement statement = ConnectionManager.getConnection()\n .createStatement();\n\n statement.executeUpdate(\"DROP TABLE IF EXISTS Account\");\n statement\n .executeUpdate(\"CREATE TABLE Account(accountId INTEGER PRIMARY KEY AUTOINCREMENT, name, address, manager)\");\n\n statement.close();\n\n insertAccount(new Account(0, \"Administrator\", \"\", true));\n\n PreparedStatement ps = ConnectionManager\n .getConnection()\n .prepareStatement(\n \"UPDATE sqlite_sequence SET seq = ? WHERE name = 'Account'\");\n ps.setInt(1, Account.LOW_ACCOUNT_ID - 1);\n ps.executeUpdate();\n ps.close();\n }", "ISModifyProvidedRole createISModifyProvidedRole();", "private Role createIamRole()\n {\n return iamRoleBuilder().build();\n }", "@BeforeClass\n public void setUp() {\n userRepo.deleteAll();\n roleRepo.deleteAll();\n permissionRepo.deleteAll();\n // define permissions\n final Permission p1 = new Permission();\n p1.setName(\"VIEW_USER_ROLES\");\n permissionRepo.save(p1);\n // define roles\n final Role roleAdmin = new Role();\n roleAdmin.setName(\"ADMIN\");\n roleAdmin.getPermissions().add(p1);\n roleRepo.save(roleAdmin);\n // define user\n final User user = new User();\n user.setActive(true);\n user.setCreated(System.currentTimeMillis());\n user.setEmail(USER_EMAIL);\n user.setName(USER_NAME);\n user.setPassword(passwordService.encryptPassword(USER_PWD));\n user.getRoles().add(roleAdmin);\n userRepo.save(user);\n }", "Collection <Permission> findByRole(Integer accountId,Integer role);", "public void testCreateRoles3() throws Exception {\r\n SeleniumTestBase mySeleniumTestBase = new SeleniumTestBase(browser);\r\n mySeleniumTestBase.addNewRole(\"Role3\", \"user3\", \"manage-security\");\r\n\r\n }", "PermissionInfo getRolePermissions(HibBaseElement element, InternalActionContext ac, String roleUuid);", "private static void createTablesInDatabase (Statement statement) throws SQLException {\n //Создание таблиц в БД\n statement.execute(\"CREATE TABLE role ( ID INT(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary Key' , \" +\n \"Role VARCHAR(50) NOT NULL , PRIMARY KEY (ID)) ENGINE = InnoDB CHARACTER set UTF8 COLLATE UTF8_general_ci;\");\n statement.execute(\"CREATE TABLE users ( ID INT(11) NOT NULL AUTO_INCREMENT , First_Name VARCHAR(20) NOT NULL, \" +\n \"Middle_Name VARCHAR(20) NOT NULL , Last_Name VARCHAR(20) NOT NULL , Passport VARCHAR(100) NOT NULL, \" +\n \"Address VARCHAR(100) NOT NULL , Phone VARCHAR(13) NOT NULL, Login VARCHAR(50) NOT NULL , \" +\n \"Password VARCHAR(50) NOT NULL , Email VARCHAR(100) NOT NULL , FK_Role INT(11) NOT NULL , PRIMARY KEY (ID), \" +\n \"Foreign Key (FK_Role) REFERENCES role(ID)) ENGINE = InnoDB CHARACTER set UTF8 COLLATE UTF8_general_ci;\");\n statement.execute(\"CREATE TABLE account (ID INT(11) NOT NULL AUTO_INCREMENT, Balans DECIMAL(50) NOT NULL, \" +\n \"State ENUM('Working','Lock') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, \" +\n \"FK_Users INT(11) NOT NULL, PRIMARY KEY (ID), Foreign Key (FK_Users) REFERENCES users(ID)) \" +\n \"ENGINE = InnoDB CHARACTER set UTF8 COLLATE UTF8_general_ci;\");\n statement.execute(\"CREATE TABLE payment ( ID INT(11) NOT NULL AUTO_INCREMENT, FK_Account_Source INT(11) NOT NULL, \" +\n \"FK_Account_Destination INT(11) NOT NULL , Description VARCHAR(200) NOT NULL , Amount DECIMAL(50) NOT NULL , \" +\n \"Paydate Date NOT NULL , PRIMARY KEY (ID), Foreign Key (FK_Account_Source) REFERENCES account(ID), \" +\n \"Foreign Key (FK_Account_Destination) REFERENCES account(ID)) ENGINE = InnoDB \" +\n \"CHARACTER set UTF8 COLLATE UTF8_general_ci;\");\n }", "public Role() {\n\t}", "@Override\n public void createNewRole(final String roleName, final String roleDescription,\n final String unAssignedPermission, final int partnerType) {\n\n DriverConfig.setLogString(\"Processing a new role creation with required fields.\", true);\n\n WaitUtil.waitUntil(200);\n\n final WebElement roleManagement = retrieveElementByAttributeValue(DriverConfig.getDriver(),\n TAG_ANCHOR, ATTR_TITLE, roleConfig.get(ROLE_MANAGEMENT_VAL));\n roleManagement.click();\n logger.info(\"check if create new role is displayed.\");\n isDisplayedByLinkText(DriverConfig.getDriver(), roleConfig.get(CREATE_NEW_ROLE_VAL),\n MEDIUM_TIMEOUT);\n DriverConfig.setLogString(\"select create new role link.\", true);\n final WebElement createNewRole = retrieveElementByLinkText(DriverConfig.getDriver(),\n roleConfig.get(CREATE_NEW_ROLE_VAL), MEDIUM_TIMEOUT);\n createNewRole.click();\n DriverConfig.setLogString(\"enter details in create role form.\", true);\n final String dynamicRoleName = enterRoleName(roleName);\n selectPartnerType(partnerType);\n enterRoleDescription(roleDescription);\n DriverConfig.setLogString(\"select permissions for the role.\", true);\n sendPermissions(DriverConfig.getDriver(), unAssignedPermission);\n DriverConfig.setLogString(\"save & verify the role access.\", true);\n saveAndVerifyRole(DriverConfig.getDriver(), dynamicRoleName);\n }", "public void addRole(String username, String role) throws UserNotExistsException ;", "public GrantPermissionTableResponse grantPermissionTable(String name, String permission, String tableName, String filterExpression, Map<String, String> options) throws GPUdbException {\n GrantPermissionTableRequest actualRequest_ = new GrantPermissionTableRequest(name, permission, tableName, filterExpression, options);\n GrantPermissionTableResponse actualResponse_ = new GrantPermissionTableResponse();\n submitRequest(\"/grant/permission/table\", actualRequest_, actualResponse_, false);\n return actualResponse_;\n }", "public void create(String userName, String password, String userFullname,\r\n\t\t\tString userSex, int userTel, String role);", "@Override\r\n\tpublic int addRole(Role role) {\n\t\treturn 0;\r\n\t}", "public interface RoleTypeFactory {\n\tpublic void initView();\n\tpublic Role checkCredentials(String username, String password, String loginas);\n\t\t\n}", "@Transactional(propagation = Propagation.REQUIRED)\n public void addGrant(Integer roleId, Integer[] mIds) {\n Integer count = permissionMapper.countPermissionByRoleId(roleId);\n // 2. if permission exists, delete the permission records of this role\n if (count > 0) {\n permissionMapper.deletePermissionByRoleId(roleId);\n }\n // 3. if permission exists, add permission records\n if (mIds != null && mIds.length > 0) {\n // define Permission list\n List<Permission> permissionList = new ArrayList<>();\n\n for(Integer mId: mIds) {\n Permission permission = new Permission();\n permission.setModuleId(mId);\n permission.setRoleId(roleId);\n permission.setAclValue(moduleMapper.selectByPrimaryKey(mId).getOptValue());\n permission.setCreateDate(new Date());\n permission.setUpdateDate(new Date());\n permissionList.add(permission);\n }\n\n // Batch Update operation performed,verify affected records\n AssertUtil.isTrue(permissionMapper.insertBatch(permissionList) != permissionList.size(), \"AddGrant failed!\");\n }\n }", "@Override\n public void populateAndCreateNewRole(final String roleName, final String roleDescription,\n final String unAssignedPermission) {\n\n DriverConfig.setLogString(\"Processing a new role creation with required fields.\", true);\n\n WaitUtil.waitUntil(200);\n\n final WebElement roleManagement = retrieveElementByAttributeValue(DriverConfig.getDriver(),\n TAG_ANCHOR, ATTR_TITLE, roleConfig.get(ROLE_MANAGEMENT_VAL));\n roleManagement.click();\n logger.info(\"check if create new role is displayed.\");\n isDisplayedByLinkText(DriverConfig.getDriver(), roleConfig.get(CREATE_NEW_ROLE_VAL),\n MEDIUM_TIMEOUT);\n DriverConfig.setLogString(\"select create new role link.\", true);\n final WebElement createNewRole = retrieveElementByLinkText(DriverConfig.getDriver(),\n roleConfig.get(CREATE_NEW_ROLE_VAL), MEDIUM_TIMEOUT);\n createNewRole.click();\n DriverConfig.setLogString(\"enter details in create role form.\", true);\n sendRoleDetails(DriverConfig.getDriver(), roleDescription);\n DriverConfig.setLogString(\"select permissions for the role.\", true);\n sendPermissions(DriverConfig.getDriver(), unAssignedPermission);\n DriverConfig.setLogString(\"save & verify the role access.\", true);\n saveAndVerifyRole(DriverConfig.getDriver(), roleName);\n }", "void changePermissions(Training training, User user, Permission permission, String token) throws AuthenticationException;", "@GetMapping(\"/permissions\")\r\n public ResultJson<RolePermissionView> getPermissionListByRole(\r\n @RequestParam(\"roleid\") final Long roleid) {\r\n if (roleid.longValue() < 0) {\r\n return ResultUtil.getResult(ResultCodePermission.RESULT_CODE_24001200);\r\n }\r\n\r\n final RolePermissionView mvList =\r\n permissionService.getModulePermissionViewByRoleid(roleid);\r\n return ResultUtil.getResult(ResultCodeSystem.RESULT_CODE_0, mvList,\r\n ResultCodeSystem.SELECT_SUCCESS);\r\n }", "QuoteRole createQuoteRole();", "@Before\n public void setUp() {\n permissionsS.add(EntityUtil.getSamplePermission());\n }", "public static void createTable() {\n\n // Create statement\n Statement statement = null;\n try {\n statement = Database.getDatabase().getConnection().createStatement();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Attempt to create table\n try {\n statement.execute(\n \"CREATE TABLE \" + Constants.SANITATION_TABLE + \"(\" +\n \"requestID INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),\" +\n \"nodeID VARCHAR(100) References \" + Constants.LOCATION_TABLE + \" (nodeID), \" +\n \"priority VARCHAR(10), \" +\n \"status VARCHAR(100), \" +\n \"description VARCHAR(100), \" +\n \"requesterID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"requestTime TIMESTAMP, \" +\n \"servicerID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"claimedTime TIMESTAMP, \" +\n \"completedTime TIMESTAMP, \" +\n \"CONSTRAINT priority_enum CHECK (priority in ('LOW', 'MEDIUM', 'HIGH')), \" +\n \"CONSTRAINT status_enum CHECK (status in ('INCOMPLETE', 'COMPLETE')))\"\n );\n } catch (SQLException | NullPointerException e) {\n e.printStackTrace();\n }\n }", "void setRole(String roles);", "@Test\n\tpublic void testCreate() {\n\t\tApp app = new App();\n\t\tapp.setId(1L);\n\t\tRole role = new Role();\n\t\trole.setApp(app);\n\t\trole.setName(\"admin中国\");\n\t\troleService.create(role);\n\t}", "public static String getSQLForUserTableCreation() {\n return \"CREATE TABLE \" + USER_TABLE + \"(\" +\n USER_ID + \" varchar(8) PRIMARY KEY, \" +\n USER_LAST_NAME + \" varchar(32), \" +\n USER_FIRST_NAME + \" varchar(32), \" +\n USER_EMAIL + \" varchar(256), \" +\n USER_PASSWORD + \" varchar(64), \" +\n USER_IS_TEACHER + \" bool, \" +\n USER_GROUP + \" varchar(32))\";\n\n }", "@Test\n public void testCreateUserWithManyRoles() {\n Set<Role> roles = new HashSet<>();\n roles.add(roleRepo.findRoleByRolename(\"ROLE_ADMIN\"));\n roles.add(roleRepo.findRoleByRolename(\"ROLE_USER\"));\n\n User user = new User(\"test\", \"Testing\", \"[email protected]\", 111, \"test\", roles);\n em.persist(user);\n }", "public RoleAccess() {\n }", "public abstract void setPermissions(PermissionIFace permissions);", "public void doCreateTable();", "public interface IRole extends INameable, IDisable, IDocumentable, IStringable {\n\n void addPermission(IPermission permision);\n\n void removePermission(IPermission permision);\n\n void addPermissions(IPermission... permisions);\n\n void removePermissions(IPermission... permisions);\n\n void addPermissions(List<IPermission> permisions);\n\n void removePermissions(List<IPermission> permisions);\n\n IPermission[] getPermissionArray();\n\n List<IPermission> getPermissionList();\n\n Set<IPermission> getPermissionSet();\n\n List<String> getPermissionString();\n\n}", "@Override\n @Transactional\n public AjaxResult createRole(RoleCreatePojo roleCreatePojo) {\n\n User loginUser = SpringUtils.getBean(LoginTokenService.class).getLoginUser(ServletUtils.getRequest());\n roleCreatePojo.getSysRole().setCreateBy(loginUser.getNickname());\n // 处理各类不能为空的字段\n if(null == roleCreatePojo.getSysRole().getRoleSort())\n roleCreatePojo.getSysRole().setRoleSort(\"1\");\n if(null == roleCreatePojo.getSysRole().getStatus())\n roleCreatePojo.getSysRole().setStatus(\"0\");\n if(null == roleCreatePojo.getSysRole().getCreateTime())\n roleCreatePojo.getSysRole().setCreateTime(Date.from(LocalDateTime.now().atZone(ZoneId.systemDefault()).toInstant()));\n if(null == roleCreatePojo.getSysRole().getRemark())\n roleCreatePojo.getSysRole().setRemark(roleCreatePojo.getSysRole().getRoleName());\n\n // 新增角色\n SysRole sysRole = roleCreatePojo.getSysRole();\n sysRoleMapper.insert(sysRole);\n Long roleId = sysRole.getRoleId();\n\n // 新增角色对应的menu\n if(null != roleCreatePojo.getMenuList() && 0 != roleCreatePojo.getMenuList().size()) {\n List<SysRoleMenu> sysRoleMenus = new ArrayList<>();\n roleCreatePojo.getMenuList().forEach(item -> {\n SysRoleMenu sysRoleMenu = new SysRoleMenu();\n sysRoleMenu.setRoleId(roleId);\n sysRoleMenu.setMenuId(item);\n\n sysRoleMenus.add(sysRoleMenu);\n });\n sysRoleMenuMapper.batchRoleMenu(sysRoleMenus);\n }\n\n return AjaxResult.success();\n }", "private void createTables() throws DatabaseAccessException {\n\t\tStatement stmt = null;\n\t\tPreparedStatement prepStmt = null;\n\n\t\ttry {\n\t\t\tstmt = this.connection.createStatement();\n\n\t\t\t// be sure to drop all tables in case someone manipulated the database manually\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS DynamicConstraints;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Features;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Groups;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Metadata;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Objects;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS StaticConstraints;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Subspaces;\");\n\n\t\t\t// populate database with tables.. by using ugly sql\n\t\t\tstmt.executeUpdate(\"CREATE TABLE DynamicConstraints(Id INTEGER PRIMARY KEY AUTOINCREMENT,\"\n\t\t\t\t\t+ \" Operator INTEGER, FeatureReference INTEGER,\"\n\t\t\t\t\t+ \" GroupReference INTEGER, Value FLOAT, Active BOOLEAN);\");\n\t\t\tstmt.executeUpdate(\"CREATE TABLE Features(Id INTEGER PRIMARY KEY AUTOINCREMENT,\" + \" Name VARCHAR(\"\n\t\t\t\t\t+ DatabaseConfiguration.VARCHARLENGTH + \"), OutlierFlag BOOLEAN, Min FLOAT, Max FLOAT);\");\n\t\t\tstmt.executeUpdate(\"CREATE TABLE Groups(Id INTEGER PRIMARY KEY AUTOINCREMENT, Name VARCHAR(\"\n\t\t\t\t\t+ DatabaseConfiguration.VARCHARLENGTH + \"),\"\n\t\t\t\t\t+ \" Visibility BOOLEAN, Color INTEGER, ColorCalculatedByFeature INTEGER, Description TEXT);\");\n\t\t\tstmt.executeUpdate(\"CREATE TABLE Metadata(Version INTEGER);\");\n\n\t\t\t// Object table is created in initFeatures, to boost performance\n\n\t\t\tstmt.executeUpdate(\"CREATE TABLE StaticConstraints(Id INTEGER, GroupReference INTEGER,\"\n\t\t\t\t\t+ \" ObjectReference INTEGER, Active BOOLEAN);\");\n\t\t\tstmt.executeUpdate(\"CREATE TABLE Subspaces(Id INTEGER, FeatureReference INTEGER,\" + \" Name VARCHAR(\"\n\t\t\t\t\t+ DatabaseConfiguration.VARCHARLENGTH + \"));\");\n\n\t\t\tstmt.close();\n\n\t\t\t// after creating the tables, write the layout version\n\t\t\tprepStmt = this.connection.prepareStatement(\"INSERT INTO Metadata VALUES(?);\");\n\t\t\tprepStmt.setInt(1, DatabaseConfiguration.LAYOUTVERSION);\n\t\t\tprepStmt.execute();\n\n\t\t\tprepStmt.close();\n\n\t\t} catch (SQLException e) {\n\t\t\tthrow new DatabaseAccessException(Failure.LAYOUT);\n\t\t}\n\t}", "@Override\r\n\tpublic void deleteRolePermissions(int[] ids) {\n\t\tfor(int i=0;i<ids.length;i++){\r\n\t\t\trolePermissionMapper.deleteByPrimaryKey(ids[i]);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void updateCanCreateRoles(final String roleId, final String[] canCreateRoleIds) {\n\t\tString sqlString = \"DELETE FROM can_create_roles where can_create_roles.ROLE_ID=?\";\n\t\tthis.jdbcTemplate.update(sqlString, roleId);\n\t\tsqlString = \"INSERT INTO can_create_roles (ROLE_ID, CAN_CREATE_ROLE) VALUES(?, ?)\";\n\t\tthis.jdbcTemplate.batchUpdate(sqlString, new BatchPreparedStatementSetter() {\n\t\t\t@Override\n\t\t\tpublic void setValues(PreparedStatement ps, int i) throws SQLException {\n\t\t\t\tps.setString(1, roleId);\n\t\t\t\tps.setString(2, canCreateRoleIds[i]);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int getBatchSize() {\n\t\t\t\treturn canCreateRoleIds.length;\n\t\t\t}\n\t\t});\n\t}", "Builder rolesAllowed(String... roles) {\n return rolesAllowed(Arrays.asList(roles));\n }", "@BeforeClass\n public void setUp() {\n userRepo.deleteAll();\n roleRepo.deleteAll();\n permissionRepo.deleteAll();\n // define permissions\n final Permission p1 = new Permission();\n p1.setName(\"VIEW_USER_ROLES\");\n permissionRepo.save(p1);\n // define roles\n final Role roleAdmin = new Role();\n roleAdmin.setName(\"ADMIN\");\n roleAdmin.getPermissions().add(p1);\n roleRepo.save(roleAdmin);\n // define user\n final User user = new User();\n user.setActive(true);\n user.setCreated(System.currentTimeMillis());\n user.setEmail(USER_EMAIL);\n user.setName(USER_NAME);\n user.setPassword(passwordService.encryptPassword(USER_PWD));\n user.getRoles().add(roleAdmin);\n user.setSolde(BigDecimal.valueOf(100.0));\n userRepo.save(user);\n\n }", "protected void loadSectionPermissions(ActionRequest req, SmarttrakRoleVO role) throws AuthorizationException {\n\t\tAccountPermissionAction apa = new AccountPermissionAction();\n\t\tapa.setDBConnection((SMTDBConnection)getAttribute(DB_CONN));\n\t\tapa.setAttributes(getInitVals());\n\t\ttry {\n\t\t\t//retrieve the permission tree for this account\n\t\t\tapa.retrieve(req);\n\t\t\tModuleVO mod = (ModuleVO) apa.getAttribute(Constants.MODULE_DATA);\n\t\t\tSmarttrakTree t = (SmarttrakTree) mod.getActionData();\n\n\t\t\t//iterate the nodes and attach parent level tokens to each, at each level. spine. spine~bone. spine~bone~fragment. etc.\n\t\t\tt.buildNodePaths();\n\n\t\t\t//attach the list of permissions to the user's role object\n\t\t\trole.setAccountRoles(t.preorderList());\n\n\t\t} catch (Exception e) {\n\t\t\tthrow new AuthorizationException(\"could not load Smartrak permissions\", e);\n\t\t}\n\t\tlog.debug(\"loaded \" + role.getAccountRoles().size() + \" account permissions into the roleVO\");\n\t}", "private static void exportRoles(GraknClient.Session session, Path schemaRoot) throws IOException {\n final File outputFileRole = schemaRoot.resolve(\"role\").toFile();\n GraknClient.Transaction tx = session.transaction().write();\n Stack<String> exportingTypes = new Stack<>();\n exportingTypes.push(\"role\");\n exportExplicitHierarchy(exportingTypes, outputFileRole, tx, false);\n tx.close();\n\n LOG.info(\"Exported role hierarchy\");\n\n }", "@RequestMapping(value = \"/create\", method = RequestMethod.POST)\n public String doCreate(@RequestParam(value = \"can_read[]\", required = false) Long[] canReadRoleIds,\n @RequestParam(value = \"can_write[]\", required = false) Long[] canWriteRoleIds,\n @RequestParam(value = \"can_delete[]\", required = false) Long[] canDeleteRoleIds) {\n DataObject object = new DataObject();\n try {\n setRoleObjectsToObject(object, canReadRoleIds, canWriteRoleIds, canDeleteRoleIds);\n dataObjectRepository.save(object);\n } catch (RoleObjectConsistencyException e) {\n setHintMessage(new HintMessage(HintMessage.HintStatus.danger, e.getMessage()));\n }\n return \"redirect:/manage/object\";\n }", "public void createTableSettings() {\n db.execSQL(\"create table if not exists \" + SETTINGS_TABLE_NAME + \" (\"\n + KEY_SETTINGS_ROWID + \" integer primary key, \"\n + KEY_SETTINGS_VALUE + \" integer not null);\");\n }", "private void createTables() throws SQLException\r\n {\r\n createTableMenuItems();\r\n createTableOrdersWaiting();\r\n }", "@Repository\npublic interface PermissionDao {\n Set<Permission> findPermissionsByRoleId(Integer roleId);\n}", "public boolean isCreateRight() {\r\n if (getUser() != null) {\r\n return getUser().hasPermission(\"/vocabularies\", \"c\");\r\n }\r\n return false;\r\n }", "private void initializePermissionsMap() {\n }", "public void createAccountTable() throws SQLException {\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\t// Prüfung, ob Tabelle bereits besteht\r\n\t\tResultSet resultSet = connection.getMetaData().getTables(\"%\", \"%\", \"%\", new String[] { \"TABLE\" });\r\n\t\tboolean shouldCreateTable = true;\r\n\t\twhile (resultSet.next() && shouldCreateTable) {\r\n\t\t\tif (resultSet.getString(\"TABLE_NAME\").equalsIgnoreCase(\"ACCOUNT\")) {\r\n\t\t\t\tshouldCreateTable = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tresultSet.close();\r\n\r\n\t\tif (shouldCreateTable) {\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tString sql = \"CREATE table account (id int not null primary key, owner varchar(\"\r\n\t\t\t\t\t+ DatabaseAdministration.ownerLength + \") not null, number varchar(4) not null)\";\r\n\t\t\t// Tabelle wird erstellt\r\n\t\t\tstatement.execute(sql);\r\n\t\t\tstatement.close();\r\n\t\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\t\tlogger.info(\"Tabelle \\\"Account\\\" wurde erstellt.\");\r\n\t\t\tbankAccountExists = false;\r\n\t\t\t// Das Bank-Konto wird angelegt\r\n\t\t\taddAccount(\"0000\", \"BANK\", BigDecimal.ZERO);\r\n\t\t\tbankAccountExists = true;\r\n\t\t}\r\n\t\tconnection.close();\r\n\t}", "public CreateRoleResponse createRole(String name, Map<String, String> options) throws GPUdbException {\n CreateRoleRequest actualRequest_ = new CreateRoleRequest(name, options);\n CreateRoleResponse actualResponse_ = new CreateRoleResponse();\n submitRequest(\"/create/role\", actualRequest_, actualResponse_, false);\n return actualResponse_;\n }" ]
[ "0.7058806", "0.66056204", "0.6069788", "0.596008", "0.58126265", "0.5732703", "0.57211643", "0.5665538", "0.5648487", "0.5615635", "0.55145735", "0.54855394", "0.54620343", "0.5400088", "0.5390452", "0.53819865", "0.53775537", "0.53465724", "0.529608", "0.52748907", "0.5274423", "0.52708316", "0.5261739", "0.5241517", "0.5237199", "0.5236054", "0.5216489", "0.52064884", "0.5185651", "0.51651144", "0.5114489", "0.5101206", "0.5074441", "0.50503796", "0.50084335", "0.49991843", "0.49945003", "0.4985592", "0.4972184", "0.49709943", "0.495951", "0.4956578", "0.49427137", "0.4930313", "0.49287075", "0.4926065", "0.49039355", "0.49039355", "0.4893161", "0.48883018", "0.48823208", "0.48815927", "0.4878858", "0.48697895", "0.48683578", "0.4865925", "0.4858512", "0.4850754", "0.48497745", "0.4849527", "0.48474854", "0.48438722", "0.48326412", "0.48237073", "0.48072943", "0.48017713", "0.47974557", "0.47958258", "0.4783842", "0.4778638", "0.47681826", "0.47634545", "0.47588184", "0.47488123", "0.4741792", "0.4731977", "0.4721089", "0.47111624", "0.47027978", "0.46974626", "0.46965554", "0.46913123", "0.46867278", "0.46860236", "0.46856523", "0.46838185", "0.46784925", "0.467811", "0.46675965", "0.4667122", "0.4664477", "0.46601528", "0.46592206", "0.4658107", "0.4657278", "0.4653302", "0.4640237", "0.46362048", "0.46330553", "0.4630898" ]
0.76440316
0
Method for checking whether or not the given table (which reflects the current event table instance) exists.
private boolean tableExists(String tableName) { Connection conn = null; PreparedStatement stmt = null; String query = null; ResultSet rs = null; try { conn = getConnection(); query = queryManager.getQuery(conn, QueryManager.TABLE_CHECK_QUERY); stmt = conn.prepareStatement(query.replace(QueryManager.TABLE_NAME_PLACEHOLDER, tableName)); rs = stmt.executeQuery(); return true; } catch (SQLException e) { log.debug("Table '{}' assumed to not exist since its existence check query {} resulted " + "in exception {}.", tableName, query, e.getMessage()); return false; } finally { closeConnection(conn, stmt, rs); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean tableExists(String pTableName)\n {\n \t// Busca en el esquema la existencia de la tabla.\n \treturn true;\n }", "private boolean tableExists(String table) throws SQLException {\n if (HAVE_DB) {\n Connection con = DriverManager.getConnection(dbConnection, dbUser, dbPass);\n Statement stmt = con.createStatement();\n ResultSet rs;\n \n if (dbType.equals(\"mysql\")) {\n rs = stmt.executeQuery(\"SHOW TABLES\");\n }\n else {\n rs = stmt.executeQuery(\"select * from pg_tables\");\n }\n while(rs.next()) {\n String result = rs.getString(1);\n if (result.equals(table)) {\n return true;\n }\n }\n rs.close();\n stmt.close();\n con.close();\n return false;\n }\n else {\n return true;\n }\n }", "public boolean table_exists(String table_name);", "private boolean tableExists(String pTableName) {\r\n\t\tboolean returnedValue = false;\r\n\t\t\r\n\t\tif (getDatabse() != null && getDatabse().isOpen()) {\r\n\t\t\tCursor cursor = getDatabse().rawQuery(\"SELECT DISTINCT tbl_name FROM sqlite_master WHERE tbl_name = ?\", new String[] { pTableName });\r\n\t\t\tif (cursor != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcursor.moveToLast();\r\n\t\t\t\t\tcursor.moveToFirst();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (cursor.getCount() > 0) {\r\n\t\t\t\t\t\treturnedValue = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tcursor.close();\r\n\t\t\t\t\tcursor = null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn returnedValue;\r\n\t}", "private boolean isTableExist(String tableName){\n\t\tboolean isExist = false;\n\n\t\tCursor cursor = null;\n\t\ttry {\n\t\t\tcursor = dbReadable.rawQuery(\"select count(*) from \"+ tableName, null);\n\t\t\tisExist = true;\n\t\t} catch (Exception e) {\n\t\t\tisExist = false;\n\t\t} finally {\n\t\t\tif(cursor != null)\n\t\t\t\tcursor.close();\n\t\t}\n\t\t\n\t\treturn isExist;\n\t}", "private boolean isTableExists(SQLiteDatabase db, String tableName) {\n boolean ret = false;\n String query = new StringBuilder(\"SELECT name FROM sqlite_master WHERE type='table' AND name='\")\n .append(tableName)\n .append(\"';\")\n .toString();\n JSArray resQuery = this.selectSQL(db, query, new ArrayList<String>());\n if (resQuery.length() > 0) ret = true;\n return ret;\n }", "private static boolean tableExists(Connection con, String table)\n {\n int numRows = 0;\n try\n {\n DatabaseMetaData dbmd = con.getMetaData();\n ResultSet rs = dbmd.getTables(null, null, table.toUpperCase(), null);\n while (rs.next())\n {\n ++numRows;\n }\n }\n catch (SQLException e)\n {\n String theError = e.getSQLState();\n System.out.println(\"Can't query DB metadata: \" + theError);\n System.exit(1);\n }\n return numRows > 0;\n }", "protected boolean hasTable(String tableName) {\n\t\tboolean tableNameAlreadyExists = false;\n\t\ttry {\n\t\t\tDatabaseMetaData dbm = conn.getMetaData();\n\t\t\t\n\t\t\tResultSet tableNameSet = dbm.getTables(null, null, \"Persons\", null);\n\t\t\tif (tableNameSet.next()) {\n\t\t\t\ttableNameAlreadyExists = true;\n\t\t\t}\n\t\t\ttableNameSet.close();\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"ERROR in addTable(String tableName)...\");\n\t\t}\n\t\treturn tableNameAlreadyExists;\n\t}", "private boolean tableAlreadyExists(SQLException e) {\r\n boolean exists;\r\n if(e.getSQLState().equals(\"X0Y32\")) {\r\n exists = true;\r\n } else {\r\n exists = false;\r\n }\r\n return exists;\r\n }", "@Override\n public boolean doesTableExist(String table_name) {\n\n // silently return if connection is closed\n if (!is_open) {\n return false;\n }\n\n // loop through list of tables in metadata and check for table name\n try {\n DatabaseMetaData md = connection.getMetaData();\n\n // retrieve all of the tables from the connection edu.wpi.cs3733d18.teamS.database\n ResultSet rs = md.getTables(null, null, \"%\", null);\n\n while (rs.next()) {\n // table name is the third entry in the table object\n String extractedName = rs.getString(3).toLowerCase();\n\n if (extractedName.equals(table_name.toLowerCase())) {\n //System.out.println(\"Table with name \" + tableName + \" found!\");\n return true;\n }\n }\n } catch (SQLException e) {\n System.out.println(\"Table could not be found.\");\n e.printStackTrace();\n }\n\n // default return\n return false;\n\n }", "abstract boolean tableExist() throws SQLException;", "boolean tableExists(ObjectPath tablePath) throws CatalogException;", "public static boolean existTable(String tableName) throws IOException {\n\t\tHBaseAdmin admin = new HBaseAdmin(Conf);\n\t\treturn admin.tableExists(tableName);\n\t}", "private boolean studentTableExists() throws SQLException{\n\n String checkTablePresentQuery = \"SHOW TABLES LIKE '\" + STUDENT_TABLE_NAME + \"'\"; //Can query the database schema\n ResultSet tablesRS = ConnectDB.statement.executeQuery(checkTablePresentQuery);\n return (tablesRS.next());\n }", "public boolean tableExists()\n throws DBException\n {\n DBConnection dbc = null;\n Statement stmt = null;\n ResultSet rs = null;\n boolean innodb = this.isMySQLInnoDB();\n try {\n int provID = DBProvider.getProvider().getID();\n\n /* connection */\n dbc = DBConnection.getDBConnection_read();\n\n /* check for SQLServer */\n if (provID == DBProvider.DB_SQLSERVER) {\n // - SQLServer \"COUNT(*)\"\n // - expect SQLException if does not exist\n boolean CUSTOM_SQLSERVER_EXISTS = false;\n String existsSel;\n if (CUSTOM_SQLSERVER_EXISTS) {\n // -- A full \"COUNT(*)\" runs slow on SQL Server.\n // -- \"SELECT COUNT(*) FROM (SELECT TOP 1 * FROM MSeventdata ) t\"\n StringBuffer sb = new StringBuffer();\n sb.append(\"SELECT COUNT(*) FROM (SELECT TOP 1 * FROM \");\n sb.append(this.getTranslatedTableName());\n sb.append(\" ) t;\"); // <-- is trailing \";\" required??\n existsSel = sb.toString();\n } else {\n // -- \"SELECT COUNT(*) FROM table\" \n DBSelect<gDBR> dsel = new DBSelect<gDBR>(this); \n dsel.setSelectedFields(DBProvider.FLD_COUNT()); // tableExists: non MySQL/InnoDB\n existsSel = dsel.toString();\n }\n stmt = dbc.execute(existsSel); // may throw DBException, SQLException\n return true; // assume exists if no SQLException\n }\n\n /* check for non-MySQL */\n if (provID != DBProvider.DB_MYSQL) {\n // -- non-MySQL \"COUNT(*)\" \n // - \"SELECT COUNT(*) FROM table\"\n // - expect SQLException if does not exist\n DBSelect<gDBR> dsel = new DBSelect<gDBR>(this); \n dsel.setSelectedFields(DBProvider.FLD_COUNT()); // tableExists: non MySQL/InnoDB\n stmt = dbc.execute(dsel.toString()); // may throw DBException, SQLException\n return true; // assume exists if no SQLException\n }\n\n // ---------------------------------------------\n // MySQL below\n // SELECT COUNT(*) FROM (SELECT * FROM EventData LIMIT 1) EventData;\n\n /* InnoDB? */\n if (innodb) {\n // do not use \"COUNT(*)\" for table existance on InnoDB\n // \"SHOW COLUMNS FROM table\"\n //Print.logInfo(\"Using 'show columns' method for table existence ... \" + this.getTranslatedTableName());\n String xtableName = this.getTranslatedTableName();\n String sqlExists = \"SHOW COLUMNS FROM \" + this.getTranslatedTableName();\n stmt = dbc.execute(sqlExists); // may throw DBException, SQLException\n //rs = stmt.getResultSet();\n return true; // assume exists if no SQLException\n }\n\n /* get table existence */\n if (DBFactory.mysqlTableExistsUseSelectCount()) {\n /* VERY slow on Windows or InnoDB */ \n // \"SELECT COUNT(*) FROM table\"\n DBSelect<gDBR> dsel = new DBSelect<gDBR>(this); \n dsel.setSelectedFields(DBProvider.FLD_COUNT()); // tableExists: non MySQL/InnoDB\n stmt = dbc.execute(dsel.toString()); // may throw DBException, SQLException\n //rs = stmt.getResultSet();\n return true; // assume exists if no SQLException\n }\n\n /* alternate method for MySQL */ \n // \"SHOW COLUMNS FROM table\"\n //Print.logInfo(\"Using 'show columns' method for table existence ... \" + this.getTranslatedTableName());\n String xtableName = this.getTranslatedTableName();\n String sqlExists = \"SHOW COLUMNS FROM \" + this.getTranslatedTableName();\n stmt = dbc.execute(sqlExists); // may throw DBException, SQLException\n //rs = stmt.getResultSet();\n return true; // assume exists if no SQLException\n\n } catch (SQLException sqe) {\n\n String sqlMsg = sqe.getMessage();\n int errCode = sqe.getErrorCode();\n if (errCode == SQLERR_TABLE_NONEXIST) { // MySQL: ?\n return false;\n } else\n if (errCode == SQLERR_UNKNOWN_DATABASE) { // MySQL: ?\n String dbName = DBProvider.getDBName();\n Print.logError(\"Database does not exist '\" + dbName + \"'\"); // thus, table does not exist\n return false;\n } else\n if (errCode == MSQL_ERR_INVALID_OBJECT) { // SQLServer: :\n return false;\n } else\n if (sqlMsg.indexOf(\"does not exist\") >= 0) { // PostgreSQL: ?\n return false;\n } else {\n String dbName = DBProvider.getDBName();\n throw new DBException(\"Table Existance '\" + dbName + \"'\", sqe);\n }\n\n } finally {\n if (rs != null) { try { rs.close(); } catch (Throwable t) {} }\n if (stmt != null) { try { stmt.close(); } catch (Throwable t) {} }\n DBConnection.release(dbc);\n }\n\n }", "public static boolean tableIsExist(String name) throws Exception {\n init();\n TableName tableName = TableName.valueOf(name);\n boolean flag = admin.tableExists(tableName);\n close();\n return flag;\n }", "public boolean existsMain(String table_name) {\n Cursor c = db.rawQuery(\"SELECT * FROM \" + MAIN_TABLE_NAME + \" WHERE \" + KEY_TABLE_NAME_MAIN + \" = '\" + table_name + \"'\", null);\n boolean exist = (c.getCount() > 0);\n c.close();\n return exist;\n }", "public static boolean \n\ttableExists\n\t(Activity actv, String dbName, String tableName) {\n\t\t// The table exists?\n\t\tDBUtils dbu = new DBUtils(actv, dbName);\n\t\t\n\t\t//\n\t\tSQLiteDatabase rdb = dbu.getReadableDatabase();\n\n\t\tCursor cursor = rdb.rawQuery(\n\t\t\t\t\"SELECT * FROM sqlite_master WHERE tbl_name = '\" + \n\t\t\t\t\t\ttableName + \"'\", null);\n\t\t\n\t\tactv.startManagingCursor(cursor);\n//\t\tactv.startManagingCursor(cursor);\n\t\t\n\t\t// Judge\n\t\tif (cursor.getCount() > 0) {\n\t\t\n\t\t\trdb.close();\n\t\t\treturn true;\n\t\t\t\n\t\t} else {//if (cursor.getCount() > 0)\n\t\t\t\n\t\t\trdb.close();\n\t\t\treturn false;\n\t\t\t\n\t\t}//if (cursor.getCount() > 0)\n\t\t\n\t}", "public boolean checkEmptyTable(String table) {\n // Select query\n String selectQuery = \"SELECT count(*) FROM \" + table;\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n if (cursor != null) { cursor.moveToFirst(); }\n\n int countRows = cursor.getInt(0);\n\n return !(countRows > 0);\n }", "private boolean isTableInDb() throws SQLException\n {\n final String sqlQuery = \"SELECT name FROM sqlite_master WHERE type='table' AND name='\" + TABLE_NAME +\n \"'\";\n\n try (\n final PreparedStatement statement = database.connection().prepareStatement(sqlQuery);\n final ResultSet resultSet = statement.executeQuery();\n )\n {\n if (!resultSet.next())\n return false;\n\n // read table name\n final String tableName = resultSet.getString(1);\n if (resultSet.wasNull() || !tableName.equals(TABLE_NAME))\n return false;\n }\n\n return true;\n }", "private boolean distBeltExists(){ \n String table = \"DISTBELT\";\n \n try {\n stmt = conn.createStatement();\n rs = stmt.executeQuery(\"SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'PUBLIC'\");\n \n while(rs.next()){\n if(table.equalsIgnoreCase(rs.getString(\"TABLE_NAME\"))){\n return true;\n }\n }\n \n stmt.close();\n rs.close();\n \n } catch (SQLException ex) {\n Logger.getLogger(DBHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n return false; \n }", "public boolean isTableExists(String tableName, boolean openDb) {\n if (openDb)\n {\n if (db == null || !db.isOpen())\n {\n\n }\n\n if (!db.isReadOnly()) {\n\n\n }\n }\n\n Cursor cursor = db.rawQuery(\"select DISTINCT tbl_name from sqlite_master where tbl_name = '\" + tableName + \"'\", null);\n if (cursor != null) {\n if (cursor.getCount() > 0) {\n cursor.close();\n return true;\n }\n cursor.close();\n }\n return false;\n }", "public boolean isSetTableName() {\n return this.tableName != null;\n }", "public void checkIfHistoryTableExists() {\r\n\t\tWebElement element = getDriver().findElement(\r\n\t\t\t\tBy.cssSelector(\".lfr-search-container\"));\r\n\t\tboolean isDisplayed = false;\r\n\r\n\t\tif (element.isDisplayed()) {\r\n\t\t\tisDisplayed = true;\r\n\t\t}\r\n\t\tAssert.assertTrue(\"Table is not displayed\", isDisplayed);\r\n\t}", "public boolean isSetTableName() {\r\n return this.tableName != null;\r\n }", "public boolean isSetTableName() {\r\n return this.tableName != null;\r\n }", "public boolean isSetTableName() {\r\n return this.tableName != null;\r\n }", "public boolean isSetTableName() {\r\n return this.tableName != null;\r\n }", "public boolean isSetTableName() {\r\n return this.tableName != null;\r\n }", "public boolean tableHasRecords(String tableName) {\n\n int count = 0;\n\n try{\n PreparedStatement query = conn.prepareStatement(\"SELECT COUNT(id) AS 'count' FROM \" + tableName + \";\");\n ResultSet results = query.executeQuery();\n\n while (results.next()){\n count = results.getInt(\"count\");\n } \n\n if(count > 0){\n return true;\n }\n\n } catch (SQLException e){\n e.printStackTrace();\n }\n\n return false;\n }", "private boolean matchesTable (List tableNames, ColumnElement column)\n\t{\t\n\t\treturn ((column == null) ? true : tableNames.contains(\n\t\t\tcolumn.getDeclaringTable().getName().getName()));\n\t}", "private boolean isTableNameSelected(final String tableName) {\n \n final DataSource tableDataSource = DataSourceFactory.createDataSource();\n tableDataSource.addTable(ProjectUpdateWizardConstants.AFM_FLDS_TRANS);\n tableDataSource.addField(\"autonumbered_id\");\n tableDataSource.addRestriction(Restrictions.in(ProjectUpdateWizardConstants.AFM_FLDS_TRANS,\n CHANGE_TYPE, DifferenceMessage.TBL_IS_NEW.name()));\n tableDataSource.addRestriction(Restrictions.eq(ProjectUpdateWizardConstants.AFM_FLDS_TRANS,\n CHOSEN_ACTION, Actions.APPLY_CHANGE.getMessage()));\n tableDataSource.addRestriction(Restrictions.eq(ProjectUpdateWizardConstants.AFM_FLDS_TRANS,\n TABLE_NAME, tableName));\n\n return tableDataSource.getRecords().size() > 0;\n }", "public boolean doesTableExist(Connection connection) throws SQLException {\n\tboolean bTableExists = false;\n \n\t// check the meta data of the connection\n\tDatabaseMetaData dmd = connection.getMetaData();\n\tResultSet rs = dmd.getTables (null, null, \"CREDIT\", null);\n\twhile (rs.next()){\n\t bTableExists = true;\n\t}\n\trs.close(); // close the result set\n\treturn bTableExists; \n }", "public static boolean tableExists(Connection connection, String tableName) throws SQLException {\n\t\tDatabaseMetaData databaseMetaData = connection.getMetaData();\n\t\tResultSet resultSet = null;\n\t\tString rsTableName = null;\n\n\t\ttry {\n\t\t\tresultSet = databaseMetaData.getTables(connection.getCatalog(), \"%\", \"%\", null);\n\t\t\twhile (resultSet.next()) {\n\t\t\t\trsTableName = resultSet.getString(\"TABLE_NAME\");\n\t\t\t\tif (rsTableName.equalsIgnoreCase(tableName)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t} finally {\n\t\t\tresultSet.close();\n\t\t}\n\n\t\treturn false;\n\t}", "private boolean checkInputTableName(AccessInputMeta meta){\n if (meta.getTableName()==null || meta.getTableName().length()<1)\n {\n MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR );\n mb.setMessage(BaseMessages.getString(PKG, \"AccessInputDialog.TableMissing.DialogMessage\"));\n mb.setText(BaseMessages.getString(PKG, \"System.Dialog.Error.Title\"));\n mb.open(); \n\n return false;\n }\n else\n {\n \treturn true;\n }\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\tif (entityType2tableName.isEmpty())\n\t\t\treturn true;\n\t\t\n\t\t// the hard way \n\t\ttry {\n\t\t\tStatement st = connection.createStatement(\n\t\t\t\t\tResultSet.TYPE_SCROLL_INSENSITIVE,\n\t\t ResultSet.CONCUR_READ_ONLY);\n\t\t\t\n\t\t\tfor (String tableName: entityType2tableName.values()) {\n\t\t\t\t//ResultSet set = st.executeQuery(\"SELECT * FROM \"+tableName+\";\");\n\t\t\t\t\n\t\t\t\tResultSet set = st.executeQuery(\"SELECT * FROM \"+tableName+\" LIMIT 1\");\n\t\t\t\t\n\t\t\t\tif (!set.next())\n\t\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t}\n\t\t} catch (SQLException e1) {\n\t\t\te1.printStackTrace();\n\t\t\tthrow new RuntimeException(\"Error while checking if the table is empty\",e1);\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public HasTableResponse hasTable(HasTableRequest request) throws GPUdbException {\n HasTableResponse actualResponse_ = new HasTableResponse();\n submitRequest(\"/has/table\", request, actualResponse_, false);\n return actualResponse_;\n }", "private boolean tableExistsAndIsOK() throws SQLException {\n trace(\"tableExistsAndIsOK\");\n boolean result;\n Statement stmt = _connection.createStatement();\n try {\n stmt.setMaxRows(1);\n String command = \"SELECT \" + LONG_VALUE + \" FROM \" + _tableName;\n ResultSet rs = stmt.executeQuery(command);\n rs.close();\n result = true;\n } catch (SQLException e) {\n result = false;\n }\n stmt.close();\n return result;\n }", "public static boolean tableExists(Properties loginProperties, String redshiftURL, String tableName) {\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(redshiftURL, loginProperties);\n\n Statement stmt = conn.createStatement();\n stmt.executeQuery(\"SELECT * FROM \" + tableName + \" LIMIT 1;\");\n stmt.close();\n conn.close();\n return true;\n } catch (SQLException e) {\n LOG.error(e);\n try {\n conn.close();\n } catch (Exception e1) {\n }\n return false;\n }\n }", "private boolean exists() {\n try {\n DatabaseMetaData md = conn.getMetaData();\n ResultSet rs = md.getTables(null, null, \"settings\", null);\n return rs.next();\n } catch (SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n System.exit(0);\n return false;\n }\n }", "public boolean checkMasterdataTables(){\n boolean cat = tableExists(\"select c from Category c\");\n boolean quest = tableExists(\"select t from Question t\");\n\n if (!cat){\n System.out.println(\"Tabelle 'Category' exisitiert nicht!\");\n }\n\n if (!quest){\n System.out.println(\"Tabelle 'Question' exisitiert nicht!\");\n }\n\n if (cat && quest){\n // all tables exist\n return true;\n\n } else {\n // one or more tables dont exist\n return false;\n }\n }", "public boolean supportsTableCheck() {\n \t\treturn true;\n \t}", "@Override\n\tpublic String ifTable(String table) {\n\t\treturn \"select 1 from user_tables where table_name ='\"+table+\"'\";\n\t}", "public boolean checkRecordsExist(String tableName, String columnName, String identifier) {\n Cursor cursor = null;\n String[] col = new String[]{columnName};\n String[] id = new String[]{identifier};\n switch (tableName) {\n case SchemaConstants.MEETINGS_TABLE:\n cursor = getSelectionFromTable(tableName, col, SchemaConstants.WHERE_MEETING_ID, id);\n break;\n case SchemaConstants.RACES_TABLE:\n cursor = getSelectionFromTable(tableName, col, SchemaConstants.WHERE_RACE_MEETING_ID, id);\n break;\n case SchemaConstants.RUNNERS_TABLE:\n // TODO - where clause for select on RUNNERS table.\n break;\n }\n return ((cursor != null) && (cursor.getCount() > 0));\n }", "public boolean isSetWholeTbl()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(WHOLETBL$2) != 0;\n }\n }", "private boolean checkTableExists(String plate){\n //there is no need to close or start connection\n //function is only used in the context of an already created connection\n \n try {\n rs = stmt.executeQuery(\"SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'PUBLIC'\");\n \n while(rs.next()){\n if(plate.equalsIgnoreCase(rs.getString(\"TABLE_NAME\"))){\n return true;\n }\n }\n \n rs.close();\n \n } catch (SQLException ex) {\n Logger.getLogger(DBHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n return false;\n }", "private boolean filterTable(Map.Entry<CorfuStoreMetadata.TableName,\n CorfuRecord<CorfuStoreMetadata.TableDescriptors, CorfuStoreMetadata.TableMetadata>> table) {\n return (namespace == null || table.getKey().getNamespace().equals(namespace)) &&\n (!taggedTables || table.getValue().getMetadata().getTableOptions().getRequiresBackupSupport());\n }", "public boolean isOnTheTable(int x, int y) {\r\n if (table == null) {\r\n return false;\r\n }\r\n return isOnTableX(x) && isOnTableY(y);\r\n }", "private boolean isTableEmpty(Uri tableUri) {\n\t\tif (null == mContext) {\n\t\t\tLogUtils.e(TAG, \"mContext object is null in isTableEmpty method \");\n\t\t\treturn false;\n\t\t}\n\t\tContentResolver contentResolver = mContext.getContentResolver();\n\t\tif (null == contentResolver) {\n\t\t\tLogUtils.e(TAG,\n\t\t\t\t\t\"contentResolver object is null in isTableEmpty method \");\n\t\t\treturn false;\n\t\t}\n\t\tCursor mCursorObj = contentResolver.query(tableUri, null, null, null,\n\t\t\t\tnull);\n\t\tif (null != mCursorObj && mCursorObj.getCount() == 0) {\n\t\t\t// zero rows.\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isTableField()\n {\n boolean ret = false;\n try {\n ret = getField().getCollection() instanceof Table;\n } catch (final CacheReloadException e) {\n LOG.error(\"CacheReloadException\", e);\n }\n return ret;\n }", "public boolean isSetTableType() {\n return this.tableType != null;\n }", "public HasTableResponse hasTable(String tableName, Map<String, String> options) throws GPUdbException {\n HasTableRequest actualRequest_ = new HasTableRequest(tableName, options);\n HasTableResponse actualResponse_ = new HasTableResponse();\n submitRequest(\"/has/table\", actualRequest_, actualResponse_, false);\n return actualResponse_;\n }", "private static boolean exists(Reservation res, Table<Reservation> rTable){\n\t\tfor(int r = 0; r < rTable.size(); r++){\n\t\t\tif( (Transaction.sameDestination(rTable.get(r), res)) || (rTable.get(r).seatId() == res.seatId()) ){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\treturn false;\n\t}", "public boolean lookup(SymbolTableEntry entry) {\n return table.containsKey(entry.getName());\n }", "public static void checkTableForReg(Connection con, String tableName, String createTableQuery)\n throws SQLException\n {\n \tSystem.out.println(\"Checking for table \"+tableName);\n if(con.isValid(0))\n {\n Statement stmt = con.createStatement();\n DatabaseMetaData md = con.getMetaData();\n ResultSet rs = md.getTables(null, null, \"%\", null);\n if( !rs.next() )\n {\n \tSystem.out.println(\"Creating Table --> +\"+tableName);\n stmt.executeUpdate(createTableQuery);\n }\n else\n {\n do\n {\n if( tableName.equals(rs.getString(3)) )\n {\n \tSystem.out.println(\"Table \"+tableName+\" already present\");\n stmt.close();\n return;\n }\n }while (rs.next());\n System.out.println(\"Creating Table --> +\"+tableName);\n stmt.executeUpdate(createTableQuery);\n }\n stmt.close();\n System.out.println(\"Checking \"+tableName+\" done!!\");\n }\n }", "private static boolean checkTables(final SQLParser parser, final Map<String, TableData> catalog)\n\t{\n\t\tfinal Map<String, String> tables = parser.getFROM();\n\n\t\tfor(final String table : tables.values())\n\t\t{\n\t\t\tif(!catalog.containsKey(table))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Table \\\"\" + table + \"\\\" does not exist.\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "private boolean validTable(\n final Table table,\n final String tableName,\n final String databaseName,\n final List<ColumnDataType> columnTypes) {\n return table.getName().equals(tableName)\n && table.getDatabase().equals(databaseName)\n && columnsMatch(table, columnTypes);\n }", "private boolean hasTableContainerLoaded() {\n return delegationDefaultCreationScreen.tableContainer.isDisplayed();\n }", "public boolean isEventExist(String eid) throws SQLException {\n\t\tboolean exist = false;\n\t\tSQLiteDatabase db = tableHelper.getReadableDatabase();\n\t\ttry {\n\t\t\tCursor cursor = db.query(SQLTablesHelper.MY_EVENT_TABLE_NAME, columns,\n\t\t\t\t\tSQLTablesHelper.MY_EVENT_EID + \" =?\",\n\t\t\t\t\tnew String[] {eid}, \n\t\t\t\t\tnull, null, null);\n\t\t\tcursor.moveToFirst();\n\t\t\tif (!cursor.isAfterLast()) exist = true;\n\t\t\tcursor.close();\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t\treturn exist;\n\t}", "boolean isUsingTable(UUID u) {\n return usingTables.getOrDefault(u, false);\n }", "@Override\n public boolean containsKey(Object key) {\n int index = key.hashCode() % table.length;\n if (index < 0) {\n index += table.length;\n }\n if (table[index] == null) {\n return false;\n }\n for (Entry<K,V> entry : table[index]) {\n if (entry.getKey().equals(key)) {\n return true;\n }\n }\n return false;\n }", "public boolean updateInformationSchemaTable(){\n\t\tSchema currentSchema = Schema.getSchemaInstance();\n\t\tString currentSchemaName = currentSchema.getCurrentSchema();\n\t\tboolean isFound = false;\n\t\ttry {\n\t\t\tRandomAccessFile tablesTableFile = new RandomAccessFile(\"information_schema.table.tbl\", \"rw\");\n\n\t\t\t//Searching to see if the information schema is present or not\n\t\t\twhile(tablesTableFile.getFilePointer() < tablesTableFile.length()){\n\t\t\t\tString readSchemaName = \"\";\n\t\t\t\tbyte varcharLength = tablesTableFile.readByte();\n\t\t\t\tfor(int j = 0; j < varcharLength; j++)\n\t\t\t\t\treadSchemaName += (char)tablesTableFile.readByte();\n\n\t\t\t\tif(readSchemaName.equals(currentSchemaName)){\n\t\t\t\t\tString readTableName = \"\";\n\t\t\t\t\tbyte varcharTableLength = tablesTableFile.readByte();\n\t\t\t\t\tfor(int j = 0; j < varcharTableLength; j++)\n\t\t\t\t\t\treadTableName += (char)tablesTableFile.readByte();\n\n\t\t\t\t\tif(readTableName.equals(tableName)){\n\t\t\t\t\t\tisFound = true;\n\t\t\t\t\t\tSystem.out.println(\"Table '\" + tableName + \"' already exits...\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\ttablesTableFile.readLong();\n\t\t\t\t} else {\n\t\t\t\t\tbyte traverseLength = tablesTableFile.readByte();\n\t\t\t\t\tfor(int j = 0; j < traverseLength; j++)\n\t\t\t\t\t\ttablesTableFile.readByte();\n\t\t\t\t\ttablesTableFile.readLong();\n\t\t\t\t}\t\n\t\t\t}\n\n\t\t\tif(!isFound){\n\t\t\t\t//Traversing to the end of file\n\t\t\t\ttablesTableFile.seek(tablesTableFile.length());\n\t\t\t\ttablesTableFile.writeByte(currentSchemaName.length()); // TABLE_SCHEMA\n\t\t\t\ttablesTableFile.writeBytes(currentSchemaName);\n\t\t\t\ttablesTableFile.writeByte(tableName.length()); // TABLE_NAME\n\t\t\t\ttablesTableFile.writeBytes(tableName);\n\t\t\t\ttablesTableFile.writeLong(0); // TABLE_ROWS\n\t\t\t}\n\n\t\t\ttablesTableFile.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\n\t\treturn isFound;\n\t}", "public boolean isSetHbaseTable() {\n return this.hbaseTable != null;\n }", "public boolean columExists(String pTableName, String pColumnName)\n {\n \t// Busca en la tabla la columna deseada.\n \treturn true;\n }", "public static boolean checkTableForLogIn( Connection con, String tableName )\n \t\tthrows SQLException\n {\n if(con.isValid(0))\n {\n DatabaseMetaData md = con.getMetaData();\n ResultSet rs = md.getTables(null, null, \"%\", null);\n if( !rs.next() )\n {\n return false;\n }\n else\n {\n do\n {\n if( tableName.equals(rs.getString(3)) )\n {\n return true;\n }\n }while (rs.next());\n }\n }\n return false;\n }", "public boolean doesGroupsTableExist() {\r\n\r\n\t\t// Variable Declarations\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement stmt = null;\r\n\r\n\t\ttry {\r\n\t\t\t// Connect to Database\r\n\t\t\tClass.forName(JDBC_DRIVER);\r\n\t\t\tconn = DriverManager.getConnection(DATABASE, USER, PASS);\r\n\r\n\t\t\t// Create SQL Statement\r\n\t\t\tString sql = \"SELECT name FROM sqlite_master\";\r\n\t\t\tstmt = conn.prepareStatement(sql);\r\n\r\n\t\t\t// Get ResultSet by Column Name\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tString tName = rs.getString(\"name\");\r\n\t\t\t\tif (tName.equals(\"groups\")) {\r\n\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException se) {\r\n\t\t\t// Handle Errors for JDBC\r\n\t\t\tse.printStackTrace();\r\n\t\t} catch (Exception ex) {\r\n\t\t\t// Handle Errors for Class\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t// Close Resources\r\n\t\t\ttry {\r\n\t\t\t\tif (stmt != null)\r\n\t\t\t\t\tstmt.close();\r\n\t\t\t} catch (SQLException se2) {\r\n\t\t\t} // Nothing to do\r\n\r\n\t\t\ttry {\r\n\t\t\t\tif (conn != null)\r\n\t\t\t\t\tconn.close();\r\n\t\t\t} catch (SQLException se) {\r\n\t\t\t\tse.printStackTrace();\r\n\t\t\t} // End Finally Try/Catch\r\n\t\t} // End Try/Catch\r\n\r\n\t\treturn false;\r\n\t}", "public boolean isNewPartDbTable(String tbName) {\n return partInfoCtxCache.containsKey(tbName);\n }", "private void validateInternalTable(ConnectorTableMetadata meta)\n {\n String table = AccumuloTable.getFullTableName(meta.getTable());\n String indexTable = Indexer.getIndexTableName(meta.getTable());\n String metricsTable = Indexer.getMetricsTableName(meta.getTable());\n\n if (conn.tableOperations().exists(table)) {\n throw new PrestoException(ACCUMULO_TABLE_EXISTS,\n \"Cannot create internal table when an Accumulo table already exists\");\n }\n\n if (AccumuloTableProperties.getIndexColumns(meta.getProperties()).size() > 0) {\n if (conn.tableOperations().exists(indexTable) || conn.tableOperations().exists(metricsTable)) {\n throw new PrestoException(ACCUMULO_TABLE_EXISTS,\n \"Internal table is indexed, but the index table and/or index metrics table(s) already exist\");\n }\n }\n }", "public boolean tableRequired()\n {\n return true;\n }", "public boolean isSetPktable_name() {\n return this.pktable_name != null;\n }", "public boolean exists()\n\t{\n\n\t\treturn true;\n\t}", "public boolean isTableNameInitialized() {\n return tableName_is_initialized; \n }", "public boolean isSetDataSourceTable() {\n return this.dataSourceTable != null;\n }", "public boolean isEmptyTable() {\r\n return emptyTable;\r\n }", "public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;", "@Override\n\tpublic boolean exists() {\n\t\treturn false;\n\t}", "public void IsInUse() {\n\t\tSystem.out.println(\"Table being cleaned, cannot be used.\");\n\t}", "@Override\r\n\tpublic boolean exists() {\n\t\treturn false;\r\n\t}", "public boolean hasParentTable(String utableName)\n {\n return this.parentTables.contains(utableName);\n }", "public boolean checkTable(int layerId)\n\n {\n boolean isAvailable = false;\n try {\n\n //This statement will fetch all tables available in database.\n\n ResultSet rs1 = conn.getMetaData().getTables(null, null, null, null);\n while (rs1.next()) {\n\n String ld = rs1.getString(\"TABLE_NAME\");\n\n //This statement will extract digits from table names.\n if(!(ld.equals(\"PurgeTable\")||ld.equals(\"UserToCertMap\"))){\n String intValue = ld.replaceAll(\"[^0-9]\", \"\");\n int v;\n if (intValue != null) {\n v = Integer.parseInt(intValue);\n if (v == layerId) {\n isAvailable = true;\n }\n }\n }\n /* String intValue = ld.replaceAll(\"[^0-9]\", \"\");\n int v;\n if (intValue != null) {\n v = Integer.parseInt(intValue);\n if (v == layerId) {\n isAvailable = true;\n }\n }\n //This statement will compare layerid with digits of table names.*/\n\n }\n rs1.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return isAvailable;\n }", "public boolean lookup(String name){\n return table.containsKey(name);\n }", "public abstract boolean exists();", "boolean hasEvent();", "public boolean exists(MDSKey id) {\n Row row = table.get(id.getKey());\n if (row.isEmpty()) {\n return false;\n }\n\n byte[] value = row.get(COLUMN);\n return value != null;\n }", "public boolean isEmpty(String tableName) {\n\n boolean empty = true;\n\n SQLiteDatabase db = DatabaseManager.getInstance().open();\n\n String count = \"SELECT count(*) FROM \" + tableName;\n\n Cursor cursor = db.rawQuery(count, null);\n cursor.moveToFirst();\n\n if (cursor.getInt(0) > 0)\n empty = false;\n\n DatabaseManager.getInstance().close();\n\n return empty;\n }", "public boolean atCurrentLevel( String name )\r\n {\r\n return tables.peekFirst().get( name ) != null;\r\n }", "public boolean isEmptyTable() {\r\n synchronized (lockRoutingTable) {\r\n return this.routingEntries.isEmpty();\r\n }\r\n }", "public boolean exists() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry { return myData.record.exists(background.getClient()); }\n\t\tcatch (LDBException e) { setStatus(e); }\n\t\treturn false;\n\t}", "@Override\n public boolean isEmpty() throws DaoException {\n return isEmpty(TABLE_NAME);\n }", "public boolean isSetFktable_name() {\n return this.fktable_name != null;\n }", "public boolean isLookup() {\n \n if (!isLookupSet) {\n if (!isTable()) {\n isLookup = false;\n } else {\n isLookup = getSysTable().isLookup();\n }\n isLookupSet = true;\n }\n return isLookup;\n }", "private void checkTableRecord(final String value) {\n final DataSource dsValidatation = DataSourceFactory.createDataSource();\n dsValidatation.addTable(AFM_TBLS);\n dsValidatation.addField(TABLE_NAME);\n dsValidatation.addRestriction(Restrictions.eq(AFM_TBLS, TABLE_NAME, value));\n if (dsValidatation.getRecords().isEmpty() && !isTableNameSelected(value)) {\n this.requiredTablesNames.add(value);\n this.isDependencyNeeded = true;\n }\n }", "public static boolean exist(String table, String column, String item){\n Connection connection = dbConnection();\n\n try{\n String sql = \"SELECT * FROM \"+table;\n Statement stmt = connection.createStatement();\n ResultSet rs = stmt.executeQuery(sql);\n while (rs.next()){\n if(rs.getString(column).equals(item))\n return true;\n }\n\n stmt.close();\n rs.close();\n connection.close();\n }catch (Exception e){\n e.printStackTrace();\n }\n return false;\n }", "boolean presentInTable( String tableString ) {\n\t try {\n\t\tStatement statement = connection.createStatement( );\n\t\tResultSet resultSet = statement.executeQuery( \"SELECT vertalers_id FROM \" + tableString + \" WHERE vertalers_id = \" + id );\n\t\tif ( resultSet.next( ) ) {\n\t\t JOptionPane.showMessageDialog(EditVertalers.this,\n \"Tabel \" + tableString + \" heeft nog verwijzing naar '\" + string +\"'\",\n \"Edit vertalers error\",\n\t\t\t\t\t\t JOptionPane.ERROR_MESSAGE );\n\t\t return true;\n\t\t}\n\t } catch ( SQLException sqlException ) {\n JOptionPane.showMessageDialog(EditVertalers.this,\n \"SQL exception in select: \" + sqlException.getMessage(),\n \"EditVertalers SQL exception\",\n JOptionPane.ERROR_MESSAGE );\n\t\tlogger.severe( \"SQLException: \" + sqlException.getMessage( ) );\n\t\treturn true;\n\t }\n\t return false;\n\t}", "public boolean isSetTblBg()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(TBLBG$0) != 0;\n }\n }", "private boolean pathHasValidTableName(String parent, String tableName) {\n String tableDirectory = \"/\" + tableName + \"/\";\n return !Strings.isNullOrEmpty(tableName) && parent.contains(tableDirectory) && !parent.endsWith(\"/\" + tableName);\n }", "public static boolean checkOrCreateTable(jsqlite.Database db, String tableName){\n\t\t\n\t\tif (db != null){\n\t\t\t\n\t String query = \"SELECT name FROM sqlite_master WHERE type='table' AND name='\"+tableName+\"'\";\n\n\t boolean found = false;\n\t try {\n\t Stmt stmt = db.prepare(query);\n\t if( stmt.step() ) {\n\t String nomeStr = stmt.column_string(0);\n\t found = true;\n\t Log.v(\"SPATIALITE_UTILS\", \"Found table: \"+nomeStr);\n\t }\n\t stmt.close();\n\t } catch (Exception e) {\n\t Log.e(\"SPATIALITE_UTILS\", Log.getStackTraceString(e));\n\t return false;\n\t }\n\n\t\t\tif(found){\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\t// Table not found creating\n Log.v(\"SPATIALITE_UTILS\", \"Table \"+tableName+\" not found, creating..\");\n\t\t\t\t\n if(tableName.equalsIgnoreCase(\"punti_accumulo_data\")){\n\n \tString create_stmt = \"CREATE TABLE 'punti_accumulo_data' (\" +\n \t\t\t\"'PK_UID' INTEGER PRIMARY KEY AUTOINCREMENT, \" +\n \t\t\t\"'ORIGIN_ID' TEXT, \" +\n \t\t\t\"'DATA_SCHEDA' TEXT, \" +\n \t\t\t\"'DATA_AGG' TEXT, \" +\n \t\t\t\"'NOME_RILEVATORE' TEXT, \" +\n \t\t\t\"'COGNOME_RILEVATORE' TEXT, \" +\n \t\t\t\"'ENTE_RILEVATORE' TEXT, \" +\n \t\t\t\"'TIPOLOGIA_SEGNALAZIONE' TEXT, \" +\n \t\t\t\"'PROVENIENZA_SEGNALAZIONE' TEXT, \" +\n \t\t\t\"'CODICE_DISCARICA' TEXT, \" +\n \t\t\t\"'TIPOLOGIA_RIFIUTO' TEXT, \" +\n \t\t\t\"'COMUNE' TEXT, \" +\n \t\t\t\"'LOCALITA' TEXT, \" +\n \t\t\t\"'INDIRIZZO' TEXT, \" +\n \t\t\t\"'CIVICO' TEXT, \" +\n \t\t\t\"'PRESA_IN_CARICO' TEXT, \" +\n \t\t\t\"'EMAIL' TEXT, \" +\n \t\t\t\"'RIMOZIONE' TEXT, \" +\n \t\t\t\"'SEQUESTRO' TEXT, \" +\n \t\t\t\"'RESPONSABILE_ABBANDONO' TEXT, \" +\n \t\t\t\"'QUANTITA_PRESUNTA' NUMERIC);\";\n\n \tString add_geom_stmt = \"SELECT AddGeometryColumn('punti_accumulo_data', 'GEOMETRY', 4326, 'POINT', 'XY');\";\n \tString create_idx_stmt = \"SELECT CreateSpatialIndex('punti_accumulo_data', 'GEOMETRY');\";\n \n \t// TODO: check if all statements are complete\n \t\n \ttry { \t\n \t\tStmt stmt01 = db.prepare(create_stmt);\n\n\t\t\t\t\t\tif (stmt01.step()) {\n\t\t\t\t\t\t\t//TODO This will never happen, CREATE statements return empty results\n\t\t\t\t\t\t Log.v(\"UTILS\", \"Table Created\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// TODO: Check if created, fail otherwise\n\t\t\t\t\t\t\n\t\t\t\t\t\tstmt01 = db.prepare(add_geom_stmt);\n\t\t\t\t\t\tif (stmt01.step()) {\n\t\t\t\t\t\t Log.v(\"UTILS\", \"Geometry Column Added \"+stmt01.column_string(0));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tstmt01 = db.prepare(create_idx_stmt);\n\t\t\t\t\t\tif (stmt01.step()) {\n\t\t\t\t\t\t Log.v(\"UTILS\", \"Index Created\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tstmt01.close();\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (jsqlite.Exception e) {\n\t\t\t\t\t\tLog.e(\"UTILS\", Log.getStackTraceString(e));\n\t\t\t\t\t}\n \treturn true;\n }\n\t\t\t}\n\t\t}else{\n\t\t\tLog.w(\"UTILS\", \"No valid database received, aborting..\");\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public static synchronized boolean checkIfQuestionPresentInDatabase(\n\t\t\tContext context, String tableName, int primaryKey)\n\t\t\tthrows SQLException, NullPointerException {\n\t\tQADatabaseHelper dbHelper = QADatabaseHelper.getInstance(context);\n\t\tSQLiteDatabase db = dbHelper.getReadableDatabase();\n\n\t\tString query = QAConstants.FETCH_ALL + tableName\n\t\t\t\t+ \" WHERE primaryKey = \" + primaryKey;\n\t\tCursor cursor = db.rawQuery(query, null);\n\t\tif (cursor.getCount() == 0) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "protected boolean checkExistence(E entity) throws DAOException {\n\t\tString existanceSQL = getEntityExistanceSQL(entity);\n\n\t\ttry (Connection connection = source.getConnection();\n\t\t\t\tStatement st = connection.createStatement();\n\t\t\t\tResultSet rs = st.executeQuery(existanceSQL)) {\n\n\t\t\treturn rs.next();\n\n\t\t} catch (SQLException cause) {\n\t\t\tthrow new DAOException(cause);\n\t\t}\n\t}", "@Override\r\n\tprotected boolean isValidTable(final ResultSet resultSet) throws SQLException {\r\n\t\treturn !resultSet.getString(3).contains(\"BIN$\");\r\n\t}" ]
[ "0.73365533", "0.720593", "0.7185578", "0.71139085", "0.7083092", "0.7020358", "0.7009506", "0.69878584", "0.69465315", "0.6911897", "0.68261564", "0.66867185", "0.6684499", "0.66025996", "0.6523332", "0.6454062", "0.6443161", "0.64394253", "0.64342785", "0.6406797", "0.63774097", "0.63748085", "0.63664097", "0.6349596", "0.6336724", "0.6336724", "0.6336724", "0.6336724", "0.6336724", "0.63279593", "0.6323764", "0.6318789", "0.6309391", "0.6250281", "0.62352973", "0.61814326", "0.6174866", "0.61675984", "0.6164296", "0.615834", "0.615755", "0.61248994", "0.61047685", "0.61044556", "0.607475", "0.60389954", "0.6034", "0.60262424", "0.5965274", "0.5963658", "0.5936417", "0.59273523", "0.5888467", "0.58783865", "0.58739716", "0.5867975", "0.585477", "0.5842399", "0.5838435", "0.5830602", "0.58103293", "0.57981527", "0.5783943", "0.57572925", "0.57273114", "0.5716578", "0.5708967", "0.5708711", "0.5695508", "0.5694385", "0.56895345", "0.568358", "0.5669329", "0.56600547", "0.5656146", "0.5650829", "0.5650484", "0.5650264", "0.56477004", "0.5636854", "0.5630924", "0.5629677", "0.5629566", "0.55984753", "0.5594381", "0.5594009", "0.559378", "0.55905503", "0.5585238", "0.55799216", "0.5579912", "0.5537168", "0.5536635", "0.5514479", "0.55064934", "0.55020964", "0.5493446", "0.54881245", "0.5480093", "0.546766" ]
0.72229415
1
Check Permission already there.
public boolean isPermissionExists(Permission permission) { boolean hasPermission = false; Connection conn = null; PreparedStatement ps = null; ResultSet resultSet = null; String query = null; try { conn = getConnection(); query = queryManager.getQuery(conn, QueryManager.CHECK_PERMISSION_EXISTS_QUERY); ps = conn.prepareStatement(query); ps.setString(1, permission.getAppName()); ps.setString(2, permission.getPermissionString()); resultSet = ps.executeQuery(); while (resultSet.next()) { hasPermission = true; } } catch (SQLException e) { log.debug("Failed to execute SQL query {}", query); throw new PermissionException("Unable to execute check permissions.", e); } finally { closeConnection(conn, ps, resultSet); } return hasPermission; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkPermission(Permission permission);", "@Test\n public void testCheckExistsPermission() throws Exception\n {\n permission = permissionManager.getPermissionInstance(\"OPEN_OFFICE\");\n permissionManager.addPermission(permission);\n assertTrue(permissionManager.checkExists(permission));\n Permission permission2 = permissionManager.getPermissionInstance(\"CLOSE_OFFICE\");\n assertFalse(permissionManager.checkExists(permission2));\n }", "@Override\n public void checkPermission(Permission perm) {\n }", "private boolean permisos() {\n for(String permission : PERMISSION_REQUIRED) {\n if(ContextCompat.checkSelfPermission(getContext(), permission) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }", "boolean isHasPermissions();", "public void permission_check() {\n //Usage Permission\n if (!isAccessGranted()) {\n new LovelyStandardDialog(MainActivity.this)\n .setTopColorRes(R.color.colorPrimaryDark)\n .setIcon(R.drawable.ic_perm_device_information_white_48dp)\n .setTitle(getString(R.string.permission_check_title))\n .setMessage(getString(R.string.permission_check_message))\n .setPositiveButton(android.R.string.ok, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(android.provider.Settings.ACTION_USAGE_ACCESS_SETTINGS);\n startActivity(intent);\n }\n })\n .setNegativeButton(android.R.string.no, null)\n .show();\n }\n }", "private boolean checkPermission() {\n if (Build.VERSION.SDK_INT >= 23 &&\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // Permission is not granted\n return false;\n } else {\n return true;// Permission has already been granted }\n }\n }", "private static boolean isPermissionGranted(Context context, String permission) {\n if (ContextCompat.checkSelfPermission(context, permission)\n == PackageManager.PERMISSION_GRANTED) {\n Log.i(TAG, permission + \" granted\");\n return true;\n }\n Log.i(TAG, permission + \" not granted yet\");\n return false;\n }", "public boolean isPermissionGranted(String permission){\n return true;\n// else\n// return false;\n }", "private void checkRunTimePermission() {\n\n if(checkPermission()){\n\n Toast.makeText(MainActivity.this, \"All Permissions Granted Successfully\", Toast.LENGTH_LONG).show();\n\n }\n else {\n\n requestPermission();\n }\n }", "public boolean hasPerms()\n {\n return ContextCompat.checkSelfPermission(itsActivity, itsPerm) ==\n PackageManager.PERMISSION_GRANTED;\n }", "private Boolean checkRuntimePermission() {\n List<String> permissionsNeeded = new ArrayList<String>();\n\n final List<String> permissionsList = new ArrayList<String>();\n if (!addPermission(permissionsList, Manifest.permission.READ_EXTERNAL_STORAGE))\n permissionsNeeded.add(\"Storage\");\n if (!addPermission(permissionsList, Manifest.permission.CAMERA))\n permissionsNeeded.add(\"Camera\");\n /* if (!addPermission(permissionsList, Manifest.permission.WRITE_CONTACTS))\n permissionsNeeded.add(\"Write Contacts\");*/\n\n if (permissionsList.size() > 0) {\n if (permissionsNeeded.size() > 0) {\n // Need Rationale\n String message = \"You need to grant access to \" + permissionsNeeded.get(0);\n for (int i = 1; i < permissionsNeeded.size(); i++)\n message = message + \", \" + permissionsNeeded.get(i);\n showMessageOKCancel(message,\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(permissionsList.toArray(new String[permissionsList.size()]),\n REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n }\n });\n return false;\n }\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(permissionsList.toArray(new String[permissionsList.size()]),\n REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n return false;\n }\n return true;\n }", "@Override\n public void checkPermission(Permission perm, Object context) {\n }", "public boolean checkPermissions(String check)\n {\n Log.d(TAG,\"check single PErmission\");\n int permissionRequest= ActivityCompat.checkSelfPermission(UploadActivity.this,check);\n if(permissionRequest!= PackageManager.PERMISSION_GRANTED)\n {\n Log.d(TAG,\"check PErmission\\nPermission was not granted for:\"+check);\n return false;\n }\n else\n {\n Log.d(TAG,\"check PErmission\\nPermission was granted for:\"+check);\n return true;\n }\n\n }", "public void checkPermission() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.RECORD_AUDIO) +\n ContextCompat.checkSelfPermission(this, Manifest.permission.MODIFY_AUDIO_SETTINGS)\n != PackageManager.PERMISSION_GRANTED) {\n\n ActivityCompat.requestPermissions(this, perms, permsRequestCode);\n permissionGranted = false;\n } else {\n permissionGranted = true;\n }\n }", "private void checkIfPermissionGranted() {\n\n //if user already allowed the permission, this condition will be true\n if (ContextCompat.checkSelfPermission(this, PERMISSION_CODE)\n == PackageManager.PERMISSION_GRANTED) {\n Intent launchIntent = getPackageManager().getLaunchIntentForPackage(\"com.example.a3\");\n if (launchIntent != null) {\n startActivity(launchIntent);//null pointer check in case package name was not found\n }\n }\n //if user didn't allow the permission yet, then ask for permission\n else {\n ActivityCompat.requestPermissions(this, new String[]{PERMISSION_CODE}, 0);\n }\n }", "private boolean checkPermission() {\r\n int result = ContextCompat.checkSelfPermission(getApplicationContext(), READ_CONTACTS);\r\n int result1 = ContextCompat.checkSelfPermission(getApplicationContext(), CAMERA);\r\n int result2 = ContextCompat.checkSelfPermission(getApplicationContext(), ACCESS_FINE_LOCATION);\r\n int result3 = ContextCompat.checkSelfPermission(getApplicationContext(), READ_EXTERNAL_STORAGE);\r\n int result4 = ContextCompat.checkSelfPermission(getApplicationContext(), WRITE_EXTERNAL_STORAGE);\r\n int result5 = ContextCompat.checkSelfPermission(getApplicationContext(), READ_PHONE_STATE);\r\n int result6 = ContextCompat.checkSelfPermission(getApplicationContext(), RECORD_AUDIO);\r\n int result7 = ContextCompat.checkSelfPermission(getApplicationContext(), SEND_SMS);\r\n //int result8 = ContextCompat.checkSelfPermission(getApplicationContext(), BLUETOOTH);\r\n\r\n return result == PackageManager.PERMISSION_GRANTED && result1 == PackageManager.PERMISSION_GRANTED && result2 == PackageManager.PERMISSION_GRANTED &&\r\n result3 == PackageManager.PERMISSION_GRANTED && result4 == PackageManager.PERMISSION_GRANTED && result5 == PackageManager.PERMISSION_GRANTED &&\r\n result6 == PackageManager.PERMISSION_GRANTED && result7 == PackageManager.PERMISSION_GRANTED/*&& result8== PackageManager.PERMISSION_GRANTED*/;\r\n }", "public void checkPermission(String permission, int requestCode)\n {\n if (ContextCompat.checkSelfPermission(this, permission) == PackageManager.PERMISSION_DENIED) {\n // Requesting the permission\n ActivityCompat.requestPermissions(this, new String[] { permission }, requestCode);\n }\n else {\n Toast.makeText(this, \"Permission already granted\", Toast.LENGTH_SHORT).show();\n }\n }", "private boolean checkPermission() {\n\n if ((ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED) &&\n (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) &&\n (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) &&\n (ContextCompat.checkSelfPermission(this,\n Manifest.permission.RECORD_AUDIO) != PackageManager.PERMISSION_GRANTED)\n\n ) {\n\n // Permission is not granted\n return false;\n\n }\n return true;\n }", "@Override\n\tpublic boolean can(String permission)\n\t{\n\t\treturn this.auth() != null && this.auth().getRole() != null && this.auth().getRole().getPermissions().parallelStream().filter(p -> Pattern.compile(p.getName()).matcher(permission).groupCount() == 0).count() != 0;\n\t}", "private boolean hasPermission(String permission) {\n if (canMakeSmores()) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n return (checkSelfPermission(permission) == PackageManager.PERMISSION_GRANTED);\n }\n }\n return true;\n }", "private void chkPermission() {\n permissionStatus = getSharedPreferences(\"permissionStatus\", MODE_PRIVATE);\n\n if (ActivityCompat.checkSelfPermission(LoginActivity.this, permissionsRequired[0]) != PackageManager.PERMISSION_GRANTED\n || ActivityCompat.checkSelfPermission(LoginActivity.this, permissionsRequired[1]) != PackageManager.PERMISSION_GRANTED) {\n if (ActivityCompat.shouldShowRequestPermissionRationale(LoginActivity.this, permissionsRequired[0])\n || ActivityCompat.shouldShowRequestPermissionRationale(LoginActivity.this, permissionsRequired[1])) {\n //Show Information about why you need the permission\n ActivityCompat.requestPermissions(LoginActivity.this, permissionsRequired, PERMISSION_CALLBACK_CONSTANT);\n\n } else if (permissionStatus.getBoolean(permissionsRequired[0], false)) {\n //Previously Permission Request was cancelled with 'Dont Ask Again',\n // Redirect to Settings after showing Information about why you need the permission\n sentToSettings = true;\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, REQUEST_PERMISSION_SETTING);\n Toast.makeText(getBaseContext(), \"Go to Permissions to Grant Camera, Phone and Storage\", Toast.LENGTH_LONG).show();\n\n } else {\n //just request the permission\n ActivityCompat.requestPermissions(LoginActivity.this, permissionsRequired, PERMISSION_CALLBACK_CONSTANT);\n }\n\n //txtPermissions.setText(\"Permissions Required\");\n\n SharedPreferences.Editor editor = permissionStatus.edit();\n editor.putBoolean(permissionsRequired[0], true);\n editor.commit();\n } else {\n //You already have the permission, just go ahead.\n //proceedAfterPermission();\n }\n\n }", "private void checkPermissions() {\n final ArrayList<String> missedPermissions = new ArrayList<>();\n\n for (final String permission : PERMISSIONS_REQUIRED) {\n if (ActivityCompat.checkSelfPermission(this, permission) != PackageManager.PERMISSION_GRANTED) {\n missedPermissions.add(permission);\n }\n }\n\n if (!missedPermissions.isEmpty()) {\n final String[] permissions = new String[missedPermissions.size()];\n missedPermissions.toArray(permissions);\n\n ActivityCompat.requestPermissions(this, permissions, PERMISSION_REQUEST_CODE);\n }\n }", "public boolean checkPerms()\n {\n boolean perms = hasPerms();\n if (!perms) {\n ActivityCompat.requestPermissions(\n itsActivity, new String[] { itsPerm }, itsPermsRequestCode);\n }\n return perms;\n }", "private boolean checkPermissions() {\n if (!read_external_storage_granted ||\n !write_external_storage_granted ||\n !write_external_storage_granted) {\n Toast.makeText(getApplicationContext(), \"Die App braucht Zugang zur Kamera und zum Speicher.\", Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }", "@Test\n public void testCheckExistsPermissionWithString() throws Exception\n {\n permission = permissionManager.getPermissionInstance(\"OPEN_OFFICE2\");\n permissionManager.addPermission(permission);\n assertTrue(permissionManager.checkExists(permission.getName()));\n Permission permission2 = permissionManager.getPermissionInstance(\"CLOSE_OFFICE2\");\n assertFalse(permissionManager.checkExists(permission2.getName()));\n }", "private boolean checkAndRequestPermissions() {\n List<String> listPermissionsNeeded = new ArrayList<>();\n for (String pem : appPermissions){\n if (ContextCompat.checkSelfPermission(this, pem) != PackageManager.PERMISSION_GRANTED){\n listPermissionsNeeded.add(pem);\n }\n }\n\n //ask for non-granted permissions\n if (!listPermissionsNeeded.isEmpty()) {\n ActivityCompat.requestPermissions(this, listPermissionsNeeded.toArray(new String[listPermissionsNeeded.size()]), PERMISSION_REQUEST_CODE);\n return false;\n }\n return true;\n }", "private boolean checkPermission() {\r\n int result = ContextCompat.checkSelfPermission(UniformDrawer.this, android.Manifest.permission.WRITE_EXTERNAL_STORAGE);\r\n if (result == PackageManager.PERMISSION_GRANTED) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public boolean checkPermissions(String permission) {\r\n Log.d(TAG, \"checkPermissions: checking permission: \" + permission);\r\n\r\n int permissionRequest = ActivityCompat.checkSelfPermission(EditProfileActivity.this, permission);\r\n\r\n if (permissionRequest != PackageManager.PERMISSION_GRANTED) {\r\n Log.d(TAG, \"checkPermissions: \\n Permission was not granted for: \" + permission);\r\n Toast.makeText(this, \"Permissions not granted to access camera,\\n\" +\r\n \"please give permissions to GetAplot\", Toast.LENGTH_SHORT).show();\r\n return false;\r\n } else {\r\n Log.d(TAG, \"checkPermissions: \\n Permission was granted for: \" + permission);\r\n return true;\r\n }\r\n }", "private boolean checkPermissionStorage() {\n\n boolean isPermissionGranted = true;\n\n int permissionStorage = ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n if (permissionStorage != PackageManager.PERMISSION_GRANTED)\n {\n isPermissionGranted = false;\n }\n\n return isPermissionGranted;\n }", "private void checkPermission() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO)\n != PackageManager.PERMISSION_GRANTED) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this)\n .setMessage(getString(R.string.can_not_handle_calls))\n .setCancelable(false)\n .setPositiveButton(R.string.text_ok, (dialog, id) -> {\n requestPermission();\n });\n\n builder.create().show();\n } else {\n presenter.gotPermissions = true;\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_PERMISSION_SETTING) {\n checkPermission();\n }\n }", "public void checkPermissions(){\n //Check if some of the core permissions are not already granted\n if ((ContextCompat.checkSelfPermission(LoginActivity.this, Manifest.permission.ACCESS_FINE_LOCATION)!= PackageManager.PERMISSION_GRANTED)\n || (ContextCompat.checkSelfPermission(LoginActivity.this,Manifest.permission.CAMERA)!= PackageManager.PERMISSION_GRANTED)\n || (ContextCompat.checkSelfPermission(LoginActivity.this,Manifest.permission.WRITE_EXTERNAL_STORAGE)!= PackageManager.PERMISSION_GRANTED)) {\n Toast.makeText(this, \"Some permissions are not granted. Please enable them.\", Toast.LENGTH_SHORT).show();\n\n //If so, request the activation of this permissions\n ActivityCompat.requestPermissions(LoginActivity.this,\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.CAMERA,\n Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_CODE_ASK_PERMISSIONS);\n }\n else{\n //Permissions already granted\n }\n }", "public boolean isAllGranted(){\n //PackageManager.PERMISSION_GRANTED\n return false;\n }", "public void checkpermission()\n {\n permissionUtils.check_permission(permissions,\"Need GPS permission for getting your location\",1);\n }", "static boolean checkPermissionAllowed(Context context, String permission) {\n if (android.os.Build.VERSION.SDK_INT >= 23) {\n boolean hasPermission = false;\n try {\n // Invoke checkSelfPermission method from Android 6 (API 23 and UP)\n java.lang.reflect.Method methodCheckPermission = Activity.class.getMethod(\"checkSelfPermission\", java.lang.String.class);\n Object resultObj = methodCheckPermission.invoke(context, permission);\n int result = Integer.parseInt(resultObj.toString());\n hasPermission = (result == PackageManager.PERMISSION_GRANTED);\n } catch (Exception ex) {\n\n }\n\n return hasPermission;\n } else {\n return true;\n }\n }", "private boolean checkPermissions(HttpServletRequest request, RouteAction route) {\n\t\treturn true;\n\t}", "private boolean validateAccess(String permission) {\n\t\tif (\"READ\".equalsIgnoreCase(permission)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean accesspermission()\n {\n AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);\n int mode = 0;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n mode = appOps.checkOpNoThrow(AppOpsManager.OPSTR_GET_USAGE_STATS,\n Process.myUid(),context.getPackageName());\n }\n if (mode == AppOpsManager.MODE_ALLOWED) {\n\n return true;\n }\n return false;\n\n }", "private boolean checkPermissions() {\n if (ContextCompat.checkSelfPermission(this, android.Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED && ContextCompat.checkSelfPermission(this,\n android.Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n return false;\n\n } else {\n return true;\n }\n }", "private boolean checkPermission() {\n Log.d(\"TAG\", \"checkPermission()\");\n // Ask for permission if it wasn't granted yet\n return (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED );\n }", "public void verifyPermission() {\n Permissions.check(this/*context*/, Manifest.permission.WRITE_EXTERNAL_STORAGE, null, new PermissionHandler() {\n @Override\n public void onGranted() {\n addVideoInFolder();\n setupExoPlayer();\n settingListener();\n }\n\n @Override\n public void onDenied(Context context, ArrayList<String> deniedPermissions) {\n super.onDenied(context, deniedPermissions);\n verifyPermission();\n }\n });\n\n }", "private boolean checkForPermission() {\n\n int permissionCode = ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE);\n\n if(permissionCode == PackageManager.PERMISSION_GRANTED) return true;\n else return false;\n }", "private boolean checkAndRequestPermissions() {\n\n List<String> listPermissionsNeeded = new ArrayList<>();\n /*if (camera != PackageManager.PERMISSION_GRANTED) {\n listPermissionsNeeded.add(android.Manifest.permission.CAMERA);\n }\n\n if (wstorage != PackageManager.PERMISSION_GRANTED) {\n listPermissionsNeeded.add(android.Manifest.permission.WRITE_EXTERNAL_STORAGE);\n }\n\n if (rstorage != PackageManager.PERMISSION_GRANTED) {\n listPermissionsNeeded.add(Manifest.permission.READ_EXTERNAL_STORAGE);\n }\n if (rphoneState != PackageManager.PERMISSION_GRANTED)\n {\n listPermissionsNeeded.add(Manifest.permission.READ_PHONE_STATE);\n }*/\n\n// if(cLocation != PackageManager.PERMISSION_GRANTED){\n// listPermissionsNeeded.add(Manifest.permission.ACCESS_COARSE_LOCATION);\n// }\n//\n// if(fLocation != PackageManager.PERMISSION_GRANTED){\n// listPermissionsNeeded.add(Manifest.permission.ACCESS_FINE_LOCATION);\n// }\n\n if (!listPermissionsNeeded.isEmpty()) {\n ActivityCompat.requestPermissions(this, listPermissionsNeeded.toArray\n (new String[listPermissionsNeeded.size()]), REQUEST_ID_MULTIPLE_PERMISSIONS);\n return false;\n }\n success();\n return true;\n }", "private void checkpermission() {\n permissionUtils = new PermissionUtils(context, this);\n permissions.add(Manifest.permission.ACCESS_FINE_LOCATION);\n permissions.add(Manifest.permission.ACCESS_COARSE_LOCATION);\n permissionUtils.check_permission(permissions, \"Need GPS permission for getting your location\", LOCATION_REQUEST_CODE);\n }", "private boolean checkPermissions() {\n int res = ContextCompat.checkSelfPermission(getApplicationContext(),android.Manifest.permission.READ_EXTERNAL_STORAGE);\n if (res == PackageManager.PERMISSION_GRANTED)\n return true;\n else\n return false;\n }", "private boolean checkPermission() {\n Log.d(TAG, \"checkPermission()\");\n // Ask for permission if it wasn't granted yet\n return (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED);\n }", "public boolean CheckPermissions() {\n int result = ContextCompat.checkSelfPermission(getApplicationContext(), WRITE_EXTERNAL_STORAGE);\r\n int result1 = ContextCompat.checkSelfPermission(getApplicationContext(), RECORD_AUDIO);\r\n return result == PackageManager.PERMISSION_GRANTED && result1 == PackageManager.PERMISSION_GRANTED;\r\n }", "public void checkPermission() {\n Log.e(\"checkPermission\", \"checkPermission\");\n\n // Here, thisActivity is the current activity\n if (ContextCompat.checkSelfPermission(RegisterActivity.this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(RegisterActivity.this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n ActivityCompat.requestPermissions(RegisterActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_READ_CONTACTS);\n // Show an expanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n\n // No explanation needed, we can request the permission.\n\n ActivityCompat.requestPermissions(RegisterActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_READ_CONTACTS);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n\n\n }", "private void checkPermission(){\n // vérification de l'autorisation d'accéder à la position GPS\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n\n// // l'autorisation n'est pas acceptée\n// if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n// Manifest.permission.ACCESS_FINE_LOCATION)) {\n// // l'autorisation a été refusée précédemment, on peut prévenir l'utilisateur ici\n// } else {\n // l'autorisation n'a jamais été réclamée, on la demande à l'utilisateur\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n FINE_LOCATION_REQUEST);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n // }\n } else {\n // TODO : autorisation déjà acceptée, on peut faire une action ici\n initLocation();\n }\n }", "boolean hasInstantiatePermission();", "boolean isWritePermissionGranted();", "private boolean checkPermissions(Activity activity) {\n String[] permissions = getRequiredAndroidPermissions();\n return handler.areAllPermissionsGranted(activity, permissions);\n }", "public boolean validatePermissions()\r\n\t{\n\t\treturn true;\r\n\t}", "public boolean addPermission(Permission permission);", "private boolean checkPermission() {\n int result = ContextCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.READ_PHONE_STATE);\n\n if (result == PackageManager.PERMISSION_GRANTED) {\n return true;\n } else {\n return false;\n }\n }", "public boolean checkForPermission() {\r\n int permissionCAMERA = ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA);\r\n int storagePermission = ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE);\r\n int accessCoarseLocation = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION);\r\n int accessFineLocation = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\r\n\r\n List<String> listPermissionsNeeded = new ArrayList<>();\r\n if (storagePermission != PackageManager.PERMISSION_GRANTED) {\r\n listPermissionsNeeded.add(Manifest.permission.READ_EXTERNAL_STORAGE);\r\n }\r\n if (permissionCAMERA != PackageManager.PERMISSION_GRANTED) {\r\n listPermissionsNeeded.add(Manifest.permission.CAMERA);\r\n }\r\n if (accessCoarseLocation != PackageManager.PERMISSION_GRANTED) {\r\n listPermissionsNeeded.add(Manifest.permission.ACCESS_COARSE_LOCATION);\r\n }\r\n if (accessFineLocation != PackageManager.PERMISSION_GRANTED) {\r\n listPermissionsNeeded.add(Manifest.permission.ACCESS_FINE_LOCATION);\r\n }\r\n if (!listPermissionsNeeded.isEmpty()) {\r\n ActivityCompat.requestPermissions(this,\r\n listPermissionsNeeded.toArray(new String[listPermissionsNeeded.size()]), MY_PERMISSIONS_REQUEST);\r\n return false;\r\n }\r\n\r\n return true;\r\n }", "private boolean checkDeviceSettings()\n {\n List<String> listPermissionNeeded= new ArrayList<>();\n boolean ret = true;\n for(String perm : permission)\n {\n if(ContextCompat.checkSelfPermission(this,perm)!= PackageManager.PERMISSION_GRANTED)\n listPermissionNeeded.add(perm);\n }\n if(!listPermissionNeeded.isEmpty())\n {\n ActivityCompat.requestPermissions(this,listPermissionNeeded.toArray(new String[listPermissionNeeded.size()]),REQUEST_PERMISSION);\n ret = false;\n }\n\n return ret;\n }", "private boolean checkPermissionFromDevice(int permissions) {\n\n switch (permissions) {\n case RECORD_AUDIO_PERMISSION_CODE: {\n // int variables will be 0 if permissions are not granted already\n int write_external_storage_result =\n ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n int record_audio_result =\n ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO);\n\n // returns true if both permissions are already granted\n return write_external_storage_result == PackageManager.PERMISSION_GRANTED &&\n record_audio_result == PackageManager.PERMISSION_GRANTED;\n }\n default:\n return false;\n }\n }", "public boolean hasPermission ( String name ) {\n\t\treturn extract ( handle -> handle.hasPermission ( name ) );\n\t}", "private boolean checkReadWritePermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED\n && checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED) {\n return true;\n } else {\n ActivityCompat.requestPermissions(PanAadharResultActivity.this, new String[]{Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE}, 111);\n return false;\n }\n }\n\n return false;\n }", "boolean hasPermission(final Player sniper, final String permission);", "boolean check(Permission permission, Surrogate surrogate, boolean permissionRequired) throws T2DBException;", "private void checkIfPermissionGranted(List<String> requiredPermissions, String permissionToCheck){\n if (ActivityCompat.checkSelfPermission(activity, permissionToCheck)\n != PackageManager.PERMISSION_GRANTED) {\n requiredPermissions.add(permissionToCheck);\n }\n }", "public boolean CheckingPermissionIsEnabledOrNot()\n {\n int CameraPermissionResult = ContextCompat.checkSelfPermission(getApplicationContext(), CAMERA);\n int WriteStoragePermissionResult = ContextCompat.checkSelfPermission(getApplicationContext(), WRITE_EXTERNAL_STORAGE);\n int ReadStoragePermissionResult = ContextCompat.checkSelfPermission(getApplicationContext(), READ_EXTERNAL_STORAGE);\n\n return CameraPermissionResult == PackageManager.PERMISSION_GRANTED &&\n WriteStoragePermissionResult == PackageManager.PERMISSION_GRANTED &&\n ReadStoragePermissionResult == PackageManager.PERMISSION_GRANTED;\n }", "boolean ignoresPermission();", "private boolean checkPermissions() {\n\n if (!isExternalStorageReadable() || !isExternalStorageReadable()) {\n Toast.makeText(this, \"This app only works on devices with usable external storage.\",\n Toast.LENGTH_SHORT).show();\n return false;\n }\n\n int permissionCheck = ContextCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE);\n if (permissionCheck != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_PERMISSION_WRITE);\n return false;\n } else {\n return true;\n }\n }", "boolean requestIfNeeded(Activity activity, Permission permission);", "void askForPermissions();", "private static boolean hasPermissions(Context context, String... permissions) {\n for (String permission : permissions) {\n if (ContextCompat.checkSelfPermission(context, permission)\n != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }", "private boolean checkPermissions() {\n int permissionState1 = ActivityCompat.checkSelfPermission(this,\n android.Manifest.permission.ACCESS_FINE_LOCATION);\n\n int permissionState2 = ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION);\n return permissionState1 == PackageManager.PERMISSION_GRANTED && permissionState2 == PackageManager.PERMISSION_GRANTED;\n }", "private void checkAndRequestForPermission() {\n if(ContextCompat.checkSelfPermission(RegisterActivity.this, Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED){\n if(ActivityCompat.shouldShowRequestPermissionRationale(RegisterActivity.this,\n Manifest.permission.READ_EXTERNAL_STORAGE)){\n Toast.makeText(RegisterActivity.this, \"Please accept for required permission\",\n Toast.LENGTH_SHORT).show();\n }\n else{\n ActivityCompat.requestPermissions(RegisterActivity.this,\n new String []{Manifest.permission.READ_EXTERNAL_STORAGE},PReqCode);\n }\n }\n else{\n openGallery();\n }\n }", "private boolean checkPermission() {\n int fineLocation = ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\n\n if (fineLocation != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_REQUEST_CODE_FINE_LOCATION);\n }\n return false;\n } else {\n return true;\n }\n }", "public void verifyAppPermissions() {\n boolean hasAll = true;\n mHasBluetoothPermissions = ActivityCompat.checkSelfPermission(this, Manifest.permission.BLUETOOTH) == PackageManager.PERMISSION_GRANTED;\n mHasBluetoothAdminPermissions = ActivityCompat.checkSelfPermission(this, Manifest.permission.BLUETOOTH_ADMIN) == PackageManager.PERMISSION_GRANTED;\n hasAll &= ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED;\n hasAll &= ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED;\n\n if (!hasAll) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n this,\n APP_PERMISSIONS,\n REQUEST_PERMISSIONS\n );\n }\n }", "private boolean checkPermission() {\n return (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED );\n }", "private boolean requrstpermission(){\r\n if(ContextCompat.checkSelfPermission(getActivity(), Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED){\r\n return true;\r\n }\r\n else {\r\n ActivityCompat.requestPermissions(getActivity(), new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, IMAGEREQUESTCODE);\r\n return false;\r\n }\r\n }", "public boolean checkPermission() {\n int cameraPermissionResult = ContextCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.CAMERA);\n int readContactPermissionResult = ContextCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.READ_CONTACTS);\n return cameraPermissionResult == PackageManager.PERMISSION_GRANTED && readContactPermissionResult == PackageManager.PERMISSION_GRANTED;\n }", "public boolean isAccessGranted() {\n try {\n PackageManager packageManager = getPackageManager();\n ApplicationInfo applicationInfo = packageManager.getApplicationInfo(getPackageName(), 0);\n AppOpsManager appOpsManager = (AppOpsManager) getSystemService(Context.APP_OPS_SERVICE);\n int mode;\n assert appOpsManager != null;\n mode = appOpsManager.checkOpNoThrow(AppOpsManager.OPSTR_GET_USAGE_STATS,\n applicationInfo.uid, applicationInfo.packageName);\n return (mode == AppOpsManager.MODE_ALLOWED);\n\n } catch (PackageManager.NameNotFoundException e) {\n return false;\n }\n }", "private void checkPermission() {\n if (ContextCompat.checkSelfPermission(MainActivity.this,\n Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) {\n\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},\n MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE);\n }\n }", "private void checkPermissions() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED ||\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED ||\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED ||\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED ||\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED){\n\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.WRITE_EXTERNAL_STORAGE,\n Manifest.permission.READ_EXTERNAL_STORAGE,\n Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.CAMERA}, 56);\n }\n }", "private boolean checkAndRequestPermissions() {\n int locationPermission = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\n List<String> listPermissionsNeeded = new ArrayList<>();\n if (locationPermission != PackageManager.PERMISSION_GRANTED) {\n listPermissionsNeeded.add(Manifest.permission.ACCESS_FINE_LOCATION);\n }\n// if (permissionSendMessage != PackageManager.PERMISSION_GRANTED) {\n// listPermissionsNeeded.add(Manifest.permission.SEND_SMS);\n// }\n if (!listPermissionsNeeded.isEmpty()) {\n ActivityCompat.requestPermissions(this, listPermissionsNeeded.toArray(new String[listPermissionsNeeded.size()]), REQUEST_ID_MULTIPLE_PERMISSIONS);\n return false;\n }\n return true;\n }", "private boolean mayRequestStoragePermission() {\r\n\r\n if(Build.VERSION.SDK_INT < Build.VERSION_CODES.M)\r\n return true;\r\n\r\n if((checkSelfPermission(WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED) &&\r\n (checkSelfPermission(CAMERA) == PackageManager.PERMISSION_GRANTED))\r\n return true;\r\n\r\n if((shouldShowRequestPermissionRationale(WRITE_EXTERNAL_STORAGE)) || (shouldShowRequestPermissionRationale(CAMERA))){\r\n Snackbar.make(mRlView, \"Los permisos son necesarios para poder usar la aplicación\",\r\n Snackbar.LENGTH_INDEFINITE).setAction(android.R.string.ok, new View.OnClickListener() {\r\n @TargetApi(Build.VERSION_CODES.M)\r\n @Override\r\n public void onClick(View v) {\r\n requestPermissions(new String[]{WRITE_EXTERNAL_STORAGE, CAMERA}, MY_PERMISSIONS);\r\n }\r\n });\r\n }else{\r\n requestPermissions(new String[]{WRITE_EXTERNAL_STORAGE, CAMERA}, MY_PERMISSIONS);\r\n }\r\n\r\n return false;\r\n }", "@Override\n public boolean hasPermission(Permission permission) {\n // FacesContext context = FacesContext.getCurrentInstance();\n String imp = (String)ADFContext.getCurrent().getSessionScope().get(\"isImpersonationOn\");\n// String imp = (String)context.getExternalContext().getSessionMap().get(\"isImpersonationOn\");\n if(imp == null || !imp.equals(\"Y\")){\n return super.hasPermission(permission);\n }\n else{\n return true;\n \n }\n \n }", "boolean memberHasPermission(String perm, Member m);", "private boolean addPermission(List<String> permissionsList, String permission) {\n if (ContextCompat.checkSelfPermission(BecomeHostActivity.this, permission) != PackageManager.PERMISSION_GRANTED) {\n permissionsList.add(permission);\n // Check for Rationale Option\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (!shouldShowRequestPermissionRationale(permission))\n return false;\n }\n }\n return true;\n }", "private boolean checkPermissions() {\n return PackageManager.PERMISSION_GRANTED == ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION);\n }", "private void checkForPermission() {\n if (ContextCompat.checkSelfPermission(QuizConfirmationActivity.this,\n Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n\n if (ActivityCompat.shouldShowRequestPermissionRationale(QuizConfirmationActivity.this\n , Manifest.permission.READ_EXTERNAL_STORAGE)) {\n Toast.makeText(QuizConfirmationActivity.this,\n \"Please provide the required storage permission in the app setting\", Toast.LENGTH_SHORT).show();\n\n } else {\n\n ActivityCompat.requestPermissions(QuizConfirmationActivity.this,\n new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},\n\n PreqCode);\n }\n } else {\n imageSelect(QuizConfirmationActivity.this);\n }\n\n\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n private boolean arePermissionsEnabled(){\n for(String permission : mPermissions){\n if(checkSelfPermission(permission) != PackageManager.PERMISSION_GRANTED)\n return false;\n }\n return true;\n }", "private boolean checkPermissions() {\r\n int permissionState = ActivityCompat.checkSelfPermission(this,\r\n Manifest.permission.ACCESS_FINE_LOCATION);\r\n return permissionState == PackageManager.PERMISSION_GRANTED;\r\n }", "private boolean checkPermissions() {\n int permissionState = ActivityCompat.checkSelfPermission(\n this, Manifest.permission.ACCESS_FINE_LOCATION\n );\n return permissionState == PackageManager.PERMISSION_GRANTED;\n }", "private boolean checkPermissions() {\n int permissionState = ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION);\n return permissionState == PackageManager.PERMISSION_GRANTED;\n }", "private boolean checkPermissions() {\n int permissionState = ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION);\n return permissionState == PackageManager.PERMISSION_GRANTED;\n }", "private void checkAndRequestPermissions() {\n missingPermission = new ArrayList<>();\n // Check for permissions\n for (String eachPermission : REQUIRED_PERMISSION_LIST) {\n if (ContextCompat.checkSelfPermission(this, eachPermission) != PackageManager.PERMISSION_GRANTED) {\n missingPermission.add(eachPermission);\n }\n }\n // Request for missing permissions\n if (missingPermission.isEmpty()) {\n DroneModel.getInstance(this).setDjiProductStateCallBack(this);\n DroneModel.getInstance(this).startSDKRegistration();\n } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n ActivityCompat.requestPermissions(this,\n missingPermission.toArray(new String[missingPermission.size()]),\n REQUEST_PERMISSION_CODE);\n }\n }", "private void checkPermissions() {\n // if permissions are not granted for camera, and external storage, request for them\n if ((ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED) ||\n (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED)) {\n ActivityCompat.\n requestPermissions(this,\n new String[]{Manifest.permission.CAMERA,\n Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_CODE_CAMERA_PERMISSION);\n\n }\n }", "public boolean hasPermission ( Permission perm ) {\n\t\treturn extract ( handle -> handle.hasPermission ( perm ) );\n\t}", "public boolean hasInstantiatePermission() {\n return instantiatePermissionBuilder_ != null || instantiatePermission_ != null;\n }", "public boolean checkPermissions() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n new AlertDialog.Builder(this)\n .setTitle(\"TITLE\")\n .setMessage(\"TEXT\")\n .setPositiveButton(\"OKAY\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Prompt the user once explanation has been shown\n ActivityCompat.requestPermissions(MapsActivity.this,\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_REQ_LOC);\n }\n })\n .create()\n .show();\n\n\n } else {\n // No explanation needed, we can request the permission.\n ActivityCompat.requestPermissions(this,\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_REQ_LOC);\n }\n return false;\n } else {\n return true;\n }\n }", "private void checkPermissions() {\n List<String> permissions = new ArrayList<>();\n String message = \"osmdroid permissions:\";\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.ACCESS_FINE_LOCATION);\n message += \"\\nLocation to show user location.\";\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);\n message += \"\\nStorage access to store map tiles.\";\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.READ_PHONE_STATE);\n message += \"\\n access to read phone state.\";\n //requestReadPhoneStatePermission();\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.RECEIVE_SMS) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.RECEIVE_SMS);\n message += \"\\n access to receive sms.\";\n //requestReadPhoneStatePermission();\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.GET_ACCOUNTS) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.GET_ACCOUNTS);\n message += \"\\n access to read sms.\";\n //requestReadPhoneStatePermission();\n }\n if (!permissions.isEmpty()) {\n // Toast.makeText(this, message, Toast.LENGTH_LONG).show();\n String[] params = permissions.toArray(new String[permissions.size()]);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(params, REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n } // else: We already have permissions, so handle as normal\n }", "private boolean isWriteStorageAllowed() {\n int result = ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n //If permission is granted returning true\n if (result == PackageManager.PERMISSION_GRANTED)\n return true;\n\n //If permission is not granted returning false\n return false;\n }", "private boolean hasExternalStorageReadWritePermission() {\n return ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED\n && ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED;\n }", "private boolean checkPermissions() {\n boolean hasPermission = true;\n\n int result = ContextCompat.checkSelfPermission(\n this,\n Manifest.permission.ACCESS_FINE_LOCATION\n );\n if (result == PERMISSION_DENIED) {\n hasPermission = false;\n }\n\n // ACCESS_BACKGROUND_LOCATION is only required on API 29 and higher\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {\n result = ContextCompat.checkSelfPermission(\n this,\n Manifest.permission.ACCESS_BACKGROUND_LOCATION\n );\n if (result == PERMISSION_DENIED) {\n hasPermission = false;\n }\n }\n\n return hasPermission;\n }" ]
[ "0.7692452", "0.76228774", "0.7537249", "0.74503344", "0.7403689", "0.73525274", "0.7318532", "0.72506285", "0.7237546", "0.72272104", "0.7207047", "0.7146865", "0.71310425", "0.7111127", "0.71055603", "0.70817965", "0.7069999", "0.70643574", "0.70521456", "0.7035114", "0.70186967", "0.69984704", "0.6980252", "0.69669235", "0.6960536", "0.6950142", "0.69480467", "0.69038206", "0.6880683", "0.68733966", "0.6867404", "0.6866485", "0.6845506", "0.68207407", "0.68199646", "0.6816342", "0.68121636", "0.67761534", "0.676658", "0.67505765", "0.6715339", "0.67113405", "0.67105156", "0.6701982", "0.66790515", "0.66741633", "0.6668101", "0.6664085", "0.66517156", "0.6646636", "0.66461134", "0.6644778", "0.6643629", "0.66366893", "0.6618406", "0.6607608", "0.65865374", "0.6580324", "0.65782654", "0.65770864", "0.6568128", "0.6551921", "0.65384907", "0.65303254", "0.6523889", "0.65054077", "0.6504124", "0.6495357", "0.64913756", "0.64820987", "0.64781326", "0.64760625", "0.6469542", "0.6467426", "0.64650315", "0.6458181", "0.64544743", "0.6443722", "0.64398444", "0.6434269", "0.64333946", "0.6432503", "0.6422481", "0.6417387", "0.64125043", "0.64078134", "0.6399214", "0.6398557", "0.63973737", "0.637339", "0.6365589", "0.6365589", "0.6362046", "0.6348517", "0.6343046", "0.6337056", "0.6334542", "0.6313752", "0.63128513", "0.63070184", "0.63017654" ]
0.0
-1